End Of Life - discontinue this branch!
[tomato.git] / release / src / router / www / basic-ident.asp
blobaeac37629533f6477c7390185f3e61ddce598077
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 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);
34 function save()
36 if (!verifyFields(null, false)) return;
37 form.submit('_fom', 1);
39 </script>
40 </head>
41 <body>
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>
47 </td></tr>
48 <tr id='body'><td id='navi'><script type='text/javascript'>navi()</script></td>
49 <td id='content'>
50 <div id='ident'><% ident(); %></div>
52 <!-- / / / -->
54 <input type='hidden' name='_nextpage' value='basic.asp'>
55 <input type='hidden' name='_service' value='*'>
58 <div class='section-title'>Router Identification</div>
59 <div class='section'>
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 }
65 ]);
66 </script>
67 </div>
69 <!-- / / / -->
71 </td></tr>
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();'>
76 </td></tr>
77 </table>
78 </form>
79 <script type='text/javascript'>verifyFields(null, true);</script>
80 </body>
81 </html>