📄 admin_login.aspx
字号:
<%@ Page language="c#" Codebehind="admin_login.aspx.cs" AutoEventWireup="false" Inherits="Websystem.admin.admin_login" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<HTML>
<HEAD id="Head1">
<title>后台登陆 </title>
<link href="../css/css1.css" rel="stylesheet" type="text/css">
<link rel="stylesheet" href="../css/css.css" type="text/css">
<script language="javascript">
function chkinput()
{
// alert(document.all.u_power1.checked );
if(document.all.u_id.value.length<1 || document.all.u_pas.value.length<1){
alert("用户名或者密码长度不能为空!");
return false;
}else if(document.all.chkcode.value.length<1)
{
// alert("验证码不能为空");
return false;
}
else{
return true;
}
}
</script>
</HEAD>
<body onload="<%=str %>" >
<form id="form1" runat="server" onsubmit="chkinput()">
<div>
<div align="center">
<p>
</p>
<TABLE style="TABLE-LAYOUT: fixed" height="100" cellSpacing="0" cellPadding="0" width="300"
border="0">
<TBODY>
<TR height="3" width="100%">
<TD>
<TABLE style="TABLE-LAYOUT: fixed" height="3" cellSpacing="0" cellPadding="0" width="100%"
border="0">
<TBODY>
<TR height="1">
<TD width="1"></TD>
<TD width="1"></TD>
<TD width="1"></TD>
<TD bgColor="#dcdcdc"></TD>
<TD width="1"></TD>
<TD width="1"></TD>
<TD width="1"></TD>
</TR>
<TR height="1">
<TD></TD>
<TD bgColor="#dcdcdc" colSpan="2"></TD>
<TD bgColor="#f7f8f9"></TD>
<TD bgColor="#dcdcdc" colSpan="2"></TD>
<TD></TD>
</TR>
<TR height="1">
<TD></TD>
<TD bgColor="#dcdcdc"></TD>
<TD bgColor="#f7f8f9" colSpan="3"></TD>
<TD bgColor="#dcdcdc"></TD>
<TD></TD>
</TR>
</TBODY>
</TABLE>
</TD>
</TR>
<TR>
<TD>
<TABLE style="TABLE-LAYOUT: fixed" height="100%" cellSpacing="0" cellPadding="0" border="0">
<TBODY>
<TR>
<TD width="1" bgColor="#dcdcdc"></TD>
<TD id="oINNER" bgColor="#ffffff">
<table border="0" width="100%" id="table1" cellspacing="0" cellpadding="0" height="100%">
<tr>
<td height="24" colspan="3" align="left">
<font color="#999999"><b> 后台登陆</b></font></td>
</tr>
<tr>
<td bgcolor="#ffffff" align="center">
<div>
<script language="javascript">
<!--
function gourl(e){
switch(e){
case 1:
window.alert("点击了确定按钮.");
break;
case 2:
break;
case 3:
window.alert("点击了其它按钮.");
break;
default:
break;
}
}
function showalert(title,msg){
var Br = new innerMessageBox();
Br.ShowModal(title, msg, 320, 120, "gourl($)");
}
//-->
</script>
<script>
<!--
function innerMessageBox(){
var BackObject, FormObject;
// 检查页面中是否存在该控件.
function checkIMBObject(){
if (document.getElementById("imb_Background")==null){
document.body.innerHTML += "<iframe id=\"imb_Background\" src=\"about:blank\" style=\"position:absolute;left:0;top:0;width:0px;height:0px;visibility:hidden;\" frameborder=\"0\"></iframe>";
window.imb_Background.document.open();
window.imb_Background.document.write("<html><body bgcolor=red> sdfasdfasdf</body></html>");
window.imb_Background.document.close();
}
if (document.getElementById("imb_FormModal")==null){
document.body.innerHTML += "<iframe id=\"imb_FormModal\" src=\"about:blank\" style=\"position:absolute;left:0;top:0;width:0px;height:0px;visibility:hidden;border-bottom:2px solid #999999;border-right:2px solid #999999;border-top:1px solid #F8F6C1;border-left:1px solid #F8F6C1;\" frameborder=\"0\"></iframe>";
window.imb_FormModal.document.open();
window.imb_FormModal.document.write("<html><head><style><!--");
window.imb_FormModal.document.write("td{font-size:12px;");
window.imb_FormModal.document.write("//--></style></head><body scroll=no leftmargin=0 topmargin=0>");
window.imb_FormModal.document.write("<table width=100% height=100% bgcolor=\"#eeeeee\"><tr><td align=left bgcolor=#3A80F3><div id=\"imb_Title\" style=\"padding-left:3px;padding-right:3px;color:white;font-family:verdana;\">");
window.imb_FormModal.document.write("</div></td></tr><tr><td align=left><div id=\"imb_Content\" style=\"padding:7px;\">");
window.imb_FormModal.document.write("</div></td></tr><tr><td id=\"imb_Body\" align=center>");
window.imb_FormModal.document.write("</td></tr></table>");
window.imb_FormModal.document.write("</body></html>");
window.imb_FormModal.document.close();
}
}
// 显示对话框控件.
this.ShowModal = function(iCaption, iMessage, iWidth, iHeight, iClickFunc, iOther){
var smWidth = 420, smHeight = 180, smCaption = "默认对话框", smMessage="您确定执行这项操作吗?", smFunc, smObject, smAlpha, smInterval;
if (arguments.length > 4 ){
smWidth = iWidth;
smHeight = iHeight;
smCaption = iCaption;
smMessage = iMessage;
smFunc = iClickFunc;
}
// 背景的渐显.
function checkIMBAlpha(){
smObject.style.filter = "alpha(opacity="+smAlpha+");";
smAlpha += 10;
if (smAlpha>80){
clearInterval(smInterval);
}
}
checkIMBObject();
this.BackObject = document.getElementById("imb_Background");
this.FormObject = document.getElementById("imb_FormModal");
smObject = this.BackObject;
smAlpha = 0;
this.BackObject.style.left = 0;
this.BackObject.style.top = 0;
this.BackObject.style.width = document.body.scrollWidth;
this.BackObject.style.height = document.body.scrollHeight;
this.BackObject.style.visibility = "visible";
smInterval = window.setInterval(checkIMBAlpha, 5);
this.FormObject.style.left = document.body.clientWidth/2 - smWidth/2;
this.FormObject.style.top = document.body.clientHeight/2 - smHeight/2;
this.FormObject.style.width = smWidth;
this.FormObject.style.height = smHeight;
this.FormObject.style.visibility = "visible";
window.imb_FormModal.document.getElementById("imb_Title").innerHTML = "<b>" + smCaption + "</b>" + " -- 操作提示";
window.imb_FormModal.document.getElementById("imb_Content").innerHTML = smMessage;
if (iOther==null || iOther==""){
window.imb_FormModal.document.getElementById("imb_Body").innerHTML = "<input type=hidden id=imb_Other name=imb_Other shortKey=\"O\"> <input type=hidden id=imb_Ok name=imb_Ok value=\"确定\" shortKey=\"T\"> <input type=button id=imb_Cancel name=imb_Cancel value=\"确定\" shortKey=\"C\">";
}else{
window.imb_FormModal.document.getElementById("imb_Body").innerHTML = "<input type=button id=imb_Other name=imb_Other value="+iOther+" shortKey=\"O\"> <input type=hidden id=imb_Ok name=imb_Ok value=\"确定\" shortKey=\"T\"> <input type=button id=imb_Cancel name=imb_Cancel value=\"确定\" shortKey=\"C\">";
}
document.body.disabled = true;
window.imb_FormModal.document.getElementById("imb_Ok").onclick= function(){
parent.document.body.disabled = false;
if (smFunc!=null && smFunc!=""){
eval("parent." + smFunc.replace("$","1"));
}
parent.document.getElementById("imb_Background").style.visibility = "hidden";
parent.document.getElementById("imb_FormModal").style.visibility = "hidden";
}
window.imb_FormModal.document.getElementById("imb_Cancel").onclick= function(){
if (smFunc!=null && smFunc!=""){
eval("parent." + smFunc.replace("$","2"));
}
parent.document.body.disabled = false;
parent.document.getElementById("imb_Background").style.visibility = "hidden";
parent.document.getElementById("imb_FormModal").style.visibility = "hidden";
}
window.imb_FormModal.document.getElementById("imb_Other").onclick= function(){
if (smFunc!=null && smFunc!=""){
eval("parent." + smFunc.replace("$","3"));
}
parent.document.body.disabled = false;
parent.document.getElementById("imb_Background").style.visibility = "hidden";
parent.document.getElementById("imb_FormModal").style.visibility = "hidden";
}
}
}
//-->
</script>
<table border="0" width="193" id="table1" cellspacing="0" cellpadding="0" height="100">
<tr>
<td align="right" height="25">用户名:</td>
<td>
<input type="text" name="u_id" size="13" id="u_id" class="InputText"></td>
</tr>
<tr>
<td align="right" height="25">密 码:</td>
<td>
<input type="password" name="u_pas" size="13" id="u_pas" class="InputText"></td>
</tr>
<tr>
<td align="right" height="25">验证码:</td>
<td><input type="text" name="chkcode" size="4" class="InputText">
<asp:Image id="imgCode" runat="server" ImageUrl="../gif.aspx" /></td>
</tr>
<tr>
<td colspan="2" align="center" height="25">
<input type="submit" value="提交" name="B1" class="button11"> <input type="reset" value="重置" name="B2" class="button11"></td>
</tr>
</table>
</div>
</td>
</tr>
</table>
</TD>
<TD width="1" bgColor="#dcdcdc"></TD>
</TR>
</TBODY>
</TABLE>
</TD>
</TR>
<TR height="3" width="100%">
<TD>
<TABLE style="TABLE-LAYOUT: fixed" height="3" cellSpacing="0" cellPadding="0" width="100%"
border="0">
<TBODY>
<TR height="1">
<TD width="1"></TD>
<TD width="1" bgColor="#dcdcdc"></TD>
<TD width="1" bgColor="#f7f8f9"></TD>
<TD bgColor="#f7f8f9"></TD>
<TD width="1" bgColor="#f7f8f9"></TD>
<TD width="1" bgColor="#dcdcdc"></TD>
<TD width="1"></TD>
</TR>
<TR height="1">
<TD></TD>
<TD bgColor="#dcdcdc" colSpan="2"></TD>
<TD bgColor="#f7f8f9"></TD>
<TD bgColor="#dcdcdc" colSpan="2"></TD>
<TD></TD>
</TR>
<TR height="1">
<TD colSpan="3"></TD>
<TD bgColor="#dcdcdc"></TD>
<TD colSpan="3"></TD>
</TR>
</TBODY>
</TABLE>
</TD>
</TR>
</TBODY>
</TABLE>
</div>
</form>
</DIV>
<p align="center"><font color="#FF0000">登陆帐号和密码皆为:admin</font></p>
</body>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -