日期:2014-05-16 浏览次数:20851 次
<!--#include file="CONN.ASP"-->
<html>
<title>奖惩记录登记...</title>
<body>
<form method="post" action="index_edit_jiangcheng.asp?action=edit&id=<%=id%>">
<table width="100%">
<tr>
<td width="5%"><b>班级</b></td>
<td width="5%"><b>学号</b></td>
<td width="5%"><b>姓名</b></td>
<td width="5%">第一学年获奖情况</td>
<td width="5%">第二学年获奖情况</td>
<td width="5%">第三学年获奖情况</td>
</tr>
<%
set conn=server.createobject("adodb.connection")'
set rs=server.createobject("adodb.recordset")
conn.open "DBQ=" & server.mappath("MDB/sztt0805designbylbm.asa") & ";DefaultDir=;DRIVER={Microsoft Access Driver (*.mdb)};"
sql ="select * from bmxt order by T4 "
rs.open sql,conn,3,3
<tr align="center" >
<td width="5%"><%=rs("T2")%></td><!--班级 -->
<td width="5%"><%=rs("t3")%></td><!--学号 -->
<td width="5%"> <%=rs("t4")%></td><!--姓名 -->
<td width="5%"><%=rs("t5")%></td><!--第一学年获奖情况 -->
<td width="6%"><input type="title" name="T7" value="<%=rs("T6")%>"></td><!--第二学年获奖情况-->
<td width="5%"><input type="title" name="T13" value="<%=rs("T7")%>"></td><!--第三学年获奖情况 -->
</tr>
</table>
<table align="center"><tr><td align="center">
<input type="submit" value="修改资料!" name="submit">
</td></tr></table>
</body>
</html>
<!--#include file="conn.asp"-->
<%
id=request("id")
%>
<%
if request("action") = "edit" then 'if id="200404082326201004082326" then
id=request("id")
t1=request("t1")
t2=request("t2")
t3=request("t3")
t4=request("t4")
t5=request("t5")
t6=request("t6")
t7=request("t7")
set rs=server.createobject("adodb.recordset")
sql="select * from bmxt where id="&id
rs.open sql,conn,1,3
for i=1 to 2
'rs("img")=img
rs("ok")=ok
rs("t1")=t1
rs("t2")=t2
rs("t3")=t3
rs("t4")=t4
rs("t5")=t5
rs("t6")=t6
rs("t7")=t7
rs.update
rs.close
set rs=nothing
next
conn.close
set conn=nothing
response.write "<script language='javascript'>" & chr(13)
response.write "alert('信息修改成功!');" & Chr(13)
response.write "window.document.location.href='Bmxt_admin_modi_jiangcheng.asp';"&Chr(13)
response.write "</script>" & Chr(13)
Response.End
else
response.write "<script language='javascript'>" & chr(13)
response