source: trunk/client/inc/hpdf5/spipu/html2pdf/examples/res/example05.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: 1.7 KB
Line 
1<style type="text/css">
2<!--
3table
4{
5 width: 100%;
6 border: solid 1px #5544DD;
7}
8
9th
10{
11 text-align: center;
12 border: solid 1px #113300;
13 background: #EEFFEE;
14}
15
16td
17{
18 text-align: left;
19 border: solid 1px #55DD44;
20}
21
22td.col1
23{
24 border: solid 1px red;
25 text-align: right;
26}
27
28end_last_page div
29{
30 border: solid 1mm red;
31 height: 27mm;
32 margin: 0;
33 padding: 0;
34 text-align: center;
35 font-weight: bold;
36}
37-->
38</style>
39<span style="font-size: 20px; font-weight: bold">Démonstration des retour à la ligne automatique, ainsi que des sauts de page automatique<br></span>
40<br>
41<br>
42<table>
43 <colgroup>
44 <col style="width: 5%" class="col1">
45 <col style="width: 25%">
46 <col style="width: 30%">
47 <col style="width: 40%">
48 </colgroup>
49 <thead>
50 <tr>
51 <th rowspan="2">n°</th>
52 <th colspan="3" style="font-size: 16px;">
53 Titre du tableau
54 </th>
55 </tr>
56 <tr>
57 <th>Colonne 1</th>
58 <th>Colonne 2</th>
59 <th>Colonne 3</th>
60 </tr>
61 </thead>
62<?php
63for ($k=0; $k<50; $k++) {
64?>
65<tr>
66 <td><?php echo $k; ?></td>
67 <td>test de texte assez long pour engendrer des retours à la ligne automatique...</td>
68 <td>test de texte assez long pour engendrer des retours à la ligne automatique...</td>
69 <td>test de texte assez long pour engendrer des retours à la ligne automatique...</td>
70</tr>
71<?php
72}
73?>
74 <tfoot>
75 <tr>
76 <th colspan="4" style="font-size: 16px;">
77 bas du tableau
78 </th>
79 </tr>
80 </tfoot>
81</table>
82Cool non ?<br>
83<end_last_page end_height="30mm">
84 <div>
85 Ceci est un test de fin de page
86 </div>
87</end_last_page>
Note: See TracBrowser for help on using the repository browser.