slitaz-forge view usbkey/main.php @ rev 326

usbkey.slitaz.org update
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Aug 15 16:32:07 2012 +0200 (2012-08-15)
parents 2c4bf9c28d8d
children
line source
1 <?php include("../head.php"); ?>
2 <!-- Block -->
3 <div id="block">
4 <!-- Navigation -->
5 <div id="block_nav">
6 <?php echo $howto ?>
7 </div>
8 <!-- Information/image -->
9 <div id="block_info">
10 <?php echo $characteristics ?>
11 <h4><?php system("../helper.sh --stats confirmed"); echo $stats.", ";
12 system("../helper.sh --stats pending"); echo $pending."." ?></h4>
13 </div>
14 </div>
16 <!-- Content top. -->
17 <div id="content_top">
18 <div class="top_left"></div>
19 <div class="top_right"></div>
20 </div>
22 <!-- Content -->
23 <div id="content">
25 <a name="pictures"></a>
26 <?php echo $pictures ?>
27 <a href="../img/IMAG0222.jpg"><img src="../img/IMAG0222small.jpg" alt="Wide" width="19%" /></a>
28 <a href="../img/IMAG0224.jpg"><img src="../img/IMAG0224small.jpg" alt="Close" width="19%" /></a>
29 <a href="../img/IMAG0111.jpg"><img src="../img/IMAG0111small.jpg" alt="Close" width="19%" /></a>
30 <a href="../img/IMAG0225.jpg"><img src="../img/IMAG0225small.jpg" alt="Closer" width="19%" /></a>
31 <a href="../img/IMAG0209.jpg"><img src="../img/IMAG0209small.jpg" alt="Detail" width="19%" /></a>
32 <p>
33 <?php echo $note ?>
34 </p>
36 <a name="form"></a>
37 <?php echo $form ?>
39 <script type="text/javascript">
40 <!--
41 function valid(f)
42 {
43 if (f.email.value == "" || f.email.value.indexOf("@",0) < 0) {
44 alert("<?php echo $enter_email ?>")
45 f.email.focus()
46 return
47 }
48 if (f.name.value == "") {
49 alert("<?php echo $enter_name ?>")
50 f.name.focus()
51 return
52 }
53 if (f.surname.value == "") {
54 alert("<?php echo $enter_surname ?>")
55 f.surname.focus()
56 return
57 }
58 if (f.address.value == "") {
59 alert("<?php echo $enter_address ?>")
60 f.address.focus()
61 return
62 }
63 if (f.city.value == "") {
64 alert("<?php echo $enter_city ?>")
65 f.city.focus()
66 return
67 }
68 if (f.country.value == "") {
69 alert("<?php echo $enter_country ?>")
70 f.country.focus()
71 return
72 }
73 if (true) {
74 f.submit()
75 }
76 }
77 //-->
78 </script>
79 <form method="post" action="../preorder.php">
80 <input type="hidden" name="lang" value="<?php echo $lang ?>" />
81 <input type="hidden" name="ip" value="<?php
82 if (isset($_SERVER["HTTP_X_FORWARDED_FOR"]))
83 echo $_SERVER["HTTP_X_FORWARDED_FOR"];
84 else echo $_SERVER["REMOTE_ADDR"];
85 ?>" />
86 <div id="capcha">
87 <input name="host" type="text" value="" />
88 </div>
89 <table width="100%">
90 <tbody>
91 <tr>
92 <td align="right">&nbsp;<?php echo $name ?></td>
93 <td><input type="text" name="name" /></td>
94 </tr>
95 <tr>
96 <td align="right"><?php echo $surname ?></td>
97 <td><input type="text" name="surname" /></td>
98 </tr>
99 <tr>
100 <td align="right"><?php echo $email ?></td>
101 <td><input type="text" name="email" /></td>
102 </tr>
103 <tr>
104 <td align="right"><?php echo $address ?></td>
105 <td><input type="text" name="address" /></td>
106 </tr>
107 <tr>
108 <td align="right"><?php echo "$zip <br /> $city"; ?></td>
109 <td><input type="text" name="zip" style="width: 80px;" />
110 <input type="text" name="city" style="width: 363px;" /></td>
111 </tr>
112 <tr>
113 <td align="right"><?php echo $country ?></td>
114 <td><input type="text" name="country" /></td>
115 </tr>
116 <tr>
117 <td align="right"><?php echo $count ?></td>
118 <td><input type="text" name="count" value="1" size="5"
119 onblur="if (this.value &lt; 1) {this.value='1'}" style="width: 80px;"/>
120 <?php echo $size ?>
121 <select name="size">
122 <option><?php echo $shell ?></option>
123 <option selected="selected">4 <?php echo $gb ?></option>
124 <option>8 <?php echo $gb ?></option>
125 <option>16 <?php echo $gb ?></option>
126 <option>32 <?php echo $gb ?></option>
127 <option>64 <?php echo $gb ?></option>
128 </select>
129 </td>
130 </tr>
131 <tr>
132 <td align="right"><?php echo $soft ?></td>
133 <td>
134 <select name="soft">
135 <option value="none"><?php echo $none ?></option>
136 <option value="core"><?php echo $core ?></option>
137 <option value="pkgs"><?php echo $pkgs ?></option>
138 <option value="web"><?php echo $web ?></option>
139 <option selected="selected" value="all"><?php echo $all ?></option>
140 </select>
141 </td>
142 </tr>
143 <tr>
144 <td align="right"><?php echo $comments ?></td>
145 <td colspan="4"><textarea name="comments" rows="5" cols="70%"></textarea></td>
146 </tr>
147 </tbody>
148 </table>
149 <input type="submit" name="register" value="<?php echo "$register" ?>" />
150 </form>
152 <!-- End of content with round corner -->
153 </div>
155 <?php include("../tail.php"); ?>