⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 zc.asp

📁 自己做的毕业设计
💻 ASP
字号:
<%@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>图书馆管理系统</title>
<link href="css.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
.style1 {font-size: 16px}
.style2 {color: #FF0000}
-->
</style>
</head>
<!--#include file="conn.asp"-->
<%
if request("act")="add" then
username=trim(request("username"))
password=trim(request("password"))
name1=trim(request("name"))
sex=trim(request("sex"))
no=trim(request("no"))
tel=trim(request("tel"))
address=trim(request("address"))

if username="" then
response.write"<script language='javascript'>alert('账号不能为空!');history.back();</script>"
elseif password="" then
response.write"<script language='javascript'>alert('密码不能为空!');history.back();</script>"
elseif name1="" then
response.write"<script language='javascript'>alert('姓名不能为空!');history.back();</script>"
elseif no="" then
response.write"<script language='javascript'>alert('证件号不能为空!');history.back();</script>"
else
sql="insert into [user]([username],[password],[name],[sex],[no],[tel],[address])values('"&username&"','"&password&"','"&name1&"','"&sex&"','"&no&"','"&tel&"','"&address&"')"
conn.execute(sql)
response.write"<script language='javascript'>alert('恭喜,账号添加成功,请等待管理员审核!');window.location.href='index.asp';</script>"
end if
end if
%>
<body>
<form name="form1" method="post" action="?act=add">
<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/dl.gif" width="50" height="50"></td>
          <td height="30" align="left"><span class="style1">&nbsp;&nbsp;&nbsp;&nbsp; 用户注册</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="password" type="text" id="password" 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">证件号码:</td>
          <td height="25" align="left"><input name="no" type="text" id="no" /></td>
        </tr>
        <tr>
          <td height="25" align="right">联系电话:</td>
          <td height="25" align="left"><input name="tel" type="text" id="tel" /></td>
        </tr>
        <tr>
          <td height="25" align="right">地址:</td>
          <td height="25" align="left"><input name="address" type="text" id="address" size="40" /></td>
        </tr>
        <tr align="center">
          <td height="25" colspan="2"><span class="style2">*注册后需等管理员审核通过后才能使用</span></td>
          </tr>
        <tr align="center" valign="middle">
          <td height="40" colspan="2"><input type="submit" name="Submit" value=" 注 册 ">
             &nbsp; <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>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -