?? listjp_bak.asp
字號:
<!--#include file="conn.asp"-->
<!--#include file="webconfig.asp"-->
<html><head><title><%=webname%>--商品信息</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="images/css.css" rel="stylesheet" type="text/css">
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<!--#include file="webtop.asp"-->
<table width="760" align="center" border="0" cellspacing="0" cellpadding="0" class="table-zuoyou" bordercolor="#CCCCCC">
<tr>
<td width="100%" valign="top" bgcolor="#FFFFFF" bordercolor="#FFFFFF">
<table width="100%" border="0" cellspacing="0" cellpadding="4" align="center" class="table-shangxia">
<tr><td background="images/class_bg.jpg" height=50> <img src="images/ring02.gif" align="absmiddle"> <a href=index.asp><%=webname%></a> >> 獎品信息</td>
</tr>
</table>
<%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%>
<%
set rs=server.createobject("adodb.recordset")
rs.open "select * from shop_jiangpin where bookid="&request("id"),conn,1,3
if rs.recordcount=0 then
%>
<table width="370" border="0" cellspacing="0" cellpadding="5" align="center">
<tr>
<td align=center>調用獎品錯誤</td>
</tr>
</table>
<%else%>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="top" width="40%">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<table align=center cellspacing=0 cellpadding=0 width=220 height=220 border=0>
<tbody>
<tr>
<td background=images/cla.gif align=center>
<%if rs("bookpic")<>"" then
response.write "<a href="&trim(rs("bookpic2"))&" target=_blank><img src="&trim(rs("bookpic"))&" width=150 border=0></a>"
else
response.write "<img src=images/emptybook.gif width=150 border=0>"
end if%>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</table>
</td>
<td valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="2">
<tr>
<td>市 場 價:<%=rs("shichangjia")%> 元,所需積分:<%=rs("jifen")%></td>
</tr>
<tr>
<td>獎品名稱:<%=rs("bookname")%></td>
</tr>
<tr>
<td>獎品說明:<%=rs("bookcontent")%></td>
</tr>
</table>
</td>
</tr>
<%
rs.close
set rs=nothing
end if%>
<%
set rs=server.createobject("adodb.recordset")
rs.open "select * from shop_pinglun where bookid="&request("id")&" order by pinglundate desc",conn,1,1
j=rs.recordcount
'if i>5 then j=5
for i=1 to j
%>
<%
rs.movenext
next
%>
</table>
</td>
</tr>
</table>
<!--#include file="service.asp"-->
<!--#include file="copyright.asp"-->
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -