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

📄 insert_product.asp

📁 ASPSQL企业网络管理系统
💻 ASP
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="../include/config.asp" -->
<!--#include file="../include/ServerControl.asp" -->
<!--#include file="../include/check_session.asp" -->
<%
'session("login_name") = "blackhu"
session("sqlString") = "select enter_id,enter_name from v_member where login_name = '" & session("login_name") & "'"
'Response.Write(session("sqlString"))
session("rs").open session("sqlString"),session("conn")
'session("mode") = "admin"
%>
<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="420" 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;"></td>
      <td width="140" align="right"> 产品类型&nbsp; <%
dim cmbtype
set cmbtype = new DBCombo
cmbtype.name = "type"
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;">/<input name="unit" type="text" style="width:30;"></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")("enter_id") %>','_blank')">
      </td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width="60">产品包装</td>
      <td colspan="3"><input name="package" type="text" style="width:346;"></td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td width="60">产品备注</td>
      <td colspan="3"><input type="text" name="memo" style="width:346;"></td>
    </tr>
    <tr bgcolor="#FFFFFF"> 
      <td colspan="4" >产品图片 </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;"></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")("enter_id") %>"> 
        <input name="action" type="hidden" id="action" value="insert"> <input name="reset" type="button" id="reset" value="重  置"></td>
    </tr>
  </table>
</form>
<%
session("rs").close
if session("mode") = "admin" then
	session("sqlString") = "select id,name,owner,enter_name,member_id,time from v_product" '& Request.QueryString("id")
	Server.Execute("../product/list_product.asp")
end if
session("sqlString") = ""
%>
</body>
</html>

⌨️ 快捷键说明

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