<!--#include file="conn.asp" -->
<% adm_power_page="7" %>
<!--#include file="admin_dn.asp" -->
<%  
if Trim(Request.QueryString("w"))="search" then
 search=trim(request("search"))
 if request("select")="userid" then sql="select * from web_logo where userid like '%"&search&"%'  order by id desc"
 if request("select")="host" then sql="select * from web_logo where log like '%"&search&"%'  order by id desc"
   
 session("sql_auto")=sql
end if

if sql="" or sql=empty then
 if session("sql_auto")="" then
 sql="select * from web_logo order by id desc"
 else
 sql=session("sql_auto")
 end if
end if
 %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>:::管理页面:::</title>
<link href="css.css" rel="stylesheet" type="text/css">
</head>

<body leftmargin="4" topmargin="4">
<p><strong><font color="#990000">虚所主机开设日志查询:</font></strong></p>
<p>&nbsp;</p>
<form name="form1" method="post" action="host_auto_logo.asp?w=search">
  <table width="60%" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr> 
      <td width="23%" height="24">用户名搜索:</td>
      <td width="36%"><input name="search" type="text" id="search" size="15"></td>
      <td width="41%"><input type="submit" name="Submit" value="搜索"> <input name="select" type="hidden" id="select" value="userid"></td>
    </tr>
  </table>
</form>
<form name="form1" method="post" action="host_auto_logo.asp?w=search">
  <table width="60%" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr> 
      <td width="23%" height="24">操 作:</td>
      <td width="36%"><select name="search" id="search">
          <option value="开设主机" selected>开设主机</option>
          <option value="更改ftp密码">更改ftp密码</option>
          <option value="空间续费">空间续费</option>
        </select></td>
      <td width="41%"><input type="submit" name="Submit4" value="搜索"> 
        <input name="select" type="hidden" id="select" value="host"></td>
    </tr>
  </table>
</form>
<p>&nbsp;</p>
<table width="100%" border="1" cellpadding="0" cellspacing="0" bordercolor="#F3F3F3">
  <tr> 
    <td width="12%" bgcolor="#000066"> 
      <div align="center"><font color="#FFFFFF">订单号</font></div></td>
    <td width="16%" bgcolor="#000066"> 
      <div align="center"><font color="#FFFFFF">用户名</font></div></td>
    <td colspan="2" bgcolor="#000066"> 
      <div align="center"><font color="#FFFFFF"></font></div>
      <div align="center"><font color="#FFFFFF">日志说明</font></div></td>
    <td width="22%" bgcolor="#000066"> 
      <div align="center"><font color="#FFFFFF">操作时间</font></div></td>
    <td width="11%" bgcolor="#000066"> 
      <div align="center"><font color="#FFFFFF">查看情况</font></div></td>
  </tr>
  <% 
   pp=40
  
rs.open sql,conn,1,1 
if not rs.eof then
  count=rs.recordcount
    if count=empty then
      count=0
    end if
    if count/pp>(count\pp) then
        totalpage=(count\pp)+1
  else
   totalpage=(count\pp)
    end if
end if 
 pagecount=cint(request.querystring("topage"))                              
 if pagecount<=0 then pagecount=1
 if pagecount>totalpage then pagecount=totalpage
if not rs.eof then
  rs.movefirst
 rs.move (pagecount-1)*pp
 i=0
 while not rs.eof and i<pp
if  rs("userid") <> "管理员wwww" then
 i=I+1
   %>
  <tr> 
    <td><div align="center"><a href="adm_7_host.asp?bh=<%=rs("bh")%>"><font color="#FF0000"><%= rs("bh") %></font></a></div></td>
    <td><div align="center"><a href="adm_10.asp?w=search&select=userid&search=<%=rs("userid")%>"><%= rs("userid") %></a></div></td>
    <td colspan="2"><%= rs("log") %></td>
    <td><div align="center">
	<% if day(rs("dat"))=day(now) then %>
	  <font color="#FF0000"><%= rs("dat") %></font>
	 <% else %>
	 <font color="#0000CC"><%= rs("dat") %></font>
	 <% end if %></div></td>
    <td><div align="center"><a href="host_auto_list.asp?id=<%=rs("id")%>">查看</a></div></td>
  </tr>
  <% 
end if
  rs.movenext
  wend
  rs.close 
  end if%>
  <tr> 
    <td colspan="6"><table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr bgcolor="#000066"> 
          <td width="46%"><font color="#FFFFFF">一共有:<%= count %> 条　一共:<%= totalpage %> 
            页 当前: <%= pagecount %> 页</font></td>
          <td width="54%" bgcolor="#000066"> 
            <div align="right"><font color="#FFFFFF"> 
              <% 
	  if totalpage>1 then
	     if totalpage-pagecount>0 then
	  %>
              <a href="host_auto_logo.asp?topage=<%=pagecount+1%>"><font color=#FFFFFF>下一页</font></a> 
              <% 
	   
	  end if
	  if pagecount<>1 and totalpage-pagecount>0 then 
	   response.write "<font color=#FFFFFF>/</font>"
	   end if
	   
	   if pagecount<>"1" then %>
              <a href="host_auto_logo.asp?topage=<%=pagecount-1%>"><font color=#FFFFFF>上一页</font></a>　 
              <% 
	  end if
	  end if
	  %>
              　 </font></div></td>
        </tr>
        <tr bgcolor="#FAFAFA"> 
          <td colspan="2"><div align="center"><% for ss=1 to totalpage %>|<a href="host_auto_logo.asp?topage=<%=ss%>"><font color="#990000"><%=ss%></font></a><a href="host_auto_logo.asp?topage=<%=ss%>"></a><% next %>|</div></td>
        </tr>
      </table></td>
  </tr>
</table>
<p>注：iisID 这里是指此空间的iis参数</p>
</body>
</html>
