ad_edit.asp

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

ASP
110
字号
<!-- #include file="conn.asp" -->
<%
if session("admin_name")="" then
    response.redirect "ad_login.asp"
end if
%>
<html>
<head>
<link rel="stylesheet" href="img/css.css" type="text/css">
</head>

<body bgcolor="#FFFFFF" text="#000000" background="blue.gif" link="#000080">
<%
set rs1=server.createobject("adodb.recordset")
sql1="select * from book where id="&request.querystring("id")
rs1.open sql1,conn,3,3
%>


<div align="center">
  <center>
  <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="600" bgcolor="#F5EFE7">
    <tr>
      <td align="center"><form name="form1" method="post" action="ad_editsave.asp?id=<%=request.querystring("id")%>">
  <p>Modify</p>
    <table width="500" border="0" height="10" cellspacing="0" cellpadding="0">
      <tr>
      <td height="2" width="100">Title:</td>
      <td height="2" width="400"> 
          <input type="text" name="title" size="50" value="<%=trim(rs1("title"))%>">
      </td>
    </tr>
  </table>
    <table width="500" border="0" cellspacing="0" cellpadding="0">
      <tr> 
      <td width="100">Item:</td>
        <td width="150">

        </td>
      <td width="100">keyWord:</td>
      <td width="150">
          <input type="text" name="key1" size="15" value="<%=trim(rs1("key1"))%>">
      </td>
    </tr>
  </table>
    <table width="499" border="0" cellspacing="0" cellpadding="0">
      <tr> 
      <td width="100">Company:</td>
      <td width="150">
          <input type="text" name="from1" size="15" value="<%=trim(rs1("from1"))%>">
      </td>
      <td width="100">Author:</td>
        <td width="149"> 
          <input type="text" name="author" size="15" value="<%=trim(rs1("author"))%>">
      </td>
    </tr>
  </table>
    <table width="499" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="100">Photo one:</td>
        <td width="150"> 
          <input type="text" name="img1" size="15" value="<%=trim(rs1("img1"))%>">
        </td>
        <td width="100">Photo two:</td>
        <td width="149"> 
          <input type="text" name="img2" size="15" value="<%=trim(rs1("img2"))%>">
        </td>
      </tr>
      <tr> 
        <td width="100"> </td>
        <td width="150"> 
			<a target="_blank" href="upfile.asp">
            <font color="#FF0000">Upfile</font></a></td>
        <td width="100"> </td>
        <td width="149"> 
           </td>
      </tr>
    </table>
    <table width="500" border="0" cellspacing="0" cellpadding="0">
      <tr> 
        <td width="250">Content: </td>
        <td width="250"> 
          <input type="checkbox" name="html" value="on">
          HTML</td>
      </tr>
    </table>
    <table width="500" border="0" cellspacing="0" cellpadding="0">
      <tr>
      <td height="11"> 
          <textarea name="nr" cols="65" rows="15"><%
                content=replace(rs1("nr"),"<br>",chr(13))
                content=replace(content,"&nbsp;"," ")    
            response.write content%></textarea>
      </td>
    </tr>
  </table>
  <input type="submit" name="yes" value="Submit">
  <input type="submit" name="no" value="Reset">
</form></td>
    </tr>
  </table>
  </center>
</div>
<%rs1.close
set rs1=nothing
conn.close
set conn=nothing
%>
</body>
</html>

⌨️ 快捷键说明

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