?? adminclass.asp
字號(hào):
<!-- #include file="conn.asp" -->
<!-- #include file="se.asp" -->
<html>
<title>資料更改</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<LINK href="7thcss.css" rel=stylesheet>
</head>
<body background=images/zhbg.gif>
<table width="610" border="0" cellspacing="0" cellpadding="3" align="center">
<tr><td>
<table border="1" width="100%" cellpadding="1" cellspacing="0" bordercolordark="#FFFFFF" bordercolorlight="#999999" align="center">
<tr align=center>
<td height="25" colspan="4" background="images/iebg.gif"><strong><font color="#FFFFFF" size="4" face="wingdings">:</font>
<font color="#FFFFFF">分 類 修 改</font></strong></td>
</tr>
<tr>
<td width="15%" align="right" bgcolor="#eff7ff">刪除分類</td>
<td rowspan="2" align="left"><form name="delclass" method="post" action="del.asp" target="_blank" >
<input type="hidden" name="action" value="delclass">
<select name="id" size="1">
<option selected>選擇分類</option>
<%
set rs=server.CreateObject("ADODB.RecordSet")
sql="select * from class"
rs.open sql,conn,1,1
response.Write(rs.recordcount)
for i=1 to rs.recordcount
%>
<option value="<%=rs("id")%>" ><%=rs("class_name")%></option>
<%
rs.movenext
next
rs.close
Set rs=nothing
%>
</select>
<input type="submit" name="Submit" value="刪除">
</form></td>
<td width="15%" align="right" bgcolor="#eff7ff">添加分類</td>
<td rowspan="2" align="left"> <form action="addclass.asp" method="post" name="addclass" target="_blank">
<div align="center">
<input name="action" type="hidden" value="addclass">
<input name="class_name" type="text" value="分類名">
<input name="Submit" type="submit" value="添加">
</div>
</form> </td>
</tr>
<tr>
<td align="right" bgcolor="#eff7ff"> </td>
<td align="right" bgcolor="#eff7ff"> </td>
</tr>
<tr>
<td width="15%" align="right" bgcolor="#eff7ff"> 修改分類</td>
<td width="35%" align="left"><font color="#333333">
<%
Set rs=Server.CreateObject("ADODB.RecordSet")
sql="Select * From class"
rs.open sql,conn,1,1
for i=1 to rs.RecordCount
%>
<%=rs("class_name")%> <a href="classedit.asp?id=<%=rs("id")%>"><font color="#FF0000">改名字</font></a><br>
<span class="font">
<%
rs.movenext
next
rs.close
Set rs=nothing
conn.close
Set conn=nothing
%>
</span></font> </td>
<td width="15%" align="right" bgcolor="#eff7ff">說(shuō)明:</td>
<td width="35%" align="left">刪除分類要注意,刪除了分類就會(huì)刪除分類下的網(wǎng)站。請(qǐng)慎重選擇。</td>
</tr>
<tr>
<td colspan="4" align="center">
<input type="submit" name="Submit" value="提交" class=input>
<input type="reset" name="Submit2" value="清除" class=input>
</td>
</tr>
</table>
</td></tr></table>
</body>
</html>
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -