?? addspecial1.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 Special"
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>
<form method="POST" action="AddSpecial2_submit.asp">
<table border="0" width="450" align=center>
<tr>
<td width="100%"><b>增加專題</b></td>
</tr>
<tr>
<td width="100%">
<hr size="1">
</td>
</tr>
<tr>
<td width="100%">現(xiàn)已有的專題:</td>
</tr>
<tr>
<td width="100%">
<select size="<%=rs.RecordCount%>" name="SpecialID" style="font-size: 9pt">
<%if rs.EOF then %>
<option>暫無任何專題</option>
<%else
while not rs.EOF
%>
<option value=<%=rs("SpecialID")%>><%=trim(rs("SpecialName"))%></option>
<%
rs.MoveNext
wend
end if%>
</select>
</td>
</tr>
<tr>
<td width="100%"> </td>
</tr>
<tr>
<td width="100%">請在下面輸入需要新增加的專題名稱: </td>
</tr>
<tr>
<td width="100%"><input type="text" name="NewSpecialName" size="20"> <input type="submit" value=" 增加>> " name="B1" style="font-size: 9pt">
</td>
</tr>
<tr>
<td width="100%"></td>
</tr>
<tr>
<td width="100%"> </td>
</tr>
</table>
</form>
</body>
</html>
<%
rs.Close
set rs=nothing
conn.close
set conn=nothing
%>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -