📄 hover_news_classaddbig.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 Action,BigClassName,rs,FoundErr,ErrMsg
Action=trim(Request("Action"))
BigClassName=trim(request("BigClassName"))
if Action="Add" then
if BigClassName="" then
FoundErr=True
ErrMsg=ErrMsg & "<br><li>文章大类名不能为空!</li>"
end if
if FoundErr<>True then
Set rs=Server.CreateObject("Adodb.RecordSet")
rs.open "Select * from Hover_BigClass_New Where BigClassName='" & BigClassName & "'",conn,1,3
if not (rs.bof and rs.EOF) then
FoundErr=True
ErrMsg=ErrMsg & "<br><li>文章大类“" & BigClassName & "”已经存在!</li>"
else
rs.addnew
rs("BigClassName")=BigClassName
rs.update
rs.Close
set rs=Nothing
call CloseConn()
Response.Redirect "Hover_News_ClassManage.asp"
end if
end if
end if
if FoundErr=True then
call WriteErrMsg()
else
%>
<script language="JavaScript" type="text/JavaScript">
function checkBig()
{
if (document.form1.BigClassName.value=="")
{
alert("大类名称不能为空!");
document.form1.BigClassName.focus();
return false;
}
}
</script>
<table width="97%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableBorder">
<form name="form1" method="post" action="Hover_News_ClassAddBig.asp" onSubmit="return checkBig()">
<tr bgcolor="#A4B6D7" class="title">
<td height="25" colspan="2" align="center" class="title">新 闻 类 别 设 置</td>
</tr>
<tr bgcolor="#A4B6D7" class="title">
<td height="25" colspan="2" class="title2">选择您需要更改的新闻类别信息。</td>
</tr>
<tr bgcolor="#A4B6D7" class="title">
<td height="25" colspan="2" align="center" class="items">添加大类</td>
</tr>
<tr bgcolor="#E3E3E3" class="table">
<td height="22" align="right" bgcolor="#C0C0C0" class="table"> 大类名称: </td>
<td width="520" bgcolor="#E3E3E3" class="table"><input name="BigClassName" type="text" size="20" maxlength="30"> </td>
</tr>
<tr bgcolor="#C0C0C0" >
<td height="22" colspan="2" align="center" bgcolor="#C0C0C0" class="table">
<input name="Action" type="hidden" id="Action" value="Add">
<input name="Add" type="submit" class="btn" value=" 添 加 ">
</td>
</tr>
</form>
</table>
<%
end if
%>
<!-- #include file="Inc/Foot.asp" -->
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -