<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
|
<%Session.CodePage=65001%>
|
<%
|
LoginError=Request("LoginError")
|
LoginSuccess=Request("LoginSuccess")
|
%>
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
<head>
|
<title>民航医疗快线运营系统</title>
|
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
<!-- stylesheets -->
|
<link rel="stylesheet" type="text/css" href="resources/css/reset.css" />
|
<link rel="stylesheet" type="text/css" href="resources/css/style.css" media="screen" />
|
<link id="color" rel="stylesheet" type="text/css" href="resources/css/colors/purple.css" />
|
<!-- scripts (jquery) -->
|
<script src="resources/scripts/jquery-1.4.2.min.js" type="text/javascript"></script>
|
<script src="resources/scripts/jquery-ui-1.8.custom.min.js" type="text/javascript"></script>
|
<script src="resources/scripts/smooth.js" type="text/javascript"></script>
|
<script type="text/javascript">
|
$(document).ready(function () {
|
style_path = "resources/css/colors";
|
|
$("input.focus").focus(function () {
|
if (this.value == this.defaultValue) {
|
this.value = "";
|
}
|
else {
|
this.select();
|
}
|
});
|
|
$("input.focus").blur(function () {
|
if ($.trim(this.value) == "") {
|
this.value = (this.defaultValue ? this.defaultValue : "");
|
}
|
});
|
|
$("input:submit, input:reset").button();
|
});
|
</script>
|
<script>
|
//每日GPS数据抓取
|
$.ajax({
|
type: "POST",
|
url: "/goocar/GPSmilestat_admin.asp",//需要跳转到的界面 the page you want to post data
|
data: {},
|
beforeSend: function() {},//在发送之前你可以进行相关操作 what you want to do before send
|
success: function(data) {
|
//alert(data);
|
}
|
})
|
</script>
|
</head>
|
<body>
|
<div id="login">
|
<!-- login -->
|
<div class="title">
|
<h5>Sign In to 民航医疗快线运营系统</h5>
|
<div class="corner tl"></div>
|
<div class="corner tr"></div>
|
</div>
|
<%if LoginError<>"" then%>
|
<div class="messages">
|
<div id="message-error" class="message message-error">
|
<div class="image">
|
<img src="resources/images/icons/error.png" alt="Error" height="32" />
|
</div>
|
<div class="text">
|
<h6>Error Message</h6>
|
<span><%=LoginError%></span>
|
</div>
|
<div class="dismiss">
|
<a href="#message-error"></a>
|
</div>
|
</div>
|
</div>
|
<%elseif LoginSuccess<>"" then%>
|
<div class="messages">
|
<div id="message-error" class="message message-success">
|
<div class="image">
|
<img src="resources/images/icons/success.png" alt="Success" height="32" />
|
</div>
|
<div class="text">
|
<h6>Success Message</h6>
|
<span><%=LoginSuccess%></span>
|
</div>
|
<div class="dismiss">
|
<a href="#message-error"></a>
|
</div>
|
</div>
|
</div>
|
<%end if%>
|
<div class="inner">
|
<form action="index.gds" method="post">
|
<div class="form">
|
<!-- fields -->
|
<div class="fields">
|
<div class="field">
|
<div class="label">
|
<label for="username">账号:</label>
|
</div>
|
<div class="input">
|
<input type="text" id="admin" name="admin" size="40" value="<%=Request.Cookies("CAMEName")%>" placeholder="请输入账号或手机" class="focus" />
|
</div>
|
</div>
|
<!--
|
<div class="field">
|
<div class="label">
|
<label for="password">Password:</label>
|
</div>
|
<div class="input">
|
<input type="password" id="password" name="password" size="40" value="" class="focus" />
|
</div>
|
</div>
|
-->
|
<div class="field">
|
<div class="label">
|
<label for="password">验证码:</label>
|
</div>
|
<div class="input">
|
<input type="text" id="loginAuthorize" name="loginAuthorize" size="10" style="width: 54px;" value="" class="focus" /> <input type="button" id="button_AuthorizeNO1" name="button_AuthorizeNO1" value="发送企微验证码" style="background: #9a6d92 url(../../../resources/images/colors/purple/button_highlight.png) repeat-x;color: #ffffff;width: 180px;" onclick="JS_Authorize(1);"> <input type="button" id="button_AuthorizeNO2" name="button_AuthorizeNO2" value="短信(备用)" style="background: #9a6d92 url(../../../resources/images/colors/purple/button_highlight.png) repeat-x;color: #ffffff;width: 90px;display: none;" onclick="JS_Authorize(2);">
|
</div>
|
<script LANGUAGE="javascript">
|
function JS_Authorize(SendType) {
|
OA_User=document.all.admin.value;
|
button_AuthorizeNO1=document.all.button_AuthorizeNO1.value;
|
button_AuthorizeNO2=document.all.button_AuthorizeNO2.value;
|
if (OA_User=="")
|
{
|
alert("请输入登陆账号!");
|
return false;
|
}
|
else if (button_AuthorizeNO1=="发送企微验证码" && SendType==1){
|
$.ajax({
|
type:'post',
|
url:'/weixin/message_send_login.gds?SendType=1&OA_User='+OA_User,
|
success:function(data){
|
if(data == '1'){
|
document.all.button_AuthorizeNO1.value="验证码已发送";
|
document.getElementById("button_AuthorizeNO1").style.width="90px";
|
document.getElementById("button_AuthorizeNO2").style.display="block";
|
JS_login_weixin();
|
//alert("验证码已通过企业微信发送");
|
return false;
|
}else{
|
alert("提交失败,请重试!"+data);
|
return false;
|
}
|
}
|
});
|
}
|
else if (button_AuthorizeNO2=="短信(备用)" && SendType==2){
|
$.ajax({
|
type:'post',
|
url:'/weixin/message_send_login.gds?SendType=2&OA_User='+OA_User,
|
success:function(data){
|
if(data == '1'){
|
document.all.button_AuthorizeNO2.value="验证码已发送";
|
alert("验证码已通过手机短信发送");
|
return false;
|
}else{
|
alert("提交失败,请重试!"+data);
|
return false;
|
}
|
}
|
});
|
}
|
}
|
|
function JS_login_weixin() {
|
OA_User=document.all.admin.value;
|
$.ajax({
|
type: "POST",
|
url: "/inc/chkadmin.gds",//需要跳转到的界面 the page you want to post data
|
data: {
|
//要传给后台的数据 the data you should send to background
|
admin:OA_User,
|
Phonelogin:"YES"
|
},
|
dataType:'json',
|
beforeSend: function() {},//在发送之前你可以进行相关操作 what you want to do before send
|
success: function(data) {
|
console.log(data);
|
if (data!='')
|
{
|
if (data.result==1){
|
window.location.href="/index.gds";
|
}else{
|
window.setTimeout("JS_login_weixin()",1000);
|
}
|
}
|
}
|
})
|
}
|
</script>
|
</div>
|
<!--
|
<div class="field">
|
<div class="checkbox">
|
<input type="checkbox" id="remember" name="remember" />
|
<label for="remember">Remember me</label>
|
</div>
|
</div>
|
-->
|
<div class="buttons">
|
<input type="submit" value="Sign In" />
|
</div>
|
</div>
|
<!-- end fields -->
|
<!-- links -->
|
<!--
|
<div class="links">
|
<a href="index.html">Forgot your password?</a>
|
</div>
|
-->
|
<!-- end links -->
|
</div>
|
</form>
|
</div>
|
<!-- end login -->
|
<!--
|
<div id="colors-switcher" class="color">
|
<a href="" class="blue" title="Blue"></a>
|
<a href="" class="green" title="Green"></a>
|
<a href="" class="brown" title="Brown"></a>
|
<a href="" class="purple" title="Purple"></a>
|
<a href="" class="red" title="Red"></a>
|
<a href="" class="greyblue" title="GreyBlue"></a>
|
</div>
|
-->
|
</div>
|
</body>
|
</html>
|