<!--#include file="conn.asp"-->
<%
call head()
Call saycarda("本店商品")
%>
<!--#INCLUDE file="../bbs/sy1.asp"-->

<%
dim id,rzzt,YD_name,ffidd
YD_name=rs("name")
rzzt=rs("rzzt")
id=request.QueryString("id")
ffidd=cint(request.QueryString("id"))
if id="" or id<="0" then id=myid 
set npp=Server.CreateObject("ADODB.Recordset")
rspl="select * from Users where dzt=2 and id="&id
npp.open rspl,conn,1,1
if not npp.eof then
lylysaa=npp("logo")

if session("nid")<>id then
sql="update Users set dj=dj+1 Where id="&id
  conn.Execute(sql)
session("nid")=id
end if%>

<img src='<%=lylysaa%>' alt='加载图片中...'/><br/>

==本店商品==<br/>
<%
if myid<>0 then
mz="[url=/bbs/uinfo.asp?id="&myid&"&amp;sid=[sid]]"&myni&"[/url]"
else
mz="游客"
end if

set brs1say312=Server.CreateObject("ADODB.Recordset")
     ssql23="select top 3 * from shop_xx where fid="&ffidd
  brs1say312.open ssql23,connshop,1,1
if brs1say312.eof then
   Response.write "<b>暂无商品</b><br/>"
Else

For b=1 to 3
    spmcfl=left(brs1say312("name"),8)
   if len(brs1say312("name"))>8 then
    spmcfl=spmcfl+"..."
   End if
    Response.write "[新]<a href='view.asp?id="&brs1say312("id")&"&amp;sid="&sid&"&amp;saytk="&saytk&"'>"&spmcfl&"</a><br/>"
    brs1say312.Movenext
  if brs1say312.EOF then Exit for
    Next
  End if
brs1say312.close
set brs1say312=nothing%>

<a href='tsp.asp?id=<%=id%>&amp;sid=<%=sid%>&amp;saytk=<%=saytk%>'><%=ubb(npp("dname"))%>全部商品</a><br/>

<%
set brs1say312=Server.CreateObject("ADODB.Recordset")
     ssql23="select top 3 * from shop_xx where xt=1 and fid="&ffidd
  brs1say312.open ssql23,connshop,1,1
if brs1say312.eof then
   Response.write "<b>暂无推荐商品</b><br/>"
Else

For b=1 to 3
    spmcfl=left(brs1say312("name"),8)
   if len(brs1say312("name"))>8 then
    spmcfl=spmcfl+"..."
   End if
    Response.write "[荐]<a href='view.asp?id="&brs1say312("id")&"&amp;sid="&sid&"&amp;saytk="&saytk&"'>"&spmcfl&"</a><br/>"
    brs1say312.Movenext
  if brs1say312.EOF then Exit for
    Next
  End if
brs1say312.close
set brs1say312=nothing%>

<a href='tj.asp?sid=<%=sid%>&amp;saytk=<%=saytk%>&amp;id=<%=id%>'>推荐该店</a>|<a href='/bbs/uinfo.asp?id=<%=id%>&amp;sid=<%=sid%>'>店主资料</a><br/>
<a href='tly.asp?sid=<%=sid%>&amp;saytk=<%=saytk%>&amp;id=<%=id%>'>联系店主</a>|<a href='ts.asp?saytk=<%=saytk%>&amp;sid=<%=sid%>&amp;id=<%=id%>'>投诉本店</a><br/>
<%if id="" or id=myid then%>
<a href='mysp.asp?saytk=<%=saytk%>&amp;sid=<%=sid%>&amp;id=<%=id%>'>商品管理</a><br/>
<%end if%>
商铺介绍:<%=ubb(npp("djs"))%><br/>
荐（<%=ubb(npp("rm"))%>次）访（<%=ubb(npp("dj"))%>次）<br/>
<%else%>

无此店铺啊<br/>
<%end If
conn.execute("insert into sqdt(shijian,dz)values('"&now&"','"&mz&"逛了(url=/shop/index.asp?sid=[sid]&amp;saytk=[saytk])"&dname&"商铺(/url)')")%>
<!--#include file="fanhui.asp"-->
<%
call headsay()
%>
