Advertisement
Guest User

Untitled

a guest
Sep 17th, 2018
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 3.22 KB | None | 0 0
  1.  
  2. <html>
  3. <head>
  4. <meta http-equiv='Content-Type' content='text/html;charset=utf-8'>
  5. <title>GREATEK</title>
  6. <SCRIPT language=Javascript src='language_pt.js'></SCRIPT>
  7. <meta http-equiv="Pragma" content="no-cache">
  8. <meta HTTP-equiv="Cache-Control" content="no-cache">
  9. <meta HTTP-EQUIV="Expires" CONTENT="Mon, 01 Jan 1990 00:00:01 GMT">
  10. <link href='/style.css' rel='stylesheet' type='text/css'>
  11. <script type='text/javascript' src='util_gw.js'></script>
  12.  
  13. <script>
  14. if(top!=self)top.location.href = self.location.href;
  15.  
  16. function includeSpace(str)
  17. {
  18.   for (var i=0; i<str.length; i++) {
  19.     if ( str.charAt(i) == ' ' ) {
  20.       return true;
  21.     }
  22.  }
  23.  return false;
  24. }
  25.  
  26. function saveChanges()
  27. {
  28.   if ( document.password.username.value.length == 0 ) {
  29.     if ( !confirm(password_user_empty) ) {
  30.         document.password.username.focus();
  31.         return false;
  32.     }
  33.     else
  34.         return true;
  35.  }
  36.  
  37.  if ( document.password.username.value.length > 0 &&
  38.         document.password.userpass.value.length == 0 ) {
  39.     alert(password_passwd_empty);
  40.     document.password.userpass.focus();
  41.     return false;
  42.   }
  43.  
  44.   if ( includeSpace(document.password.username.value)) {
  45.     alert(password_user_invalid);
  46.     document.password.username.focus();
  47.     return false;
  48.   }
  49.  
  50.   if ( includeSpace(document.password.userpass.value)) {
  51.     alert(password_passwd_invalid);
  52.     document.password.userpass.focus();
  53.     return false;
  54.   }
  55.  
  56.   return true;
  57. }
  58.  
  59. function Load_Setting()
  60. {      
  61.     document.getElementById("div_main").style.height = document.body.offsetHeight-96-40-40+"px";
  62.     document.getElementById("div_main").style.height = document.body.clientHeight-96-40-40+"px";//for firefox      
  63. }
  64. </script>
  65. </head>
  66.  
  67. <body onLoad="Load_Setting()">
  68. <form action=/formLogin.htm method=POST name="password">
  69. <input type="hidden" value="/login.htm" name="submit-url">
  70. <table id="div_main" width="100%" border="0" cellspacing="0" cellpadding="0">
  71. <tr>
  72. <td>
  73. <div align="center">
  74. <table border=0 width="370" align="center">
  75. </tr>
  76. <tr><td class="login_title"><script>dw(lg_ul)</script></td></tr>
  77. <tr><td class="login_help"><script>dw(lg_ts)</script><span>192.168.1.1</span><script>dw(lg_requp)</script></td></tr>
  78. </table>
  79.  
  80. <table width="370" height="227" border="0" cellpadding="0" cellspacing="0">
  81. <tr>
  82.    <td colspan="3" style="background:url(graphics/login.gif) repeat; height:227; width:370">
  83.       <table width="100%" border="0" cellspacing="0" cellpadding="0">
  84.          <tr><td class="login1"></td></tr>
  85.          <tr><td class="login_label"><script>dw(lg_un)</script></td><td><input type="text" name="username" width=10 class="login_input"></td></tr>
  86.          <tr><td class="login_label"><script>dw(lg_pass)</script></td><td><input type="password" id="userpass" name="userpass" width=10 class="login_input"></td></tr>
  87.       </table>
  88.       <table width="100%" border="0" cellspacing="0" cellpadding="0">
  89.          <tr><td class="login3"></td></tr>
  90.          <tr><td class="login4">
  91.             <input type="image" class="input_login" src="graphics/login_button.gif"  border="0" onClick="return saveChanges()" style="cursor:pointer"></td>
  92.          </tr>
  93.       </table></td>
  94. </tr>
  95. </table>
  96.  
  97. </div></td>
  98. </tr>
  99. </table>
  100.  
  101. <script>
  102.     document.password.username.focus();
  103. </script>
  104. </form>
  105. </body>
  106. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement