<%
'商易仿淘宝4.0(多用户)
'ACCESS版演示网站：http://www.ftaobao.com(商易仿淘宝商城)
'SQL版演示网站：http://sql.ftaobao.com
'电话：0571-56907100
'QQ：1147100
%>
<%qx=4%>
<!--#include file="../store/top.asp"-->
<!--#include file="../leaguer/check.asp"-->
<!--#include file="../../include/conn.asp"-->
<!--#include file="../../include/page.asp"-->
<html>
<head> 
<title>商易网络</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../../include/css.css" rel="stylesheet" type="text/css">
<body bgcolor="#FFFFFF" text="#000000"> 
<br>

    <table width="100%" border="0" cellspacing="1" cellpadding="4">
<tr valign="middle" bgcolor="#CCCCCC"> 
    <td height="25"  align="center" bgcolor="#FFFFFF"><a href="gwznadd.asp">添加记录</a><font color="#1478eb">&nbsp; 
      </font>|<font color="#1478eb">&nbsp; </font><a href="gwznindex.asp">管理分类</a></td>
  </tr>
    </table>
<table width="98%" border="0" align="center" cellpadding="4" cellspacing="1" bgcolor="#183789" >
  
  <tr valign="middle" bgcolor="#f1f1f1">
    <td height="25" colspan="6" align="center" bgcolor="#FFFFFF"  background="../images/admin_bg_4.gif" ><span class="White_txt" style="color: #FFFFFF"><strong>新手指南管理</strong></span></td>
  </tr>
  <tr valign="middle" bgcolor="#f1f1f1"> 
    <td width="50" height="21" align="center" bgcolor="#FFFFFF">ID</td>
    <td width="330" height="21" align="center" bgcolor="#FFFFFF">标 题</td>
    <td width="58" height="21" align="center" bgcolor="#FFFFFF">人气</td>
    <td width="114" height="21" align="center" bgcolor="#FFFFFF">类别</td>
    <td width="35" height="21" align="center" bgcolor="#FFFFFF">修改</td>
    <td width="35" height="21" align="center" bgcolor="#FFFFFF">删 除</td>
  </tr>
  <%
Set rs = Server.CreateObject("ADODB.Recordset")
if request("lbid")<>"" then lbid=request("lbid") else lbid=0
if lbid<>0 then lbid="and lbid="&shopnet("lbid")&"" else lbid=""
if request("lx")<>"" then lx="and lx="&shopnet("lx")&"" else lx=""
if request("key")<>"" then key="and (bt like '%"&shopnet("key")&"%' or nr like '%"&shopnet("key")&"%')" else key=""
sql="Select * From gwzn where id<>0 "&lbid&" "&lx&" "&key&" Order By id DESC"
rs.open sql,conn,3,1 
if rs.eof then
response.Write("<tr bgcolor=""#f1f1f1""><td height=""21"" colspan=""6"" align=""center""  bgcolor=""#FFFFFF"">暂时没有信息！</td></tr>")
else
page1("10")
i=1
do while not rs.eof and i<=rs.pagesize%>
  <tr valign="middle" bgcolor="#f1f1f1"> 
    <td width="50" height="25" align="center" bgcolor="#FFFFFF"><a href="../../gwzn.asp?id=<%=rs("id")%>" target="_blank"><%=rs("id")%></a></td>
    <td height="25" bgcolor="#FFFFFF"><a href="gwznxiangxi.asp?id=<%=rs("id")%>" target="_blank"><%=rs("bt")%></a></td>
    <td width="58" bgcolor="#FFFFFF"><div align="center"><%=rs("count")%></div></td>
    <td width="114" bgcolor="#FFFFFF"><div align="center"><a href="?lbid=<%=rs("lbid")%>"> 
        <%if rs("lbid")=0 then Response.Write "未选归类" else Response.Write conn.execute("select lb from gwzn_lb where id="&rs("lbid")&"")(0)%>
    </a></div></td>
    <td width="35" align="center" bgcolor="#FFFFFF"><a href="gwznxiugai.asp?id=<%=rs("id")%>">修改</a></td>
    <td width="35" height="25" align="center" bgcolor="#FFFFFF"><a href="gwzndel.asp?id=<%=rs("id")%>">删除</a></td>
  </tr>
  <%i=i+1
rs.MoveNext                                              
loop%>
  <tr valign="middle" bgcolor="#f1f1f1"> 
    <td height="21" colspan="6" align="center" bgcolor="#FFFFFF"> <%page2("")%> </td>
<%end if%>
</table>
<table width="600" align="right" cellpadding="0" cellspacing="0">
  <tr><form name="form" method="post" action="?">
      <td height="30" valign="middle">搜索显示：
<%Response.Write "<select name=lbid size=1 class=wenbenkuang><option value=0>在所有分类中搜索</option>"
set lb = conn.execute("select id,lb from gwzn_lb order by id")
do while not lb.eof
Response.Write "<option value="&lb("id")&">"&lb("lb")&"</option>"
lb.movenext
loop
lb.close
set lb = nothing
Response.Write "</select>"%>
        <input name=key type="text" class="wenbenkuang" id="key" size="10" maxlength="10"> 
        <input name="submit" type="submit" class="go-wenbenkuang" value="搜索">
        <br></td>
    </form>
  </tr>
</table>
</body>
</html>
<%rs.close
set rs=nothing
conn.close
set conn=nothing
set rs=nothing
%>
