You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
289 lines
14 KiB
HTML
289 lines
14 KiB
HTML
<!DOCTYPE html
|
|
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
<title>
|
|
用户登录
|
|
</title>
|
|
<link href="theme/style.css" type="text/css" rel="Stylesheet" media="screen" />
|
|
<link href="theme/dhtmlxcombo.css" type="text/css" rel="Stylesheet" media="screen" />
|
|
<link rel="icon name" href="TruckMng/Content/Images/dsico.ico" />
|
|
<link rel="shortcut icon" href="TruckMng/Content/Images/ds.png" type="image/x-icon" />
|
|
<link href="Css/login.css" rel="Stylesheet" type="text/css" />
|
|
<script type="text/javascript" src="js/dhtmlxcommon.js"></script>
|
|
<script type="text/javascript" src="js/dhtmlxcombo.js"></script>
|
|
<script type="text/javascript" src="js/dhtmlxcombo_whp.js"></script>
|
|
<script type="text/javascript">
|
|
function load() {
|
|
window.location.href = "Web/Site/Index.aspx";
|
|
|
|
}
|
|
|
|
var comboCUSTOMERNAME; //分公司
|
|
var comboCODENAME; //分公司人员
|
|
var mydate = new Date();
|
|
var year = mydate.getFullYear();
|
|
|
|
window.onload = function () {
|
|
|
|
if (!document.getElementById('CheckBox2').checked) {
|
|
//document.getElementById('list_CODENAME').value = '';
|
|
document.getElementById('tbpassword').value = '';
|
|
}
|
|
var rnd = Math.floor(Math.random() * 5 + 1);
|
|
switch (rnd) {
|
|
case 1:
|
|
document.getElementById("img1").style.display = "block";
|
|
break;
|
|
case 2:
|
|
document.getElementById("img2").style.display = "block";
|
|
break;
|
|
case 3:
|
|
document.getElementById("img3").style.display = "block";
|
|
break;
|
|
case 4:
|
|
document.getElementById("img4").style.display = "block";
|
|
break;
|
|
case 5:
|
|
document.getElementById("img5").style.display = "block";
|
|
break;
|
|
}
|
|
document.getElementById("lblCopyYear").innerHTML = year;
|
|
}
|
|
|
|
function $(id) {
|
|
return document.getElementById(id);
|
|
}
|
|
function initComboSubcompany()//分公司
|
|
{
|
|
|
|
|
|
if ($("list_subcompany").value != "") {
|
|
var loader = dhtmlxAjax.getSync("FeeCodes/CompanysAdapter.aspx?mask=0&pos=0&ISDISABLE=0&ISDELETED=0&login=login&codename=" + $("list_subcompany").value + "&val=" + newGuid());
|
|
var strC = loader.xmlDoc.responseText;
|
|
if (strC == "") {
|
|
$("lb_subcompany").value = "无此分公司!";
|
|
}
|
|
else {
|
|
$("lb_subcompany").value = strC;
|
|
}
|
|
}
|
|
else {
|
|
$("lb_subcompany").value = "";
|
|
}
|
|
//
|
|
if ($("list_CODENAME").value != "") {
|
|
var loader = dhtmlxAjax.getSync("FeeCodes/UserAdapter.aspx?mask=0&pos=0&login=login&strSubcompany=" + $("list_subcompany").value + "&username=" + $("list_CODENAME").value + "&val=" + newGuid());
|
|
var strU = loader.xmlDoc.responseText;
|
|
if (strU == "") {
|
|
$("lb_CODENAME").value = "无此用户!";
|
|
}
|
|
else {
|
|
$("lb_CODENAME").value = strU;
|
|
}
|
|
}
|
|
else {
|
|
$("lb_CODENAME").value = "";
|
|
}
|
|
//
|
|
}
|
|
function newGuid() {
|
|
var guid = "";
|
|
for (var i = 1; i <= 32; i++) {
|
|
var n = Math.floor(Math.random() * 16.0).toString(16);
|
|
guid += n;
|
|
if ((i == 8) || (i == 12) || (i == 16) || (i == 20))
|
|
guid += "-";
|
|
}
|
|
return guid.toUpperCase();
|
|
}
|
|
function KeyDown(btn) {
|
|
if (event.keyCode == 13) {
|
|
if ($("list_subcompany").value != "" && $("list_CODENAME").value != "" && $("tbpassword").value != "") {
|
|
|
|
try {
|
|
__doPostBack(btn, '');
|
|
return false;
|
|
}
|
|
catch (e) {
|
|
alert(e);
|
|
return;
|
|
}
|
|
}
|
|
}
|
|
else if (event.keyCode == 9) //Tab键控制
|
|
{
|
|
if (event.srcElement.id == 'list_subcompany') {
|
|
document.getElementById('list_CODENAME').focus();
|
|
return false;
|
|
}
|
|
}
|
|
return true;
|
|
}
|
|
function login() {
|
|
var e = e || window.event;
|
|
if (e.keyCode == 13) {
|
|
document.getElementById("btLogin").click();
|
|
}
|
|
}
|
|
</script>
|
|
</head>
|
|
|
|
<body>
|
|
<form name="form1" method="post" action="./login.aspx" id="form1">
|
|
<div>
|
|
<input type="hidden" name="__EVENTTARGET" id="__EVENTTARGET" value="" />
|
|
<input type="hidden" name="__EVENTARGUMENT" id="__EVENTARGUMENT" value="" />
|
|
<input type="hidden" name="__LASTFOCUS" id="__LASTFOCUS" value="" />
|
|
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE"
|
|
value="/wEPDwUKLTcyNzM0MDU5OA9kFgICAw9kFggCAQ8QZGQWAWZkAgQPFgIeBXZhbHVlBQzpnZLlspvkuJzog5xkAgcPFgIfAAUJ6KGj5Zu96LGqZAINDxAPFgIeB0NoZWNrZWRoZGRkZBgBBR5fX0NvbnRyb2xzUmVxdWlyZVBvc3RCYWNrS2V5X18WAgUJQ2hlY2tCb3gxBQlDaGVja0JveDJ2bGKtZqlIu7IXU4tMZgdbhMKHC9ZgjWLCcT1u8UDFJg==" />
|
|
</div>
|
|
|
|
<script type="text/javascript">
|
|
//<![CDATA[
|
|
var theForm = document.forms['form1'];
|
|
if (!theForm) {
|
|
theForm = document.form1;
|
|
}
|
|
function __doPostBack(eventTarget, eventArgument) {
|
|
if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
|
|
theForm.__EVENTTARGET.value = eventTarget;
|
|
theForm.__EVENTARGUMENT.value = eventArgument;
|
|
theForm.submit();
|
|
}
|
|
}
|
|
//]]>
|
|
</script>
|
|
|
|
|
|
<div>
|
|
|
|
<input type="hidden" name="__VIEWSTATEGENERATOR" id="__VIEWSTATEGENERATOR" value="C2EE9ABB" />
|
|
<input type="hidden" name="__EVENTVALIDATION" id="__EVENTVALIDATION"
|
|
value="/wEdAA1xS8B6rQ5ko/Swv1T15kGgRt0x1OZC3OHiBKjit6iuktRffZob9NjgOmT46zV/4eW2RkP+i4Q9cu2ucjvbcqGejoNPCADP6kw3F8YW4t0m9LUeOODh0APn3hvERf2hm57FxrNm0sJVUoykupQhsZtHhTEjlM0pr7xSM6GutDpfys/5Jhuk+cqJWHwxCi8B912hEKvuPXQE3IwHHll3A7iHpmNojsZ+tRSkbRvi3ZsKZ7QZGpF9t2AMhbZ20iyvqtui7c8d+SPBnvYjdu1GYhDk/rksq68gmUmdbj6RdIFMQr2Q/8IttjGg0WiSRTHiGyw=" />
|
|
</div>
|
|
<div class="topContainer">
|
|
<div class="top">
|
|
<img src="images/signICO.gif" width="340" height="80" border="0" />
|
|
<div class="lanContain" style="display: none;">
|
|
<select name="selLan"
|
|
onchange="javascript:setTimeout('__doPostBack(\'selLan\',\'\')', 0)"
|
|
id="selLan" class="listLogin" style="width:120px;">
|
|
<option selected="selected" value="Chinese">中文</option>
|
|
<option value="English">English</option>
|
|
|
|
</select>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="mainContainer">
|
|
<div class="mainLeft"><img id="img1" src="images/loginImg/rndImg01.jpg" width="600" height="410" border="0"
|
|
style="display:none;" /><img id="img2" src="images/loginImg/rndImg02.jpg" width="600" height="410"
|
|
border="0" style="display:none;" /><img id="img3" src="images/loginImg/rndImg03.jpg" width="600"
|
|
height="410" border="0" style="display:none;" /><img id="img4" src="images/loginImg/rndImg04.jpg"
|
|
width="600" height="410" border="0" style="display:none;" /><img id="img5"
|
|
src="images/loginImg/rndImg05.jpg" width="600" height="410" border="0" style="display:none;" />
|
|
</div>
|
|
<div class="mainRight">
|
|
<div class="mainRightTitle">
|
|
<div class="tab active">快速登陆</div>
|
|
<div class="tab">手机号登陆</div>
|
|
</div>
|
|
<ul class="loginUL conAvtive">
|
|
<li class="loginTextLI" style="display: none;">
|
|
<ul class="loginTextUL">
|
|
<li class="loginTextTitleLI">公司代码</li>
|
|
<li class="loginTextContainerLI" style="position:relative;"><input name="list_subcompany"
|
|
type="text" value="QDDS" maxlength="10" id="list_subcompany" class="textLogin"
|
|
onblur="initComboSubcompany();" /><input name="lb_subcompany" type="text"
|
|
id="lb_subcompany"
|
|
style="position:absolute;top:50px;left:0;z-index:1000;border-style: none; border-color: #FFFFFF; font-size: 12px; width:200px;"
|
|
disabled="disabled" readonly="readonly" value="青岛东胜" /></li>
|
|
</ul>
|
|
</li>
|
|
<li class="loginTextLI" style="margin-top:30px">
|
|
<ul class="loginTextUL">
|
|
<li class="loginTextTitleLI">用 户 名</li>
|
|
<li class="loginTextContainerLI" style="position:relative;"><input name="list_CODENAME"
|
|
type="text" maxlength="20" id="list_CODENAME" class="textLogin"
|
|
onblur="initComboSubcompany();" /><input name="lb_CODENAME" type="text"
|
|
id="lb_CODENAME"
|
|
style="position:absolute;top:50px;left:0;z-index:1000;border-style: none; border-color: #FFFFFF; font-size: 12px; width:200px;"
|
|
disabled="disabled" readonly="readonly" /></li>
|
|
</ul>
|
|
</li>
|
|
<li class="loginTextLI">
|
|
<ul class="loginTextUL">
|
|
<li class="loginTextTitleLI">密 码</li>
|
|
<li class="loginTextContainerLI"><input name="tbpassword" type="password" id="tbpassword"
|
|
class="textLogin" onkeydown="login();" /></li>
|
|
</ul>
|
|
</li>
|
|
<li class="loginParamLI"><input id="CheckBox1" type="checkbox" name="CheckBox1"
|
|
checked="checked" /><label for="CheckBox1">记住公司代码和员工编码</label> <input
|
|
id="CheckBox2" type="checkbox" name="CheckBox2" /><label for="CheckBox2">记住密码</label></li>
|
|
<!--Checked=true-->
|
|
<li class="loginBtnLI" style="margin-left:80px">
|
|
<a id="btLogin" class="btnLogin" href="javascript:__doPostBack('btLogin','')"
|
|
style="float:left;width:120px">登录</a>
|
|
<a id="btnSign" class="btnLogin" href="javascript:__doPostBack('btnSign','')"
|
|
style="width:120px;">注册</a>
|
|
</li>
|
|
</ul>
|
|
<ul class="loginUL">
|
|
<li class="loginTextLI" style="margin-top:30px">
|
|
<ul class="loginTextUL">
|
|
<li class="loginTextTitleLI">手 机 号</li>
|
|
<li class="loginTextContainerLI" style="position:relative;">
|
|
<input name="list_CODENAME"
|
|
type="text" maxlength="20" id="list_CODENAME" class="textLogin" /><input
|
|
name="lb_CODENAME" type="text" id="lb_CODENAME"
|
|
style="position:absolute;top:50px;left:0;z-index:1000;border-style: none;
|
|
border-color: #FFFFFF; font-size: 12px; width:200px;"
|
|
disabled="disabled" readonly="readonly" />
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
<li class="loginTextLI">
|
|
<ul class="loginTextUL">
|
|
<li class="loginTextTitleLI">验 证 码</li>
|
|
<li class="loginTextContainerLI">
|
|
<input name="tbpassword" type="password" id="tbpassword" class="textLogin" />
|
|
<div class="send_btn">发送</div>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
<li class="loginBtnLI" style="margin-left:80px">
|
|
<a id="btLogin" class="btnLogin" href="javascript:__doPostBack('btLogin','')"
|
|
style="float:left;width:120px">登录</a>
|
|
</li>
|
|
</ul>
|
|
|
|
</div>
|
|
</div>
|
|
<div class="foot">Copyright © <span
|
|
id="lblCopyYear"></span> Dongshengsoft Inc. All Rights Reserved.<br />青岛东胜伟业软件有限公司 版权所有
|
|
</div>
|
|
<script type="text/javascript" src="js/jquery/jquery-1.5.2.min.js"></script>
|
|
<script type="text/javascript">
|
|
$(".mainRightTitle .tab").bind("click", function () {
|
|
var divs = $(".loginUL")
|
|
var lis = $(".mainRightTitle .tab")
|
|
lis.removeClass('active')
|
|
$(this).addClass('active')
|
|
for (var i = 0; i < lis.length; i++) {
|
|
if (lis[i] == this) {
|
|
divs.removeClass('conAvtive')
|
|
divs.eq(i).addClass('conAvtive')
|
|
}
|
|
}
|
|
})
|
|
</script>
|
|
<script type='text/javascript'>document.getElementById('tbpassword').value = '';</script>
|
|
</form>
|
|
</body>
|
|
|
|
</html> |