?? views.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 "【作 者】"
else if leibie="演唱" then
response.write "【歌 手】"
else if leibie="主演" then
response.write "【主 演】"
else if leibie="" then
response.write "【作 者】"
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%">【開 本】:<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%">【出版社 】:<%=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%">【頁 數】:<%=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"> </td>
<td height="30" width="50%" align="center"> </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> <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> <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> <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"> </td>
<td> </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">更多評論>>></a></td>
</tr>
</table>
</td>
</tr>
</table>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -