<!--#include file="check.asp"-->
<%

Call hrPower(4.2,0)


id=request.QueryString("id")
Nowpage=cint(request.QueryString("page"))
id=request("id")
UserID=request("UserID")

%>

<!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 http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>服务分组列表</title>
<link href="images/main.css" rel="stylesheet" type="text/css" media="all" />
</head>
<!--#include file="top.asp"-->

<script language="javascript">
try{
    var nav="H05";
    var subnav="L0501";
	
    document.getElementById(nav).className="current";
    document.getElementById(subnav).className="first current";
    document.getElementById(subnav).parentNode.parentNode.style.display="block";

}catch(e){
	document.getElementById("H05").className="current";
}
</script>
<div id="systime"><p id="servertime"></p></div>
<div id="mainBody" >

<div class="space">&nbsp;</div>
<div class="list">

<script   language="JavaScript">   
  function   ValidateInput()   
  {   

      document.form1.submit();   
      document.form1.Submit.disabled=true;   
  }   
  </script> 
<table class="listtable">

             <form name="form1" method="get" action="fzlist.asp">
<tr onmouseover="this.oldcolor=this.style.backgroundColor;this.style.backgroundColor='infobackground'" onmouseout="this.style.backgroundColor=this.oldcolor" style="color:#333333;background-color:#F7F6F3;">
              <td height="30" colspan="13" align="center">分组ID&nbsp;&nbsp;
                <input name="id" type="text" class="inputbox" id="id" value="<%=id%>" size="10"><input name="action" type="hidden" value="search">
商户ID&nbsp;&nbsp;
                <input name="UserID" type="text" class="inputbox" id="UserID" value="<%=UserID%>" size="10">

<input type="button" name="Submit" onClick="JavaScript:ValidateInput();" value="立即查询" id="Submit" /></td>
             </td>
			 
              </tr></form>
</table>



<table class="listtable">
  <thead>
    <tr>
      <th scope="col">分组ID</th>
	  <th scope="col">商户ID</th>
            <th scope="col">分组名</th>
            <th scope="col">添加时间</th>
    </tr>
  </thead>
  <tbody> 



           <%
		  

		   searchstr=""
		   if id<>"" then searchstr="id='"&id&"'"


			if UserID<>"" then 
		      if not searchstr="" then searchstr=searchstr+" and "
 		      searchstr=searchstr+"UserID='"&UserID&"'"
		   end if



		   if not searchstr="" then searchstr=" where "+searchstr	
		   if request("action")="search" then 
		   			set Rs=GrateRs("Select * from L_fenzu"&searchstr&" order by id desc",1)
		   		else
					set Rs=GrateRs("Select * from L_fenzu"&searchstr&" order by id desc",1)

		   end if

		   Rs.PageSize=60
		   if not Rs.eof then 
		   If Nowpage=0 then Nowpage=1
		   Rs.AbsolutePage=Nowpage 
		   i=1
		   do while not Rs.eof and i<=Rs.pagesize
		   %>
<%if i mod 2 =0 then%>
         <tr class="listtr1" >
<%else%>
         <tr class="listtr2" >
<%end IF%>
              <td><a href="http://pay1.6117.com/<%=Rs("ID")%>" target="_blank"><%=Rs("ID")%></a></td>
              <td><a href="siter.asp?action=show&id=<%=Rs("UserID")%>"><%=Rs("UserID")%></a></td>
              <td><%=Rs("Name")%></td>
              <td><%=Rs("time")%></td>

            </tr>
			<%
		   i=i+1
		   Rs.movenext
		   loop
		  %>
<tr onmouseover="this.oldcolor=this.style.backgroundColor;this.style.backgroundColor='infobackground'" onmouseout="this.style.backgroundColor=this.oldcolor" style="color:#284775;background-color:White;">
              <td height="26" colspan="4">&nbsp;<strong>翻页: :</strong>
                <%
  myurl="fzlist.asp?action=search&id="&id&"&UserID="&UserID&"&"
  response.write("共："&Rs.recordcount&"条记录，共:"&Rs.PageCount&"页,"&Rs.PageSize&"条/页,第"&NowPage&"页&nbsp;")
  response.write("<a href='"&myurl&"page=1'>"&"首页</a>&nbsp;")
  if NowPage>1 then response.write("<a href='"&myurl&"page="&Nowpage-1&"'>上一页</a>&nbsp;")
  if NowPage<Rs.PageCount then response.write("<a href='"&myurl&"page="&Nowpage+1&"'>下一页</a>&nbsp;")
  response.write("<a href='"&myurl&"page="&Rs.PageCount&"'>尾页</a>&nbsp;")
		%>
                &nbsp;</td>
            </tr>
			  <%else%>
<tr onmouseover="this.oldcolor=this.style.backgroundColor;this.style.backgroundColor='infobackground'" onmouseout="this.style.backgroundColor=this.oldcolor" style="color:#284775;background-color:White;">
              <td height="26" colspan="13">对不起,无记录!</td>
              </tr>
			  <%end if%>
        

          </table>
       </td>
      </tr>
	  

    </table></td>
  </tr>
</table>
</body>
</html>
<%
call DBConnEnd
%>