/[openfoncier]/trunk/sql/pgsql/evenement.pdf.inc.php
ViewVC logotype

Annotation of /trunk/sql/pgsql/evenement.pdf.inc.php

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1138 - (hide annotations)
Thu Jan 3 15:18:21 2013 UTC (12 years, 1 month ago) by nhaye
File size: 4086 byte(s)
Suppression de la colonne nature de la table dossier,
correction des requètes sql faisant appel à cette colonne.

1 fraynaud 3 <?php
2     $DEBUG=0;
3     // ------------------------document---------------------------------------------
4     $orientation="L";// orientation P-> portrait L->paysage
5     $format="A4";// format A3 A4 A5
6     $police='arial';
7     $margeleft=10;// marge gauche
8     $margetop=5;// marge haut
9     $margeright=5;// marge droite
10     $border=1; // 1 -> bordure 0 -> pas de bordure
11     $C1="0";// couleur texte R
12     $C2="0";// couleur texte V
13     $C3="0";// couleur texte B
14     //-------------------------LIGNE tableau----------------------------------------
15     $size=9; //taille POLICE
16     $height=4; // -> hauteur ligne tableau
17     $align='L';
18     $fond=1;// 0- > FOND transparent 1 -> fond
19     $C1fond1="241";// couleur fond R
20     $C2fond1="241";// couleur fond V
21     $C3fond1="241";// couleur fond B
22     $C1fond2="255";// couleur fond R
23     $C2fond2="255";// couleur fond V
24     $C3fond2="255";// couleur fond B
25     //-------------------------- titre----------------------------------------------
26     $libtitre="Liste des evenements "; // libelle titre
27     $flagsessionliste=1;// 1 - > affichage session liste ou 0 -> pas d'affichage
28     $bordertitre=0; // 1 -> bordure 0 -> pas de bordure
29     $aligntitre='L'; // L,C,R
30     $heightitre=10;// hauteur ligne titre
31     $grastitre="";//$gras="B" -> BOLD OU $gras=""
32     $fondtitre=0; //0- > FOND transparent 1 -> fond
33     $C1titrefond="181";// couleur fond R
34     $C2titrefond="182";// couleur fond V
35     $C3titrefond="188";// couleur fond B
36     $C1titre="75";// couleur texte R
37     $C2titre="79";// couleur texte V
38     $C3titre="81";// couleur texte B
39     $sizetitre="12";
40     //--------------------------libelle entete colonnes-----------------------------
41     $flag_entete=1;//entete colonne : 0 -> non affichage , 1 -> affichage
42     $fondentete=1;// 0- > FOND transparent 1 -> fond
43     $heightentete=10;//hauteur ligne entete colonne
44     $C1fondentete="210";// couleur fond R
45     $C2fondentete="216";// couleur fond V
46     $C3fondentete="249";// couleur fond B
47     $C1entetetxt="0";// couleur texte R
48     $C2entetetxt="0";// couleur texte V
49     $C3entetetxt="0";// couleur texte B
50 vpihour 489 //------ Borderentete colonne $be0 � $be.. ( $be OBLIGATOIRE )
51 fraynaud 3 $be0="L";
52     $be1="L";
53     $be2="L";
54     $be3="LR";
55     // ------ couleur border--------------------------------------------------------
56     $C1border="159";// couleur texte R
57     $C2border="160";// couleur texte V
58     $C3border="167";// couleur texte B
59 vpihour 489 //------ Border cellule colonne $b0 � $b.. ( $b OBLIGATOIRE )
60 fraynaud 3 $b0="L";
61     $b1="L";
62     $b2="L";
63     $b3="LR";
64 vpihour 489 //------ ALIGNEMENT entete colonne $ae0 � $ae.. ( $ae OBLIGATOIRE )
65 fraynaud 3 $ae0="L";
66     $ae1="L";
67     $ae2="L";
68     $ae3="L";
69 vpihour 489 //------ largeur de chaque colonne $l0 � $l.. ( $l OBLIGATOIRE )---------------
70 fraynaud 3 $l0=120;
71     $l1=50;
72     $l2=100;
73     $l3=10;
74 vpihour 489 $widthtableau=280;// -> ajouter $l0 � $lxx
75 fraynaud 3 $bt=1;// border 1ere et derniere ligne dutableau par page->0 ou 1
76 vpihour 489 //------ ALIGNEMENT de chaque colonne $l0 � $a.. ( $a OBLIGATOIRE )------------
77 fraynaud 3 $a0="L";
78     $a1="L";
79     $a2="L";
80     $a3="L";
81     //--------------------------SQL-------------------------------------------------
82     //$sql="SELECT (code||' '|| cp || ' '|| ville) as code,libelle_voie from voie order by libelle_voie";
83 nhaye 1138 $sql="SELECT concat(evenement.evenement,'-',evenement.libelle) as evenement,
84     lettretype,
85     concat(etat,' - ',action,' - ',avis_decision.libelle) as etat_action_avis_decision,
86     dossier_autorisation_type_detaille.code as NT
87     from ".DB_PREFIXE."evenement
88     INNER JOIN ".DB_PREFIXE."lien_dossier_instruction_type_evenement ON
89     evenement.evenement=lien_dossier_instruction_type_evenement.evenement
90     INNER JOIN ".DB_PREFIXE."dossier_instruction_type ON
91     lien_dossier_instruction_type_evenement.dossier_instruction_type =
92     dossier_instruction_type.dossier_instruction_type
93     INNER JOIN ".DB_PREFIXE."dossier_autorisation_type_detaille ON
94     dossier_instruction_type.dossier_autorisation_type_detaille =
95     dossier_autorisation_type_detaille.dossier_autorisation_type_detaille
96     left join ".DB_PREFIXE."avis_decision on evenement.avis_decision=avis_decision.avis_decision
97     order by evenement.libelle";
98 fraynaud 3 //------------------------------------------------------------------------------
99     ?>

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26