📄 user_add.asp
字号:
<!--#include file="conn.asp"-->
<!--#include file="admin.asp"-->
<!--#include file="../Inc/articleCHAR.INC"-->
<%if Request.QueryString("no")="eshop" then
Set rs = Server.CreateObject("ADODB.Recordset")
sql="select * from student"
rs.open sql,conn,1,3
rs.addnew
rs("username")=request("username")
rs("password")=request("password")
rs("sex")=request("sex")
rs("realname")=request("realname")
rs("zhengjian")=request("zhengjian")
rs("zhengjian_number")=request("zhengjian_number")
rs("email")=request("email")
rs("youbian")=request("youbian")
rs("banji")=request("banji")
rs("address")=request("address")
rs("zuowei_number")=request("zuowei_number")
rs("xingyuzhi")=request("xingyuzhi")
rs("addtime")=request("addtime")
rs("remark")=request("remark")
rs("sh_infor")=request("sh_infor")
rs("status")=request("status")
rs("phone")=request("phone")
rs("mobile")=request("mobile")
rs.update
rs.close
response.redirect "users_manage.asp"
end if
%>
<%
id=request.querystring("id")
Set rs = Server.CreateObject("ADODB.Recordset")
rs.Open "Select * From student where id="&id, conn,3,3
%>
<!-- #include file="Inc/Head.asp" -->
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="center" valign="top"> <br>
<table width="560" border="0" cellpadding="2" cellspacing="1" class="table_southidc">
<tr>
<td class="back_southidc" height="25"> <div align="center"><strong>添加用户信息 <br>
</strong></div></td>
</tr>
<tr>
<form method="post" action="user_add.asp?no=eshop">
<td><div align="center">
<table width="100%" border="0" cellspacing="1" cellpadding="0">
<tr bgcolor="#E7E7E7">
<td width="8%" height="25" bgcolor="#ECF5FF">
<div align="center">登录名:</div></td>
<td width="62%" bgcolor="#ECF5FF">
<input type="text" name="username" maxlength="30" size="25"> </td>
</tr>
<tr bgcolor="#ECF5FF">
<td height="22">
<div align="center">密码<font color="#000000">:</font></div></td>
<td>
<input type="text" name="password" maxlength="30" size="25"></td>
</tr>
<tr bgcolor="#ECF5FF">
<td height="22">
<div align="center"><font color="#000000">性别:</font></div></td>
<td><select name="sex" id="select">
<option value="男">男</option>
<option value="女">女</option>
</select></td>
</tr>
<tr bgcolor="#ECF5FF">
<td height="22">
<div align="center"><font color="#000000">姓名:</font></div></td>
<td>
<input type="text" name="realname" maxlength="30" size="25"></td>
</tr>
<tr bgcolor="#ECF5FF">
<td height="22">
<div align="center"><font color="#000000">证件类型:</font></div></td>
<td>
<select name="zhengjian" id="p_box">
<option selected="selected" value="身份证">身份证</option>
<option value="军官证">军官证</option>
</select></td>
</tr>
<tr bgcolor="#ECF5FF">
<td height="22">
<div align="center"><font color="#000000">证件号码:</font></div></td>
<td>
<input type="text" name="zhengjian_number" maxlength="30" size="25"></td>
</tr>
<tr bgcolor="#ECF5FF">
<td height="22">
<div align="center"><font color="#000000">班级:</font></div></td>
<td>
<input type="text" name="banji" maxlength="30" size="25"></td>
</tr>
<tr bgcolor="#ECF5FF">
<td height="22">
<div align="center"><font color="#000000">电子邮件:</font></div></td>
<td>
<input type="text" name="email" maxlength="30" size="25"></td>
</tr>
<tr bgcolor="#ECF5FF">
<td height="22">
<div align="center"><font color="#000000">地址:</font></div></td>
<td>
<input type="text" name="address" maxlength="30" size="25"></td>
</tr>
<tr bgcolor="#ECF5FF">
<td height="22">
<div align="center"><font color="#000000">邮政编码:</font></div></td>
<td>
<input type="text" name="youbian" maxlength="30" size="25"></td>
</tr>
<tr bgcolor="#ECF5FF">
<td height="22">
<div align="center"><font color="#000000">固定电话:</font></div></td>
<td>
<input type="text" name="phone" maxlength="30" size="25"></td>
</tr>
<tr bgcolor="#ECF5FF">
<td height="22">
<div align="center"><font color="#000000">手机号码:</font></div></td>
<td>
<input type="text" name="mobile" maxlength="30" size="25"></td>
</tr>
<tr bgcolor="#ECF5FF">
<td height="22">
<div align="center"><font color="#000000">审核信息:</font></div></td>
<td>
<input type="text" name="sh_infor" maxlength="30" size="25"></td>
</tr>
<tr bgcolor="#ECF5FF">
<td height="22">
<div align="center"><font color="#000000">座位号:</font></div></td>
<td>
<input type="text" name="zuowei_number" maxlength="30" size="25"></td>
</tr>
<tr bgcolor="#ECF5FF">
<td height="22">
<div align="center"><font color="#000000">信誉值:</font></div></td>
<td>
<input type="text" name="xingyuzhi" maxlength="30" size="25"></td>
</tr>
<tr bgcolor="#ECF5FF">
<td height="22">
<div align="center"><font color="#000000">电子邮件:</font></div></td>
<td>
<input type="text" name="email" maxlength="30" size="25"></td>
</tr>
<tr bgcolor="#ECF5FF">
<td height="22">
<div align="center"><font color="#000000">状态:</font></div></td>
<td>
<input type="text" name="status" maxlength="30" size="25"></td>
</tr>
<tr bgcolor="#E7E7E7">
<td height="25" colspan="2" bgcolor="#ECF5FF">
<div align="center">
<input type="submit" value="确定">
<a href="javascript:history.go(-1);" style="color: #0000FF">返回</a>
</div></td>
</tr>
</table>
</div></td>
</form>
</tr>
</table>
<br> <br> </td>
</tr>
</table>
<!-- #include file="Inc/Foot.asp" -->
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -