source: trunk/client/inc/hpdf5/spipu/html2pdf/examples/res/example07a.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: 5.3 KB
Line 
1<style type="text/css">
2<!--
3table { vertical-align: top; }
4tr { vertical-align: top; }
5td { vertical-align: top; }
6-->
7</style>
8<page backcolor="#FEFEFE" backimg="./res/bas_page.png" backimgx="center" backimgy="bottom" backimgw="100%" backtop="0" backbottom="30mm" footer="date;time;page" style="font-size: 12pt">
9 <bookmark title="Lettre" level="0" ></bookmark>
10 <table cellspacing="0" style="width: 100%; text-align: center; font-size: 14px">
11 <tr>
12 <td style="width: 75%;">
13 </td>
14 <td style="width: 25%; color: #444444;">
15 <img style="width: 100%;" src="./res/logo.gif" alt="Logo"><br>
16 RELATION CLIENT
17 </td>
18 </tr>
19 </table>
20 <br>
21 <br>
22 <table cellspacing="0" style="width: 100%; text-align: left; font-size: 11pt;">
23 <tr>
24 <td style="width:50%;"></td>
25 <td style="width:14%; ">Client :</td>
26 <td style="width:36%">M. Albert Dupont</td>
27 </tr>
28 <tr>
29 <td style="width:50%;"></td>
30 <td style="width:14%; ">Adresse :</td>
31 <td style="width:36%">
32 Résidence perdue<br>
33 1, rue sans nom<br>
34 00 000 - Pas de Ville<br>
35 </td>
36 </tr>
37 <tr>
38 <td style="width:50%;"></td>
39 <td style="width:14%; ">Email :</td>
40 <td style="width:36%">nomail@domain.com</td>
41 </tr>
42 <tr>
43 <td style="width:50%;"></td>
44 <td style="width:14%; ">Tel :</td>
45 <td style="width:36%">33 (0) 1 00 00 00 00</td>
46 </tr>
47 </table>
48 <br>
49 <br>
50 <table cellspacing="0" style="width: 100%; text-align: left;font-size: 10pt">
51 <tr>
52 <td style="width:50%;"></td>
53 <td style="width:50%; ">Spipu Ville, le <?php echo date('d/m/Y'); ?></td>
54 </tr>
55 </table>
56 <br>
57 <i>
58 <b><u>Objet </u>: &laquo; Bon de Retour &raquo;</b><br>
59 Compte client : 00C4520100A<br>
60 Référence du Dossier : 71326<br>
61 </i>
62 <br>
63 <br>
64 Madame, Monsieur, Cher Client,<br>
65 <br>
66 <br>
67 Nous souhaitons vous informer que le dossier <b>71326</b> concernant un &laquo; Bon de Retour &raquo; pour les articles suivants a été accepté.<br>
68 <br>
69 <table cellspacing="0" style="width: 100%; border: solid 1px black; background: #F7F7F7; font-size: 10pt;">
70 <colgroup>
71 <col style="width: 12%; text-align: left">
72 <col style="width: 52%; text-align: left">
73 <col style="width: 13%; text-align: right">
74 <col style="width: 10%; text-align: center">
75 <col style="width: 13%; text-align: right">
76 </colgroup>
77 <thead>
78 <tr style="background: #E7E7E7;">
79 <th style="border-bottom: solid 1px black;">Produit</th>
80 <th style="border-bottom: solid 1px black;">Désignation</th>
81 <th style="border-bottom: solid 1px black;">Prix Unitaire</th>
82 <th style="border-bottom: solid 1px black;">Quantité</th>
83 <th style="border-bottom: solid 1px black;">Prix Net</th>
84 </tr>
85 </thead>
86 <tbody>
87<?php
88 $nb = rand(5, 11);
89 $produits = array();
90 $total = 0;
91 for ($k=0; $k<$nb; $k++) {
92 $num = rand(100000, 999999);
93 $nom = "le produit n°".rand(1, 100);
94 $qua = rand(1, 20);
95 $prix = rand(100, 9999)/100.;
96 $total+= $prix*$qua;
97 $produits[] = array($num, $nom, $qua, $prix, rand(0, $qua));
98?>
99 <tr>
100 <td><?php echo $num; ?></td>
101 <td><?php echo $nom; ?></td>
102 <td><?php echo number_format($prix, 2, ',', ' '); ?> &euro;</td>
103 <td><?php echo $qua; ?></td>
104 <td><?php echo number_format($prix*$qua, 2, ',', ' '); ?> &euro;</td>
105 </tr>
106<?php
107 }
108?>
109 <tr style="background: #E7E7E7;">
110 <th colspan="4" style="border-top: solid 1px black; text-align: right;">Total : </th>
111 <th style="border-top: solid 1px black;"><?php echo number_format($total, 2, ',', ' '); ?> &euro;</th>
112 </tr>
113 </tbody>
114 </table>
115 <br>
116 Cette reprise concerne la quantité et les matériels dont la référence figure sur le <a href="#document_reprise">document de reprise joint</a>.<br>
117 Nous vous demandons de nous retourner ces produits en parfait état et dans leur emballage d'origine.<br>
118 <br>
119 Nous vous demandons également de coller impérativement l'autorisation de reprise jointe, sur le colis à reprendre afin de faciliter le traitement à l'entrepÎt.<br>
120 <br>
121 Notre Service Clients ne manquera pas de revenir vers vous dÚs que l'avoir de ces matériels sera établi.<br>
122 <nobreak>
123 <br>
124 Dans cette attente, nous vous prions de recevoir, Madame, Monsieur, Cher Client, nos meilleures salutations.<br>
125 <br>
126 <table cellspacing="0" style="width: 100%; text-align: left;">
127 <tr>
128 <td style="width:50%;"></td>
129 <td style="width:50%; ">
130 Mle Jesuis CELIBATAIRE<br>
131 Service Relation Client<br>
132 Tel : 33 (0) 1 00 00 00 00<br>
133 Email : on_va@chez.moi<br>
134 </td>
135 </tr>
136 </table>
137 </nobreak>
138</page>
Note: See TracBrowser for help on using the repository browser.