<!-- #include file="include/config_shop.asp" -->
<%
id=trim(request.querystring("id"))
if not(isnumeric(id)) then
  response.redirect "shop.asp"
  response.end
end if
%>
<!-- #include file="include/jk_ubb.asp" -->
<!-- #include file="include/config_review.asp" -->
<!-- #include file="include/conn.asp" -->
<%
dim name,remark_1,remark_2,price_1,price_2,bigimg,serial,brand,stock,isgood,counter,buy_counter,down_url,down_remark
tit="产品浏览"

sql="select * from product where hidden=1 and id="&id
set rs=conn.execute(sql)
if rs.eof and rs.bof then
  rs.close:set rs=nothing
  close_conn
  response.redirect "shop.asp"
  response.end
end if
cid=rs("c_id"):sid=rs("s_id")
name=rs("name")
remark_1=rs("remark_1")
remark_2=rs("remark_2")
price_1=rs("price_1")
price_2=rs("price_2")
down_url=rs("down_url")
down_remark=rs("down_remark")
bigimg=rs("bigimg")
serial=rs("serial")
brand=rs("brand")
stock=rs("stock")
isgood=rs("isgood")
counter=rs("counter")
buy_counter=rs("buy_counter")
rs.close:set rs=nothing

conn.execute("update product set counter=counter+1 where id="&id)

call web_head(0,0,0,0,0)
'------------------------------------left----------------------------------
call format_login()
call shop_sort()
call shop_left()
'----------------------------------left end--------------------------------
call web_center(0)
'-----------------------------------center---------------------------------
response.write ukong

w_h=" width="&web_var(web_shop,5)&" height="&web_var(web_shop,6)
%>
<table border=0 width='96%' cellspacing=0 cellpadding=0>
<tr align=center>
<td width='40%'><img src='<%response.write url_true(upload_file,bigimg)%>' border=0 width=148 height=115></td>
<td width='60%'>
  <table border=0 width='96%'>
        <tr>
          <td colspan="2">产品名称：<font class=red_3><b>
            <%response.write name%>
            </b></font></td>
        </tr>
        <tr>
          <td colspan="2">产品品牌：
            <%response.write brand%>
          </td>
        </tr>
        <tr>
          <td colspan="2">产品编号：
            <%response.write serial%>
          </td>
        </tr>
        <tr>
          <td colspan="2">会员价格：<font class=red>
            <%response.write "<u>￥"&price_2%>元/年</u>
            </font></td>
        </tr>
        <tr>
          <td colspan="2">市场价格：<font class=gray>
            <%response.write "￥<i>"&price_1%>元/年</i>
            </font></td>
        </tr>
        <tr>
          <td colspan="2">产品库存：<font class=red>
            <%response.write stock%>
            </font></td>
        </tr>
        <tr>
          <td colspan="2">产品人气：浏览&nbsp;<font class=red_4>
            <%response.write counter%>
            &nbsp;次</font>&nbsp;&nbsp;订购&nbsp;<font class=red>
            <%response.write buy_counter%>
            </font>&nbsp;次</td>
        </tr>
        <tr>
          <td align=left>[&nbsp;<a href='javascript:;' onclick="javascript:open_win('email.asp?nsort=<%=tit%>&topic=<%=name%>&url=shop_view.asp?id=<%=sid%>','email',500,305,'no');">→&nbsp;推荐给我的好友</a>&nbsp;]</td>
          <td align=center><a href='shop_bag.asp?id=<%response.write id%>'><img align=absMiddle src='images/shop/buy.gif' border=0></a></td>
        </tr>
      </table>
</td></tr>
<tr><td colspan=2 height=10></td></tr>
<tr><td colspan=2><table border=0 cellspacing=0 cellpadding=0 width='100%'><tr><td width=100 align=center height=20 background="IMAGES/<%response.write web_var(web_config,5)%>/bg_td.gif" bgcolor=<%response.write web_var(web_color,2)%> class=end><b>产品简介</b></td><td align=right><a href='#top'><img src='images/small/gotop.gif' border=0></a></td></tr></table></td></tr>
<tr><td colspan=2 height=1 background='images/bg_dian.gif'></td></tr>
<tr><td colspan=2><table border=0><tr><td><%response.write code_html(remark_1,1,0)%></td></tr></table></td></tr>
<tr><td colspan=2 height=10></td></tr>
<tr><td colspan=2><table border=0 cellspacing=0 cellpadding=0 width='100%'><tr><td width=100 align=center height=20 background="IMAGES/<%response.write web_var(web_config,5)%>/bg_td.gif" bgcolor=<%response.write web_var(web_color,2)%> class=end><b>详细说明</b></td><td align=right><a href='#top'><img src='images/small/gotop.gif' border=0></a></td></tr></table></td></tr>
<tr><td colspan=2 height=1 background='images/bg_dian.gif'></td></tr>
<tr><td colspan=2><table border=0><tr><td><%response.write code_jk(remark_2)%></td></tr></table></td></tr>
<tr><td colspan=2 height=10></td></tr>
<tr><td colspan=2><table border=0 cellspacing=0 cellpadding=0 width='100%'><tr><td width=100 align=center height=20 background="IMAGES/<%response.write web_var(web_config,5)%>/bg_td.gif" bgcolor=<%response.write web_var(web_color,2)%> class=end><b>相关下载</b></td><td align=right><a href='#top'><img src='images/small/gotop.gif' border=0></a></td></tr></table></td></tr>
<tr><td colspan=2 height=1 background='images/bg_dian.gif'></td></tr>
<tr><td colspan=2><table border=0 width='96%'><tr height=30>
<%if len(down_url)>3 then%>
<td width='20%' align=center>[ <a href='<%response.write down_url%>' target=_blank>点击下载</a> ]</td>
<td width='80%'><%response.write code_html(down_remark,1,0)%></td>
<%else%>
<td class=gray>（本产品没有相关下载）</td>
<%end if%>
</tr></table></td></tr>
<tr><td colspan=2 height=10></td></tr>
<tr><td colspan=2 align=center><% call review_type(n_sort,id,"shop_view.asp?id="&id,1) %></td></tr>
</table>
<%
'---------------------------------center end-------------------------------
call web_end(0)
%>