| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193 |
- <%@ page contentType="text/html;charset=GBK"%>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html>
- <head>
- <title>福建邮通科技统一门户平台</title>
- <meta http-equiv="Content-Type" content="text/html; charset=GBK" />
- <meta http-equiv="x-ua-compatible" content="ie=8" />
- <script type="text/javascript" src="/shares/js/jquery-1.3.2.min.js"></script>
- <script src="/shares/js/jquery.cookie.js" type="text/javascript"></script>
- <script type="text/javascript" src="/shares/js/util.js"></script>
- <script type="text/javascript" src="/shares/js/constant.js"></script>
- <script type="text/javascript" src="/shares/js/common.js"></script>
- <link rel="stylesheet" type="text/css" href="/shares/resources/login/l1/css/login.css"/>
- <link rel="Shortcut Icon" type="image/ico" href="favicon.ico" />
-
- <script language="JavaScript">
- $(function() {
- var cookie = document.cookie;
- if(cookie.indexOf("ynet_login_no")!= "-1"){
- var cookieUserIndex = cookie.indexOf("ynet_login_no")+14;
- var cookieUserStr = cookie.substring(cookieUserIndex,cookie.length);
- var cookieUserIndex_end = cookieUserIndex+cookieUserStr.indexOf("endofloginno");
- var cookieUserStr_real = cookie.substring(cookieUserIndex,cookieUserIndex_end);
- var user = cookieUserStr_real;
- if(user!=null && user != ""){
- var ck = $("#loginCookie");
- $("#user").val(user);
- ck[0].checked=true;
- }
- }
-
- });
-
- function windowHeight() {
- var de = document.documentElement;
- return self.innerHeight||(de && de.clientHeight)||document.body.clientHeight;
- }
- window.onload=window.onresize=function(){
- var wh=windowHeight();
- $("#dakuan").height(wh);
- };
- document.onkeydown=function(e){
- if(!e)e=window.event;
- if((e.keyCode||e.which)==13){
- $("#btnLogin").click();
- }
- };
- var loginwin = null;
- function openWin() {
- var url = window.location.href;
- url = url.substring(0, url.lastIndexOf("/"));
- url = url + "/toMain.do";
- window.location.href = url;
- }
- function checkButton() {
- if (event.keyCode == 13)
- submitForm();
- }
- function login1(){
- alert("1");
- }
- function login() {
- $("#msg").html("正在校验登录名和密码,请稍候...");
- var ck = $("#loginCookie");
- if (ck&&ck[0]&&ck[0].checked){
- $("#saveCookie").val("save");
- }else{
- $("#saveCookie").val("");
- }
- $.ajax({
- type : 'GET',
- dataType : 'string',
- url : 'Login.do?user=' + $("#user").val() + '&pass='
- + $("#pass").val() + "&code=" + $("#verify_code").val()
- + "&mySel=" + $("#mySel").val()+ "&saveCookie=" + $("#saveCookie").val(),
- cache : false,
- error : function(data) {
- $("#msg").html("登录失败!");
- },
- success : function(data) {
- if (data == "ok") {
- $("#msg").html("登录成功!正在加载个人设置,请稍候...");
- $("#pass").val("");
- openWin();
- var ck = $("#loginCookie");
- if (ck&&ck[0]&&ck[0].checked){
- $.cookie('username', $("#login_no").val(), {
- path : '/',
- expires : 10
- });
- $.cookie('cssfile', $("#mySel").val(), {
- path : '/',
- expires : 10
- });
- } else {
- $.cookie('username', null, {
- path : '/'
- });
- $.cookie('cssfile', null, {
- path : '/'
- });
- }
- //window.close();
- } else {
- if (data == -201) {
- $("#msg").html("用户名不存在或密码错误");
- }
- if (data == -202) {
- $("#msg").html("无效用户名");
- }
- if (data == -203) {
- $("#msg").html("用户名不存在或密码错误");
- }
- if (data == "error") {
- $("#msg").html("用户异常!登录失败");
- }
- }
- }
- });
- }
- function submitForm() {
- if (!validForm()) {
- return "";
- } else {
- login();
- }
- }
-
- function validForm(){
- var rs = $.validate({name:"user",model:[{type:"require",msg:"用户名不能为空!",msgBox:"msg"}]});
- return rs;
- }
-
- function forgetPwd(){
- alert("请联系管理员!");
- }
- //-->
- </script>
- </head>
- <body style="position: absolute; height: 100%;">
- <div id="wrap">
- <table cellpadding="0" cellspacing="0" height="90%" width="100%" style="text-align:center;">
- <tr>
- <td>
- <form name="login_form" id="login_form" method="post" action="Login.do" target="f1jeeadmin">
- <div id="main">
- <div id="main_left"><img src="/shares/resources/login/l1/images/logo.png" alt="logo" /></div>
- <div id="main_right">
- <div class="kong"><span id="msg" style="color:red;"></span></div>
- <div class="user"><input type="text" id="user" style=" " name="user" value="" size="15"/></div>
- <div class="password"><input type="password" id="pass" style=" " name="pass" value="" size="15"/></div>
-
- <div class="zong">
- <div class="forget">
- <a href="javascript:void(0)" onclick="forgetPwd()">忘记密码?</a>
-
- </div>
-
- <div class="remember">
- <input type="hidden" id="saveCookie" name="saveCookie"/>
- <input id="loginCookie" type="checkbox" />
- </div>
- <div class="remember">
- 记住我
- </div>
-
-
-
-
-
- <div class="denglu"><a href="javascript:void(0)" id="btnLogin" onclick="submitForm()">登 录</a></div>
- </div>
- </div>
- </div>
- </form>
- </td>
- </tr>
- </table>
-
- <div id="foot">
- <div id="foot-1">
- <div id="foot_left">福建邮通科技发展有限公司 版权所有 </div>
- <div id="foot_right"><a href="http://www.968857.com" target="_blank">技术支持:福州亿软信息科技有限公司</a> 联系电话:0591-968857</div>
- </div>
- </div>
- </div>
- </body>
- </html>
|