| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 |
- <html>
- <head>
- <title>登录</title>
- <meta http-equiv="content-type" content="text/html; charset=gb2312">
- <style type="text/css">
- table {width ="800px";
- font-size: 12px;
- background-color: #F1F5F6;
- }
- .button {
- border: 1px outset #a5b6d2;
- padding: 5px 2px;
- text-decoration: none;
- text-align: center;
- vertical-align: middle;
- color: #343333;
- cursor: pointer;
- background-color: #CAEAFF;
- }
- </style>
- <script language="JavaScript">
- var ntkologinobj;
- function initLoginOcx() {
- ntkologinobj = document.all("ntkoekeyloginocx");
- if (!ntkologinobj) {
- alert("EKEY登录控件初始化失败!");
- }
- }
- function getLoginInfoFromEkey() {
- try {
- var loginform = document.forms("loginform");
- loginform.action = document.all("ServerName").value;
- ntkologinobj.ReadFromEkey();
- if (0 != ntkologinobj.StatusCode) {
- return false;
- } else {
- var width=screen.availWidth - 10;
- var height=screen.availHeight-50;
- window.open("http://localhost:8181/ynet/Login.do?type=1&user="+ntkologinobj.Username+"&pass="+ntkologinobj.Password,"",'width='
- +width+',height='+height+',top=0,left=0,toolbar=no,menubar=no,scrollbars=no,resizable=no,location=no,status=no');
- closeWindow();
- return false;
- }
- } catch (e) {
- alert("从EKEY读取用户登录信息错误:" + e);
- return false;
- }
- }
-
- function closeWindow()
- {
- window.opener=null;
- window.open('', '_self', '');
- window.close();
- }
- </script>
- </head>
- <body bgcolor="#ffffff" onload="initLoginOcx()">
- <center>
- <h3>登录系统</h3>
- <hr width=60%>
- <script src="ntkoGenEkeyLogOcxObj.js"></script>
- <br>
- <br>
- <FORM id="loginform" METHOD=post onsubmit="return getLoginInfoFromEkey();">
- <INPUT TYPE=hidden NAME="%%ModDate" VALUE="0000000000000000">
- 要登录的DominoURL:<input id="ServerName"
- VALUE="http://192.168.0.1/names.nsf?Login" size=60><br>
- 用户名:<INPUT NAME="Username" VALUE="" maxlength=256><br> 口
- 令:<INPUT NAME="Password" VALUE="" TYPE=password maxlength=256><br>
- <br>
- <button class="button" onclick="getLoginInfoFromEkey();">读取EKEY信息</button>
- <INPUT class="button" TYPE=submit VALUE="登录"> <input
- class="button" type="RESET" name="Reset" value="重新输入">
- </form>
- </center>
- </body>
- </html>
|