📄 edit.asp
字号:
<% if request.Cookies("jiaowu")("Lx") <> "学生" then response.redirect "/jw/index.asp"%>
<!--#include file="../inc/top.asp"-->
<!--1-->
<div align="center">
<table width="760" align="center" border="0" cellspacing="0" cellpadding="0" class="table-zuoyou" bordercolor="#CCCCCC">
<tr>
<!--left-->
<td width="180" valign="top" bordercolor="#FFFFFF" class="table-you">
<!--#include file="../loginout.asp"-->
<table width=100% border=0 align=center cellpadding=0 cellspacing=0>
<tr>
<td height="35" bgcolor="f1f1f1" background="/jw/images/menu_10.gif" align="right" valign="bottom">
学 生 查 询 </td>
</tr>
<tr>
<td class="table-xia">
<table width="90%" border="0" cellspacing="0" cellpadding="2" align="center">
<form name="34" method="post" action="checkuserlogin.asp">
<tr>
<td align="center"><font color="#999999">输入姓名,支持模糊查询</font></td>
</tr>
<tr>
<td align="center">姓名:
<input type="text" class="wenbenkuang" name="username" size="16"></td>
</tr>
<tr>
<td align="center" height="38">
<input class=go-wenbenkuang name="imageField" value="搜 索" type=submit onFocus="this.blur()">
<input class=go-wenbenkuang onclick="window.location='reg.asp'" type=reset value="重 新 输 入" name=Submit2>
</td>
</tr>
</form>
</table>
</td>
</tr>
</table>
</td>
<!--center-->
<%
dim action
action=request.QueryString("action")
select case action
case ""
studentNum=request.Cookies("jiaowu")("Num")
session("studentid")=id
set rs=server.CreateObject("adodb.recordset")
rs.open "select * from Jw_student where Num = '" & studentNum & "'",conn,1,3
session("studentid")=rs("id")
%>
<td width="580" valign="top" align="center" bordercolor="#FFFFFF" >
<!--1-->
<form name="studentinfo" method="post" action="edit.asp?action=save">
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
<TR>
<td class="table-shangxia" height="35">
<img src="/jw/images/menu_06.gif" width="41" height="33" align="absmiddle"> <a href="/jw/index.asp">教学系统</a> >> >> <a href="index.asp">学生事务</a> >> >> 修改个人资料</td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
<TR>
<td height="20" align="center" class="table-xia"><b><font color="#0099FF">学号为<font color="#FF0000"><% =rs("num")%></font>的<font color="#FF0000"><% =rs("name")%></font>的详细资料</font></b></td>
</tr>
</table>
<table width="580" border="0" cellspacing="0" cellpadding="0" align="center">
<TR>
<td class="table-you" align="center" width="81" height="22"><p class="table-xia">学号</p></td>
<td class="table-you" align="left" width="81" height="22"><p class="table-xia">
<input class="wenbenkuang" name="Num" type="text" id="Topic" size="8" value="<% =rs("Num")%>" readonly></p></td>
<td class="table-you" align="center" width="81" height="22"><p class="table-xia">姓名</p></td>
<td class="table-you" align="left" width="81" height="22"><p class="table-xia">
<input class="wenbenkuang" name="Name" type="text" id="Topic6" size="8" value="<% =rs("Name")%>"></p></td>
<td class="table-you" align="center" width="81" height="22"><p class="table-xia">性别</p></td>
<td class="table-you" align="left" width="82" height="22"><p class="table-xia">
<input type="radio" value="男" name="xb" <% if rs("xb") = "男" then response.write "checked"%>>男
<input type="radio" value="女" name="xb" <% if rs("xb") = "女" then response.write "checked"%>>女</p></td>
<td align="center" width="123" rowspan="7" valign="top">
<div align="center">
<table border="0" cellpadding="0" style="border-collapse: collapse" width="100%" id="table1">
<tr>
<td align="center"><p class="table-xia">相片位置</td>
</tr>
<tr>
<td align="center" height="100"><p class="table-xia"> </td>
</tr>
<tr>
<td align="center">
<input class="wenbenkuang" name="jcqk" type="hidden" value="">
<input class="wenbenkuang" name="grjl" type="hidden" value="">
<input class="go-wenbenkuang" name="submit" value=确认修改 type=submit onClick="return checkup();"></td>
</tr>
</table>
</div>
</td>
</tr>
<TR>
<td class="table-you" align="center" width="81" height="22"><p class="table-xia">民族</p></td>
<td class="table-you" align="left" width="81" height="22"><p class="table-xia">
<input class="wenbenkuang" name="mz" type="text" id="Topic2" size="8" value="<% =rs("mz")%>"></td>
<td class="table-you" align="center" width="81" height="22"><p class="table-xia">身高</p></td>
<td class="table-you" align="left" width="81" height="22"><p class="table-xia">
<input class="wenbenkuang" name="sg" type="text" id="Topic7" size="8" value="<% =rs("sg")%>"></td>
<td class="table-you" align="center" width="81" height="22"><p class="table-xia">身体状况</p></td>
<td class="table-you" align="left" width="82" height="22"><p class="table-xia">
<input class="wenbenkuang" name="stzk" type="text" id="Topic12" size="8" value="<% =rs("stzk")%>"></td>
</tr>
<TR>
<td class="table-you" align="center" width="81" height="22"><p class="table-xia">视力</td>
<td class="table-you" align="left" width="81" height="22"><p class="table-xia">
<input class="wenbenkuang" name="sl" type="text" id="Topic3" size="8" value="<% =rs("sl")%>"></td>
<td class="table-you" align="center" width="81" height="22"><p class="table-xia">血型</td>
<td class="table-you" align="left" width="81" height="22"><p class="table-xia">
<input class="wenbenkuang" name="xx" type="text" id="Topic8" size="8" value="<% =rs("xx")%>"></td>
<td class="table-you" align="center" width="81" height="22"><p class="table-xia">担任职务</td>
<td class="table-you" align="left" width="82" height="22"><p class="table-xia">
<input class="wenbenkuang" name="drzw" type="text" id="Topic13" size="8" value="<% =rs("drzw")%>"></td>
</tr>
<TR>
<td class="table-you" align="center" width="81" height="22"><p class="table-xia">政治面貌</p></td>
<td class="table-you" align="left" width="81" height="22"><p class="table-xia">
<input class="wenbenkuang" name="zzmm" type="text" id="Topic4" size="8" value="<% =rs("zzmm")%>"></td>
<td class="table-you" align="center" width="81" height="22"><p class="table-xia">出生日期</td>
<td class="table-you" align="left" width="81" height="22"><p class="table-xia">
<input class="wenbenkuang" name="csrq" type="text" id="Topic9" size="8" value="<% =rs("csrq")%>"></td>
<td class="table-you" align="center" width="81" height="22"><p class="table-xia">入学日期</td>
<td class="table-you" align="left" width="82" height="22"><p class="table-xia">
<input class="wenbenkuang" name="rxrq" type="text" id="Topic14" size="8" value="<% =rs("rxrq")%>"></td>
</tr>
<TR>
<td class="table-you" align="center" width="81" height="22"><p class="table-xia">寝室编号</td>
<td class="table-you" align="left" width="81" height="22"><p class="table-xia">
<input class="wenbenkuang" name="qsbh" type="text" id="Topic5" size="8" value="<% =rs("qsbh")%>"></td>
<td class="table-you" align="center" width="81" height="22"><p class="table-xia">固定教室</td>
<td class="table-you" align="left" width="81" height="22"><p class="table-xia">
<input class="wenbenkuang" name="gdjs" type="text" id="Topic10" size="8" value="<% =rs("gdjs")%>"></td>
<td class="table-you" align="center" width="81" height="22"><p class="table-xia">联系电话</td>
<td class="table-you" align="left" width="82" height="22"><p class="table-xia">
<input class="wenbenkuang" name="lxdh" type="text" id="Topic15" size="8" value="<% =rs("lxdh")%>"></td>
</tr>
<TR>
<td class="table-you" align="center" width="81" height="22"><p class="table-xia">从何校入学</td>
<td class="table-you" align="left" width="162" colspan="2" height="22"><p class="table-xia">
<input class="wenbenkuang" name="chxrx" type="text" id="Topic5" size="22" value="<% =rs("chxrx")%>"></td>
<td class="table-you" align="left" width="81" height="22"><p class="table-xia">特长爱好</td>
<td class="table-you" align="left" width="163" colspan="2" height="22"><p class="table-xia">
<input class="wenbenkuang" name="tcah" type="text" id="Topic15" size="22" value="<% =rs("tcah")%>"></td>
</tr>
<TR>
<td class="table-you" align="center" width="81" height="22"><p class="table-xia">父亲姓名</td>
<td class="table-you" align="left" width="81" height="22"><p class="table-xia">
<input class="wenbenkuang" name="fqxm" type="text" id="Topic5" size="8" value="<% =rs("fqxm")%>"></td>
<td class="table-you" align="left" width="81" height="22">
<p class="table-xia" align="center">联系电话</td>
<td class="table-you" align="left" width="81" height="22"><p class="table-xia">
<input class="wenbenkuang" name="fqdh" type="text" id="Topic10" size="8" value="<% =rs("fqdh")%>"></td>
<td class="table-you" align="left" width="81" height="22">
<p class="table-xia" align="center">邮政编码</td>
<td class="table-you" align="left" width="82" height="22"><p class="table-xia">
<input class="wenbenkuang" name="fqyb" type="text" id="Topic15" size="8" value="<% =rs("fqyb")%>"></td>
</tr>
<TR>
<td class="table-you" align="center" width="81" height="22"><p class="table-xia">联系地址</td>
<td class="table-you" align="left" width="406" colspan="5" height="22"><p class="table-xia">
<input class="wenbenkuang" name="fqdz" type="text" id="Topic5" size="50" value="<% =rs("fqdz")%>"></td>
</tr>
<TR>
<td class="table-you" align="center" width="81" height="22"><p class="table-xia">母亲姓名</td>
<td class="table-you" align="left" width="81" height="22"><p class="table-xia">
<input class="wenbenkuang" name="mqxm" type="text" id="Topic5" size="8" value="<% =rs("mqxm")%>"></td>
<td class="table-you" align="left" width="81" height="22">
<p class="table-xia" align="center">联系电话</td>
<td class="table-you" align="left" width="81" height="22"><p class="table-xia">
<input class="wenbenkuang" name="mqdh" type="text" id="Topic10" size="8" value="<% =rs("mqdh")%>"></td>
<td class="table-you" align="left" width="81" height="22">
<p class="table-xia" align="center">邮政编码</td>
<td class="table-you" align="left" width="82" height="22"><p class="table-xia">
<input class="wenbenkuang" name="mqyb" type="text" id="Topic15" size="8" value="<% =rs("mqyb")%>"></td>
</tr>
<TR>
<td class="table-you" align="center" width="81" height="22"><p class="table-xia">联系地址</td>
<td class="table-you" align="left" width="406" colspan="5" height="22">
<input class="wenbenkuang" name="mqdz" type="text" id="Topic16" size="50" value="<% =rs("mqdz")%>"></td>
</tr>
<TR>
<td class="table-you" align="center" width="81"><p class="table-xia">奖惩情况</td>
<td class="table-you" align="center" colspan="5"><p class="table-xia">
<script language="javascript">
document.write ('<iframe src="../admin/textbox.asp?action=addstudentjcqk" id="message1" width="385" height="100"></iframe>')
frames.message1.document.designMode = "On";
</script>
</td>
</tr>
<TR>
<td class="table-you" align="center" width="81"><p class="table-xia">个人简历</td>
<td class="table-you" align="center" colspan="5"><p class="table-xia">
<script language="javascript">
document.write ('<iframe src="../admin/textbox.asp?action=addstudentgrjl" id="message2" width="385" height="100"></iframe>')
frames.message2.document.designMode = "On";
</script>
</td>
</tr>
</table>
</form>
</td>
<!--end-->
</tr>
</table>
</div>
<SCRIPT LANGUAGE="JavaScript">
function checkup()
{
document.studentinfo.jcqk.value = frames.message1.document.body.innerHTML;
document.studentinfo.grjl.value = frames.message2.document.body.innerHTML;
}
</script>
<%
rs.close
set rs=nothing
case "save"
set rs=server.CreateObject("adodb.recordset")
rs.open "select * from Jw_student where Num='"&request.Cookies("jiaowu")("Num")&"'",conn,1,3
rs("Name")=request("Name")
rs("xb")=request("xb")
rs("mz")=request("mz")
rs("sg")=request("sg")
rs("stzk")=request("stzk")
rs("sl")=request("sl")
rs("xx")=request("xx")
rs("drzw")=request("drzw")
rs("zzmm")=request("zzmm")
rs("csrq")=request("csrq")
rs("rxrq")=request("rxrq")
rs("qsbh")=request("qsbh")
rs("gdjs")=request("gdjs")
rs("lxdh")=request("lxdh")
rs("chxrx")=request("chxrx")
rs("tcah")=request("tcah")
rs("fqxm")=request("fqxm")
rs("fqdh")=request("fqdh")
rs("fqyb")=request("fqyb")
rs("fqdz")=request("fqdz")
rs("mqxm")=request("mqxm")
rs("mqdh")=request("mqdh")
rs("mqyb")=request("mqyb")
rs("mqdz")=request("mqdz")
rs("jcqk")=request("jcqk")
rs("grjl")=request("grjl")
rs.update
rs.close
set rs=nothing
%>
<td width="580" valign="top" align="center" bordercolor="#FFFFFF" >
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
<TR>
<td class="table-shangxia" height="35">
<img src="/jw/images/menu_06.gif" width="41" height="33" align="absmiddle"> <a href="/jw/index.asp">教学系统</a> >> >> <a href="index.asp">学生事务</a> >>
>> 修改个人成功</td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
<TR>
<td height="20" align="center" class="table-xia"><font color="#FF0000">修改个人资料成功</font></td>
</tr>
</table>
</td>
<!--end-->
</tr>
</table>
</div>
<%
end select
%><!--#include file="../inc/end.asp"-->
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -