source: trunk/client/inc/hpdf5/spipu/html2pdf/examples/res/example01.php

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

Aggiornamento per compatibilità con php7.4

File size: 5.2 KB
Line 
1<style type="text/css">
2<!--
3table.morpion
4{
5 border: dashed 1px #444444;
6}
7
8table.morpion td
9{
10 font-size: 15pt;
11 font-weight: bold;
12 border: solid 1px #000000;
13 padding: 1px;
14 text-align: center;
15 width: 25px;
16}
17
18table.morpion td.j1 { color: #0A0; }
19table.morpion td.j2 { color: #A00; }
20
21-->
22</style>
23<page style="font-size: 10pt">
24 <span style="font-weight: bold; font-size: 20pt; color: #F00">Bonjour, voici quelques exemples</span><br>
25 Bonjour, ceci est un test <b>de gras</b>, <i>d'italic</i>, <b><i>et des 2 ensembles</i></b>.<br>
26 <br>
27 <span style="background: red; color: white;">Ceci est un message important</span><br>
28 <br>
29 <small>Texte écrit avec small</small>, Texte écrit normalement, <big>Texte écrit avec big</big><br>
30 <span style="font-size: 20px">A<sub>test d'<b>indice</b></sub> et N<sup>test d'<b>exposant</b></sup>,
31 test<sub>test<sub>test</sub></sub>,
32 test<sup>test<sup>test</sup></sup>,
33 test<sub>test<sup>test</sup></sub>.
34 </span><br>
35 <br>
36 <table align="center" style="border-radius: 6mm; border-top: solid 3mm #000077; border-right: solid 2mm #007700; border-bottom: solid 1mm #770000; border-left: solid 2mm #007777; background: #DDDDAA;" ><tr><td style="width: 100mm; height: 20mm; text-align: center; ">Coucou ! ceci est un border solid avec un radius !!! </td></tr></table>
37 <br>
38 <table align="center" style="border-radius: 6mm; border: none; background: #DDDDAA;" ><tr><td style="width: 100mm; height: 20mm; text-align: center; ">Coucou ! ceci est un background avec un radius !!! </td></tr></table>
39 <br>
40 <table align="center" style="border: solid 1px #000000;"><tr><td style="border-top: solid 4mm #000077; border-right: solid 3mm #007700; border-bottom: solid 2mm #770000; border-left: solid 1mm #007777; padding: 2mm 4mm 6mm 8mm; width: 100mm; background: #FFDDDD">Coucou ! ceci est un border solid</td></tr></table><br>
41 <table align="center" style="border: solid 1px #000000;"><tr><td style="border-top: dotted 4mm #000077; border-right: dotted 3mm #007700; border-bottom: dotted 2mm #770000; border-left: dotted 1mm #007777; padding: 2mm 4mm 6mm 8mm; width: 100mm; background: #FFDDDD">Coucou ! ceci est un border dotted</td></tr></table><br>
42 <table align="center" style="border: solid 1px #000000;"><tr><td style="border-top: dashed 4mm #000077; border-right: dashed 3mm #007700; border-bottom: dashed 2mm #770000; border-left: dashed 1mm #007777; padding: 2mm 4mm 6mm 8mm; width: 100mm; background: #FFDDDD">Coucou ! ceci est un border dashed</td></tr></table><br>
43 <table align="center" style="border: solid 1px #000000;"><tr><td style="border-top: double 4mm #000077; border-right: double 3mm #007700; border-bottom: double 2mm #770000; border-left: double 1mm #007777; padding: 2mm 4mm 6mm 8mm; width: 100mm; background: #FFDDDD">Coucou ! ceci est un border double</td></tr></table><br>
44<?php $back = 'background-image: url(./res/off.png); background-position: left top; background-repeat: repeat; '; ?>
45 <table style="background: #FFAAAA; color: #000022; border: 3px solid #555555;">
46 <tr>
47 <td style="width: 40mm; border: solid 1px #000000; <?php echo $back; ?>color: #003300">Case A1</td>
48 <td style="width: 50mm; border: solid 1px #000000; <?php echo $back; ?>font-weight: bold;">Case A2</td>
49 <td style="width: 60mm; border: solid 1px #000000; <?php echo $back; ?>font-size: 20px;">Case A3</td>
50 </tr>
51 <tr>
52 <td style="border: solid 1px #000000; text-align: left; <?php echo $back; ?>vertical-align: top; ">Case B1</td>
53 <td style="border: solid 1px #000000; text-align: center; <?php echo $back; ?>vertical-align: middle; height: 20mm">Case B2<hr style="color: #22AA22">test de hr</td>
54 <td style="border: solid 1px #000000; text-align: right; <?php echo $back; ?>vertical-align: bottom; border-radius: 3mm; ">Case B3</td>
55 </tr>
56 </table>
57 <br>
58 <table style="border: solid 2px #550000; background: #000022 url(./res/logo.png) center center no-repeat; color: #FFFFFF;">
59 <tr >
60 <td style="border: solid 1px #AAAAAA;">Case A1<BR>avec tests diverses</td>
61 <td style="border: solid 1px #AAAAAA;">Case A2</td>
62 <td style="border: solid 1px #AAAAAA;">Case A3 classic</td>
63 </tr>
64 <tr>
65 <td style="border: solid 1px #AAAAAA;">Case B1<br>toto</td>
66 <td style="border: solid 1px #AAAAAA;background: #FF0000">Case B2</td>
67 <td style="border: solid 1px #AAAAAA;">Case B3</td>
68 </tr>
69 </table>
70 <br>
71 <table class="morpion" cellspacing="5px">
72 <tr>
73 <td class="j1">X</td>
74 <td class="j2">O</td>
75 <td class="j1">X</td>
76 </tr>
77 <tr>
78 <td class="j2">O</td>
79 <td class="j1">X</td>
80 <td ></td>
81 </tr>
82 <tr>
83 <td class="j2">O</td>
84 <td></td>
85 <td class="j1">X</td>
86 </tr>
87 </table>
88 <br>
89 <table style="border: dotted 1mm #FFFFFF; background: #AAAAFF">
90 <tr>
91 <td style="width: 42mm; text-align: center;font-size: 5mm">
92 Ceci est un test
93 </td>
94 </tr>
95 </table>
96</page>
Note: See TracBrowser for help on using the repository browser.