source: trunk/client/inc/hpdf5/spipu/html2pdf/examples/res/forms.php@ 353

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

Aggiornamento per compatibilità con php7.4

File size: 2.5 KB
Line 
1<?php
2
3if (isset($_SERVER['REQUEST_URI'])) {
4 $url = $_SERVER['REQUEST_URI'];
5 if (substr($url, 0, 7)!=='http://') {
6 $url = 'http://'.$_SERVER['HTTP_HOST'];
7 if (isset($_SERVER['SERVER_PORT']) && $_SERVER['SERVER_PORT']!=80) {
8 $url.= ':'.$_SERVER['SERVER_PORT'];
9 }
10 $url.= $_SERVER['REQUEST_URI'];
11 }
12} else {
13 $url = 'http://localhost/html2pdf/examples/forms.php';
14}
15?>
16<style type="text/css">
17li
18{ font-size: 10pt; }
19
20input, textarea, select
21{
22 border: dashed 1mm red;
23 background: #FCC;
24 color: #400;
25 text-align: left;
26 font-size: 11pt;
27}
28</style>
29<page footer="form,date,time">
30 <h1>Test de formulaire</h1><br>
31 <br>
32 <form action="<?php echo $url; ?>">
33 <input type="hidden" name="test" value="1">
34 Vous utilisez cette librairie dans le cadre :
35 <ul style="list-style: none">
36 <li><input type="checkbox" name="cadre_boulot" checked="checked"> du boulot</li>
37 <li><input type="checkbox" name="cadre_perso" > perso</li>
38 </ul>
39 Vous êtes :
40 <ul style="list-style: none">
41 <li><input type="radio" name="sexe" value="homme" checked="checked"> un homme</li>
42 <li><input type="radio" name="sexe" value="femme"> une femme</li>
43 </ul>
44 Vous avez :
45 <select name="age" >
46 <option value="15">moins de 15 ans</option>
47 <option value="20">entre 15 et 20 ans</option>
48 <option value="25">entre 20 et 25 ans</option>
49 <option value="30">entre 25 et 30 ans</option>
50 <option value="40">plus de 30 ans</option>
51 </select><br>
52 <br>
53 Vous aimez :
54 <select name="aime[]" size="5" multiple="multiple">
55 <option value="ch1">l'informatique</option>
56 <option value="ch2">le cinéma</option>
57 <option value="ch3">le sport</option>
58 <option value="ch4">la littérature</option>
59 <option value="ch5">autre</option>
60 </select><br>
61 <br>
62 Votre phrase fétiche : <input type="text" name="phrase" value="cette lib est géniale !!!" style="width: 100mm"><br>
63 <br>
64 Un commentaire ?<br>
65 <textarea name="comment" rows="3" cols="30">rien de particulier</textarea><br>
66 <br>
67 <input type="reset" name="btn_reset" value="Initialiser">
68 <input type="button" name="btn_print" value="Imprimer" onclick="print(true);">
69 <input type="submit" name="btn_submit" value="Envoyer">
70 </form>
71</page>
Note: See TracBrowser for help on using the repository browser.