?? modifynews_class2.asp
字號:
<!--#include file=conn.asp -->
<%
IF not(Session("KEY")="super" or Session("KEY")="input") THEN
response.redirect "login.asp"
response.end
END IF
NewsID=Request.QueryString("NewsID")
BigClassName=Request.Form("BigClassName")
set rs=server.CreateObject ("ADODB.RecordSet")
rs.Source="select * from BigClass where BigClassName='" & BigClassName & "'"
rs.Open rs.source,conn,1,1
set rs2=server.CreateObject("ADODB.RecordSet")
rs2.Source="select * From SmallClass Where BigClassName='" & BigClassName & "'"
rs2.Open rs2.Source,conn,1,1
%>
<html>
<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<LINK href=site.css rel=stylesheet>
</head>
<body>
<p> </p>
<form method="POST" action="ModifyNews_Class3_update.asp?NewsID=<%=NewsID%>">
<p> </p>
<p> </p>
<table border="0" width="588" align=center cellspacing="1" bgcolor="#000000">
<tr bgcolor="#9999FF" align="center">
<td height="55"><b>修改新聞類別(修改NewsID為<%=NewsID%>的新聞的類別)</b></td>
</tr>
<input type=hidden name=BigClassName value=<%=BigClassName%>>
<tr bgcolor="#FFFFFF">
<td align="center">
<p> </p>
<p>新的大類為:<%=trim(rs("BigClassName"))%>
<p>
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td align="center">
<p> </p>
<p>所屬小類:
<select size="1" name="SmallClassName">
<%if rs2.EOF then %>
<option value=0>暫無任何小類</option>
<%else
while not rs2.EOF
%>
<option value=<%=rs2("SmallClassName")%>><%=trim(rs2("SmallClassName"))%></option>
<%
rs2.MoveNext
wend
end if
%>
</select>
</p>
<p> </p>
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td align="center" height="55">
<input type="submit" value=" 修改>> " name="B1">
</td>
</tr>
</table>
</form>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -