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.

304 lines
15 KiB
Plaintext

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="LoginEB.aspx.cs" Inherits="DSWeb.LoginEB" %>
<!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 id="Head1" runat="server">
<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"/>
<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" src="../js/bookmark.js"></script>
<script type="text/javascript">
function $(id)
{
return document.getElementById(id);
}
//两端去空格函数
String.prototype.trim = function () { return this.replace(/(^\s*)|(\s*$)/g, ""); }
function KeyDown(btn)
{
if(event.keyCode == 13)
{
if($("tbLOGINNAME").value != "" && $("tbLOGINPASSWORD").value != "")
{
try
{
//__doPostBack(btn, '');
getlbLogin3();
return false;
}
catch (e)
{
alert(e);
return;
}
}
}
else if(event.keyCode==9) //Tab键控制
{
if(event.srcElement.id == 'tbLOGINNAME')
{
document.getElementById('tbLOGINPASSWORD').focus();
return false;
}
}
return true;
}
function ShowChangePwd()
{
var URLs = "Accounts/ClientChangePassword.aspx";
window.open(URLs,"运价客户修改密码", "height=240, width=100, toolbar=no, menubar=no,scrollbars=no, resizable=0,location=no, status=no,Top= " +(screen.height/2-100) + ",Left= "+(screen.width/2-100));
}
function lbfogetMouseOver()
{
document.getElementById('lbfoget').style.color = "#0000FF";
document.getElementById('lbfoget').style.cursor = "hand";
document.getElementById('lbfoget').style["textDecoration"] = "underline";
}
function lbfogetMouseOut()
{
document.getElementById('lbfoget').style.color = "#75787C";
document.getElementById('lbfoget').style.cursor = "auto";
document.getElementById('lbfoget').style["textDecoration"] = "";
}
function getlbClien()//游客
{
// document.getElementById('tbLOGINNAME').innerText = "";
// document.getElementById('tbLOGINPASSWORD').innerText = "";
$("tbLOGINNAME").value = "";
$("tbLOGINPASSWORD").value = "";
if(confirm('如果注册能看到更低的价格,要注册信息吗?'))
{
ShowSignIn();
}
else
{
var sopname = dhtmlxAjax.getSync("../FeeCodes/LoginEBAdapter.aspx?handle=youke&val="+newGuid());
var sopname2 = sopname.xmlDoc.responseText;
if(sopname2!="")
{
window.location.href=sopname2;
}
}
}
function ShowSignIn()//注册
{
var URLs = "Accounts/ClientSignIn.aspx?handle=add";
window.open(URLs,"运价客户注册", "height=500, width=280, toolbar=no, menubar=no,scrollbars=no, resizable=0,location=no, status=no,Top= " +(screen.height/2-300) + ",Left= "+(screen.width/2-100));//360
}
function getlbLogin3()//登陆
{
if($("tbLOGINNAME").value == "" || $("tbLOGINPASSWORD").value == "")
{
alert("用户名、密码不能为空,请重新登陆!");
return;
}
//
var ck=document.getElementsByName("CheckBox1");
var CheckBox1="0";
if(ck[0].checked)
{
CheckBox1 = "1";
}
else
{
CheckBox1 = "0";
}
//
var sopname = dhtmlxAjax.getSync("../FeeCodes/LoginEBAdapter.aspx?handle=logineb&tbLOGINNAME="+escape($("tbLOGINNAME").value)+"&tbLOGINPASSWORD="+escape($("tbLOGINPASSWORD").value)+"&CheckBox1="+escape(CheckBox1)+"&val="+newGuid());
var sopname2 = sopname.xmlDoc.responseText;
if (sopname2.trim().indexOf("PriceSearch") > 0)
{
var shref = location.href;
var s1 = shref.substr(7);
var i1 = s1.indexOf("/");
var s2 = s1.substr(0, i1);
sopname2 = "http://"+s2+sopname2;
window.location.href = sopname2;
}
else
{
alert(sopname2);
}
}
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 ForgetPwd()
{
var URLs = "Accounts/ForgetPassWord.aspx";
window.open(URLs,"运价客户忘记密码", "height=250, width=330, toolbar=no, menubar=no,scrollbars=no, resizable=0,location=no, status=no,Top= " +(screen.height/2-100) + ",Left= "+(screen.width/2-100));
}
// window.onbeforeunload=function window.onbeforeunload()
// {
// if(window.confirm('确定要收藏此页面?'))
// {
// window.external.AddToFavoritesBar('http://hmw028167.chinaw3.com','衍六运价查询');
// //window.external.addFavorite('http://hmw028167.chinaw3.com','衍六运价查询');
// //http://hmw028167.chinaw3.com/login.aspx
// }
// }
//
// window.onbeforeunload = function()
// {
// if(window.confirm("abc"))
// {
// alert("bbbbb");
// if (document.all)
// {
// alert("gggg");
// window.external.AddToFavoritesBar('http://hmw028167.chinaw3.com','衍六运价查询');
// }
// setTimeout(function(){},2000);
// alert("cccc");
// }
// }
// window.onbeforeunload = function()
// {
// if((event.clientX>document.body.clientWidth&&event.clientY<0)||event.altKey)
// {
// window.external.addToFavoritesBar('http://hmw028167.chinaw3.com','衍六运价查询','slice');
//// var URLs = "ShowFavorite.aspx";
//// window.open(URLs,"收藏夹", "height=250, width=330, toolbar=no, menubar=no,scrollbars=no, resizable=0,location=no, status=no,Top= " +(screen.height/2-100) + ",Left= "+(screen.width/2-100));
//
//// document.getElementById("Button1").click();
//// setTimeout(function(){},5000);
// }
// }
// window.onbeforeunload=function window.onbeforeunload()
// {
//if (event.clientX>document.body.clientWidth && event.clientY<0||event.altKey)
//{
////window.event.returnValue="确认结束当前会话?";
// external.addFavorite('http://hmw028167.chinaw3.com','衍六运价查询');
//}
////}
//function Addme(){
//if (window.confirm("是否收藏该网站")){
//if (document.all)http://www.baidu.com
//window.external.AddFavorite("","baidu");}
//window.config.timer=window.setTimeout('sbprint()',window.config.delay);
//}
</script>
<script language="javascript" type="text/javascript">
function $(id) {
return document.getElementById(id);
}
function ShowAbout() {
if ($("hdISAbout").value == "0" || $("hdISAbout").value == "")//企业简介为空
{
document.getElementById('divqyjj').style.visibility = "hidden";
document.getElementById('divqyjj').style.display = "none";
}
else//为空
{
document.getElementById('divqyjj').style.visibility = "visible";
document.getElementById('divqyjj').style.display = "";
}
}
</script>
</head>
<body onload="ShowAbout();" onfilterchange="bookmark();">
<form id="form1" runat="server" onkeydown="return KeyDown('btLogin')">
<div align=center style="width:100%; height:100%;margin-top:120px">
<table>
<tr>
<td colspan="2" style="vertical-align: middle; text-align:left;" >
<img src="images/logodengsheng.gif"/>
</td>
</tr>
<tr>
<td>
<table style="border-style: solid; border-width: inherit">
<tr>
<td height="10" colspan="4"></td>
<td align=left style="color: #1E89BF; font-size: small;" rowspan="7">
<div runat=server id="divqyjj" style="display:none;">
<dl>企业介绍:</dl>
<iframe src="About.aspx" name="about" width="520px"
height="300px" align="top" scrolling="Auto" marginwidth="0" marginheight=0 marginwidth=0
style="padding: 0px; margin: 0px; border-style: none;" frameborder=0></iframe>
</div>
</td>
<td></td>
</tr>
<tr>
<td valign=top>
<table>
<tr>
<td></td>
<td align=right style="color: #1E89BF; font-size: 12px;">客户代码:</td>
<td align=left>
<asp:TextBox ID="tbLOGINNAME" runat="server" Width=150px
style="background:url(Images/login_6.gif) repeat-x; border:solid 1px #6699CC; height:20px; background-color:#FFFFFF"
size="12" MaxLength=20></asp:TextBox>
</td>
<td width=50px></td>
</tr>
<tr>
<td></td>
<td align=right style="color: #1E89BF; font-size: 12px;">登陆密码:</td>
<td align=left>
<asp:TextBox ID="tbLOGINPASSWORD" runat="server" Width=150px
style="background:url(Images/login_6.gif) repeat-x; border:solid 1px #6699CC; height:20px; background-color:#FFFFFF"
size="12" TextMode="Password" MaxLength=150></asp:TextBox>
</td>
<td width=50px></td>
</tr>
<tr>
<td></td>
<td align=left style="color: #1E89BF; font-size:12px;" colspan=2>
<asp:CheckBox ID="CheckBox1" runat="server" Text="记住登陆信息" Checked=true />
</td>
<td width=50px></td>
</tr>
<tr height=40px>
<td></td>
<td colspan="2" align="center" valign=bottom>
<input id="lbLogin3" type="button" value="客户登录" style="border-style: none; background: url(Images/login_5.gif) no-repeat; font-size:12px; text-decoration:none; line-height:23px; height:23px; width:70px; color:#137DD7" onclick="getlbLogin3();" />
<!--<input id="lbClien" type="button" value="游客登录" style="border-style: none; background: url(Images/login_5.gif) no-repeat; font-size:12px; text-decoration:none; line-height:23px; height:23px; width:70px; color:#137DD7" onclick="getlbClien();" />-->
&nbsp;&nbsp;&nbsp;&nbsp;
<input id="btSignIn" type="button" value="注册" style="border-style: none; background: url(Images/login_5.gif) no-repeat; font-size:12px; text-decoration:none; line-height:23px; height:23px; width:70px; color:#137DD7" onclick="ShowSignIn();" />
</td>
<td></td>
</tr>
<tr height=30px>
<td></td>
<td colspan="2" align=left valign=bottom>
<img src="Images/tip.gif"><input id="lbfoget" type="button" value="忘记密码" style="border-style: none; text-decoration: none; font-size: 12px; background-color: #FFFFFF; color: #137DD7; width: 60px;" onmouseover="lbfogetMouseOver();" onMouseOut="lbfogetMouseOut();" onclick="ForgetPwd();"/>
</td>
<td></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</div>
<div>
<input id="Button1" type="button" value="button" onclick="window.external.addFavorite('http://hmw028167.chinaw3.com','衍六运价查询')" style="visibility:hidden;"/>
<input type="hidden" id="hdISAbout" runat="server" /> </div>
</form>
</body>
</html>