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

📄 list.asp

📁 漂亮公司企业网站自助建站系统 .asp.rar
💻 ASP
📖 第 1 页 / 共 2 页
字号:
<!--#include file="conn.asp"-->
<!--#include file="webconfig.asp"-->
<html><head><title><%=webname%>--商品信息</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="description" content="网趣购物系统,网趣购物系统增强版,网趣购物系统完美版,网趣商城,网趣购物程序,网趣购物,商城源码,网上商店,网上购物系统,自助网店,域名注册,虚拟主机,恒伟网络">
<meta name="keywords" content="网趣购物系统,网趣购物系统增强版,网趣商城,网趣购物程序,网趣购物,商城源码,网上商店,网上购物系统,自助网店,域名注册,虚拟主机,恒伟网络">
<link href="images/css.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.style1 {color: #FF0000}
.css03 {FONT-SIZE: 12px; LINE-HEIGHT: 130%}
-->
</style>
</head>
<script language="JavaScript">
	
	<!--
	
	function OpenNews() 
	{
			window.name = "news"
			win = window.open('','newswin','left=110,width=600,height=420,scrollbars=1');
	}
	//-->
	</script>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" >
<%if IsNumeric(request.QueryString("id"))=False then
response.write("<script>alert(""非法访问!"");location.href=""index.asp"";</script>")
response.end
end if
dim id
id=request.QueryString("id")
if not isinteger(id) then
response.write"<script>alert(""非法访问!"");location.href=""index.asp"";</script>"
end if%>
<%dim bookid,action
bookid=request.QueryString("id")
action=request.QueryString("action")
if action="save" then
set rs=server.CreateObject("adodb.recordset")
rs.open "select * from wq_review",conn,1,3
rs.addnew
rs("bookid")=bookid
rs("pingji")=request("pingji")
rs("pinglunname")=HTMLEncode2(trim(request("pinglunname")))
rs("pingluntitle")=HTMLEncode2(trim(request("pingluntitle")))
rs("pingluncontent")=HTMLEncode2(trim(request("pingluncontent")))
rs("ip")=Request.servervariables("REMOTE_ADDR")
rs("pinglundate")=now()
rs("shenhe")=1
rs.update
rs.close
set rs=nothing
set rs=server.CreateObject("adodb.recordset")
rs.open "select * from wq_books where bookid="&bookid,conn,1,3
rs("pingji")=rs("pingji")+1
rs("pingjizong")=rs("pingjizong")+request("pingji")
rs.update
rs.close
set rs=nothing
response.redirect request.servervariables("http_referer")
response.End
end if
%>
<!--#include file="webtop.asp"-->
<TABLE cellSpacing=0 cellPadding=0 width=772 align=center border=0>
  <TBODY>
    <TR>
     <td width="1" background="image/bgbg.gif"></td>
      <TD class=b vAlign=top align=left width=770><table width="770" align="center" border="0" cellspacing="0" cellpadding="0" class="table-zuoyou" bordercolor="#CCCCCC">
        <tr>
          <td width="178" valign="top" bordercolor="#FFFFFF" bgcolor="#FFFFFF"><!--#include file="history.asp"-->
              <!--#include file="gouwucheinfo.asp"-->
			  <!--#include file="searc.asp"-->
              <!--#include file="Recopro.asp"-->
          </td>
          <td valign="top" class="table-zuo" align="center" bgcolor="#FFFFFF" bordercolor="#FFFFFF"><%set rs=server.createobject("adodb.recordset")
rs.open "select * from wq_books where bookid="&request("id"),conn,1,3
if rs.recordcount=0 then 
%>
      商品已不存在
        <%
