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

📄 goodsinfo.asp

📁 ASP,版本,HUANYING NI DE XIAZAI ! LIANXIFANSHI:BINDIYI@163.COM
💻 ASP
字号:

<!--#include file="conn.asp"-->
<!--#include file="Cookies.asp"-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
<style type="text/css">
<!--
.style2 {
	font-size: 45px;
	color: #330099;
}
.style4 {color: #330099}
.style5 {color: #3300CC}
.style7 {
	font-size: 20px;
	color: #3300CC;
	font-family: "华文行楷";
}
.style8 {color: #3300CC; font-size: 20px;}
.style9 {font-size: 18px}
-->
</style></head>
<%
if request("xingxing")="del" then
call del()
response.End()
end if
%>
<body>
<%
dim rs,us,id
id=request("goods_id")
set rs=server.CreateObject("adodb.recordset")
us="select * From goods where goods_id="&id
rs.Open us,conn,1
%>
<p align="center" class="style2">商品信息</p>

<div align="center">

<form name="form2" method="post" action="editgoods.asp">
<table width="530" height="503" border="1" bordercolor="#FF0000" bgcolor="#CCCC99">
    <tr>
      <th width="202" rowspan="2" scope="row"><p><img src="/goodsimg/<%=rs("path")%>" width="161" height="114"></p>
      <p>图象路径
        <input type="text" name="path" height="20" value="<%=rs("path")%>">
      </p></th>
      <td width="312" height="62"><span class="style7">产品名称
(</span><span class="style8">ID</span><span class="style7">号:<input type="text"  name="goods_id" width="50" height="20"   readonly="" value="<%=rs("goods_id")%>">
<span class="style8"></span>)</span></td>
    </tr>
    <tr>
      <td height="65"><span class="style7">
        <input type="text" name="name" height="20" value="<%=rs("name")%>">
      </span> </td>
    </tr>
    <tr>
      <th height="34" scope="row"><p class="style4">现有存货量</p>      </th>
      <td><input type="text" name="inventory"height="20" value="<%=rs("inventory")%>"></td>
    </tr>
    <tr>
      <th height="24" scope="row"><span class="style4"> 一级分类</span></th>
      <td><input type="text" name="class1"height="20" value="<%=rs("class1")%>"></td>
    </tr>
    <tr>
      <th height="29" scope="row"><span class="style4">二级分类</span></th>
      <td scope="row"><input type="text" name="class2"height="20" value="<%=rs("class2")%>"></td>
    </tr>
    <tr>
      <th height="29" scope="row"><span class="style4">参考价格</span></th>
      <td><input type="text" name="price"height="20" value="<%=rs("price")%>"></td>
    </tr>
    <tr>
      <th height="30" scope="row"><span class="style4">打折信息 </span></th>
      <td><input type="text" name="discount"height="20" value="<%=rs("discount")%>"></td>
    </tr>
    <tr>
      <th height="28" scope="row"><span class="style4">面向地区</span></th>
      <td><input type="text" name="area"height="20" value="<%=rs("area")%>"></td>
    </tr>
    <tr>
      <th height="133" scope="row"><span class="style5">产品简介</span></th>
      <td><textarea name="introduce" cols="40" rows="8" ><%=rs("introduce")%></textarea></td>
    </tr>
  </table>
<table width="200" border="0">
  <tr>
    <th width="19" scope="col">&nbsp;</th>
    <th width="75" scope="col"><input type="submit" name="Submit2" value="修改"></th>
    <th width="84" scope="col"><a href="goodsinfo.asp?xingxing=del&goods_id=<%=rs("goods_id")%>" class="style9">删 除</a></th>
  </tr>
</table>
</form> 
</div>
	<% 
    rs.close
    set rs=nothing
	closedb
%>
  
    <p class="style2"><br>
</p>
</body>
</html>
<%
sub del()
goods_id=request("goods_id")
sql="delete From goods where goods_id="& goods_id

conn.execute(sql)
response.write "<li>删除物品信息成功。"
response.write "<meta http-equiv=refresh content=""1;URL=goods_manage.asp"">"

end sub

%>

⌨️ 快捷键说明

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