?? cjmodify.asp
字號:
<%if session("password")<>"" then%>
<!-- #include file="inc/top.asp" -->
<!-- #include file="inc/adminmenu.asp" -->
<!--#INCLUDE FILE="inc/conn.asp"-->
<style type="text/css">
body {
background-image: url(2/main.jpg);
background-attachment:fixed|scroll;
}
</style>
<%a=request("action")
if a="modify" then
id=request("id")
if id="" or not isNumeric(id) then
response.Write("<script>alert('參數錯誤');history.back();</script>")
end if
page=request("page")
cj=request("cj")
conn.execute("update bbs1 set cj='"&cj&"' where id="&id&"")
response.Write("<script>alert('修改成功');location.replace('admin_chengjibat.asp?page="&page&"');</script>")
end if%>
<table width="768" height="25" align="center" cellpadding="0" cellspacing="0" class="unnamed_rld2">
<%'if request.querystring("kind")="user" then
page=request("page")
id=request("id")
if id="" or not isNUmeric(id) then
response.Write("<script>alert('參數錯誤');history.back();</script>")
end if
set r=conn.execute("select * from bbs1 where id="&id&"")
if not (r.eof and r.bof ) then
%>
<tr>
<td align="center"><form name="form1" method="post" action="?action=modify&id=<%=id%>&page=<%=page%>">
<br>
<table width="50%" border="1" cellspacing="0" cellpadding="0" bordercolor="#eeeeee">
<tr align="center">
<td colspan="2">成績修改</td>
</tr>
<tr>
<td width="27%" align="center"> [ <span style="color: #FF0000">學期</span> ]</td>
<td width="73%"><input type="text" size="30" value="<%=r("xq")%>" disabled="disabled"></td>
</tr>
<tr>
<td width="27%" align="center"> [ <span style="color: #FF0000">班級</span> ]</td>
<td width="73%"><input type="text" size="30" value="<%=r("bj")%>" disabled="disabled"></td>
</tr>
<tr>
<td align="center"> [ <span style="color: #FF0000">學號</span> ] </td>
<td><input name="xh" type="text" size="30" value="<%=r("xh")%>" disabled="disabled"></td>
</tr>
<tr>
<td align="center"> 姓名 </td>
<td><input name="user" type="text" size="30" value="<%=r("user")%>" disabled="disabled"></td>
</tr>
<tr>
<td width="27%" align="center"> 成績</td>
<td width="73%"><input type="text" size="30" value="<%=r("cj")%>" name="cj"></td>
</tr>
<tr align="center">
<td colspan="2">
<input type="submit" name="Submit" value="提交">
<input type="reset" name="Submit2" value="清除"></td>
</tr>
<tr>
<td colspan="2"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="13%" align="center"> </td>
<td width="87%"> </td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
</table></td>
</tr>
</table>
</form>
</td>
</tr>
<%
end if
r.close
set r=nothing
'end if%>
</table>
<!-- #include file="inc/copyright.asp" -->
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -