?? news_classmanage.asp
字號(hào):
<%@language=vbscript codepage=936 %>
<!--#include file="conn.asp"-->
<!--#include file="admin.asp"-->
<!-- #include file="Inc/Head.asp" -->
<%
dim sql,rsBigClass,rsSmallClass,ErrMsg
set rsBigClass=server.CreateObject("adodb.recordset")
rsBigClass.open "Select * From BigClass_New",conn,1,3
%>
<script language="JavaScript" type="text/JavaScript">
function checkBig()
{
if (document.form1.BigClassName.value=="")
{
alert("大類名稱不能為空!");
document.form1.BigClassName.focus();
return false;
}
}
function checkSmall()
{
if (document.form2.BigClassName.value=="")
{
alert("請(qǐng)先添加大類名稱!");
document.form1.BigClassName.focus();
return false;
}
if (document.form2.SmallClassName.value=="")
{
alert("小類名稱不能為空!");
document.form2.SmallClassName.focus();
return false;
}
}
function ConfirmDelBig()
{
if(confirm("確定要?jiǎng)h除此大類嗎?刪除此大類同時(shí)將刪除所包含的小類和該類下的所有新聞,并且不能恢復(fù)!"))
return true;
else
return false;
}
function ConfirmDelSmall()
{
if(confirm("確定要?jiǎng)h除此小類嗎?刪除此小類同時(shí)將刪除該類下的所有新聞,并且不能恢復(fù)!"))
return true;
else
return false;
}
</script>
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="center" valign="top"><table width="90" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td align="center" valign="top"><br> <a href="News_ClassAddBig.asp"><strong><font color="#FF0000"><u>添加新聞一級(jí)分類</u></font></strong></a><br>
<br>
<table width="500" border="0" cellpadding="0" cellspacing="1" bgcolor="#000000">
<tr bgcolor="#A4B6D7">
<td width="50%" height="30" align="center" bgcolor="#A4B6D7"><strong>欄目名稱</strong></td>
<td height="30" align="center"><strong>操作選項(xiàng)</strong></td>
</tr>
<%
do while not rsBigClass.eof
%>
<tr bgcolor="#F2F8FF" class="tdbg">
<td width="233" height="22"><img src="../Images/tree_folder4.gif" width="15" height="15"><%=rsBigClass("BigClassName")%></td>
<td align="right" style="padding-right:10"><a href="News_ClassAddSmall.asp?BigClassName=<%=rsBigClass("BigClassName")%>"><font color="#FF0000">添加二級(jí)分類</font></a>
| <a href="News_ClassModifyBig.asp?BigClassID=<%=rsBigClass("BigClassID")%>">修改</a>
| <a href="News_ClassDelBig.asp?BigClassName=<%=rsBigClass("BigClassName")%>" onClick="return ConfirmDelBig();">刪除</a></td>
</tr>
<%
set rsSmallClass=server.CreateObject("adodb.recordset")
rsSmallClass.open "Select * From SmallClass_New Where BigClassName='" & rsBigClass("BigClassName") & "'",conn,1,1
if not(rsSmallClass.bof and rsSmallClass.eof) then
do while not rsSmallClass.eof
%>
<tr bgcolor="#EAEAEA" class="tdbg">
<td width="233" height="22"> <img src="../Images/tree_folder3.gif" width="15" height="15"><%=rsSmallClass("SmallClassName")%></td>
<td align="right" style="padding-right:10"><a href="News_ClassModifySmall.asp?SmallClassID=<%=rsSmallClass("SmallClassID")%>">修改</a>
| <a href="News_ClassDelSmall.asp?SmallClassID=<%=rsSmallClass("SmallClassID")%>&SmallClassName=<%=rsSmallClass("SmallClassName")%>" onClick="return ConfirmDelSmall();">刪除</a></td>
</tr>
<%
rsSmallClass.movenext
loop
end if
rsSmallClass.close
set rsSmallClass=nothing
rsBigClass.movenext
loop
%>
</table>
<br> </td>
</tr>
</table>
<%
rsBigClass.close
set rsBigClass=nothing
%> </td>
</tr>
</table>
<!-- #include file="Inc/Foot.asp" -->
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -