Tomato 1.28
[tomato.git] / release / src / router / www / advanced-misc.asp
blob27bdefe0ae1326ff6f697ebb457b9ebe5ef3a011
1 <!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.0//EN'>
2 <!--
3 Tomato GUI
4 Copyright (C) 2006-2010 Jonathan Zarate
5 http://www.polarcloud.com/tomato/
7 For use with Tomato Firmware only.
8 No part of this file may be used without permission.
9 -->
10 <html>
11 <head>
12 <meta http-equiv='content-type' content='text/html;charset=utf-8'>
13 <meta name='robots' content='noindex,nofollow'>
14 <title>[<% ident(); %>] Advanced: Miscellaneous</title>
15 <link rel='stylesheet' type='text/css' href='tomato.css'>
16 <link rel='stylesheet' type='text/css' href='color.css'>
17 <script type='text/javascript' src='tomato.js'></script>
19 <!-- / / / -->
21 <script type='text/javascript' src='debug.js'></script>
23 <script type='text/javascript'>
25 // <% nvram("wait_time,wan_speed"); %>
28 function verifyFields(focused, quiet)
30 return 1;
33 function save()
35 var fom = E('_fom');
36 if (fom.wan_speed.value != nvram.wan_speed) {
37 fom._reboot.value = '1';
38 form.submit(fom, 0);
40 else {
41 form.submit(fom, 1);
44 </script>
46 </head>
47 <body>
48 <form id='_fom' method='post' action='tomato.cgi'>
49 <table id='container' cellspacing=0>
50 <tr><td colspan=2 id='header'>
51 <div class='title'>Tomato</div>
52 <div class='version'>Version <% version(); %></div>
53 </td></tr>
54 <tr id='body'><td id='navi'><script type='text/javascript'>navi()</script></td>
55 <td id='content'>
56 <div id='ident'><% ident(); %></div>
58 <!-- / / / -->
60 <input type='hidden' name='_nextpage' value='advanced-misc.asp'>
61 <input type='hidden' name='_reboot' value='0'>
63 <div class='section-title'>Miscellaneous</div>
64 <div class='section'>
65 <script type='text/javascript'>
66 a = [];
67 for (i = 3; i <= 20; ++i) a.push([i, i + ' seconds']);
68 createFieldTable('', [
69 { title: 'Boot Wait Time *', name: 'wait_time', type: 'select', options: a, value: fixInt(nvram.wait_time, 3, 20, 3) },
70 { title: 'WAN Port Speed *', name: 'wan_speed', type: 'select', options: [[0,'10Mb Full'],[1,'10Mb Half'],[2,'100Mb Full'],[3,'100Mb Half'],[4,'Auto']], value: nvram.wan_speed }
71 ]);
72 </script>
73 <br>
74 <small>* Not all models support these options.</small>
75 </div>
79 <!-- / / / -->
81 </td></tr>
82 <tr><td id='footer' colspan=2>
83 <span id='footer-msg'></span>
84 <input type='button' value='Save' id='save-button' onclick='save()'>
85 <input type='button' value='Cancel' id='cancel-button' onclick='reloadPage();'>
86 </td></tr>
87 </table>
88 </form>
89 <script type='text/javascript'>verifyFields(null, 1);</script>
90 </body>
91 </html>