else
rs("liulancount")=rs("liulancount")+1
rs.update
if request.Cookies("cnhww")("username")<>"" then 
set rs_s=server.CreateObject("adodb.recordset")
rs_s.open "select * from [wq_user] where username='"&request.Cookies("cnhww")("username")&"'",conn,1,1
t_userid=rs_s("userid")
rs_s.close
		    set rs_s=server.createobject("adodb.recordset")
		    rs_s.open "select * from wq_his where bookid="&request("id")&" and username='"&request.Cookies("cnhww")("username")&"' and lx=1",conn,1,3
		    if rs_s.recordcount>0 then 
			rs_s("ltime")=now()
			rs_s("userid")=t_userid
			rs_s.update
			rs_s.close
			set rs_s=nothing
		    else
		    	rs_s.close
		    	set rs_s=server.createobject("adodb.recordset")
		    	rs_s.open "select * from wq_his where username='"&request.Cookies("cnhww")("username")&"' and lx=1 order by ltime",conn,1,3
		    	if rs_s.recordcount>=4 then
		    	    rs_s.delete
		    	    rs_s.update
		    	end if
		    	rs_s.addnew
		    	    rs_s("username")=request.Cookies("cnhww")("username")
		    	    rs_s("bookid")=request("id")
		    	    rs_s("bookname")=rs("bookname")
			    rs_s("userid")=t_userid
		    	    rs_s("lx")=1
		    	    rs_s("ltime")=now()
		        rs_s.update
			rs_s.close
			set rs_s=nothing
			end if
			end if
			%>
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
                  <td height="33" background="image/bgbg1.gif" bgcolor="#ffffff" class="table-shangxia"> 
                    <a href=index.asp>&nbsp;<%=webname%></a> >> 
                    <%set rs2=server.createobject("adodb.recordset")
									rs2.open "select * from wq_sort where anclassid="&rs("anclassid"),conn,1,1
									if rs2.recordcount>0 then
									response.write "<a href=class.asp?lx=big&anid="&rs2("anclassid")&" targer=_blank>"&rs2("anclass")&"</a> >> "
									end if
									rs2.close
									set rs2=server.createobject("adodb.recordset")
									rs2.open "select * from wq_sort2 where nclassid="&rs("nclassid"),conn,1,1
									if rs2.recordcount>0 then
									response.write "<a href=class.asp?lx=small&anid="&rs2("anclassid")&"&nid="&rs2("nclassid")&" targer=_blank>"&rs2("nclass")
									end if
									rs2.close
									set rs2=nothing%>
                  </td>
          </tr>
          <tr>
            <td><table width="98%" align="center" border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td valign="top" width="240"><table width="100%" border="0" cellspacing="0" cellpadding="2">
                      <tr>
                        <td><table cellspacing=0 cellpadding=0 width=220 height=220 border=0>
                            <tbody>
                              <tr>
                                      <td background=images/cla.gif align=center> 
                                        <%if rs("zhuang")="" then 
response.write "<img src=images/emptybook.gif width=200 border=0>"
else%>
                                        <a href="<%=trim(rs("zhuang"))%>" target="_blank" ><img src="<%=trim(rs("zhuang"))%>" width=200 border=0 alt="点击浏览商品大图" height="200"></a> 
                                        <%end if%>
                                      </td>
                              </tr>
                            </tbody>
                        </table></td>
                      </tr>
                  </table></td>
                  <td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="2">
                            <tr> 
                              <td height="30" colspan="3"><font color="#ff6600" size="3"><strong><%=rs("bookname")%></strong></font></td>
                            </tr>
                            <tr> 
                              <td colspan="3">商品数量:<%=trim(rs("kucun"))%> <%=rs("bookchuban")%> 
                                <%if rs("kucun")>0 then%>
                                <span class="style1">热卖中</span> 
                                <%else%>
                                <span class="style1">缺货</span> 
                                <%end if%>
                              </td>
                            </tr>
                            <tr> 
                              <td width="32%">点击次数:<%=trim(rs("liulancount"))%>次</td>
                              <td width="31%">商品折扣: 
                                <%response.write round(rs("dazhe")*10,2)&"折"%>
                              </td>
                              <td width="37%">赠送积分:<%=rs("yeshu")%> 分</td>
                            </tr>
                            <tr> 
                              <td>商品编号:<%=trim(rs("bianhao"))%></td>
                              <td colspan="2">&nbsp;</td>
                            </tr>
                            <tr> 
                              <td colspan="3">所属品牌:<span class="style1"><%=trim(rs("pingpai"))%></span></td>
                            </tr>
                            <tr> 
                              <td colspan="3"><table border="0" cellpadding="0" cellspacing="0">
                                  <tr> 

⌨️ 快捷键说明

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