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

📄 views.asp

📁 一个功能很全面占用空间的小商城程序,适合个人网上开店使用
💻 ASP
字号:
<!-- #include file="include/newsConvert.asp"-->
<!--#include file="conn.asp"-->
<script>
  function openbag(id) { window.open("basket.asp?hw_id="+id,"","width=800,left=0,top=0,resizable=yes,scrollbars=yes,status=yes,toolbar=yes,menubar=yes,location=yes");} 
</script>
<script language="javascript">
function openScript(url, width, height){
	var Win = window.open(url,"openScript",'width=' + width + ',height=' + height + ',resizable=1,scrollbars=yes,menubar=no,status=yes' );
}
</script>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<Title>详细信息</title>
<meta name="keywords" content="电子商务,平台,软件,B2C,btoc,免费">
<LINK 
href="image/all.css" rel=stylesheet><LINK 
href="image/menu.css" rel=stylesheet>
</head>
<table border="0" width="500" cellspacing="0" cellpadding="0">
  <tr>
    <td width="500" valign="top" align="center">
          <%   set rs=server.createobject("adodb.recordset")
      sql="select * from hw where hw_id="&int(request("hw_id"))
      rs.open sql,conn,3,3
      if rs.eof then
      %>
      <tr>
        <td width="500" bgcolor="#DDF7CA" height="18">
        没有找到你要查看的商品
        </td>
      </tr>
      <%else
      do while not rs.eof
      hw_id=rs("hw_id")
      hw_name=rs("hw_name")
      hw_cash=rs("hw_cash")
      hw_oldcash=rs("hw_oldcash")
      leibie=rs("leibie")
ping=rs("ping")
lei=rs("lei")
ISBN=rs("ISBN")
hw_sn=rs("hw_sn")
xing=rs("xing")
zuoze=rs("zuoze")
      %>
      <table width="98%" border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td>您正在浏览的商品是:<%=rs("hw_name")%></td>
        </tr>
        <tr> 
          <td bgcolor="#000000"></td>
        </tr>
      </table>
      <br>
      <table width="98%" border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td width="37%" align="center" valign="top"> 
            
            <a href="<%=rs("hw_pic")%>" target="_blank"><img  src="<%=rs("hw_pic")%>" border=1></a><br>
           
          </td>
          <td width="63%" align="center" valign="top"> 
            <table width="98%" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td colspan="2" height="20"><span class="big"><b><%=rs("hw_name")%></b></span></td>
              </tr>
              <tr> 
                <td bgcolor="#999999" width="50%"></td>
                <td bgcolor="#999999" width="50%"></td>
              </tr>   
              <tr> 
                <td bgcolor="#999999" width="50%" height="0"></td>
                <td bgcolor="#999999" width="50%" height="0"></td>
              </tr>
             <% if zuoze <> "" then%> <tr> 
                <td height="20" width="100%">

<% if leibie="作者" then
response.write "【作&nbsp;&nbsp;&nbsp;&nbsp;者】"
else if leibie="演唱" then
response.write "【歌&nbsp;&nbsp;&nbsp;&nbsp;手】"
else if leibie="主演" then
response.write "【主&nbsp;&nbsp;&nbsp;&nbsp;演】"
else if leibie="" then
response.write "【作&nbsp;&nbsp;&nbsp;&nbsp;者】"
end if
end if
end if
end if%>:<font color="#cc0000"><%=rs("zuoze")%> </font> 
                  
                </td></tr>
<%end if%>
<% if ping <> "" then%>
<% if leibie="作者" then %>
<Tr>
                <td height="20" width="100%">【开&nbsp;&nbsp;&nbsp;&nbsp;本】:<font color="#cc0000"><%=rs("ping")%></font></td>
              </tr>
<%end if%>
<% if leibie="演唱" then %>
<Tr>
                <td height="20" width="100%">【配音/语种】:<font color="#cc0000"><%=rs("ping")%></font></td>
              </tr>
<%end if%>
<% if leibie="主演" then %>
<Tr>
                <td height="20" width="100%">【配音/语种】:<font color="#cc0000"><%=rs("ping")%></font></td>
              </tr>
<%end if%>
<%end if%>
<% if lei <> "" then%>
              <tr> 
                <td height="20" width="100%">【出版社&nbsp;&nbsp;】:<%=rs("lei")%></td></tr>
<% end if%><% if ISBN <> "" then%><Tr>
                <td height="20" width="100%">【ISBN号码】:<b><%=rs("ISBN")%><%rs("hw_views")=rs("hw_views")+1%>
             </b></td>
              </tr><% end if%>
<% if hw_sn <> "" then%>
              <tr> 
                <td height="20" width="100%">【页&nbsp;&nbsp;&nbsp;&nbsp;数】:<%=rs("hw_sn")%></td></tr>
<% end if%>
<% if xing <> "" then%><Tr>
                <td height="20" width="100%">【出版日期】:<b><%=rs("xing")%>
             </b></td>
              </tr><% end if%><%rs("hw_views")=rs("hw_views")+1%>
              <tr> 
                <td height="20" width="100%">【商品原价】:<font color=#cc0000><b><s>¥<%=hw_oldcash%><%if session("user_type")="批发" then response.write "(批发价:" & rs("daili") & "元)"%>
		  <%if session("user_type")="代理" then response.write "(代理价:" & rs("daili") & "元)"%></s></b></font></td></tr><Tr>
                <td height="20" width="100%">【成交次数】:<font color=#cc0000><b><%=rs("hw_buys")%></b></font></td>
              </tr>
              <tr> 
                <td height="20" width="100%">【商品现价】:<font color=#cc0000><b>¥<font color=#cc0000><%=hw_cash%></b></font></td></tr>
                      
              <tr> 
                <td height="30" width="50%" align="center">&nbsp;</td>
                <td height="30" width="50%" align="center">&nbsp;</td>
              </tr>
            </table>
          </td>
        </tr>
      </table>
 
      <table width="98%" border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td width="17%"><font class="big">商品简介:</font></td>
          <td width="83%" align="center"></td>
        </tr>
        <tr> 
          <td colspan="2" bgcolor="#000000"></td>
        </tr>
        <tr> 
          <td colspan="2"><br>上架时间:<%=rs("hw_date")%><br>
            <br>
            <font class="big2"><%=newsConvert(rs("hw_content"))%></font></td>
        </tr>
        <tr bgcolor="#000000"> 
          <td colspan="2"></td>
        </tr>
        
      </table>

      <br>
      <table width="98%" border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td height="20" align="center"><a href='javascript:openbag(<%=rs("hw_id")%>)'><img src="IMAGE/LIBUY.GIF" width="72" height="28" border="0" alt="<%=rs("hw_name")%>"></a>&nbsp;&nbsp;&nbsp;&nbsp;<A  target="_blank" href="favadd.asp?hw_id=<%=rs("hw_id")%>"><img src="IMAGE/JRSC.GIF" width="72" height="28" border="0" alt="把<%=rs("hw_name")%>加入收藏夹"></a>&nbsp;&nbsp;&nbsp;&nbsp;<a  target="_blank" href="tofriend.asp?hw_id=<%=rs("hw_id")%>&hw_name=<%=rs("hw_name")%>"><img src="IMAGE/TJF.GIF" width="85" height="28" border="0"></a>&nbsp;&nbsp;&nbsp;&nbsp;<a  target="_blank" href="talk.asp?hw_id=<%=rs("hw_id")%>&hw_name=<%=rs("hw_name")%>"><img src="IMAGE/PL.GIF" width="85" height="28" border="0"></a></td>
        </tr>
        <tr> 
          <td align="center" bgcolor="#000000"></td>
        </tr>
      </table>
       <%rs.movenext
      loop
      end if
      rs.close
      %>
	<%sql="select * from hw where hw_ID="&hw_id&""   
	rs.open sql,conn,1,1  
	avgGrade=rs("avgGrade")
	EssayNum=rs("EssayNum")
rs.close
%>
     
      <br>
      <table width="98%" border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td background="image/dot_bkg_gr.gif"><b>网友评论--欢迎您对商品进行评论,表明您对此商品的感觉。</b></td>
        </tr>
      </table>
      <table width="98%" border="0" cellspacing="1" cellpadding="3" bgcolor="#e3f1d1" align="center">
<%sql="select * from hw where hw_ID="&hw_id   
	rs.open sql,conn,1,1  
	avgGrade=rs("avgGrade")
	EssayNum=rs("EssayNum")
%>
          <tr bgcolor="#FFFFFF"> 
            <td align="center">评价情况</td>
            <td>共有 <font color="#FF0000"><%=rs("EssayNum")%></font> 人参与评价,评均得分:<font color="#FF0000"><%=rs("avgGrade")%></font> 分</td>
          </tr>
          <% rs.close
		sql="select top 6 * from talk where hw_ID="&hw_id&" order by ID desc " 
	rs.open sql,conn,1,1
	if not (rs.eof and rs.bof) then
	do while not rs.eof 
		 %>
          <tr bgcolor="#F7F7F7"> 
            <td colspan="2"><font color="#666666">NO.<%=rs("ID")%> </font>名字:<%=rs("UserName")%> 打分:<font color="#FF0000"><%=rs("Grade")%></font> 分 时间:<%=rs("DateTime")%>评论人信箱:<A href="mailto:<%=rs("Email")%>"><%=rs("Email")%></a></td>
          </tr>
          <tr bgcolor="#FFFFFF"> 
            <td colspan="2"><%=rs("Content")%></td>
          </tr>
          <%
		rs.movenext
	    loop
	   	end if 
	    rs.close
		
		%>
         
      
          <tr bgcolor="#FFFFFF"> 
            <td align="center">&nbsp;</td>
            <td>&nbsp;</td>
          </tr>
        </table>
      <table width="98%" border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td align="right"><a href="moretalk.asp?hw_id=<%=hw_id%>&hw_name=<%=hw_name%>" target="_blank">更多评论&gt;&gt;&gt;</a></td>
        </tr>
      </table>
    </td>

  </tr>
</table>


⌨️ 快捷键说明

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