tranquangchau

view-source:http://1.52.56.117/login.html

May 23rd, 2015
294
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 4.72 KB | None | 0 0
  1.  
  2. <!DOCTYPE html PUBLIC "-//W3C//Dtd XHTML 1.0 Transitional//EN" "http://www.w3.org/tr/xhtml1/Dtd/xhtml1-Transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="utf-8" lang="utf-8" dir="ltr">
  4. <head>
  5. <title></title>
  6. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  7. <link href="style/ont.css" type="text/css" rel="stylesheet" />
  8. <script type="text/javascript" src="script/common.js"></script>
  9. <script language="JavaScript" text="text/javascript" src="/script/lang_en.js"></script>
  10.  
  11.  
  12. <style type="text/css">
  13.  
  14. input {
  15.     margin-top: 5px;
  16. }
  17.  
  18. input[type="text"], input[type="password"] {
  19.     width: 120px;
  20. }
  21.  
  22. div {
  23.     margin: 0 auto;
  24.     text-align: center;
  25. }
  26.  
  27. #l_tip {
  28.     width: 800px;
  29.     height: 30px;
  30.     text-align: center;
  31.     font-size: 14px;
  32. }
  33.  
  34. #tip {
  35.     color: #ff0000;
  36. }
  37.  
  38. #l_content {
  39.     width: 350px;
  40.     height: 180px;
  41.     border: 2px solid #4393a3;
  42.     font-size: 14px;
  43. }
  44.  
  45. #l_content li {
  46.     float: left;
  47. }
  48.  
  49. .l_title {
  50.     width: 350px;
  51.     height: 30px;
  52.     line-height: 30px;
  53.     background-color: #4393a3;
  54.     text-align: center;
  55. }
  56.  
  57. .l_pad {
  58.     width: 350px;
  59.     height: 20px;
  60.     line-height: 20px;
  61. }
  62.  
  63. .l_user, .l_pass {
  64.     width: 150px;
  65.     height: 30px;
  66.     line-height: 30px;
  67. }
  68.  
  69. .l_foot1, .l_foot5 {
  70.     width: 85px;
  71.     height: 30px;
  72.     line-height: 30px;
  73.     background-color: #4393a3;
  74. }
  75.  
  76. .l_foot2, .l_foot4 {
  77.     width: 70px;
  78.     height: 30px;
  79.     line-height: 30px;
  80.     background-color: #4393a3;
  81. }
  82.  
  83. .l_foot3 {
  84.     width: 40px;
  85.     height: 30px;
  86.     line-height: 30px;
  87.     background-color: #4393a3;
  88. }
  89.  
  90. </style>
  91.  
  92. <script type="text/javascript">
  93. //<![CDATA[
  94.  
  95. var XUsername = "";
  96. var XWebTimeout = 120;
  97. var XCurrentUser = 0;
  98. var XCurrentMenu = 'devinfo';
  99. var XLogoFilename = '';
  100. var XMultiLang = '0';
  101. var XOntName = 'GPON Home Gateway';
  102. var XHasWifi = 1;
  103. var XHasUsb  = 1;
  104. var lang  = 0;
  105.  
  106. XUsername = "admin";
  107. var XPasswdTip = '';
  108. var XHasLogin = '0';
  109.  
  110.  
  111. function WebLoadString()
  112. {
  113.     document.title = XOntName;
  114.     $("XS0").innerHTML = WebString.PasswordTip;
  115.    
  116.     if(XPasswdTip.length > 2)
  117.         XPasswdTip = WebString.password_default;
  118.        
  119.     $("tip").innerHTML = XPasswdTip;
  120.     if(lang==0)
  121.         $("XS1").innerHTML = XOntName + " " + WebString.Login;
  122.     else
  123.         $("XS1").innerHTML = WebString.Login;
  124.     $("XS2").innerHTML = WebString.Username;
  125.     $("XS3").innerHTML = WebString.Password;
  126.     $S("login", WebString.Login);
  127.     $S("reset", WebString.Reset);
  128. }
  129.  
  130. function WebInit()
  131. {
  132.     if (window.self != window.top)
  133.     {
  134.         window.top.location.href = window.self.location.href;
  135.         return;
  136.     }
  137.  
  138.     $("l_tip").style.display = "none";
  139.     if (XPasswdTip.length > 2)
  140.     {
  141.         $("l_tip").style.display = "block";
  142.     }
  143.  
  144.     WebLoadString();
  145.  
  146.     $S("XWebPageName", "index");
  147.     $S("username", XUsername);
  148.     $("username").focus();
  149. }
  150.  
  151. function OnReset()
  152. {
  153.     $S("username", "");
  154.     $S("password", "");
  155. }
  156.  
  157. function OnLogin()
  158. {
  159.     if ($("username").value.length == 0)
  160.     {
  161.         alert(WebString.username_alert);
  162.         $("username").focus;
  163.         return;
  164.     }
  165.     if ($("password").value.length == 0)
  166.     {
  167.         alert(WebString.password_alert);
  168.         $("password").focus;
  169.         return;
  170.     }
  171.     $("XForm").submit();
  172. }
  173.  
  174. function OnEnter(e)
  175. {
  176.     var k = 0;
  177.  
  178.     if (window.event)
  179.     {
  180.         k = e.keyCode;
  181.     }
  182.     else if (e.which)
  183.     {
  184.         k = e.which;
  185.     }
  186.  
  187.     if (k == 13)
  188.     {
  189.         OnLogin();
  190.     }
  191. }
  192.  
  193. function OnUserEnter(e)
  194. {
  195.     var k = 0;
  196.  
  197.     if (window.event)
  198.     {
  199.         k = e.keyCode;
  200.     }
  201.     else if (e.which)
  202.     {
  203.         k = e.which;
  204.     }
  205.  
  206.     if (k == 13)
  207.     {
  208.         $("password").focus();
  209.     }
  210. }
  211.  
  212. //]]>
  213. </script>
  214. </head>
  215. <body onload="WebInit();">
  216. <div style="height: 100px"></div>
  217. <div id="l_tip">
  218.     <ul>
  219.         <li><span id="XS0"></span><span id="tip"></span></li>
  220.     </ul>
  221. </div>
  222. <div id="l_content">
  223. <form id="XForm" name="XForm" method="post" action="/GponForm/LoginForm">
  224. <input type="hidden" id="XWebPageName" name="XWebPageName" value="" />
  225. <ul>
  226.     <li class="l_title"><span id="XS1"></span></li>
  227. </ul>
  228. <ul>
  229.     <li class="l_pad"></li>
  230. </ul>
  231. <ul>
  232.     <li class="l_user"><span style="width: 150px;" id="XS2"></span></li>
  233.     <li class="l_user"><input id="username" name="username" type="text" style="width: 120px;" maxlength="24" onkeypress="OnUserEnter(event);" /></li>
  234. </ul>
  235. <ul>
  236.     <li class="l_pad"></li>
  237. </ul>
  238. <ul>
  239.     <li class="l_pass"><span style="width: 150px;" id="XS3"></span></li>
  240.     <li class="l_pass"><input id="password" name="password" type="password" style="width: 120px;" maxlength="24" onkeypress="OnEnter(event);" /></li>
  241. </ul>
  242. <ul>
  243.     <li class="l_pad"></li>
  244. </ul>
  245. <ul>
  246.     <li class="l_foot1"></li>
  247.     <li class="l_foot2"><input id="login" name="login" type="button" value="Login" onclick="OnLogin();" /></li>
  248.     <li class="l_foot3"></li>
  249.     <li class="l_foot4"><input id="reset" type="button" value="Reset" onclick="OnReset();" /></li>
  250.     <li class="l_foot5"></li>
  251. </ul>
  252. </form>
  253. </div>
  254. </body>
  255. </html>
Add Comment
Please, Sign In to add comment