source: trunk/client/inc/hpdf5/spipu/html2pdf/examples/res/example03.php@ 347

Last change on this file since 347 was 347, checked in by roby, 3 years ago

Aggiornamento per compatibilità con php7.4

File size: 3.4 KB
Line 
1<page backtop="10mm" backbottom="10mm" backleft="20mm" backright="20mm">
2 <page_header>
3 <table style="width: 100%; border: solid 1px black;">
4 <tr>
5 <td style="text-align: left; width: 33%">html2pdf</td>
6 <td style="text-align: center; width: 34%">Test d'header</td>
7 <td style="text-align: right; width: 33%"><?php echo date('d/m/Y'); ?></td>
8 </tr>
9 </table>
10 </page_header>
11 <page_footer>
12 <table style="width: 100%; border: solid 1px black;">
13 <tr>
14 <td style="text-align: left; width: 50%">html2pdf.fr</td>
15 <td style="text-align: right; width: 50%">page [[page_cu]]/[[page_nb]]</td>
16 </tr>
17 </table>
18 </page_footer>
19 <span style="font-size: 20px; font-weight: bold">Démonstration des retour à la ligne automatique, ainsi que des sauts de page automatique</span><br>
20 <br>
21 <br>
22 <table style="width: 80%;border: solid 1px #5544DD; border-collapse: collapse" align="center">
23 <thead>
24 <tr>
25 <th style="width: 30%; text-align: left; border: solid 1px #337722; background: #CCFFCC">Header 1</th>
26 <th style="width: 30%; text-align: left; border: solid 1px #337722; background: #CCFFCC">Header 2</th>
27 </tr>
28 </thead>
29 <tbody>
30<?php
31for ($k=0; $k<13; $k++) {
32?>
33 <tr>
34 <td style="width: 30%; text-align: left; border: solid 1px #55DD44">
35 test de texte assez long pour engendrer des retours à la ligne automatique...
36 a b c d e f g h i j k l m n o p q r s t u v w x y z
37 a b c d e f g h i j k l m n o p q r s t u v w x y z
38 </td>
39 <td style="width: 70%; text-align: left; border: solid 1px #55DD44">
40 test de texte assez long pour engendrer des retours à la ligne automatique...
41 a b c d e f g h i j k l m n o p q r s t u v w x y z
42 a b c d e f g h i j k l m n o p q r s t u v w x y z
43
44 </td>
45 </tr>
46<?php
47}
48?>
49 </tbody>
50 <tfoot>
51 <tr>
52 <th style="width: 30%; text-align: left; border: solid 1px #337722; background: #CCFFCC">Footer 1</th>
53 <th style="width: 30%; text-align: left; border: solid 1px #337722; background: #CCFFCC">Footer 2</th>
54 </tr>
55 </tfoot>
56 </table>
57 <br>
58 Ca marche !!!<br>
59 refaisons un test : <br>
60 <table style="width: 80%;border: solid 1px #5544DD">
61<?php
62for ($k=0; $k<12; $k++) {
63?>
64 <tr>
65 <td style="width: 30%; text-align: left; border: solid 1px #55DD44">
66 test de texte assez long pour engendrer des retours à la ligne automatique...
67 a b c d e f g h i j k l m n o p q r s t u v w x y z
68 a b c d e f g h i j k l m n o p q r s t u v w x y z
69 </td>
70 <td style="width: 70%; text-align: left; border: solid 1px #55DD44">
71 test de texte assez long pour engendrer des retours à la ligne automatique...
72 a b c d e f g h i j k l m n o p q r s t u v w x y z
73 a b c d e f g h i j k l m n o p q r s t u v w x y z
74
75 </td>
76 </tr>
77<?php
78}
79?>
80 </table>
81 <br>
82 Ca marche toujours !<br>
83 De plus, vous pouvez faire des sauts de page manuellement en utilisant les balises &lt;page&gt; &lt;/page&gt;, comme ici par exemple :
84</page>
85<page pageset="old">
86 Nouvelle page !!!!
87</page>
Note: See TracBrowser for help on using the repository browser.