Tomato 1.28
[tomato/tomato-null.git] / release / src / router / www / basic-ident.asp
bloba7426e428e9b0311317fef841c0bcc004c35fa8d
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(); %>] Basic: Identification</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("router_name,wan_hostname,wan_domain"); %>
28 function verifyFields(focused, quiet)
30 return v_length('_router_name', quiet, 1) && v_length('_wan_hostname', quiet, 0) && v_length('_wan_domain', quiet, 0);
33 function save()
35 if (!verifyFields(null, false)) return;
36 form.submit('_fom', 1);
38 </script>
39 </head>
40 <body>
41 <form id='_fom' method='post' action='tomato.cgi'>
42 <table id='container' cellspacing=0>
43 <tr><td colspan=2 id='header'>
44 <div class='title'>Tomato</div>
45 <div class='version'>Version <% version(); %></div>
46 </td></tr>
47 <tr id='body'><td id='navi'><script type='text/javascript'>navi()</script></td>
48 <td id='content'>
49 <div id='ident'><% ident(); %></div>
51 <!-- / / / -->
53 <input type='hidden' name='_nextpage' value='basic.asp'>
54 <input type='hidden' name='_service' value='*'>
57 <div class='section-title'>Router Identification</div>
58 <div class='section'>
59 <script type='text/javascript'>
60 createFieldTable('', [
61 { title: 'Router Name', name: 'router_name', type: 'text', maxlen: 32, size: 34, value: nvram.router_name },
62 { title: 'Hostname', name: 'wan_hostname', type: 'text', maxlen: 32, size: 34, value: nvram.wan_hostname },
63 { title: 'Domain Name', name: 'wan_domain', type: 'text', maxlen: 32, size: 34, value: nvram.wan_domain }
64 ]);
65 </script>
66 </div>
68 <!-- / / / -->
70 </td></tr>
71 <tr><td id='footer' colspan=2>
72 <span id='footer-msg'></span>
73 <input type='button' value='Save' id='save-button' onclick='save()'>
74 <input type='button' value='Cancel' id='cancel-button' onclick='reloadPage();'>
75 </td></tr>
76 </table>
77 </form>
78 <script type='text/javascript'>verifyFields(null, true);</script>
79 </body>
80 </html>