Advertisement
Guest User

Untitled

a guest
Aug 7th, 2012
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5.38 KB | None | 0 0
  1. <!--
  2. *********************************************************
  3. *   Copyright 2003, CyberTAN  Inc.  All Rights Reserved *
  4. *********************************************************
  5.  
  6. This is SOURCE CODE of CyberTAN Inc.
  7. the contents of this file may not be disclosed to third parties,
  8. copied or duplicated in any form without the prior written
  9. permission of CyberTAN Inc.
  10.  
  11. This software should be used as a reference only, and it not
  12. intended for production use!
  13.  
  14. THIS SOFTWARE IS OFFERED "AS IS", AND CYBERTAN GRANTS NO WARRANTIES OF ANY
  15. KIND, EXPRESS OR IMPLIED, BY STATUTE, COMMUNICATION OR OTHERWISE.  CYBERTAN
  16. SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS
  17. FOR A SPECIFIC PURPOSE OR NONINFRINGEMENT CONCERNING THIS SOFTWARE
  18. -->
  19.  
  20. <HTML ><HEAD><TITLE></TITLE>
  21. <meta http-equiv="expires" content="0">
  22. <meta http-equiv="cache-control" content="no-cache">
  23. <meta http-equiv="pragma" content="no-cache">
  24. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  25.  
  26. <!--
  27. <link rel="stylesheet" type="text/css" href="style.css">
  28. -->
  29.  
  30. <link rel="stylesheet" type="text/css" href="style_gn.css">
  31. <!--
  32. <link rel="stylesheet" type="text/css" href="style_rtl.css">
  33. -->
  34.  
  35. <SCRIPT src="position.js"></SCRIPT>
  36. <script src="common.js"></script>
  37.  
  38. <!-- Desktop view-->
  39.  
  40.   <style type="text/css">/*<![CDATA[*/
  41.        @import "main.css";
  42.    /*]]>*/</style>
  43.   <script type="text/javascript" src="jquery.js"></script>
  44.   <script type="text/javascript" src="main.js"></script>
  45.  
  46.  <!-- Mobile view-->
  47.  <!--
  48.  <style type="text/css">/*<![CDATA[*/
  49.         @import "mobile/styles/main.css";
  50.     /*]]>*/</style>
  51.   <script type="text/javascript" src="mobile/scripts/jquery.js"></script>
  52.   <script type="text/javascript" src="mobile/scripts/main.js"></script>
  53.   <meta name="viewport" content="width=320; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;"/>
  54. -->
  55.  <SCRIPT language=JavaScript>
  56.  var device_type = '0';
  57. //document.onkeydown = onInputKeydown;
  58. /*
  59. function onInputKeydown(event)
  60. {
  61.     if(typeof event == "undefined")
  62.     {
  63.         return handleKeyDown(window.event);
  64.     }
  65.     else
  66.     {
  67.         return handleKeyDown(event);
  68.     }
  69.  
  70. }
  71.  
  72. function handleKeyDown(event)
  73. {
  74.     if(event.keyCode == 10)
  75.     {
  76.         event.cancelBubble = true;
  77.         event.returnValue = false;
  78.     }
  79.     else if (event.keyCode == 13) {
  80.         return to_submit(document.login);
  81.     }
  82.  
  83.         return true;
  84.  
  85. }
  86. */
  87.  
  88. /*function setCookie(value, expiredays)*/
  89. function setCookie()
  90. {
  91.     var F = document.login;
  92.  
  93.     /*when current login page is in mobile state, and the "alt-view" is "Desktop view,
  94.     device_type should be 1, so when click "Desktop view", set cookie mobile_view_type
  95.     to 2. otherwise set cookie to 1*/
  96.     if (device_type == '1')
  97.         document.cookie = "mobile_view_type=2";
  98.     else
  99.         document.cookie = "mobile_view_type=1";
  100. /*
  101.     if (host_url)
  102.         window.location.replace("login.asp?" + host_url);
  103.     else
  104.         window.location.replace("login.asp");
  105. */
  106.     window.location.replace("login.asp?" + F.gn_host_url.value);
  107.  
  108. }
  109.  
  110. function to_submit(F)
  111. {
  112. //  F.gn_host_url.value=host_url;
  113. //  F.action.value='Apply';
  114. //  F.submit_button.value = "login";
  115.     F.submit();
  116. }
  117.  
  118.  
  119. function valid_name2(I,M,flag)
  120. {
  121.     isascii(I,M);
  122. }
  123.  
  124. function init()
  125. {
  126.         document.title="Guest access";
  127.         document.login.gn_view_type.value=device_type;
  128.     //document.login.gn_host_url.value=host_url;
  129.         var oPassword = document.getElementById("password");//wangfei sync patch from RC4-RC8
  130.         oPassword.focus();
  131. }
  132.  
  133. </SCRIPT>
  134. </head>
  135. <body id="blocked" onload=init()>
  136. <div id="content">
  137. <div class="h1">
  138. <h1><span><script>document.write("Guest access")</script>
  139. </span>
  140. </h1>
  141. </div>
  142.  
  143. <div class="divider">
  144. <span><img src="image/layout/Divider_03.jpg"> </span>
  145. </div>
  146.  
  147. <div class="info-text">
  148. <p><span><script>document.write("Enter the guest access password to access the Internet. Ask the owner if you don't know the password. The guest access password can be found using Cisco Connect.")</script></span></p>
  149. <div class="formwrapper">
  150. <form name=login method=post action="guestnetwork.cgi" autocomplete="off">
  151. <input type=hidden name=submit_button value="login">
  152. <input type=hidden name=action value="Apply">
  153. <input type=hidden name=wait_time value=19>
  154. <input type=hidden name=submit_type>
  155. <input type=hidden name=gn_view_type>
  156. <input type=hidden name=gn_host_url value='archive.canonical.com/ubuntu/dists/precise/InRelease'>
  157.   <div class="field"> <label for="password"><script>document.write("Password")</script>:</label>
  158.   <INPUT id="password" type=password maxlength="35" name="guest_login" onBlur=valid_name2(this,"Password",SPACE_NO)>
  159.   </div>
  160.   <div class="error">
  161.   <p>
  162.   <script>
  163.       var deny='0';
  164.       if(deny == '1')
  165.         document.write("The password is incorrect.");
  166.       else
  167.         document.write("<BR>");
  168.     document.login.guest_login.focus();
  169.    </script>
  170.   </p>
  171.   </div>
  172.   <div class="button"><p></p>
  173.     <script>
  174.      document.write("<a href='javascript:to_submit(document.forms[0])'>" + "Login" + "</a>");
  175.     </script>
  176.   </div>
  177. </form>
  178. </div>
  179. <!--
  180. <div class="alt-view"><p><span><script>document.write("<a href='javascript:setCookie()'>" + "Desktop view" + "</a>");</script></span></p></div>
  181. -->
  182. <!--
  183. <div class="alt-view"><p><span><script>document.write("<a href='javascript:setCookie()'>" + "Mobile view" + "</a>");</script></span></p></div>
  184. -->
  185. <!--.formwrapper--> </div>
  186. <!--#content-->
  187. </body>
  188. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement