<!--#include file="check.asp"-->
<%
Call hrPower(3.4,0)
dim action
name=request.QueryString("name")
userid=request.QueryString("userid")
Nowpage=cint(request.QueryString("page"))

%>



<!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" />
<script src="js/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
</head>
<!--#include file="top.asp"-->
<div id="systime"><p id="servertime"></p></div>
<div id="mainBody" >

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

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

}catch(e){
	document.getElementById("H04").className="current";
}
</script>

<table class="listtable">
  <thead>
    <tr>
      <th scope="col">商户ID</th>
	  <th scope="col">商户名</th>
            <th scope="col">划款金额</th>
            <th scope="col">划款手续费</th>
            <th scope="col">申请提现金额</th>
            <th scope="col">申请日期</th>
            <th scope="col">处理时间</th>
            <th scope="col">处理备注</th>
            <th scope="col">处理状态</th>
            <th scope="col">处理状态</th>
    </tr>
  </thead>
  <tbody> 


          <%

		set Rs=GrateRs("select * from M_tixian  order by id desc,money desc",1)
		   Rs.PageSize=500
		   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><%=Rs("userid")%></td>
              <td><%=Rs("username")%></td>
								<td><%=zero(formatnumber(Rs("huakuan")))%></td>
								<td><%=zero(formatnumber(Rs("shouxufei")))%></td>
								<td><%=zero(formatnumber(Rs("money")))%></td>
								<td><%=Rs("addtime")%></td>
								<td><%=Rs("lastdate")%></td>
								<td><%=Rs("beizhu")%>

</td>
								<td><%if rs("state")=0 then response.Write("处理中")%>
                        <%if rs("state")=1 then response.Write("<font color=red>支付成功</font>")%>
                        <%if rs("state")=2 then response.Write("<font color=red>拒绝支付</font>")%></td>



              <td>
<a href="paycard.asp?id=<%=Rs("userid")%>" target="_blank">银行帐号</a> / <a href="siter.asp?action=show&id=<%=Rs("userid")%>">商户资料</a> / <a href="ship.asp?action=show&upline=<%=Rs("username")%>">结算详单</a> / <a href="meber.asp?Action=search&upline=<%=Rs("username")%>">定制详单</a></td>

          </tr>
          <%
		   i=i+1
		   Rs.movenext
		   loop
		   else
		   %>

          </tr>
<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="20" colspan="6">对不起，该站长还尚无结算记录</td>
            </tr>
		   <%
		   end if
		  %>
<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="6">&nbsp;<strong>&nbsp;&nbsp;翻页: :</strong>
                <%
				
  myurl="allpay.asp?action=show"&"&startdate="&startdate&"&enddate="&enddate&"&userid="&userid&"&name="&name&"&"
 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>
           
                </td>  
              </tr>
          </table>
       </td>
      </tr>
	  

    </table></td>
  </tr>
</table>
</body>
</html>