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

📄 tui_chanpin.asp

📁 电子商务系统Easy_Buy是一个在线销售系统
💻 ASP
字号:
<!--#include file="../login/0.asp"--><!--#include file="../../conn/conn.asp"-->
<%if request("add")="yes" then
Set s= Server.CreateObject("abodb.recordset")
set rs = conn.execute("select * from chanpin where id="&request("id")&"")
if not rs.eof then
Set s= Server.CreateObject("abodb.recordset")
conn.execute("Insert into tui_chanpin(id,mc,xt,jg1,jg2)values("&request("id")&",'"&rs("mc")&"','"&rs("xt")&"',"&rs("jg1")&","&rs("jg2")&")")
end if
rs.close
Response.redirect "tui_chanpin.asp"
end if
if request("del")="yes" then
Set s= Server.CreateObject("abodb.recordset")
conn.execute("Delete tui_chanpin where tui_id="&request("tui_id")&"")
Response.redirect "tui_chanpin.asp"
end if
Set s= Server.CreateObject("abodb.recordset")
set rs = conn.execute("select * from tui_chanpin order by tui_id desc")%><html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../../css/css.css" rel="stylesheet" type="text/css">
<STYLE>
BODY {
	SCROLLBAR-FACE-COLOR: #799ae1;
	SCROLLBAR-HIGHLIGHT-COLOR: #799ae1;
	SCROLLBAR-SHADOW-COLOR: #799ae1;
	SCROLLBAR-3DLIGHT-COLOR: #799ae1;
	SCROLLBAR-ARROW-COLOR: #fcfcfc;
	SCROLLBAR-TRACK-COLOR: #aabfec;
	SCROLLBAR-DARKSHADOW-COLOR: #799ae1;
	SCROLLBAR-BASE-COLOR: #799ae1;
	background-color: #CAD7F7;
}
.STYLE3 {
	color: #FFFFFF;
	font-weight: bold;
}
</STYLE>
</head>
<body bgcolor="#FFFFFF" text="#000000">
<table width="99%" align="center" cellpadding="0" cellspacing="0">
  <tr> 
    <form action="tui_chanpin.asp?add=yes" method="POST" name="myform" id="myform">
      <td height="30" colspan="2" align="center" valign="middle">产品ID: 
        <input name=id type="text" id="id" size="15"> 
        <input name="submit" type="submit" value="增加"> 
      </td>
    </form>
  </tr>
</table>
<table width="99%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#FFFFFF">
  <tr valign="middle" bgcolor="#f1f1f1"> 
    <td width="925" height="25" align="center" background="../../images/admin_bg_11.gif" bgcolor="#f1f1f1"><span class="STYLE3">产品ID</span></td>
    <td width="57" height="20" align="center" background="../../images/admin_bg_11.gif" bgcolor="#f1f1f1"><span class="STYLE3">删除</span></td>
  </tr><%do while not rs.eof%>
  <tr valign="middle" bgcolor="#FFFFFF"> 
    <td height="25" bgcolor="#E8F1FF"> 
      <font color=#ff6600>[<%=rs("id")%>]</font><%=rs("mc")%>    </td>
    <td width="57" height="20" align="center" bgcolor="#E8F1FF"><a href="?del=yes&tui_id=<%=rs("tui_id")%>">删除</a></td>
  </tr><%rs.movenext
loop
rs.close%>
</table>
</body>
</html>

⌨️ 快捷键说明

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