📄 adminlogin.asp
字号:
<%response.Expires=-1%>
<html>
<head><title>管理员登录</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script language="javascript">
function chkfields(){
if(document.myform.username.value==''){
alert("管理员名称不能为空");
document.myform.username.focus();
return false;
}
if(document.myform.userpass.value==''){
alert("管理员密码不能为空");
document.myform.userpass.focus();
return false;
}
return true;
}
function take(){
window.open("take1.asp","投票设置","width=500,height=310");
}
function out(){
window.open("logout1.asp","","width=0,height=0");
}
function deluser(){
window.open("deluser.asp","","scrollbars=yes,width=720,height=400,left=0,top=0");
}
</script>
<style type="text/css">
<!--
.style3 {
color: #FFFFFF;
font-weight: bold;
}
.style4 {
font-size: 12px;
font-weight: bold;
}
-->
</style>
<link rel="stylesheet" href="css/style.css" type="text/css">
<!--#INCLUDE FILE="conn/conn.asp"-->
<!--#include file="js.asp"-->
</head>
<body topmargin="0" leftmargin="4" bgcolor="#FDFDFD">
<table width="799" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><!--#include file="adminlogin_top.asp" --></td>
</tr>
<tr>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td rowspan="3" valign="top" width="160">
<!--#include file="sort_left.asp"-->
</div></td>
<form action="search.asp" method="post" name="form1">
<td width="637" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#818181">
<tr>
<td width="54%" height="41" align="right" valign="middle" bgcolor="#EAEAEA">
<select name="sfield" id="select">
<option value="Barcode">条形码</option>
<option value="BookName">书名</option>
<option value="bookconcern">出版社</option>
<option value="kind">图书类型</option>
<option value="author">作者</option>
</select>
<select name="mode" id="mode">
<option value="==">等于</option>
<option value="like">Like</option>
</select>
<input type="text" name="cValue" id="cValue" size="30" style="border-style:1px solid #000000">
<input name="search" type="image" src="images/search.gif" style="cursor:hand">
</td>
</tr>
</table>
</td>
</form>
</tr>
<tr>
<td width="637" height="453" valign="top"><div align="left">
<table width="99%" border="0" align="center" cellpadding="4" cellspacing="1" bgcolor="#FFCC33">
<tr>
<td height="445" align="center" valign="top" bgcolor="#FFFFFF"><br>
<br>
<br>
<%
if session("passed")="" then
session("passed")=false
end if
if session("passed")=false then
%>
<table width="350" border="1" cellpadding="4" cellspacing="1" bordercolor="#FFCC66" bordercolordark="#FFFFFF">
<tr>
<td height="33" align="center" bgcolor="#3399CC"><span class="style3">
<%
if session("msg")<>"" then
response.write session("msg")
else
response.write "管理员登录"
end if
%>
</span> </td>
</tr>
<tr>
<td bgcolor="#f5f5f5">
<br>
<form action="admincheck.asp" name="myform" onSubmit="return chkfields();">
<table width="80%" border="0" align="center" cellpadding="8" cellspacing="1" bgcolor="#336699">
<tr bgcolor="#FFFFFF">
<td>管理员名称:</td>
<td><input type="text" name="username" size="20" maxlength="50" style="border:1px solid #000000"></td>
</tr>
<tr bgcolor="#FFFFFF">
<td>管理员密码:</td>
<td><input type="password" name="userpass" size="20" maxlength="50" style="border:1px solid #000000 "></td>
</tr>
<tr bgcolor="#F5F5F5">
<td colspan="2">
<div align="center">
<input type="submit" name="b1" value="确定" class="showBtn">
<input type="reset" name="b2" value="取消" class="showBtn">
</div></td>
</tr>
</table>
</form>
<br>
<div align="center"></div></td>
</tr>
</table>
<%
end if
if session("passed")=true then
%>
<table border="0" cellpadding="15" cellspacing="1" bgcolor="#CCCCCC" width="400">
<tr bgcolor="#999933">
<td bgcolor="#f5f5f5"><div align="center" class="style4">管理员 <font color="#FF0000"><%=session("username")%></font> , 登录成功</div></td>
</tr>
<tr>
<td bgcolor="#FFFFFF"><div align="center">
<input type="button" value="投票信息设置" name="b1" class="showBtn" onClick="take()">
</div></td>
</tr>
<tr>
<td bgcolor="#FFFFFF"><div align="center">
<input type="button" value="删除会员信息" name="b2" class="showBtn" onClick="deluser()">
</div></td>
</tr>
<tr>
<td bgcolor="#FFFFFF"><div align="center">
<input type="button" value="注销登录" name="b3" class="showBtn" onClick="out()" style="width=80pt">
</div></td>
</tr>
</table>
<%end if%> </td>
</tr>
</table>
</div>
</td>
</tr>
</table></td>
</tr>
</table>
<hr size="1" width="799" style="color:#006699" align="left">
<!--#include file="zhan_botom.asp"-->
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -