?? gs.asp
字號(hào):
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!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=gb2312" />
<title>圖書館管理系統(tǒng)</title>
<link href="css.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
.style2 {color: #FF0000}
.style3 {font-size: 16}
.style4 {font-size: 16px}
-->
</style>
</head>
<!--#include file="conn.asp"-->
<%
if request("act")="gs" then
username=trim(request("username"))
name1=trim(request("name"))
sex=trim(request("sex"))
no=trim(request("no"))
if username="" then
response.write"<script language='javascript'>alert('賬號(hào)不能為空!');history.back();</script>"
elseif name1="" then
response.write"<script language='javascript'>alert('姓名不能為空!');history.back();</script>"
elseif no="" then
response.write"<script language='javascript'>alert('證件號(hào)不能為空!');history.back();</script>"
else
sql="select * from [user] where [username]='"&username&"' and [name]='"&name1&"' and [sex]='"&sex&"' and [no]='"&no&"' "
set rs=server.CreateObject("adodb.recordset")
rs.open sql,conn,1,1
if rs.recordcount=0 then
response.write"<script language='javascript'>alert('信息填寫錯(cuò)誤!');history.back();</script>"
else
conn.execute("update [user] set gs='1' where [username]='"&username&"' and [name]='"&name1&"' and [sex]='"&sex&"' and [no]='"&no&"'")
response.write"<script language='javascript'>alert('操作成功,請(qǐng)攜帶相關(guān)證件到管理員處找回密碼!');window.location.href='index.asp';</script>"
end if
end if
end if
%>
<body>
<form name="form1" method="post" action="?act=gs">
<center>
<table width="800" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="150"><!--#include file="top.asp"--></td>
</tr>
<tr>
<td align="center" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0" class="tb">
<tr>
<td height="300" align="center" valign="middle"><table width="500" border="0" cellspacing="0" cellpadding="3">
<tr align="center" valign="middle" >
<td height="70" align="right"><img src="img/gs.gif" width="64" height="64"></td>
<td height="70" align="left"><span class="style3"> <span class="style4">掛失</span></span></td>
</tr>
<tr>
<td width="177" height="25" align="right">用戶名:</td>
<td width="311" height="25" align="left"><input name="username" type="text" id="username" size="20"></td>
</tr>
<tr>
<td height="25" align="right">姓名:</td>
<td height="25" align="left"><input name="name" type="text" id="name" size="20"></td>
</tr>
<tr>
<td height="25" align="right">性別:</td>
<td height="25" align="left"><input name="sex" type="radio" value="男" checked="checked" />
男
<input type="radio" name="sex" value="女" />
女</td>
</tr>
<tr>
<td height="25" align="right">證件號(hào)碼:</td>
<td height="25" align="left"><input name="no" type="text" id="no" /></td>
</tr>
<tr align="center">
<td height="25" colspan="2"><span class="style2">*用戶掛失后,可攜帶相關(guān)證件去管理員處找回密碼</span></td>
</tr>
<tr align="center" valign="middle">
<td height="40" colspan="2"><input type="submit" name="Submit" value=" 提 交 ">
<input type="reset" name="Submit2" value=" 重 置 "></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td height="60"><!--#include file="bottom.asp"--></td>
</tr>
</table>
</center>
</form>
</body>
</html>
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -