ad_editnews.asp

来自「商品订单管理:商品分类管理 添加与修改商品 管理订单 投诉订单 反馈信息 商品留」· ASP 代码 · 共 59 行

ASP
59
字号
<!--#include file="conn.asp"-->
<%
if session("admin_name")="" then
    response.redirect "ad_login.asp"
end if
%>
<%
dim news_id,news_title,news_content
set rs=server.createobject("adodb.recordset")
sql="select * from news where news_id="&request("news_id") 
rs.open sql,conn,1,1
      news_id=rs("news_id")
      news_title=rs("news_title")
      news_pic=rs("news_pic")
      news_content=rs("news_content")
rs.close
%><head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
<link href=img/css.css rel=STYLESHEET type=text/css>
</head>



<table width="500" border="0" cellspacing="0" cellpadding="0" align="center" height="100">
  <tr> 
    <td height="175"> 
      <form name="form1" method="post" action="ad_editnewsok.asp?news_id=<%=news_id%>">
        <table border="0" width="100%" style="border-collapse: collapse" cellpadding="5">
          <tr bgcolor="#FFFFFF"> 
            <td> Title
<input type="text" name="news_title" size="60" class=input value="<%=news_title%>">
            </td>
          </tr>
          <tr bgcolor="#FFFFFF"> 
            <td> Photo
<input type="text" name="news_pic" size="60" class=input value="<%=news_pic%>"> <a target="_blank" href="upfile.asp">
            <font color="#FF0000">Upfile</font></a></td>
          </tr>
          <tr bgcolor="#FFFFFF"> 
            <td> <font color="#FF0000">Content</font></td>
          </tr>
          <tr bgcolor="#FFFFFF"> 
            <td valign="top"> 
              <textarea rows="15" name="news_content" cols="70" class=input><%
                news_content=replace(news_content,"<br>",chr(13))
                news_content=replace(news_content,"&nbsp;"," ")    
            response.write news_content%></textarea>
            </td>
          </tr>
          <tr bgcolor="#FFFFFF" align="center"> 
            <td> 
              <input type="submit" name="Submit" value="Submit">
            </td>
          </tr>
        </table>
      </form>
    </td>
  </tr>
</table>

⌨️ 快捷键说明

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