/
Reboot.asp
84 lines (76 loc) · 2.09 KB
/
Reboot.asp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<% do_pagehead(""); %>
<script type="text/javascript">
//<![CDATA[
var clk = <% get_clkfreq("1"); %>;
var rest_default = <% nvg("sv_restore_defaults"); %>;
var submit_button = "<% get_web_page_name(); %>";
var timer = setTimeout("message()", <% getboottime(); %> * 1000);
var browserName=navigator.appName;
function to_submit() {
if(submit_button == ".asp") {
history.go(-1);
} else {
document.location.href = submit_button;
}
}
function to_apply() {
if(submit_button == ".asp") {
history.go(-1);
} else {
document.location.href = submit_button;
}
}
function message() {
clearTimeout(timer);
bar1.togglePause();
setElementVisible("mess", true);
if (browserName == "Microsoft Internet Explorer") {
document.execCommand("Stop");
}
else {
window.stop();
}
}
addEvent(window, "load", function() {
bar1.togglePause();
});
addEvent(window, "unload", function() {
clearTimeout(timer);
});
//]]>
</script>
</head>
<body class="gui">
<div class="message">
<form>
<% tran("success.success_reboot"); %><br /><br />
<!-- centering progressbar via CSS margin: 0 auto -->
<div><br />
<script type="text/javascript">
//<![CDATA[
var bar1 = createBar(500,15,100,15,<% getboottime(); %> / 5 - 3,"to_submit()");
bar1.togglePause();
//]]>
</script>
</div>
<div id="mess" style="display: none"><br /><br />
<div class="center"><% tran("success.alert1"); %>
<ul style="text-align: left">
<li><% tran("success.alert2"); %></li>
<li><% tran("success.alert3"); %></li>
</ul>
</div>
</div><br /><br />
<div id="footer" class="submitFooter">
<script type="text/javascript">
//<![CDATA[
document.write("<input class=\"button\" type=\"button\" name=\"action\" value=\"" + sbutton.continu + "\" onclick=\"to_submit();\" />");
if (browserName == "Microsoft Internet Explorer")
document.write("<input class=\"button\" type=\"button\" name=\"close_button\" value=\"" + sbutton.clos + "\" onclick=\"opener=self;self.close();\" />");
//]]>
</script>
</div>
</form>
</div>
</body>
</html>