<%
'商易仿淘宝4.0(多用户)
'ACCESS版演示网站：http://www.ftaobao.com(商易仿淘宝商城)
'SQL版演示网站：http://sql.ftaobao.com
'电话：0571-56907100
'QQ：1147100
%>
<%qx=3%>
<!--#include file="top.asp"-->
<!--#include file="check.asp"-->
<!--#include file="../include/conn.asp"-->

<%
if request("tuijian")="yes" and request("id")<>"" then
conn.execute("Update shop set tuijian_shop = 1 where id="&shopnet("id")&"")
response.Write("<Script>alert('推荐成功!');window.location='tuijian_shop.asp';</script>")
end if
if request("tuijian")="no" and request("id")<>"" then
conn.execute("Update shop set tuijian_shop = 0 where id="&shopnet("id")&"")
response.Write("<Script>alert('取消推荐成功!');window.location='tuijian_shop.asp';</script>")
end if

set rs = conn.execute("select * from shop where tuijian_shop=1 order by id desc")%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../include/css.css" rel="stylesheet" type="text/css">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<br>
</div>
<table cellspacing="1" cellpadding="4" class="tableborder" align="center">
  <tr valign="middle" bgcolor="#f1f1f1">
    <td height="25" colspan="5" align="center" background="images/admin_bg_4.gif" bgcolor="#FFFFFF"><span style="color: #FFFFFF; font-weight: bold">推荐店铺列表</span></td>
  </tr>
  <tr valign="middle" bgcolor="#f1f1f1">
    <td width="46" align="center" bgcolor="#FFFFFF">ID</td>
    <td width="454" align="center" bgcolor="#FFFFFF">店铺名称</td> 
    <td width="158" height="21" align="center" bgcolor="#FFFFFF">店铺负责人</td>
    <td width="208" height="20" align="center" bgcolor="#FFFFFF">店铺注册时间</td>
    <td width="103" align="center" bgcolor="#FFFFFF">推荐操作</td>
  </tr>
  <%
  if rs.eof then
response.Write("<tr><td colspan=5 bgcolor=#ffffff align=center height=25>当前没有推荐商铺！</td></tr>")
else
  
  do while not rs.eof
 '商易仿淘宝4.0.1演示地址
'http://www.ftaobao.com
%>
  <tr valign="middle" bgcolor="#FFFFFF">
    <td bgcolor="#FFFFFF"><div align="center"><font color=#ff6600><%=rs("id")%></font></div></td>
    <td bgcolor="#FFFFFF"><div align="center"><a href="../store/1/myshop.asp?shopid=<%=rs("id")%>" target="_blank"><%=rs("name")%></a></div></td> 
    <td height="25" bgcolor="#FFFFFF"><div align="center"><%=rs("name2")%>/<%=rs("huiyuan")%>    </div></td>
    <td width="208" height="20" align="center" bgcolor="#FFFFFF"><%=rs("sj")%></td>
    <td width="103" align="center" bgcolor="#FFFFFF"><a href="tuijian_shop.asp?tuijian=no&id=<%=rs("id")%>">取消推荐</a></td>
  </tr>

  <%rs.movenext
loop
rs.close
set rs=nothing
conn.close
set conn=nothing
%>

<%end if%> 
</table>
</body>
</html>
