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

📄 admin_specialmod.asp

📁 大榕树网络文章管理系统
💻 ASP
字号:
<%
Option Explicit
Response.buffer=true
const purviewlevel=3
%>
<!--#include file="admin_PurviewChe.asp" -->
<!--#include file="conn.asp" -->
<%
dim specialid,rsspe
specialid=trim(request("specialid"))
if specialid="" then
response.redirect("admin_SpecailMan.asp")
call closeconn()
end if
dim newspecial,oldspecial,newspecialtime,oldspecialtime,spemod,rs
newspecial=trim(request.form("newspecial"))
newspecialtime=trim(request.form("newspecialtime"))
oldspecialtime=trim(request.form("oldspecialtime"))
oldspecial=trim(request.form("oldspecial"))
spemod=trim(request.form("spemod"))
if spemod="modspe" then
set rs=conn.execute("select * from special where special='"&newspecial&"'")
if rs.bof or rs.eof then
conn.execute"update special set specialtime='"&newspecialtime&"',special='"&newspecial&"'where specialid="&specialid&""
response.write"<div align='center'><br><br>修改专题成功!</div>"
response.write"<div align='center'><br>【<a href='admin_specialMan.asp'>返回</a>】</div>"
conn.execute"update article set special='"&newspecial&"' where special='"&oldspecial&"'"
rs.close
set rs=nothing
call closeconn()
response.end()
else
response.write"<div align='center'><br><br>专题已存在!</div>"
response.write"<div align='center'><br>【<a href='admin_SpecialMan.asp'>返回</a>】"
rs.close
set rs=nothing
call closeconn()
response.end()
end if
end if
set rsspe=conn.execute("select * from special where specialid="&specialid&"")
%>
<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(window.document.form1.newspecial.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" cellpadding="0" cellspacing="2" class="border">
        <tr>
          <td align="right" class="txt05">原专题添加时间:</td>
          <td class="txt03"><%=rsspe("specialtime")%></td>
        </tr>
        <tr>
          <td width="50%" align="right" class="txt05">原专题名称:</td>
          <td width="50%" class="txt03"><%=rsspe("special")%></td>
        </tr>
        <tr>
          <td align="right" class="txt05">添加时间:</td>
          <td><input name="newspecialtime" type="text" class="but" id="newspecialtime" value="<%=rsspe("specialtime")%>"></td>
        </tr>
        <tr>
          <td align="right" class="txt05">专题名称:</td>
          <td><input name="newspecial" type="text" class="but" id="newspecial2" value="<%=rsspe("special")%>" maxlength="30"></td>
        </tr>
        <tr align="center">
          <td colspan="2"><input name="Submit" type="submit" class="but" value="修改">
            <input name="spemod" type="hidden" id="spemod" value="modspe">            <input name="oldspecial" type="hidden" id="oldspecial2" value="<%=rsspe("special")%>">            
            <input name="oldspecialtime" type="hidden" id="oldspecialtime" value="<%=rsspe("specialtime")%>"></td>
          </tr>
      </table>
    </form></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
  </tr>
</table>
</body>
</html>

⌨️ 快捷键说明

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