admin_editculturenews.asp

来自「官方最新的南方数据v12生成静态商业版。全站生成静态。」· ASP 代码 · 共 71 行

ASP
71
字号
<!--#include file="conn.asp"-->
<!--#include file="admin.asp"-->
<!--#include file="../Inc/articleCHAR.INC"-->
<%if Request.QueryString("mark")="southidc" then
id=request("id")
Title=request("Title")
content=Request("content")

If title="" Then
response.write "SORRY <br>"
response.write "请输入内容标题!<a href=""javascript:history.go(-1)"">返回重输</a>"
response.end
end if
If content="" Then
response.write "SORRY <br>"
response.write "请输入内容!<a href=""javascript:history.go(-1)"">返回重输</a>"
response.end
end if

Set rs = Server.CreateObject("ADODB.Recordset")
sql="select * from 0791idc_culture where id="&id
rs.open sql,conn,1,3
rs("title")=title
rs("content")=content
rs("time")=Date()
rs.update
rs.close
response.redirect "Admin_Culture.asp"
end if
%>
<%
id=request.querystring("id")
Set rs = Server.CreateObject("ADODB.Recordset")
rs.Open "Select * From 0791idc_culture where id="&id, conn,3,3
%>
<!-- #include file="Inc/Head.asp" -->
<table width="560" border="0" align="center" cellpadding="2" cellspacing="1" class="table_southidc">
  <tr> 
    <td class="back_southidc" height="25"> <div align="center"><strong>修改文章 <br>
        </strong></div></td>
  </tr>
  <tr> 
    <form method="post" action="Admin_Editculturenews.asp?mark=southidc">
      <input type=hidden name=id value=<%=id%>>
      <td><div align="center"> 
          <table width="100%" border="0" cellspacing="1" cellpadding="0">
            <tr bgcolor="#E7E7E7"> 
              <td width="8%" height="25" bgcolor="#ECF5FF"> <div align="center">标&nbsp;&nbsp;题:</div></td>
              <td width="62%" bgcolor="#ECF5FF"> <input type="text" name="title" maxlength="60" size="50" value="<%=rs("title")%>"> 
              </td>
            </tr>
            <tr bgcolor="#ECF5FF"> 
              <td height="22" colspan="2"><div align="center">内&nbsp;&nbsp;容 </div></td>
            </tr>
            <tr bgcolor="#ECF5FF"> 
              <td height="300" colspan="2"> <input type="hidden" name="content" value="<%=Server.HTMLEncode(rs("Content"))%>"> 
                      <iframe ID="eWebEditor1" src="Southidceditor/ewebeditor.asp?id=content&style=southidc" frameborder="0" scrolling="no" width="550" HEIGHT="450"></iframe> </td>
            </tr>
            <tr bgcolor="#E7E7E7"> 
              <td height="25" colspan="2" bgcolor="#ECF5FF"> <div align="center"> 
                  <input name="Add" type="submit" id="Add" value="确定">
                  &nbsp; 
                  <input name="Culture" type="reset" id="Culture" value="取消">
                </div></td>
            </tr>            
          </table>
        </div></td>
    </form>
  </tr>
</table>
<!-- #include file="Inc/Foot.asp" -->

⌨️ 快捷键说明

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