⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 admin_specialadd.asp

📁 大榕树网络文章管理系统
💻 ASP
字号:
<%
Option Explicit
Response.buffer=true
const purviewlevel=3
%>
<!--#include file="admin_PurviewChe.asp" -->
<!--#include file="conn.asp" -->
<!--#include file="admin_Function.asp" -->
<%
dim speadd,rs,special,specialtime
dim errmsg,successmsg
speadd=trim(request.form("speadd"))
special=trim(request.form("special"))
specialtime=trim(request.form("specialtime"))
if speadd="add" then
set rs=conn.execute("select * from special where special='"&special&"'")
if rs.bof or rs.eof then
conn.execute"insert into special (specialtime,special) values ('"&specialtime&"','"&special&"')"
rs.close
set rs=nothing
call closeconn()
successmsg=successmsg + "<br><br><li>专题添加成功!</li>"
successmsg=successmsg +"<br><br><li>你可以:[<a href='admin_SpecialAdd.asp'>继续添加</a>][<a href='admin_SpecialMan.asp'>返回专题管理面板</a>]</li>"
call ShowSuccessMsg()
else
rs.close
set rs=nothing
call closeconn()
errmsg=errmsg + "<br><br><li>专题已存在!</li>"
errmsg=errmsg + "<br><br><li>你可以:[<a href='javascript:onclick=history.go(-1)'>返回</a>]</li>"
errmsg=errmsg + "<br><br>"
call ShowErrMsg()
end if
end if
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>添加新专题</title>
<link href="Style.css" rel="stylesheet" type="text/css">
<script language=javascript>
function checkform()
{
if (document.form1.special.value=="")
{
alert("专题名称不能为空!");
return false;
}
}
</script>
</head>

<body>
<table width="100%"  border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td align="center" class="txt1">欢迎添加新专题</td>
  </tr>
  <tr>
    <td align="center" class="txt05">[<a href="admin_SpecialMan.asp">返回专题管理面板</a>]</td>
  </tr>
  <tr>
    <td><form name="form1" method="post" action="" onsubmit="return checkform();">
      <table width="98%"  border="0" align="center" cellpadding="0" cellspacing="2">
        <tr>
          <td align="right" class="txt05">添加时间:</td>
          <td><input name="specialtime" type="text" class="but" id="specialtime" value="<%=date()%>"></td>
        </tr>
        <tr>
          <td width="50%" align="right" class="txt05">专题名称:</td>
          <td width="50%"><input name="special" type="text" class="but" id="special" maxlength="30"></td>
        </tr>
        <tr align="center">
          <td colspan="2"><input name="Submit" type="submit" class="but" value="添加">&nbsp;
            <input name="Submit2" type="reset" class="but" value="重置">
            <input name="speadd" type="hidden" id="speadd" value="add"></td>
          </tr>
      </table>
    </form></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
  </tr>
</table>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -