1 <!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML
4.0//EN'
>
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.
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>
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 if (!v_hostname('_wan_hostname', quiet
)) return 0;
31 return v_length('_router_name', quiet
, 1) && v_length('_wan_hostname', quiet
, 0) && v_length('_wan_domain', quiet
, 0);
36 if (!verifyFields(null, false)) return;
37 form
.submit('_fom', 1);
42 <form id='_fom' method='post' action='tomato.cgi'
>
43 <table id='container' cellspacing=
0>
44 <tr><td colspan=
2 id='header'
>
45 <div class='title'
>Tomato
</div>
46 <div class='version'
>Version <%
version(); %></div>
48 <tr id='body'
><td id='navi'
><script type='text/javascript'
>navi()</script></td>
50 <div id='ident'
><%
ident(); %></div>
54 <input type='hidden' name='_nextpage' value='basic.asp'
>
55 <input type='hidden' name='_service' value='*'
>
58 <div class='section-title'
>Router Identification
</div>
60 <script type='text/javascript'
>
61 createFieldTable('', [
62 { title
: 'Router Name', name
: 'router_name', type
: 'text', maxlen
: 32, size
: 34, value
: nvram
.router_name
},
63 { title
: 'Hostname', name
: 'wan_hostname', type
: 'text', maxlen
: 63, size
: 34, value
: nvram
.wan_hostname
},
64 { title
: 'Domain Name', name
: 'wan_domain', type
: 'text', maxlen
: 32, size
: 34, value
: nvram
.wan_domain
}
72 <tr><td id='footer' colspan=
2>
73 <span id='footer-msg'
></span>
74 <input type='button' value='Save' id='save-button' onclick='save()'
>
75 <input type='button' value='Cancel' id='cancel-button' onclick='reloadPage();'
>
79 <script type='text/javascript'
>verifyFields(null, true);</script>