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 |
|
|
//------ Borderentete colonne $be0 à $be.. ( $be OBLIGATOIRE ) |
51 |
|
|
$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 |
|
|
//------ Border cellule colonne $b0 à $b.. ( $b OBLIGATOIRE ) |
60 |
|
|
$b0="L"; |
61 |
|
|
$b1="L"; |
62 |
|
|
$b2="L"; |
63 |
|
|
$b3="LR"; |
64 |
|
|
//------ ALIGNEMENT entete colonne $ae0 à $ae.. ( $ae OBLIGATOIRE ) |
65 |
|
|
$ae0="L"; |
66 |
|
|
$ae1="L"; |
67 |
|
|
$ae2="L"; |
68 |
|
|
$ae3="L"; |
69 |
|
|
//------ largeur de chaque colonne $l0 à $l.. ( $l OBLIGATOIRE )--------------- |
70 |
|
|
$l0=120; |
71 |
|
|
$l1=50; |
72 |
|
|
$l2=100; |
73 |
|
|
$l3=10; |
74 |
|
|
$widthtableau=280;// -> ajouter $l0 à $lxx |
75 |
|
|
$bt=1;// border 1ere et derniere ligne dutableau par page->0 ou 1 |
76 |
|
|
//------ ALIGNEMENT de chaque colonne $l0 à $a.. ( $a OBLIGATOIRE )------------ |
77 |
|
|
$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 |
|
|
$sql="SELECT concat(evenement,'-',evenement.libelle) as evenement,lettretype,concat(etat,' - ',action,' - ',avis.libelle) as etat_action_avis, nature as NT from evenement left join avis on evenement.avis=avis.avis order by evenement.libelle"; |
84 |
|
|
//------------------------------------------------------------------------------ |
85 |
|
|
?> |