📄 hover_news_classmanage.asp
字号:
<%@language=VBScript codepage=936 %>
<!--#include file="toptable.asp"-->
<!--#include file="../Inc/Ubbcode.asp"-->
<%
'=================================
' 良精科技企业管理系统
' QQ在线客服:65961930 82993936
' 咨询定购Tel:010-81991660
' asp3721@hotmail.com
' www.liangjing.net
' copyright(c)2001-2008 HoverCms 2007特别版
'=================================
%>
<!-- #include file="Inc/Head.asp" -->
<%
dim sql,rsBigClass,rsSmallClass,ErrMsg
set rsBigClass=server.CreateObject("adodb.recordset")
rsBigClass.open "Select * from Hover_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("请先添加大类名称!");
document.form1.BigClassName.focus();
return false;
}
if (document.form2.SmallClassName.value=="")
{
alert("小类名称不能为空!");
document.form2.SmallClassName.focus();
return false;
}
}
function ConfirmDelBig()
{
if(confirm("确定要删除此大类吗?删除此大类同时将删除所包含的小类和该类下的所有新闻,并且不能恢复!"))
return true;
else
return false;
}
function ConfirmDelSmall()
{
if(confirm("确定要删除此小类吗?删除此小类同时将删除该类下的所有新闻,并且不能恢复!"))
return true;
else
return false;
}
</script>
<table width="97%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableBorder">
<tr>
<td colspan="3" align="center" valign="top" class="title"> 添 加 新 闻 栏 目 </td>
</tr>
<tr>
<td colspan="3" valign="top" class="title2">选择您需要更改的新闻类别。</td>
</tr>
<tr>
<td colspan="3" align="center" valign="top" class="table"><a href="Hover_News_ClassAddBig.asp">添加新闻一级分类 </a></td>
</tr>
<tr bgcolor="#A4B6D7">
<td height="30" colspan="2" align="center" bgcolor="#A4B6D7" class="items">栏目名称</td>
<td width="473" height="30" align="center" class="items">操作选项</td>
</tr>
<%
do while not rsBigClass.eof
%>
<tr bgcolor="#F2F8FF" class="tdbg">
<td width="117" height="22" class="table"> </td>
<td width="378" class="table"><img src="../Skins/Default/Cnimg/class1.gif" width="19" height="20" align="absmiddle"> <%=rsBigClass("BigClassName")%></td>
<td align="center" class="table" style="padding-right:10"><a href="Hover_News_ClassAddSmall.asp?BigClassName=<%=rsBigClass("BigClassName")%>"><font color="#FF0000">添加二级分类</font></a>
| <a href="Hover_News_ClassModifyBig.asp?BigClassID=<%=rsBigClass("BigClassID")%>">修改</a>
| <a href="Hover_News_ClassDelBig.asp?BigClassName=<%=rsBigClass("BigClassName")%>" onClick="return ConfirmDelBig();">删除</a></td>
</tr>
<%
set rsSmallClass=server.CreateObject("adodb.recordset")
rsSmallClass.open "Select * from Hover_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="117" height="22" class="table"> </td>
<td width="378" height="22" class="table"><img src="../Skins/Default/Cnimg/class3.gif" width="26" height="20" align="absmiddle"><%=rsSmallClass("SmallClassName")%></td>
<td align="center" class="table" style="padding-right:10"><a href="Hover_News_ClassModifySmall.asp?SmallClassID=<%=rsSmallClass("SmallClassID")%>">修改</a>
| <a href="Hover_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>
<%
rsBigClass.close
set rsBigClass=nothing
%>
<!-- #include file="Inc/Foot.asp" -->
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -