📄 add.asp
字号:
<!--#include file="../../System/Const.asp"-->
<!--#include file="../../System/misc.asp"-->
<%
user_schoolid = clng(request("user_schoolid"))
set cn=server.CreateObject("ADODB.connection")
cn.Open DSN_ACLASS
set rs=server.CreateObject("ADODB.recordset")
%>
<HTML>
<BODY bgcolor="#CFC9CD" leftmargin="0" topmargin="10" >
<!--#include file="Header.asp"-->
<table width="770" border="0" cellspacing="0" cellpadding="0" bgcolor="#FFFFFF" align="center" height="70%">
<tr>
<td bgcolor="#8C9A8C" width="3"></td>
<td width="764" bgcolor="#EFEFEF" height="20" valign="bottom"> 你现在的位置:操作员管理-添加操作员</td>
<td bgcolor="#8C9A8C" width="3"></td>
</tr>
<tr>
<td bgcolor="#8C9A8C" width="3"></td>
<td width="764"> </td>
<td bgcolor="#8C9A8C" width="3"></td>
</tr>
<tr>
<td bgcolor="#8C9A8C" width="3"></td>
<td width="764" valign="top">
<form name="form1" method="post" action="add2.asp">
<table width="75%" border="1" align="center" bgcolor="#E3E3E3">
<tr bgcolor="EFEFEF">
<td width="32%">用户名</td>
<td width="68%" bgcolor="EFEFEF">
<input alt="用户名***" type=text name=user_username value="<%=request("user_username")%>" maxlength="20">
*** (不超过20个字符) </td>
</tr>
<tr bgcolor="EFEFEF">
<td width="32%">昵称</td>
<td width="68%">
<input alt="昵称***" type=text name=user_nickname value="<%=request("user_nickname")%>" maxlength="20">
*** (不超过20个字符) </td>
</tr>
<tr bgcolor="EFEFEF">
<td width="32%">密码</td>
<td width="68%">
<input type=text name=user_password value="<%=request("user_password")%>" maxlength="20" >
(不超过20个字符) </td>
</tr>
<tr bgcolor="EFEFEF">
<td width="32%">性别</td>
<td width="68%">
<select name="user_sex" alt>
<%
rs.Open "select * from DIC_SEX", cn
rs.movefirst
do while not rs.eof %>
<option <%=SELECTED(clng(request("user_sex")), rs("ID"))%> value=<% =rs("id")%>>
<% =rs("name")%>
</option>
<% rs.movenext
loop
rs.Close
%>
</select>
</td>
</tr>
<tr bgcolor="EFEFEF">
<td width="32%">EMail</td>
<td width="68%">
<input type=text name=user_mailadd value="<%=request("user_mailadd")%>" maxlength="50" >
</td>
</tr>
<tr bgcolor="EFEFEF">
<td width="32%">赋予公司的管理权限</td>
<td width="68%">
<% rs.Open "select * from SCHOOL order by NAME", cn, adOpenStatic
cur_school=0
%>
<table width="100%" border="0">
<tr>
<td valign="top">
<%do while not rs.eof and cur_school<rs.RecordCount/2%>
<input type="checkbox" name="school_id" value=<%=rs("id")%> unchecked>
<% =rs("name")%>
<br>
<% rs.movenext
cur_school=cur_school+1
loop%>
</td>
<td valign="top">
<%do while not rs.eof and cur_school<=rs.RecordCount%>
<input type="checkbox" name="school_id" value=<%=rs("id")%> unchecked>
<% =rs("name")%>
<br>
<% rs.movenext
cur_school=cur_school+1
loop%>
</td>
</tr>
</table>
<% rs.Close %>
</td>
</tr>
<tr bgcolor="EFEFEF">
<td colspan="2">
<div align="center">
<input type="button" value="确定" onClick="jscript:OnSubmitGeneral(form1)" name="buttonsubmit">
<input type="button" value="返回" onClick="jscript:OnReturn()" name="button">
</div>
</td>
</tr>
</table>
</form>
</td>
<td bgcolor="#8C9A8C" width="3"></td>
</tr>
<tr>
<td bgcolor="#8C9A8C" width="3" height="21"></td>
<td width="764" bgcolor="EFEFEF" height="21">
<div align="center"><%=COMPANY%></div>
</td>
<td bgcolor="#8C9A8C" width="3" height="21"></td>
</tr>
</table>
<table width="770" border="0" cellspacing="0" cellpadding="0" bgcolor="#8C9A8C" align="center">
<tr>
<td height="4"></td>
</tr>
</table>
<SCRIPT LANGUAGE=javascript>
function OnClassSchoolIDChanged(value)
{
//alert(value);
form1.action="add.asp";
form1.submit();
}
</SCRIPT>
<!--#include file="../../System/miscJScript.asp"-->
</BODY>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -