<!--#include file="utf-8.asp" -->
<!--#include file="js/Function.asp" -->
<!--#include file="CheckAdmin.asp" -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<META NAME="copyright" CONTENT="Copyright 2010-2012 - yidacms.com" />
<META NAME="Author" CONTENT="世纪伟成  yidacms.com" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>搜索配置！</title>
<link href="js/admin.css" rel="stylesheet" type="text/css">
</head>

<body>
 
<%
	set rs = server.createobject("adodb.recordset")
	sql="select * from shuaiweb_search ORDER BY searchnumber DESC"
	rs.open sql,dbok,1,1
%>
<table width="98%" border="1" cellpadding="6" cellspacing="0" bordercolor="#cccccc" style="border-collapse:collapse" bgcolor="ffffff" align="center"> 
  <tr>
   <td bgcolor="#CCCCCC" width="50">id</td>
   <td bgcolor="#CCCCCC">搜索的关键词</td>
   <td bgcolor="#CCCCCC">被搜索的次数</td>
   <td bgcolor="#CCCCCC">时间</td>
   <td bgcolor="#CCCCCC" width="100">操作</td>
  </tr>
<%
		if rs.bof and rs.eof then
			No_record = "暂无记录!"
				Else
do while not rs.eof
%>
<tr>
<td><%=rs("id")%></td> 
<td><%=rs("searchtitle")%></td>
<td><%=rs("searchnumber")%></td>
<td><%=rs("time")%></td>
<td>
<a href="admin_search.asp?t=del&id=<%=rs("id")%>"><img src="images/015.gif" alt="删除"/></a>
</td>
 </tr>
<% 
		rs.MoveNext 
		loop   
		end if

		yidacms_id = cint(Request("id"))
 		if request("t")="del" Then 
		set rs = server.createobject("adodb.recordset")
		sql="DELETE * from shuaiweb_search WHERE id= "&yidacms_id&""
		rs.open sql,dbok,3,2
		response.write "<script language=javascript> alert('成功删除！');location.replace('admin_search.asp');</script>"
		End If 
%>
<tr>
                <td colspan="5"><%=No_record%></td>
</tr>
</table>
</body>
</html>
