📄 jspersonal.asp
字号:
<!--#include file ="connection.asp"-->
<%
user=session("user")
lb=session("lb")
if user=""or lb<>"teacher" then
response.redirect"index.asp"
else
sqlstr="select distinct xino, xiname from 系"
set rs1=Server.CreateObject("ADODB.Recordset")
rs1.open sqlstr,CN
sqlstr="select distinct zhuanyeno, zhuanye from 专业"
set rs2=Server.CreateObject("ADODB.Recordset")
rs2.open sqlstr,CN
teacherno=request.QueryString("tno")
sqlstr="select * from 教师 where teacherno='" & user &"'"
set rs=Server.CreateObject("ADODB.Recordset")
rs.open sqlstr,CN
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>修改教师信息</title>
<style type="text/css">
<!--
.STYLE2 {
font-size: 18px;
font-weight: bold;
color: #FFFFFF;
}
-->
</style>
</head>
<body bgcolor="#FBC2AD">
<div align=center>
<form name="f1" action="jspersonalz.asp" method="post">
<table width="144" height="84">
<tr>
<td> </td>
</tr>
</table>
<table width="311" border="0" cellpadding="3" cellspacing="1" bordercolor="#000000" bgcolor="#000000" class="sft">
<tr>
<td height="30" colspan="2" bgcolor="#FF903C"><div align="center" class="STYLE1">
<div align="center"><span class="STYLE2">修改教师信息</span>
<input type="hidden" name="oldtno" value=<%=user%>></div>
</div></td>
</tr>
<tr>
<td width="73" height="30" bgcolor="#FF903C"><div align="center">系部:</div></td>
<td width="262" height="30" bgcolor="#FFFFFF"><select name="xino" size="1" style="border-style: dotted; border-width: 0; background-color: #FCB4BC">
<option value="--选择系--" selected>--选择系--</option>
<%
do while not rs1.eof
if rs1("xiname")=rs("xiname") then
%>
<option value="<%=rs1("xino")%>" selected><%=rs1("xiname")%></option>
<% else %>
<option value="<%=rs1("xino")%>"><%=rs1("xiname")%></option>
<%end if %>
<% rs1.movenext
loop
%>
</select> </td>
</tr>
<tr>
<td height="31" bgcolor="#FF903C"><div align="center">专业:</div></td>
<td height="31" bgcolor="#FFFFFF"><select name="zhuanye" size="1" id="zhuanye" style="border-style: dotted; border-width: 0; background-color: #FCB4BC">
<option value="--选择专业--" selected>--选择专业--</option>
<%
do while not rs2.eof
if rs2("zhuanye")=rs("zhuanye") then
%>
<option value="<%=rs2("zhuanyeno")%>" selected><%=rs2("zhuanye")%></option>
<% else %>
<option value="<%=rs2("zhuanyeno")%>"><%=rs2("zhuanye")%></option>
<%end if %>
<% rs2.movenext
loop
%>
</select></td>
</tr>
<tr>
<td width="73" height="23" bgcolor="#FF903C"><div align="center">姓名:</div></td>
<td width="262" height="23" bgcolor="#FFFFFF"><input name="teachername" type="text"style="border-style: dotted; border-width: 0; background-color: #FCB4BC" size="20" value=<%=rs("teachername")%>> </td>
</tr>
<tr>
<td width="73" height="26" bgcolor="#FF903C"><div align="center">性别: </div></td>
<td width="262" height="26" bgcolor="#FFFFFF"><select name="sex" size="1"style="border-style: dotted; border-width: 0; background-color: #FCB4BC">
<% if rs("sex")="女" then %>
<option selected>女</option>
<option>男</option>
<%else %>
<option>女</option>
<option selected>男</option>
<option>男</option>
<%end if %>
</select> </td>
</tr>
<tr>
<td width="73" height="26" bgcolor="#FF903C"><div align="center">电话:</div></td>
<td width="262" height="26" bgcolor="#FFFFFF"><input name="teleph" type="text" style="border-style: dotted; border-width: 0; background-color: #FCB4BC" size="20" value=<%=rs("teleph")%>> </td>
</tr>
<tr>
<td height="35" colspan="2" bgcolor="#FFFFFF"><div align="center">
<input type="submit" name="Submit" value="修改教师信息" style="border-style: dotted; border-width: 0; background-color: #FCB4BC">
</div></td>
</tr>
</table>
</form>
<p class=sft>
</div>
<body>
</body>
</html>
<%
end if
rs.close
rs1.close
rs2.close
CN.close
set rs=nothing
set rs1=nothing
set rs2=nothing
set CN=nothing
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -