?? addnews1.asp
字號:
<!--#include file=conn.asp -->
<%
IF not(Session("KEY")="super" or Session("KEY")="input") THEN
response.redirect "login.asp"
response.end
END IF
set rs=server.CreateObject ("ADODB.RecordSet")
rs.Source="select * from BigClass order by BigClassID"
rs.Open rs.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>
<p> </p>
<p> </p>
<form method="POST" action="AddNews2.asp">
<table border="0" width="588" align=center bgcolor="#000000" cellspacing="1" cellpadding="3">
<tr align="center" bgcolor="#abb8d6">
<td height="55" bgcolor="#abb8d6"><b>增 加 新 聞</b></td>
</tr>
<tr bgcolor="#FFFFFF">
<td align="center" height="197">
<p>請選擇新聞大類:
<select size="1" name="BigClassName">
<%if rs.EOF then %>
<option value="">暫無任何類別</option>
<%else
while not rs.EOF
%>
<option value="<%=rs("BigClassName")%>"><%=trim(rs("BigClassName"))%></option>
<%
rs.MoveNext
wend
end if
%>
</select>
</p>
<p> </p>
<p> </p>
</td>
</tr>
<tr bgcolor="#abb8d6">
<td align="center" height="55" bgcolor="#abb8d6">
<input type="submit" value=" 下一步>> " name="B1">
</td>
</tr>
</table>
</form>
</body>
</html>
<%
rs.close
set rs=nothing
conn.close
set conn=nothing
%>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -