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

📄 edit_product.asp

📁 ASP企业网络管理系统
💻 ASP
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="../include/config.asp" -->
<!--#include file="../include/ServerControl.asp" -->
<!--#include file="../include/check_session.asp" -->
<%
session("sqlString") = "select * from v_product where id = " & Request.QueryString("id")
session("rs").open session("sqlString"),session("conn")
%>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../style/style.css" rel="stylesheet" type="text/css">
</head>

<body>
<form action="../admin/admin_product.asp" method="post" enctype="multipart/form-data" name="frmEnter">
  <table width="400" border="0" align="center" cellpadding="1" cellspacing="1" bgcolor="#dddddd">
    <tr bgcolor="#FFFFFF"> 
      <td width="60">产品名称</td>
      <td colspan="2"><input name="name" type="text" id="name" style="width:200;" value="<%= session("rs")("name") %>"></td>
      <td width="140" align="right"> 产品类型&nbsp; <%
dim cmbtype
set cmbtype = new DBCombo
cmbtype.name = "type"
cmbtype.selected = session("rs")("type_id")
cmbtype.writehtml "select * from product_type",session("conn")
			%> </td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width="60">产品价格</td>
      <td width="140">¥ 
        <input name="price" type="text" style="width:50;" value="<%= session("rs")("price") %>">
        / 
        <input name="unit" type="text" style="width:30;" value="<%= session("rs")("unit") %>"></td>
      <td width="60">产品厂商</td>
      <td width="140"> <input type="text" name="owner_name" value="<%= trim(session("rs")("enter_name")) %>" readonly="true" style="cursor:hand;" onClick="javascript:window.open('../enterprise/show_enter.asp?id=<%= session("rs")("owner") %>','_blank')"> 
      </td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width="60">产品包装</td>
      <td colspan="3"><input name="package" type="text" style="width:346;" value="<%= session("rs")("package") %>"></td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width="60">产品备注</td>
      <td colspan="3"><input name="memo" type="text" style="width:346;" value="<%= session("rs")("memo") %>"></td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td colspan="3" >产品图片 </td>
      <td align="right" >
			<% If session("rs")("pic").ActualSize <> 0 Then %>
			<a href="the_product_img.asp?id=<%= session("rs")("id") %>" target="_blank">查看图片</a>
			<% End If %>
			</td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td colspan="4"><input name="product_pic" type="file" id="product_pic" style="width:400;"></td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td colspan="4">产品介绍</td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td colspan="4" valign="top"><textarea name="intro" style="width:400;height:150;"><%= session("rs")("intro") %></textarea></td>
    </tr>
    <tr align="center" bgcolor="#FFFFFF"> 
      <td colspan="4"><input type="submit" name="Submit" value="修  改"> &nbsp;&nbsp;&nbsp;&nbsp; 
        <input name="owner" type="hidden" value="<%= session("rs")("owner") %>"> 
        <input name="id" type="hidden" value="<%= session("rs")("id") %>"> 
        <input name="action" type="hidden" id="action" value="edit"><input name="reset" type="button" id="reset" value="重  置"></td>
    </tr>
  </table>
</form>
<%
session("rs").close
%>
</body>
</html>

⌨️ 快捷键说明

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