Migrate UI cleanup phase 4 from MIPS into ARM
[tomato.git] / release / src-rt-6.x.4708 / router / www / status-log.asp
blob9067251dad3021af1704eb170e227b12a1ca5b57
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(); %>] Status: Logs</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("log_file"); %>
28 function find()
30 var s = E('find-text').value;
31 if (s.length) document.location = 'logs/view.cgi?find=' + escapeCGI(s) + '&_http_id=' + nvram.http_id;
34 function init()
36 var e = E('find-text');
37 if (e) e.onkeypress = function(ev) {
38 if (checkEvent(ev).keyCode == 13) find();
41 </script>
43 </head>
44 <body onload='init()'>
45 <form id='_fom' action='javascript:{}'>
46 <table id='container' cellspacing=0>
47 <tr><td colspan=2 id='header'>
48 <div class='title'>Tomato</div>
49 <div class='version'>Version <% version(); %></div>
50 </td></tr>
51 <tr id='body'><td id='navi'><script type='text/javascript'>navi()</script></td>
52 <td id='content'>
53 <div id='ident'><% ident(); %></div>
55 <!-- / / / -->
57 <div id='logging'>
58 <div class='section-title'>Logs</div>
59 <div class='section'>
60 <a href="logs/view.cgi?which=25&_http_id=<% nv(http_id) %>">View Last 25 Lines</a><br>
61 <a href="logs/view.cgi?which=50&_http_id=<% nv(http_id) %>">View Last 50 Lines</a><br>
62 <a href="logs/view.cgi?which=100&_http_id=<% nv(http_id) %>">View Last 100 Lines</a><br>
63 <a href="logs/view.cgi?which=all&_http_id=<% nv(http_id) %>">View All</a><br><br>
64 <a href="logs/syslog.txt?_http_id=<% nv(http_id) %>">Download Log File</a><br><br>
65 <input type="text" maxsize=32 size=33 id="find-text"> <input type="button" value="Find" onclick="find()"><br>
66 <br><br>
67 &raquo; <a href="admin-log.asp">Logging Configuration</a><br><br>
68 </div>
69 </div>
71 <script type='text/javascript'>
72 if (nvram.log_file != '1') {
73 W('<div class="note-disabled">Internal logging disabled.</b><br><br><a href="admin-log.asp">Enable &raquo;</a></div>');
74 E('logging').style.display = 'none';
76 </script>
78 <!-- / / / -->
80 </td></tr>
81 <tr><td id='footer' colspan=2>&nbsp;</td></tr>
82 </table>
83 </form>
84 </body>
85 </html>