Merge branch 'Toastman-NRT' into Toastman-RT-AC
[tomato.git] / release / src / router / www / basic-ident.asp
blob6fea5a32053c21c2dde01b3e42054c9f8db544ec
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 <meta name="viewport" content="width=device-width">
15 <title>[<% ident(); %>] Basic: Identification</title>
16 <link rel='stylesheet' type='text/css' href='tomato.css'>
17 <link rel='stylesheet' type='text/css' href='color.css'>
18 <script type='text/javascript' src='tomato.js'></script>
20 <!-- / / / -->
22 <script type='text/javascript' src='debug.js'></script>
24 <script type='text/javascript'>
26 // <% nvram("router_name,wan_hostname,wan_domain"); %>
29 function verifyFields(focused, quiet)
31 if (!v_hostname('_wan_hostname', quiet)) return 0;
32 return v_length('_router_name', quiet, 1) && v_length('_wan_hostname', quiet, 0) && v_length('_wan_domain', quiet, 0);
35 function save()
37 if (!verifyFields(null, false)) return;
38 form.submit('_fom', 1);
40 </script>
41 </head>
42 <body>
43 <form id='_fom' method='post' action='tomato.cgi'>
44 <table id='container' cellspacing=0>
45 <tr><td colspan=2 id='header'>
46 <div class='title'>Tomato</div>
47 <div class='version'>Version <% version(); %></div>
48 </td></tr>
49 <tr id='body'><td id='navi'><script type='text/javascript'>navi()</script></td>
50 <td id='content'>
51 <div id='ident'><% ident(); %></div>
53 <!-- / / / -->
55 <input type='hidden' name='_nextpage' value='basic.asp'>
56 <input type='hidden' name='_service' value='*'>
59 <div class='section-title'>Router Identification</div>
60 <div class='section'>
61 <script type='text/javascript'>
62 createFieldTable('', [
63 { title: 'Router Name', name: 'router_name', type: 'text', maxlen: 32, size: 34, value: nvram.router_name },
64 { title: 'Hostname', name: 'wan_hostname', type: 'text', maxlen: 63, size: 34, value: nvram.wan_hostname },
65 { title: 'Domain Name', name: 'wan_domain', type: 'text', maxlen: 32, size: 34, value: nvram.wan_domain }
66 ]);
67 </script>
68 </div>
70 <!-- / / / -->
72 </td></tr>
73 <tr><td id='footer' colspan=2>
74 <span id='footer-msg'></span>
75 <input type='button' value='Save' id='save-button' onclick='save()'>
76 <input type='button' value='Cancel' id='cancel-button' onclick='reloadPage();'>
77 </td></tr>
78 </table>
79 </form>
80 <script type='text/javascript'>verifyFields(null, true);</script>
81 </body>
82 </html>