merge change

This commit is contained in:
Dany De Bontridder 2014-02-22 23:33:26 +01:00
commit 33bb935bf4
17 changed files with 256 additions and 1090 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

View file

@ -1,25 +0,0 @@
<?php
/*
* This file is part of NOALYSS.
*
* NOALYSS is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* NOALYSS is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with NOALYSS; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
/* $Revision$ */
// Copyright Author Dany De Bontridder danydb@aevalys.eu
/*!\file
* \brief Manage the hypothese for the budget module
*/

View file

@ -18,8 +18,8 @@
*/
/* $Revision$ */
// Copyright Author Dany De Bontridder danydb@aevalys.eu
// Copyright Author YOUR_NAME <adress_email>
/*!\file
* \brief Manage the hypothese for the budget module
* \brief Description of the file
*/

View file

@ -1,809 +0,0 @@
<?xml version="1.0" encoding="ISO-8859-1" ?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<!--
WARNING:
========
TO BE COMPLIANT WITH THE XERCES PARSER, THE FORMATTING OF THE XML FILE MUST INCLUDE LINE SEPARATORS AT SOME
KEY POSITIONS :
- AFTER THE "<?xml ...>" TAG (FIRST LINE),
- AFTER THE <VATSENDING xmlns:...> TAG (SECOND LINE) AND
- BEFORE THE </VATSENDING> TAG (LAST LINE)
-->
<!-- definition of attributes -->
<xs:attribute name="RESTITUTION">
<xs:annotation>
<xs:documentation xml:lang="fr">
demande de restitution</xs:documentation>
<xs:documentation xml:lang="nl">
aanvraag om terugbetaling</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:pattern value="YES|NO"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="PAYMENT">
<xs:annotation>
<xs:documentation xml:lang="fr">
demande de formulaires de paiement</xs:documentation>
<xs:documentation xml:lang="nl">
aanvraag van betaalformulieren</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:pattern value="YES|NO"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<!-- definition of simple elements -->
<xs:element name="VATNUMBER">
<xs:annotation>
<xs:documentation xml:lang="fr">
numéro de TVA de l&apos;assujetti en 10 positions</xs:documentation>
<xs:documentation xml:lang="nl">
BTW nummer van de belastingplichtige in 10 posities</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:pattern value="[0]+[0-9]{9}"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="NAME">
<xs:annotation>
<xs:documentation xml:lang="fr">
nom ou dénomination</xs:documentation>
<xs:documentation xml:lang="nl">
naam of benaming</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="ADDRESS">
<xs:annotation>
<xs:documentation xml:lang="fr">
Adresse: rue, n°, boîte postale</xs:documentation>
<xs:documentation xml:lang="nl">
Adres: straat, nr, postbus</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="100"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="POSTCODE">
<xs:annotation>
<xs:documentation xml:lang="fr">
Code postal</xs:documentation>
<xs:documentation xml:lang="nl">
Postcode</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="4"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="CITY">
<xs:annotation>
<xs:documentation xml:lang="fr">
localité</xs:documentation>
<xs:documentation xml:lang="nl">
gemeente</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="100"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="SENDINGREFERENCE">
<xs:annotation>
<xs:documentation xml:lang="fr">
n° de référence unique de l&apos;envoi de la fiduciaire. Ce numéro est déterminé par la fiduciaire.</xs:documentation>
<xs:documentation xml:lang="nl">
uniek referentie nr van de zending van de fiduciaire</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:unsignedLong">
<xs:maxInclusive value="99999999999999"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="RECNUM">
<xs:annotation>
<xs:documentation xml:lang="fr">
numéro de suite de la déclaration.</xs:documentation>
<xs:documentation xml:lang="nl">
volgnummer van de aangifte</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:integer">
<xs:minInclusive value="1"/>
<xs:maxInclusive value="999"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="QUARTER">
<xs:annotation>
<xs:documentation xml:lang="fr">
trimestre de la période</xs:documentation>
<xs:documentation xml:lang="nl">
kwartaal van de periode</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:integer">
<xs:minInclusive value="1"/>
<xs:maxInclusive value="4"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="MONTH">
<xs:annotation>
<xs:documentation xml:lang="fr">
mois de la période</xs:documentation>
<xs:documentation xml:lang="nl">
maand van de periode</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:integer">
<xs:minInclusive value="1"/>
<xs:maxInclusive value="12"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="YEAR">
<xs:annotation>
<xs:documentation xml:lang="fr">
année de la période (format YYYY)</xs:documentation>
<xs:documentation xml:lang="nl">
jaar van de periode (formaat YYYY)</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:gYear"/>
</xs:simpleType>
</xs:element>
<xs:element name="D0">
<xs:annotation>
<xs:documentation xml:lang="fr">
montant déclaré en grille 00: opérations soumises à un régime particulier</xs:documentation>
<xs:documentation xml:lang="nl">
bedrag aangegeven in rooster 00: handelingen onderworpen aan een bijzondere regeling</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="14"/>
<xs:pattern value="([0-9])+"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="D1">
<xs:annotation>
<xs:documentation xml:lang="fr">
montant déclaré en grille 01: opérations pour lesquelles la T.V.A. est due par le déclarant au taux de 6%</xs:documentation>
<xs:documentation xml:lang="nl">
bedrag aangegeven in rooster 01: Handelingen waarvoor de BTW verschuldigd is door de aangever aan het tarief van 6%</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="14"/>
<xs:pattern value="([0-9])+"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="D2">
<xs:annotation>
<xs:documentation xml:lang="fr">
montant déclaré en grille 02: opérations pour lesquelles la T.V.A. est due par le déclarant au taux de 12%</xs:documentation>
<xs:documentation xml:lang="nl">
bedrag aangegeven in rooster 02: Handelingen waarvoor de BTW verschuldigd is door de aangever aan het tarief van 12%.</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="14"/>
<xs:pattern value="([0-9])+"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="D3">
<xs:annotation>
<xs:documentation xml:lang="fr">
montant déclaré en grille 03: opérations pour lesquelles la T.V.A. est due par le déclarant au taux de 21%</xs:documentation>
<xs:documentation xml:lang="nl">
bedrag aangegeven in rooster 03: handelingen waarvoor de BTW verschuldigd is door de aangever aan het tarief van 21%.</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="14"/>
<xs:pattern value="([0-9])+"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="D45">
<xs:annotation>
<xs:documentation xml:lang="fr">
montant déclaré en grille 45: opérations pour lesquelles la T.V.A. est due par le cocontractant</xs:documentation>
<xs:documentation xml:lang="nl">
bedrag aangegeven in rooster 45: handelingen waarvoor de BTW verschuldigd is door de medecontractant</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="14"/>
<xs:pattern value="([0-9])+"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="D46">
<xs:annotation>
<xs:documentation xml:lang="fr">
montant déclaré en grille 46: livraisons intracommunautaires exemptées effectuées en Belgique et ventes ABC</xs:documentation>
<xs:documentation xml:lang="nl">
bedrag aangegeven in rooster 46: vrijgestelde intracommunautaire leveringen in België en ABC-verkopen</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="14"/>
<xs:pattern value="([0-9])+"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="D47">
<xs:annotation>
<xs:documentation xml:lang="fr">
montant déclaré en grille 47: autres opérations exemptées et opérations effectuées à l&apos;étranger</xs:documentation>
<xs:documentation xml:lang="nl">
bedrag aangegeven in rooster 47: andere vrijgestelde handelingen en handelingen verricht in het buitenland</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="14"/>
<xs:pattern value="([0-9])+"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="D48">
<xs:annotation>
<xs:documentation xml:lang="fr">
montant déclaré en grille 48: montant des notes de crédit délivrées et des corrections négatives relatif aux opérations inscrites en grille 46</xs:documentation>
<xs:documentation xml:lang="nl">
bedrag aangegeven in rooster 48: bedrag van de uitgereikte creditnota&apos;s en de negatieve verbeteringen met betrekking tot de handelingen ingeschreven in rooster 46</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="14"/>
<xs:pattern value="([0-9])+"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="D49">
<xs:annotation>
<xs:documentation xml:lang="fr">
montant déclaré en grille 49: montant des notes de crédit délivrées et des corrections négatives relatif aux autres opérations du cadre II</xs:documentation>
<xs:documentation xml:lang="nl">
bedrag aangegeven in rooster 49: bedrag van de uitgereikte creditnota&apos;s en de negatieve verbeteringen met betrekking tot andere handelingen van kader II</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="14"/>
<xs:pattern value="([0-9])+"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="D54">
<xs:annotation>
<xs:documentation xml:lang="fr">
montant déclaré en grille 54: T.V.A. relative aux opérations déclarées en grilles 01, 02 et 03</xs:documentation>
<xs:documentation xml:lang="nl">
bedrag aangegeven in rooster 54: BTW op handelingen aangegeven in de roosters 01, 02 et 03</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="14"/>
<xs:pattern value="([0-9])+"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="D55">
<xs:annotation>
<xs:documentation xml:lang="fr">
montant déclaré en grille 55: T.V.A. relative aux opérations déclarées en grille 86</xs:documentation>
<xs:documentation xml:lang="nl">
bedrag aangegeven in rooster 55: BTW op handelingen aangegeven in rooster 86</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="14"/>
<xs:pattern value="([0-9])+"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="D56">
<xs:annotation>
<xs:documentation xml:lang="fr">
montant déclaré en grille 56: T.V.A. relative aux opérations déclarées en grille 87, à l&apos;exception des importations avec report de perception</xs:documentation>
<xs:documentation xml:lang="nl">
bedrag aangegeven in rooster 56: BTW op handelingen aangegeven in rooster 87, met uitzondering van invoeren met verlegging van heffing</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="14"/>
<xs:pattern value="([0-9])+"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="D57">
<xs:annotation>
<xs:documentation xml:lang="fr">
montant déclaré en grille 57: T.V.A. relative aux importations avec report de perception</xs:documentation>
<xs:documentation xml:lang="nl">
bedrag aangegeven in rooster 57: BTW op invoeren met verlegging van heffing</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="14"/>
<xs:pattern value="([0-9])+"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="D59">
<xs:annotation>
<xs:documentation xml:lang="fr">
montant déclaré en grille 59: T.V.A. déductible</xs:documentation>
<xs:documentation xml:lang="nl">
bedrag aangegeven in rooster 59: Aftrekbare BTW</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="14"/>
<xs:pattern value="([0-9])+"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="D61">
<xs:annotation>
<xs:documentation xml:lang="fr">
montant déclaré en grille 61: diverses régularisations T.V.A. en faveur de l&apos;Etat</xs:documentation>
<xs:documentation xml:lang="nl">
bedrag aangegeven in rooster 61: diverse BTW-regularisaties in het voordeel van de Staat</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="14"/>
<xs:pattern value="([0-9])+"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="D62">
<xs:annotation>
<xs:documentation xml:lang="fr">
montant déclaré en grille 62: diverses régularisations T.V.A. en faveur du déclarant</xs:documentation>
<xs:documentation xml:lang="nl">
bedrag aangegeven in rooster 62: diverse BTW-regularisaties in het voordeel van de aangever</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="14"/>
<xs:pattern value="([0-9])+"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="D63">
<xs:annotation>
<xs:documentation xml:lang="fr">
montant déclaré en grille 63: T.V.A. à reverser mentionnée sur les notes de crédit reçues</xs:documentation>
<xs:documentation xml:lang="nl">
bedrag aangegeven in rooster 63: terug te storten BTW vermeld op ontvangen creditnota&apos;s</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="14"/>
<xs:pattern value="([0-9])+"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="D64">
<xs:annotation>
<xs:documentation xml:lang="fr">
montant déclaré en grille 64: T.V.A. à récupérer mentionnée sur les notes de crédit délivrées</xs:documentation>
<xs:documentation xml:lang="nl">
bedrag aangegeven in rooster 64: te recupereren BTW vermeld op uitgereikte creditnota&apos;s</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="14"/>
<xs:pattern value="([0-9])+"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="D71">
<xs:annotation>
<xs:documentation xml:lang="fr">
montant déclaré en grille 71: taxe due à l&apos;Etat</xs:documentation>
<xs:documentation xml:lang="nl">
bedrag aangegeven in rooster 71: aan de Staat verschuldigde belasting</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="14"/>
<xs:pattern value="([0-9])+"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="D72">
<xs:annotation>
<xs:documentation xml:lang="fr">
montant déclaré en grille 72: sommes dues par l&apos;Etat</xs:documentation>
<xs:documentation xml:lang="nl">
bedrag aangegeven in rooster 72: sommen verschuldigd door de Staat</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="14"/>
<xs:pattern value="([0-9])+"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="D81">
<xs:annotation>
<xs:documentation xml:lang="fr">
montant déclaré en grille 81: montant des opérations à l&apos;entrée compte tenu des notes de crédit reçues et autres corrections : marchandises, matières premières et matières auxiliaires</xs:documentation>
<xs:documentation xml:lang="nl">
bedrag aangegeven in rooster 81: bedrag van de inkomende handelingen rekening houdend met de ontvangen creditnota&apos;s en andere verbeteringen: handelsgoederen, grond- en hulpstoffen </xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="14"/>
<xs:pattern value="([0-9])+"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="D82">
<xs:annotation>
<xs:documentation xml:lang="fr">
montant déclaré en grille 82: montant des opérations à l&apos;entrée compte tenu des notes de crédit reçues et autres corrections :services et biens divers</xs:documentation>
<xs:documentation xml:lang="nl">
bedrag aangegeven in rooster 82: bedrag van de inkomende handelingen rekening houdend met de ontvangen creditnota&apos;s en andere verbeteringen: diensten en diverse goederen </xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="14"/>
<xs:pattern value="([0-9])+"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="D83">
<xs:annotation>
<xs:documentation xml:lang="fr">
montant déclaré en grille 83: montant des opérations à l&apos;entrée compte tenu des notes de crédit reçues et autres corrections : biens d&apos;investissement</xs:documentation>
<xs:documentation xml:lang="nl">
bedrag aangegeven in rooster 83: bedrag van de inkomende handelingen rekening houdend met de ontvangen creditnota&apos;s en andere verbeteringen: bedrijfsmiddelen</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="14"/>
<xs:pattern value="([0-9])+"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="D84">
<xs:annotation>
<xs:documentation xml:lang="fr">
montant déclaré en grille 84: montant des notes de crédit reçues et des corrections négatives : relatif aux opérations inscrites en grille 86</xs:documentation>
<xs:documentation xml:lang="nl">
bedrag aangegeven in rooster 84: bedrag van de ontvangen creditnota&apos;s en de negatieve verbeteringen met betrekking tot de handelingen ingeschreven in rooster 86</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="14"/>
<xs:pattern value="([0-9])+"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="D85">
<xs:annotation>
<xs:documentation xml:lang="fr">
montant déclaré en grille 85: montant des notes de crédit reçues et des corrections négatives : relatif aux autres opérations du cadre III</xs:documentation>
<xs:documentation xml:lang="nl">
bedrag aangegeven in rooster 85: bedrag van de ontvangen creditnota&apos;s en de negatieve verbeteringen met betrekking tot de andere handelingen van kader III</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="14"/>
<xs:pattern value="([0-9])+"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="D86">
<xs:annotation>
<xs:documentation xml:lang="fr">
montant déclaré en grille 86: acquisitions intracommunautaires effectuées en Belgique et vente ABC</xs:documentation>
<xs:documentation xml:lang="nl">
bedrag aangegeven in rooster 86: intracommunautaire verwervingen verricht in België en ABC-verkopen</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="14"/>
<xs:pattern value="([0-9])+"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="D87">
<xs:annotation>
<xs:documentation xml:lang="fr">
montant déclaré en grille 87: autres opérations à l&apos;entrée pour lesquelles la T.V.A. est due par le déclarant</xs:documentation>
<xs:documentation xml:lang="nl">
bedrag aangegeven in rooster 87: andere inkomende handelingen waarvoor de BTW verschuldigd is
door de aangever</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="14"/>
<xs:pattern value="([0-9])+"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="D91">
<xs:annotation>
<xs:documentation xml:lang="fr">
Concerne uniquement la déclaration mensuelle de décembre: montant déclaré en grille 91: T.V.A. réellement due pour la période du 1er au 20 décembre</xs:documentation>
<xs:documentation xml:lang="nl">
Betreft uitsluitend de maandaangifte van december: bedrag aangegeven in rooster 91: werkelijk verschuldigde BTW voor de periode van 1 tot 20 december </xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="14"/>
<xs:pattern value="([0-9])+"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="DATE">
<xs:annotation>
<xs:documentation xml:lang="fr">
date (format YYYY-MM-DD)</xs:documentation>
<xs:documentation xml:lang="nl">
datum (formaat YYYY-MM-DD)</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:date"/>
</xs:simpleType>
</xs:element>
<xs:element name="ROLE">
<xs:annotation>
<xs:documentation xml:lang="fr">
qualité du signataire</xs:documentation>
<xs:documentation xml:lang="nl">
hoedanigheid van de ondertekenaar</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="TELEPHONENUMBER">
<xs:annotation>
<xs:documentation xml:lang="fr">
numéro de téléphone</xs:documentation>
<xs:documentation xml:lang="nl">
telefoonnummer</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="50"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="EMAIL">
<xs:annotation>
<xs:documentation xml:lang="fr">
adresse e-mail du signataire</xs:documentation>
<xs:documentation xml:lang="nl">
e-mail adres van de ondertekenaar</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="255"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<!-- definition of complex elements -->
<xs:element name="DECLARER">
<xs:annotation>
<xs:documentation xml:lang="fr">
identification de l&apos;expéditeur de la déclaration multiple</xs:documentation>
<xs:documentation xml:lang="nl">
identificatie van de afzender van de meervoudige aangifte </xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element ref="VATNUMBER"/>
<xs:element ref="NAME"/>
<xs:element ref="ADDRESS"/>
<xs:element ref="POSTCODE"/>
<xs:element ref="CITY"/>
<xs:element ref="SENDINGREFERENCE"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="DPERIODE">
<xs:annotation>
<xs:documentation xml:lang="fr">
période concernée par la déclaration. La période concerne un mois ou un trimestre.</xs:documentation>
<xs:documentation xml:lang="nl">
periode van de aangifte. De periode betreft een maand of een kwartaal.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:choice>
<xs:element ref="QUARTER"/>
<xs:element ref="MONTH"/>
</xs:choice>
<xs:element ref="YEAR"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="ASK">
<xs:annotation>
<xs:documentation xml:lang="fr">
Demandes liées à la déclaration (remboursement et formulaires de paiement)</xs:documentation>
<xs:documentation xml:lang="nl">
Aanvragen verbonden aan de aangifte (terugbetaling en betaalformulieren) </xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:attribute ref="RESTITUTION"
use="required">
<xs:annotation>
<xs:documentation xml:lang="fr">
En cas de demande de remboursement, l&apos;attribut doit avoir la valeur &apos;YES&apos; </xs:documentation>
<xs:documentation xml:lang="nl">
In geval van een aanvraag om terugbetaling moet het attribuut de waarde &apos;YES&apos; bevatten</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute ref="PAYMENT"
use="required">
<xs:annotation>
<xs:documentation xml:lang="fr">
En cas de demande de formulaires de paiement, l&apos;attribut doit avoir la valeur &apos;YES&apos; </xs:documentation>
<xs:documentation xml:lang="nl">
In geval van een aanvraag van betaalformulieren moet het attribuut de waarde &apos;YES&apos; bevatten</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
</xs:element>
<xs:element name="DATA_ELEM">
<xs:annotation>
<xs:documentation xml:lang="fr">
Montants déclarés. Tous les montants sont exprimés en Eurocent.</xs:documentation>
<xs:documentation xml:lang="nl">
Aangegeven bedragen. Alle bedragen zijn in Eurocent uitgedrukt. </xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element ref="D0"
minOccurs="0"/>
<xs:element ref="D1"
minOccurs="0"/>
<xs:element ref="D2"
minOccurs="0"/>
<xs:element ref="D3"
minOccurs="0"/>
<xs:element ref="D45"
minOccurs="0"/>
<xs:element ref="D46"
minOccurs="0"/>
<xs:element ref="D47"
minOccurs="0"/>
<xs:element ref="D48"
minOccurs="0"/>
<xs:element ref="D49"
minOccurs="0"/>
<xs:element ref="D54"
minOccurs="0"/>
<xs:element ref="D55"
minOccurs="0"/>
<xs:element ref="D56"
minOccurs="0"/>
<xs:element ref="D57"
minOccurs="0"/>
<xs:element ref="D59"
minOccurs="0"/>
<xs:element ref="D61"
minOccurs="0"/>
<xs:element ref="D62"
minOccurs="0"/>
<xs:element ref="D63"
minOccurs="0"/>
<xs:element ref="D64"
minOccurs="0"/>
<xs:choice>
<xs:element ref="D71"/>
<xs:element ref="D72"/>
</xs:choice>
<xs:element ref="D81"
minOccurs="0"/>
<xs:element ref="D82"
minOccurs="0"/>
<xs:element ref="D83"
minOccurs="0"/>
<xs:element ref="D84"
minOccurs="0"/>
<xs:element ref="D85"
minOccurs="0"/>
<xs:element ref="D86"
minOccurs="0"/>
<xs:element ref="D87"
minOccurs="0"/>
<xs:element ref="D91"
minOccurs="0"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="DATA">
<xs:annotation>
<xs:documentation xml:lang="fr">
Montants déclarés. Tous les montants sont exprimés en Eurocent.</xs:documentation>
<xs:documentation xml:lang="nl">
Aangegeven bedragen. Alle bedragen zijn in Eurocent uitgedrukt. </xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element ref="DATA_ELEM"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="SIGNATURE">
<xs:annotation>
<xs:documentation xml:lang="fr">
identification du signataire</xs:documentation>
<xs:documentation xml:lang="nl">
identificatie van de ondertekenaar</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element ref="DATE"/>
<xs:element ref="NAME"/>
<xs:element ref="ROLE"/>
<xs:element ref="TELEPHONENUMBER"/>
<xs:element ref="EMAIL"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="VATRECORD">
<xs:annotation>
<xs:documentation xml:lang="fr">
Déclaration TVA d&apos;un assujetti</xs:documentation>
<xs:documentation xml:lang="nl">
BTW aangifte van een belastingplichtige</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element ref="RECNUM"/>
<xs:element ref="VATNUMBER"/>
<xs:element ref="DPERIODE"/>
<xs:element ref="ASK"/>
<xs:element ref="DATA"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="VATSENDING">
<xs:annotation>
<xs:documentation xml:lang="fr">
identification de l&apos;envoi</xs:documentation>
<xs:documentation xml:lang="nl">
identificatie van de zending</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element ref="DECLARER"/>
<xs:element ref="VATRECORD"
maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>

View file

@ -1,10 +0,0 @@
/*!
* \brief
* \param
* \param
* \param
*
*
* \return
*/

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 17 KiB

Before After
Before After

View file

@ -2469,7 +2469,7 @@ function calendar_zoom(obj)
if (obj.outdiv === undefined) {
obj.outdiv = 'calendar_zoom_div';
}
if ($(obj.outdiv) === undefined) {
if ($(obj.outdiv) == undefined) {
var str_style = fixed_position(0, 20);
add_div({id: obj.outdiv, style: 'margin-left:3%;width:94%;height:94%;' + str_style, cssclass: "inner_box", drag: 1});
}

View file

@ -1,16 +1,12 @@
/* <style type="text/css"> */
BODY {
background-color:wheat;
background-image: url('image/spirale2.gif');
background-color:#fff;
font-family:arial,verdana,sans-serif,helvetica;
padding: 0px 0px 0px 0px ;
margin:0;
color:brown;
font-size:0.85em;
background-repeat:no-repeat;
background-attachment:fixed;
background-position:bottom;
font-size:1em;
}
.notice {
color:red;
@ -34,7 +30,7 @@ table.sortable th, table.table_large th,table.result th {
font-weight:bold;
font-family:arial,verdana,sans-serif,helvetica;
border-bottom:1px solid #7C2A1F;
border-top:0;
border-top:0px;
font-size:0.75em;;
text-align: left;
font-style: italic;
@ -251,7 +247,7 @@ table.document th{
font-weight:bold;
font-family:arial,verdana,sans-serif,helvetica;
border-bottom:2px solid blue;
border-top:0;
border-top:0px;
color:#25238F;
text-align: left;
background-color:#EDF3FF;
@ -269,9 +265,9 @@ table.document th{
}
table.mtitle {
border:0;
border:0px;
text-align:center;
min-width: 50%;
min-width: 20%;
}
td.mshort {
height:15px;
@ -286,10 +282,12 @@ td.mtitle {
height :30px;
font-size:0.75em;;
font-weight: bolder;
border:1px dashed #e08000;
border-width: 1px;
border-color:#e08000;
border-style: solid;
border-collapse: collapse;
padding: 0;
margin: 0;
padding: 0px;
margin: 0px;
border-spacing: 0px;
background-color: transparent;
}
@ -479,7 +477,7 @@ div.content a {
text-decoration: none;
display: block;
color: brown;
padding: 0;
padding: 0px;
}
@ -530,7 +528,7 @@ div.content a.mtitle:hover {
div.redcontent input.text {
font-family:arial,verdana,sans-serif,helvetica;
font-weight:normal;
border-color:336699;
border-color:#336699;
border-style:solid;
background-color:orange;
border-width:1px;
@ -539,7 +537,7 @@ div.redcontent input.text {
div.content input.text {
font-family:arial,verdana,sans-serif,helvetica;
font-weight:normal;
border-color:336699;
border-color:#336699;
border-style:solid;
border-width:1px;
background-color:orange;
@ -610,12 +608,12 @@ select {
position:absolute;
border:1px solid black;
background-color:yellow;
padding-bottom: 10;
padding-top: 10;
padding-left: 10;
padding-right: 10;
padding-bottom: 10px;
padding-top: 10px;
padding-left: 10px;
padding-right: 10px;
color:black;
top:0;left:0;
top:0px;left:0px;
visibility:hidden;
width:25em;
z-index:20;
@ -710,9 +708,9 @@ div.popup_border_notitle {
div.popup_content {
position:absolute;
top:16;
bottom:0;
left:0;
right:0;
bottom:0px;
left:0px;
right:0px;
width:100%;
height:96%;
overflow: auto;
@ -745,15 +743,15 @@ div.autocomplete ul {
background-color:white;
border:1px solid #888;
width:375px;
margin:0;
padding:0;
margin:0px;
padding:0px;
}
div.autocomplete ul li.selected { background-color: lightblue;}
div.autocomplete ul li {
list-style-type:none;
display:block;
margin:0;
margin:0px;
padding:0px;
/*height:32px;*/
cursor:pointer;
@ -802,7 +800,7 @@ div.pc_calendar tr{
font-size:0.87em;
}
div.pc_calendar tr{
height:40;
height:40px;
}
@ -852,7 +850,7 @@ a#anchorbutton, .button, a.button,div.content a.button,a#smallanchorbutton, .sma
border-style: outset ;
border-color: blue ;
border-width:0;
border-width:0px;
padding-bottom: 3px;
padding-top: 3px;
padding-right: 3px;
@ -867,7 +865,7 @@ a#anchorbutton:hover, .button:hover,a.button:hover,div.content a.button:hover,a#
background-color:white;
border-style: inset ;
color:red;
margin:1 2 1 2;
margin:1px 2px 1px 2px;
}
td.tool {
@ -904,8 +902,8 @@ div.welcome {
}
div.gest_name {
float:left;
margin-left:150;
margin-top:15
margin-left:150px;
margin-top:15px;
}
h2.gest_name {
border-left: 5px solid #403a8d;
@ -923,8 +921,8 @@ body.op_detail_frame,div.op_detail_frame {
div.inner_box {
background-color:#FCEED4;
font-family:arial,verdana,sans-serif,helvetica;
padding:0;
margin:0;
padding:0px;
margin:0px;
overflow:hidden;
z-index:3;
position:absolute;
@ -946,7 +944,7 @@ div#div_jrn{
div#div_cat{
position:absolute;
border:1px solid black;
top:15%;left:100;
top:15%;left:100px;
visibility:hidden;
z-index:2;
width:50em;
@ -1006,7 +1004,7 @@ span.remain {
div#jrn_name_div
{
float: right;
margin-right:150;
margin-right:150px;
}
@ -1031,8 +1029,8 @@ div#wait_box
background-color:#F1E6E6;
font-size:0.87em;
font-family: arial,verdana,helvetica,arial,sans-serif;
padding:0;
margin:0;
padding:0px;
margin:0px;
overflow:hidden;
z-index:10;
@ -1311,7 +1309,7 @@ div#preference_div {
}
div#error_content_div {
font-size: 1.2em;
color:error;
color:#FF0000;
font-weight: bold;
text-align: center;
}

View file

@ -1347,3 +1347,17 @@ input.inum {
border:1px solid blue;
margin:2px
}
div.box {
background-color:#e4e7ed;
font-family:arial,verdana,sans-serif,helvetica;
margin-top:10px;
margin-left:3px;
margin-right:3px;
padding:2px;
//margin:2px;
overflow:hidden;
border:1px solid darkblue;
width:30%;
height:312px;
float:left;
}

View file

@ -783,7 +783,7 @@ div.pc_calendar tr{
font-size:0.87em;
}
div.pc_calendar tr{
height:40px;
height:35px;
}
@ -1341,4 +1341,15 @@ input.inum {
text-align:right;
border:1px solid blue;
margin:2px
}
div.box {
background-color:#e4e7ed;
font-family:arial,verdana,sans-serif,helvetica;
padding:2px;
margin:2px;
overflow:hidden;
border:1px solid darkblue;
width:30%;
height:312px;
float:left;
}

View file

@ -314,7 +314,7 @@ function html_page_start($p_theme="", $p_script="", $p_script2="")
echo "<BODY $p_script>";
echo '<div id="info_div"></div>';
echo '<div id="error_div">'.
HtmlInput::title_box("Erreur", 'error_div','hide').
HtmlInput::title_box(_("Erreur"), 'error_div','hide').
'<div id="error_content_div">'.
'</div>'.
'<p style="text-align:center">'.

View file

@ -316,16 +316,16 @@ class HtmlInput
/* create a hidden div for the ledger */
echo '<div id="div_jrn'.$div.'" >';
echo HtmlInput::title_box("Journaux", $div."jrn_search");
echo HtmlInput::title_box(_("Journaux"), $div."jrn_search");
echo '<div style="padding:5px">';
echo '<form method="GET" id="'.$div.'search_frm" onsubmit="return hide_ledger_choice(\''.$div.'search_frm\')">';
echo HtmlInput::hidden('nb_jrn', count($p_array));
echo _('Filtre ').HtmlInput::filter_table($div.'tb_jrn', '0,1,2', 1);
echo '<table class="result" id="'.$div.'tb_jrn">';
echo '<tr>';
echo th('Nom');
echo th('Description');
echo th('Type');
echo th(_('Nom'));
echo th(_('Description'));
echo th(_('Type'));
echo '</tr>';
for ($e=0;$e<count($p_array);$e++)
@ -347,7 +347,7 @@ class HtmlInput
}
echo '</table>';
echo HtmlInput::hidden('div',$div);
echo HtmlInput::submit('save','Valider');
echo HtmlInput::submit('save',_('Valider'));
echo HtmlInput::button_close($div."jrn_search");
echo '</form>';
echo '</div>';
@ -364,13 +364,13 @@ class HtmlInput
{
ob_start();
$ledger=new ISmallButton('l');
$ledger->label="Catégorie";
$ledger->label=_("Catégorie");
$ledger->javascript=" show_cat_choice()";
echo $ledger->input();
/* create a hidden div for the ledger */
echo '<div id="div_cat">';
echo '<h2 class="info">Choix des categories</h2>';
echo '<h2 class="info">'._('Choix des categories').'</h2>';
$selected=(isset($_GET['r_cat']))?$_GET['r_cat']:null;
echo '<ul>';
@ -388,7 +388,7 @@ class HtmlInput
}
echo '</ul>';
$hide=new IButton('l');
$hide->label="Valider";
$hide->label=_("Valider");
$hide->javascript=" hide_cat_choice() ";
echo $hide->input();
@ -411,8 +411,8 @@ class HtmlInput
*/
static function button_close($div_name)
{
$a=new IButton('Fermer','Fermer');
$a->label="Fermer";
$a=new IButton('Fermer',_('Fermer'));
$a->label=_("Fermer");
$a->javascript="removeDiv('".$div_name."')";
$html=$a->input();
@ -426,8 +426,8 @@ class HtmlInput
static function anchor_close($div)
{
$r='';
$r.='<div style="float:right;margin-right:2px;margin-top:5px;padding:0">';
$r.= '<A id="close_div" class="input_text" HREF="javascript:void(0)" onclick="removeDiv(\''.$div.'\');">Fermer</A>';
$r.='<div style="float:right;margin-right:2px;margin-top:5px;padding:0px;">';
$r.= '<A id="close_div" class="input_text" HREF="javascript:void(0)" onclick="removeDiv(\''.$div.'\');">'._('Fermer').'</A>';
$r.='</div>';
return $r;
}
@ -438,8 +438,11 @@ class HtmlInput
*/
static function button_action($action,$javascript,$id="xx",$p_class="button")
{
if ($id=="xx"){
$id=HtmlInput::generate_id("xx");
}
$r="";
$r.='<input type="button" id="'.$id.'"class="'.$p_class.'" onclick="'.$javascript.'" value="'.h($action).'">';
$r.='<input type="button" id="'.$id.'" class="'.$p_class.'" onclick="'.$javascript.'" value="'.h($action).'">';
return $r;
}
@ -453,8 +456,8 @@ class HtmlInput
static function anchor_hide($action,$javascript)
{
$r='';
$r.='<div style="float:right;right;margin:2;">';
$r.= '<span id="close_div" class="input_text" HREF="javascript:void(0)" onclick="'.$javascript.'">'.$action.'</span>';
$r.='<div style="float:right;margin:2px;">';
$r.= '<span id="close_div" class="input_text" onclick="'.$javascript.'">'.$action.'</span>';
$r.='</div>';
return $r;
}
@ -684,6 +687,7 @@ class HtmlInput
{
if ($mod=='close') $r=HtmlInput::anchor_close($div);
if ($mod=='hide') $r=HtmlInput::anchor_hide(_('Fermer'),"$('$div').hide()");
if ( $mod == 'none') $r="";
$r.=h2($name,' class="title" ');
return $r;
}
@ -772,7 +776,7 @@ class HtmlInput
*/
static function calendar_zoom($obj)
{
$button=new ISmallButton("calendar", "Calendrier");
$button=new ISmallButton("calendar", _("Calendrier"));
$button->javascript="calendar_zoom($obj)";
return $button->input();
}
@ -797,7 +801,7 @@ class HtmlInput
$bledger_param = str_replace('"', "'", $bledger_param);
$bledger = new ISmallButton('l');
$bledger->label = "choix des journaux";
$bledger->label = _("choix des journaux");
$bledger->javascript = " show_ledger_choice($bledger_param)";
$f_ledger = $bledger->input();
$hid_jrn = "";

View file

@ -33,10 +33,10 @@ class IDate extends HtmlInput
if ( $this->readOnly==true) return $this->display();
if( $this->id=="")
$this->id=self::generate_id($this->name);
$r='<input type="text" name="'.$this->name.'" id="'.$this->id.'"'.
'style="border:solid 1px blue;"'.
'size="8"'.
' value ="'.$this->value.'"'.
$r='<input type="text" name="'.$this->name.'" id="'.$this->id.'" '.
'style="border:solid 1px blue;" '.
'size="8" '.
' value ="'.$this->value.'" '.
'/>'.
'<img src="image/x-office-calendar.png" id="'.$this->id.'_trigger"'.
' style="cursor: pointer; border: 1px solid red;" '.

View file

@ -34,7 +34,7 @@ $st="";
if ( $today_month==$this->month && $today_day==$ind)
$st=' style="border:1px solid red" ';
if ( $date_calendar == $week ) {
echo '<td class="'.$class.'"'.$st.'>'.'<span class="day">'.$ind."</span>";
echo '<td class="'.$class.'" '.$st.'>'.'<span class="day">'.$ind."</span>";
echo $cell[$ind];
echo '</td>';
$ind++;$week++;
@ -45,7 +45,7 @@ if ( $date_calendar == $week ) {
//if ( $ind > $this->day ) exit();
if ( $week == 7 ) { echo "</tr>";$week=0;}
}
if ( $week != 7 ) { echo "</tr>";}
if ( $week != 0 ) { echo "</tr>";}
?>
</table>

View file

@ -2,18 +2,158 @@
//This file is part of NOALYSS and is under GPL
//see licence.txt
?><!-- left div -->
<div style="float:left;max-width: 49%">
<div style="float:left;width: 100%">
<fieldset >
<legend><?php echo _('Calendrier')?>
</legend>
<div id="calendar_box_div" class="box">
<?php echo HtmlInput::title_box(_('Calendrier'),'cal_div','none');?>
<?php echo HtmlInput::calendar_zoom($obj); ?>
<?php echo $cal->display('short'); ?>
</fieldset>
</div>
<div id="todo_listg_div" class="box"> <?php echo HtmlInput::title_box(_('Pense-Bête'),"todo_listg_div",'none')?>
<?php
/*
* Todo list
*/
echo dossier::hidden();
if ( isset($_REQUEST['save_todo_list'])) {
/* Save the new elt */
$add_todo=new Todo_List($cn);
$add_todo->set_parameter('id',$_REQUEST['tl_id']);
$add_todo->set_parameter('title',$_REQUEST['p_title']);
$add_todo->set_parameter('desc',$_REQUEST['p_desc']);
$add_todo->set_parameter('date',$_REQUEST['p_date_todo']);
$add_todo->save();
}
$todo=new Todo_List($cn);
$array=$todo->load_all();
echo HtmlInput::button('add',_('Ajout'),'onClick="add_todo()"','smallbutton');
if ( ! empty ($array) ) {
echo '<table id="table_todo" class="sortable" width="100%">';
echo '<tr><th class=" sorttable_sorted_reverse">Date <span id="sorttable_sortrevind">&nbsp;&blacktriangle;</span></th><th>Titre</th><th></th>';
$nb=0;
$today=date('d.m.Y');
foreach ($array as $row) {
if ( $nb % 2 == 0 ) $odd='class="odd" '; else $odd='class="even" ';
if ( strcmp($today,$row['str_tl_date'])==0) { $odd.=' style="background-color:#FFEA00"';}
$nb++;
echo '<tr id="tr'.$row['tl_id'].'" '.$odd.'>'.
'<td sorttable_customkey="'.$row['tl_date'].'">'.
$row['str_tl_date'].
'</td>'.
'<td>'.
'<a class="line" href="javascript:void(0)" onclick="todo_list_show(\''.$row['tl_id'].'\')">'.
htmlspecialchars($row['tl_title']).
'</a>'.
'</td>'.
'<td>'.
HtmlInput::button('del','X','onClick="todo_list_remove('.$row['tl_id'].')"','smallbutton').
'</td>'.
'</tr>';
}
echo '</table>';
}
?>
</div>
<div id="situation_div" class="box">
<?php echo HtmlInput::title_box(_("Situation"),"situation_div",'none')?>
<table class='result'>
<tr>
<th>
</th>
<th>
<?php echo _("Pour aujourd'hui")?>
</th>
<th>
<?php echo _("En retard")?>
</th>
</tr>
<tr>
<td>
<?php echo _("Action"); ?>
</td>
<td>
<?php if (count($last_operation)>0): ?>
<A class="mtitle" style="color:red;text-decoration:underline;font-weight: bolder;"onclick="display_detail('action_now_div')">
<span class="notice">
<?php echo count($last_operation) ?>
&nbsp;<?php echo _("détail"); ?>
</span>
</A>
<?php else: ?>
0
<?php endif; ?>
</td>
<td >
<?php if (count($late_operation)>0): ?>
<A class="mtitle" style="color:red;text-decoration:underline;;font-weight: bolder" onclick="display_detail('action_late_div')">
<span class="notice"><?php echo count($late_operation) ?>
&nbsp;<?php echo _("détail"); ?>
</span>
</A>
<?php else: ?>
0
<?php endif; ?>
</td>
</tr>
<tr>
<td>
<?php echo _("Paiement fournisseur"); ?>
</td>
<td >
<?php if (count($supplier_now)>0): ?>
<A class="mtitle" style="color:red;text-decoration:underline;font-weight: bolder" onclick="display_detail('supplier_now_div')">
<span class="notice"><?php echo count($supplier_now) ?>&nbsp;<?php echo _("détail"); ?></span>
</A>
<?php else: ?>
0
<?php endif; ?>
</td>
<td >
<?php if (count($supplier_late)>0): ?>
<A class="mtitle" style="color:red;text-decoration:underline;font-weight: bolder" onclick="display_detail('supplier_late_div')">
<span class="notice"><?php echo count($supplier_late) ?>&nbsp;<?php echo _("détail"); ?></span>
</A>
<?php else: ?>
0
<?php endif; ?>
</td>
</tr>
<tr>
<td>
<?php echo _("Paiement client"); ?>
</td>
<td>
<?php if (count($customer_now)>0): ?>
<A class="mtitle" style="color:red;text-decoration:underline;font-weight: bolder" onclick="display_detail('customer_now_div')">
<span class="notice"><?php echo count($customer_now) ?>&nbsp;<?php echo _("détail"); ?></span>
</A>
<?php else: ?>
0
<?php endif; ?>
</td>
<td>
<?php if (count($customer_late)>0): ?>
<A class="mtitle" style="color:red;text-decoration:underline;font-weight: bolder" onclick="display_detail('customer_late_div')">
<span class="notice"><?php echo count($customer_late) ?>&nbsp;<?php echo _("détail"); ?></span>
</A>
<?php else: ?>
0
<?php endif; ?>
</td>
</tr>
</table>
</div>
<!-- Mini rapport -->
<div style="float:left;width: 100%">
<?php
/*
* Mini Report
@ -28,7 +168,7 @@ if ( $rapport->exist() == false ) {
}
if ( $report != 0 ) : ?>
<fieldset style="min-height:50%;"><legend><?php echo $rapport->get_name()?></legend>
<div id="report_div" class="box"><?php echo HtmlInput::title_box($rapport->get_name(),'report_div','none');?>
<?php
$exercice=$g_user->get_exercice();
if ( $exercice == 0 ) {
@ -52,171 +192,20 @@ if ( $report != 0 ) : ?>
echo '</table>';
}
?>
</fieldset>
</div>
<?php
else :
?>
<fieldset style="height:50%;width:80%;background-color:white"><legend><?php _('Aucun rapport défini')?></legend>
<div id="report_div" class="box"> <?php echo HtmlInput::title_box(_('Aucun rapport défini'),'report_div','none')?>
<p>
<a href="javascript:void(0)" class="cell" onclick="set_preference('<?php echo dossier::id()?>')"><?php echo _('Cliquez ici pour mettre à jour vos préférences')?></a>
</fieldset>
<p>
</div>
<?php
endif;
?>
</div>
</div>
<div style="float:left;max-width: 49%">
<?php
/*
* Todo list
*/
echo dossier::hidden();
if ( isset($_REQUEST['save_todo_list'])) {
/* Save the new elt */
$add_todo=new Todo_List($cn);
$add_todo->set_parameter('id',$_REQUEST['tl_id']);
$add_todo->set_parameter('title',$_REQUEST['p_title']);
$add_todo->set_parameter('desc',$_REQUEST['p_desc']);
$add_todo->set_parameter('date',$_REQUEST['p_date_todo']);
$add_todo->save();
}
$todo=new Todo_List($cn);
$array=$todo->load_all();
?>
<div style="float:right;width: 100%">
<fieldset>
<legend> <?php echo _("Situation");?> </legend>
<table class='result'>
<tr>
<th>
</th>
<th>
<?php echo _("Pour aujourd'hui")?>
</th>
<th>
<?php echo _("En retard")?>
</th>
</tr>
<tr>
<td>
<?php echo _("Action")?>
</td>
<td>
<?php if (count($last_operation)>0): ?>
<A class="mtitle" style="color:red;text-decoration:underline;font-weight: bolder;"onclick="display_detail('action_now_div')">
<span class="notice">
<?php echo count($last_operation) ?>
&nbsp;<?php echo _("détail")?>
</span>
</A>
<?php else: ?>
0
<?php endif; ?>
</td>
<td >
<?php if (count($late_operation)>0): ?>
<A class="mtitle" style="color:red;text-decoration:underline;;font-weight: bolder" onclick="display_detail('action_late_div')">
<span class="notice"><?php echo count($late_operation) ?>
&nbsp;<?php echo _("détail")?>
</span>
</A>
<?php else: ?>
0
<?php endif; ?>
</td>
</tr>
<tr>
<td>
<?php echo _("Paiement fournisseur")?>
</td>
<td >
<?php if (count($supplier_now)>0): ?>
<A class="mtitle" style="color:red;text-decoration:underline;font-weight: bolder" onclick="display_detail('supplier_now_div')">
<span class="notice"><?php echo count($supplier_now) ?>&nbsp;<?php echo _("détail")?></span>
</A>
<?php else: ?>
0
<?php endif; ?>
</td>
<td >
<?php if (count($supplier_late)>0): ?>
<A class="mtitle" style="color:red;text-decoration:underline;font-weight: bolder" onclick="display_detail('supplier_late_div')">
<span class="notice"><?php echo count($supplier_late) ?>&nbsp;<?php echo _("détail")?></span>
</A>
<?php else: ?>
0
<?php endif; ?>
</td>
</tr>
<tr>
<td>
<?php echo _("Paiement client")?>
</td>
<td>
<?php if (count($customer_now)>0): ?>
<A class="mtitle" style="color:red;text-decoration:underline;font-weight: bolder" onclick="display_detail('customer_now_div')">
<span class="notice"><?php echo count($customer_now) ?>&nbsp;<?php echo _("détail")?></span>
</A>
<?php else: ?>
0
<?php endif; ?>
</td>
<td>
<?php if (count($customer_late)>0): ?>
<A class="mtitle" style="color:red;text-decoration:underline;font-weight: bolder" onclick="display_detail('customer_late_div')">
<span class="notice"><?php echo count($customer_late) ?>&nbsp;<?php echo _("détail")?></span>
</A>
<?php else: ?>
0
<?php endif; ?>
</td>
</tr>
</table>
</fieldset>
<fieldset> <legend><?php echo _('Pense-Bête')?></legend>
<?php
echo HtmlInput::button('add',_('Ajout'),'onClick="add_todo()"',' smallbutton');
if ( ! empty ($array) ) {
echo '<table id="table_todo" class="sortable" width="100%">';
echo '<tr><th class=" sorttable_sorted_reverse">Date <span id="sorttable_sortrevind">&nbsp;&blacktriangle;</span></th><th>'._('Titre').'</th><th></th>';
$nb=0;
$today=date('d.m.Y');
foreach ($array as $row) {
if ( $nb % 2 == 0 ) $odd='class="odd" '; else $odd='class="even" ';
if ( strcmp($today,$row['str_tl_date'])==0) { $odd.=' style="background-color:#FFEA00"';}
$nb++;
echo '<tr id="tr'.$row['tl_id'].'" '.$odd.'>'.
'<td sorttable_customkey="'.$row['tl_date'].'>">'.
$row['str_tl_date'].
'</td>'.
'<td>'.
'<a class="line" href="javascript:void(0)" onclick="todo_list_show(\''.$row['tl_id'].'\')">'.
htmlspecialchars($row['tl_title']).
'</a>'.
'</td>'.
'<td>'.
HtmlInput::button('del','X','onClick="todo_list_remove('.$row['tl_id'].')"','smallbutton').
'</td>'.
'</tr>';
}
echo '</table>';
}
?>
</fieldset>
</div>
<div style="float:right;width: 100%">
<div id="action_late_div" class="inner_box" style="display:none;margin-left:25%;top:25%;width: 50%;min-height:50%;overflow: auto;">
<?php
echo HtmlInput::title_box(_("Action en retard"), "action_late_div","hide")
@ -274,8 +263,6 @@ if ( ! empty ($array) ) {
</li>
<?php endfor;?>
</ol>
<?php else : ?>
<h2 class='notice'>Aucune action pour aujourd'hui</h2>
<?php endif; ?>
</div>
<?php display_dashboard_operation($supplier_now,_("Fournisseurs à payer aujourd'hui"),'supplier_now_div'); ?>
@ -286,10 +273,9 @@ if ( ! empty ($array) ) {
<div style="float:right;width: 100%">
<fieldset>
<legend><?php echo _('Dernières opérations')?>
</legend>
<div id="last_operation_box_div" class="box">
<?php echo HtmlInput::title_box(_('Dernières opérations'),"last_operation_box_div",'none')?>
<table style="width: 100%">
<?php
for($i=0;$i<count($last_ledger);$i++):
@ -313,15 +299,12 @@ for($i=0;$i<count($last_ledger);$i++):
</tr>
<?php endfor;?>
</ul></table>
</fieldset>
</div>
</table>
</div>
<div id="add_todo_list" >
<div id="add_todo_list" class="box">
<script charset="utf-8" type="text/javascript" language="javascript">
new Draggable($('add_todo_list'),{});
</script>
@ -357,4 +340,4 @@ for (i=0;i < array.length;i++) {
new Draggable(array[i],{});
}
} catch (e) { alert(e.getMessage);}
</script>
</script>