SHOW:
|
|
- or go back to the newest paste.
1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> | |
2 | <html> | |
3 | <head> | |
4 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
5 | <meta http-equiv="Lang" content="ru"> | |
6 | ||
7 | <title>Untitled</title> | |
8 | <script type="text/javascript"> | |
9 | function show_fields(company) { | |
10 | if(company>3 || company<0) return false; | |
11 | else { | |
12 | for(i=0;i<=3;i++) { | |
13 | if(company != i) { | |
14 | document.getElementById('company' + i).checked = false; | |
15 | document.getElementById('fields' + i).style.display = 'none'; | |
16 | } | |
17 | else { | |
18 | document.getElementById('company' + company).checked = true; | |
19 | document.getElementById('fields' + company).style.display = 'block'; | |
20 | } | |
21 | } | |
22 | - | if(company>3 || company<0) return false; |
22 | + | return true; |
23 | } | |
24 | - | else { |
24 | + | } |
25 | </script> | |
26 | - | for(i=0;i<=3;i++) { |
26 | + | |
27 | <body> | |
28 | - | if(company != i) { |
28 | + | |
29 | <br /> | |
30 | - | document.getElementById('company' + i).checked = false; |
30 | + | |
31 | <p> </p> | |
32 | - | document.getElementById('fields' + i).style.display = 'none'; |
32 | + | |
33 | <p> </p> | |
34 | - | } |
34 | + | |
35 | <p><input type="radio" name="company" id="company0" value="0" onClick="show_fields(0)" /><a href="http://www.russianpost.ru/" title="ФГУП «Почта России»" target="_blank">ФГУП «Почта России»</a></p> | |
36 | - | else { |
36 | + | |
37 | <p><input type="radio" name="company" id="company2" value="2" onClick="show_fields(2)" /><a href="http://www.autotrading.ru/" title="ООО «Автотрейдинг»" target="_blank">ООО «Автотрейдинг»</a></p> | |
38 | - | document.getElementById('company' + company).checked = true; |
38 | + | |
39 | ||
40 | - | document.getElementById('fields' + company).style.display = 'block'; |
40 | + | |
41 | <p> </p> | |
42 | - | } |
42 | + | |
43 | <p><input type="text" name="info[0][issue]" size="20" /></p> | |
44 | <p> </p> | |
45 | </div> | |
46 | - | |
46 | + | |
47 | <div id="fields1" style="display:none"> | |
48 | - | return true; |
48 | + | |
49 | <p><strong>2. Введите № накладной</strong></p> | |
50 | <p><input type="text" name="info[1][issue]" size="20" /></p> | |
51 | <p> </p> | |
52 | </div> | |
53 | ||
54 | <div id="fields2" style="display:none"> | |
55 | <p> </p> | |
56 | <p><strong>2. Введите № накладной</strong></p> | |
57 | <p><input type="text" name="info[2][issue]" size="20" /></p> | |
58 | <p> </p> | |
59 | <p><strong>3. Введите дату</strong></p> | |
60 | - | |
60 | + | |
61 | <p> </p> | |
62 | <p><strong>4. Введите пункт назначения</strong></p> | |
63 | <p><input type="text" name="info[2][dest]" size="20" /></p> | |
64 | <p> </p> | |
65 | </div> | |
66 | ||
67 | <div id="fields3" style="display:none"> | |
68 | <p> </p> | |
69 | <p><strong>2. Введите № поручения экспедитору</strong></p> | |
70 | <p><input type="text" name="info[3][issue]" size="20" /></p> | |
71 | <p> </p> | |
72 | </div> | |
73 | ||
74 | - | <!--<input type="hidden" name="system_form_id" value="877" />--> |
74 | + | |
75 | <input class="button" type="submit" value="Запросить информацию" /> | |
76 | - | <!--<input type="hidden" name="system_template" value="webform_cargo_tracking" />--> |
76 | + | |
77 | <input type="reset" value="Сбросить" /> | |
78 | </form> | |
79 | ||
80 | <p> </p> | |
81 | <p><strong>Результаты:</strong></p> | |
82 | <div class="results_cargo_tracking"> </div> | |
83 | </body> | |
84 | </html> |