Révision af89ba35
plugins/pdf/inc/plugin_pdf.functions.php | ||
---|---|---|
206 | 206 |
{ |
207 | 207 |
//erics pour avoir la couleur une ligne sur deux |
208 | 208 |
if($i%2){ |
209 |
$pdf->setColor(0.95,0.95,0.95);
|
|
209 |
$pdf->setColor(0.90,0.90,0.90);
|
|
210 | 210 |
} |
211 | 211 |
else { |
212 | 212 |
$pdf->setColor(1,1,1); |
... | ... | |
305 | 305 |
$pdf->setColor(0.8,0.8,0.8); |
306 | 306 |
$pdf->filledRectangle(25,$start_tab-5,$length_tab,15); |
307 | 307 |
$pdf->filledRectangle(25+$length_tab+5,$start_tab-5,$length_tab,15); |
308 |
$pdf->setColor(0.95,0.95,0.95);
|
|
308 |
$pdf->setColor(0.90,0.90,0.90);
|
|
309 | 309 |
|
310 | 310 |
for($i=0;$i<7;$i++) |
311 | 311 |
{ |
... | ... | |
404 | 404 |
|
405 | 405 |
//erics pour avoir la couleur une ligne sur deux |
406 | 406 |
if($i%2){ |
407 |
$pdf->setColor(0.95,0.95,0.95);
|
|
407 |
$pdf->setColor(0.90,0.90,0.90);
|
|
408 | 408 |
} |
409 | 409 |
else { |
410 | 410 |
$pdf->setColor(1,1,1); |
411 | 411 |
} |
412 | 412 |
|
413 |
//$pdf->setColor(0.95,0.95,0.95);
|
|
413 |
//$pdf->setColor(0.90,0.90,0.90);
|
|
414 | 414 |
//un seul rectangle qui fait toute la ligne |
415 | 415 |
$pdf->filledRectangle(25,$start_tab-20-(15*$i),$width-50,15); |
416 | 416 |
$pdf->restoreState(); |
... | ... | |
613 | 613 |
$num_inst=$DB->numrows($result_inst); |
614 | 614 |
|
615 | 615 |
$pdf->saveState(); |
616 |
$pdf->setColor(0.95,0.95,0.95);
|
|
616 |
$pdf->setColor(0.90,0.90,0.90);
|
|
617 | 617 |
$pdf->filledRectangle(25,($start_tab-25)-(20*$i),100,15); |
618 | 618 |
$pdf->filledRectangle(130,($start_tab-25)-(20*$i),90,15); |
619 | 619 |
$pdf->filledRectangle(225,($start_tab-25)-(20*$i),30,15); |
... | ... | |
661 | 661 |
$computer->getFromDB($data_inst["cID"]); |
662 | 662 |
|
663 | 663 |
$pdf->saveState(); |
664 |
$pdf->setColor(0.95,0.95,0.95);
|
|
664 |
$pdf->setColor(0.90,0.90,0.90);
|
|
665 | 665 |
$pdf->filledRectangle(415,($start_tab-25)-(20*$i),155,15); |
666 | 666 |
$pdf->restoreState(); |
667 | 667 |
$pdf->addText(420,($start_tab-20)-(20*$i),9,utf8_decode($name.' ('.$computer->fields['serial'].')')); |
... | ... | |
766 | 766 |
$sw->getFromDB($data['sID']); |
767 | 767 |
|
768 | 768 |
$pdf->saveState(); |
769 |
$pdf->setColor(0.95,0.95,0.95);
|
|
769 |
$pdf->setColor(0.90,0.90,0.90);
|
|
770 | 770 |
$pdf->filledRectangle(25,($start_tab-25)-(20*$i),385,15); |
771 | 771 |
$pdf->filledRectangle(415,($start_tab-25)-(20*$i),65,15); |
772 | 772 |
$pdf->filledRectangle(485,($start_tab-25)-(20*$i),40,15); |
... | ... | |
861 | 861 |
$info->getFromDBforDevice($type,$tID) || $info->getEmpty(); |
862 | 862 |
|
863 | 863 |
$pdf->saveState(); |
864 |
$pdf->setColor(0.95,0.95,0.95);
|
|
864 |
$pdf->setColor(0.90,0.90,0.90);
|
|
865 | 865 |
if ($ci->getField("otherserial")!=null || $info->fields["num_immo"]) { |
866 | 866 |
$pdf->filledRectangle(25,($start_tab-45)-(20*$i),$width-50, 35); |
867 | 867 |
} else { |
... | ... | |
895 | 895 |
} else { // No row |
896 | 896 |
|
897 | 897 |
$pdf->saveState(); |
898 |
$pdf->setColor(0.95,0.95,0.95);
|
|
898 |
$pdf->setColor(0.90,0.90,0.90);
|
|
899 | 899 |
$pdf->filledRectangle(25,($start_tab-25)-(20*$i),$width-50,15); |
900 | 900 |
$pdf->restoreState(); |
901 | 901 |
|
... | ... | |
977 | 977 |
if(!($nb_connect==1 && $j==7)){ |
978 | 978 |
$pdf->saveState(); |
979 | 979 |
if($j<7) |
980 |
$pdf->setColor(0.95,0.95,0.95);
|
|
980 |
$pdf->setColor(0.90,0.90,0.90);
|
|
981 | 981 |
else |
982 | 982 |
$pdf->setColor(0.8,0.8,0.8); |
983 | 983 |
$pdf->filledRectangle(25,($start_tab-25)-(20*($deb+$i)),$width-50,15); |
... | ... | |
1077 | 1077 |
$pdf->saveState(); |
1078 | 1078 |
$pdf->setColor(0.8,0.8,0.8); |
1079 | 1079 |
$pdf->filledRectangle(25,$start_tab-5,2*$length_tab+5,15); |
1080 |
$pdf->setColor(0.95,0.95,0.95);
|
|
1080 |
$pdf->setColor(0.90,0.90,0.90);
|
|
1081 | 1081 |
|
1082 | 1082 |
for($i=0;$i<11;$i++) |
1083 | 1083 |
{ |
... | ... | |
1196 | 1196 |
$con->getFromDB($cID); |
1197 | 1197 |
|
1198 | 1198 |
$pdf->saveState(); |
1199 |
$pdf->setColor(0.95,0.95,0.95);
|
|
1199 |
$pdf->setColor(0.90,0.90,0.90);
|
|
1200 | 1200 |
$pdf->filledRectangle(25,($start_tab-25)-(20*$i),100,15); |
1201 | 1201 |
$pdf->filledRectangle(130,($start_tab-25)-(20*$i),100,15); |
1202 | 1202 |
$pdf->filledRectangle(235,($start_tab-25)-(20*$i),100,15); |
... | ... | |
1304 | 1304 |
while ($data=$DB->fetch_assoc($result)) { |
1305 | 1305 |
|
1306 | 1306 |
$pdf->saveState(); |
1307 |
$pdf->setColor(0.95,0.95,0.95);
|
|
1307 |
$pdf->setColor(0.90,0.90,0.90);
|
|
1308 | 1308 |
$pdf->filledRectangle(25,($start_tab-25)-(20*$i),125,15); |
1309 | 1309 |
$pdf->filledRectangle(155,($start_tab-25)-(20*$i),120,15); |
1310 | 1310 |
$pdf->filledRectangle(280,($start_tab-25)-(20*$i),110,15); |
... | ... | |
1390 | 1390 |
$reg->getfromDB(current($regid)); |
1391 | 1391 |
|
1392 | 1392 |
$pdf->saveState(); |
1393 |
$pdf->setColor(0.95,0.95,0.95);
|
|
1393 |
$pdf->setColor(0.90,0.90,0.90);
|
|
1394 | 1394 |
$pdf->filledRectangle(25,($start_tab-25)-(20*$i),130,15); |
1395 | 1395 |
$pdf->filledRectangle(160,($start_tab-25)-(20*$i),130,15); |
1396 | 1396 |
$pdf->filledRectangle(295,($start_tab-25)-(20*$i),140,15); |
... | ... | |
1476 | 1476 |
if(!($number==1 && $j==8)){ |
1477 | 1477 |
$pdf->saveState(); |
1478 | 1478 |
if($j<8) |
1479 |
$pdf->setColor(0.95,0.95,0.95);
|
|
1479 |
$pdf->setColor(0.90,0.90,0.90);
|
|
1480 | 1480 |
else |
1481 | 1481 |
$pdf->setColor(0.8,0.8,0.8); |
1482 | 1482 |
$pdf->filledRectangle(25,($start_tab-25)-(20*($deb+$i)),$width-50,15); |
... | ... | |
1583 | 1583 |
if(!($number==1 && $j==8)){ |
1584 | 1584 |
$pdf->saveState(); |
1585 | 1585 |
if($j<8) |
1586 |
$pdf->setColor(0.95,0.95,0.95);
|
|
1586 |
$pdf->setColor(0.90,0.90,0.90);
|
|
1587 | 1587 |
else |
1588 | 1588 |
$pdf->setColor(0.8,0.8,0.8); |
1589 | 1589 |
$pdf->filledRectangle(25,($start_tab-25)-(20*($deb+$i)),$width-50,15); |
... | ... | |
1676 | 1676 |
while ($data=$DB->fetch_assoc($result)){ |
1677 | 1677 |
|
1678 | 1678 |
$pdf->saveState(); |
1679 |
$pdf->setColor(0.95,0.95,0.95);
|
|
1679 |
$pdf->setColor(0.90,0.90,0.90);
|
|
1680 | 1680 |
$pdf->filledRectangle(25,($start_tab-25)-(20*$i),$width-50,15); |
1681 | 1681 |
$pdf->restoreState(); |
1682 | 1682 |
|
... | ... | |
1824 | 1824 |
while($j<$nbline) |
1825 | 1825 |
{ |
1826 | 1826 |
$pdf->saveState(); |
1827 |
$pdf->setColor(0.95,0.95,0.95);
|
|
1827 |
$pdf->setColor(0.90,0.90,0.90);
|
|
1828 | 1828 |
if($j==0) |
1829 | 1829 |
$pdf->filledRectangle(25,($start_tab-25)-(20*$i),$width-50,15); |
1830 | 1830 |
else |
... | ... | |
1901 | 1901 |
if ($DB->numrows($result)==0) |
1902 | 1902 |
{ |
1903 | 1903 |
$pdf->saveState(); |
1904 |
$pdf->setColor(0.95,0.95,0.95);
|
|
1904 |
$pdf->setColor(0.90,0.90,0.90);
|
|
1905 | 1905 |
$pdf->filledRectangle(25,($start_tab-25)-(20*$i),$width-50,15); |
1906 | 1906 |
$pdf->restoreState(); |
1907 | 1907 |
$pdf->addText(265,($start_tab-20)-(20*$i),9,utf8_decode($LANG["reservation"][37])); |
... | ... | |
1939 | 1939 |
while ($data=$DB->fetch_assoc($result)) |
1940 | 1940 |
{ |
1941 | 1941 |
$pdf->saveState(); |
1942 |
$pdf->setColor(0.95,0.95,0.95);
|
|
1942 |
$pdf->setColor(0.90,0.90,0.90);
|
|
1943 | 1943 |
$pdf->filledRectangle(25,($start_tab-25)-(20*$i),90,15); |
1944 | 1944 |
$pdf->filledRectangle(120,($start_tab-25)-(20*$i),90,15); |
1945 | 1945 |
$pdf->filledRectangle(215,($start_tab-25)-(20*$i),140,15); |
... | ... | |
1989 | 1989 |
if ($DB->numrows($result)==0) |
1990 | 1990 |
{ |
1991 | 1991 |
$pdf->saveState(); |
1992 |
$pdf->setColor(0.95,0.95,0.95);
|
|
1992 |
$pdf->setColor(0.90,0.90,0.90);
|
|
1993 | 1993 |
$pdf->filledRectangle(25,($start_tab-25)-(20*$i),$width-50,15); |
1994 | 1994 |
$pdf->restoreState(); |
1995 | 1995 |
$pdf->addText(265,$start_tab,9,utf8_decode($LANG["reservation"][37])); |
... | ... | |
2020 | 2020 |
while ($data=$DB->fetch_assoc($result)) |
2021 | 2021 |
{ |
2022 | 2022 |
$pdf->saveState(); |
2023 |
$pdf->setColor(0.95,0.95,0.95);
|
|
2023 |
$pdf->setColor(0.90,0.90,0.90);
|
|
2024 | 2024 |
$pdf->filledRectangle(25,($start_tab-25)-(20*$i),90,15); |
2025 | 2025 |
$pdf->filledRectangle(120,($start_tab-25)-(20*$i),90,15); |
2026 | 2026 |
$pdf->filledRectangle(215,($start_tab-25)-(20*$i),140,15); |
... | ... | |
2178 | 2178 |
|
2179 | 2179 |
$pdf->saveState(); |
2180 | 2180 |
if($j<5) |
2181 |
$pdf->setColor(0.95,0.95,0.95);
|
|
2181 |
$pdf->setColor(0.90,0.90,0.90);
|
|
2182 | 2182 |
else |
2183 | 2183 |
$pdf->setColor(0.8,0.8,0.8); |
2184 | 2184 |
$pdf->filledRectangle(25,($start_tab-25)-(20*($deb+$i)),$width-50,15); |
Formats disponibles : Unified diff