onlinepayok.asp

来自「国内第一数字点卡销售程序。功能强大。 完整无错!数据文件经MD5加密!经严格测」· ASP 代码 · 共 101 行

ASP
101
字号
<!--#include file="conn.asp"-->
<%
if session("admin_rank")<>1 and session("admin_rank")<>2 then
response.write("<script>alert('您无权查看本页,SORRY!');window.location=('login.asp')</script>")
response.end
end if
%>
<%
set rs=server.createobject("adodb.recordset")
%>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" type="text/css" href="css.css">
</head>
<body style="background-color: #F0FBF1">
<%
if request("action")="del" then
    sql="select * from onlinepay where pay_id="&int(request("pay_id"))
    rs.open sql,conn,3,3
    rs.delete
    rs.update
    rs.close
    response.write "<script language=javascript>alert('删除成功!');</script>"
end if
%>




<%
set rsq=conn.execute("select sum(sub_totalcash) from onlinepay where sub_payok=true")
tomoney=rsq(0)
if tomoney&"1"="1" then tomoney=0
sql="select * from onlinepay where sub_payok=true  order by pay_id DESC"

rs.open sql,conn,3,3
if rs.eof then
    response.write "暂且没有会员提交的汇款单"
    response.end
end if
      rs.pagesize=15
      page = cint(request("page"))
      if page = "" then page = 1
      if not(isnumeric(page)) then page=1
      if page<1 then page=1
      if page >= rs.pagecount then page = rs.pagecount
      rs.absolutepage = page
  %>

    <div align="center">
     <table border="1" width="778" cellspacing="0" bordercolorlight="#C0C0C0" bordercolordark="#FFFFFF" height="128" cellpadding="0">

      <tr>
        <td width="76" style="padding: 5px" height="37" align="center">用户名</td>
        <td width="84" style="padding: 5px" height="37" align="center">姓名</td>
        <td width="116" style="padding: 5px" height="37" align="center">E-mail</td>
        <td width="68" style="padding: 5px" height="37" align="center">收款银行</td>
        <td width="52" style="padding: 5px" height="37" align="center">支付金额</td>
        <td width="84" style="padding: 5px" height="37" align="center">支付状态</td>
        <td width="111" style="padding: 5px" height="37" align="center">日期</td>
        <td width="96" style="padding: 5px" height="37" align="center">处理</td>
      </tr>
<%
for i=1 to rs.pagesize
%>
      <tr>
        <td width="76" style="padding: 5px" height="40" align="center"><a href="searchonlinepay.asp?keywords=<%=rs("sub_username")%>&soutype=1"><%=rs("sub_username")%></a>&nbsp;</td>
        <td width="84" style="padding: 5px" height="40" align="center"><font color="#FF0000"><%=rs("sub_usernamec")%>&nbsp;</font></td>
        <td width="116" style="padding: 5px" height="40" align="center"><font color="#FF0000"><%=rs("sub_usermail")%>&nbsp;</font></td>
        <td width="68" style="padding: 5px" height="40" align="center"><%=rs("sub_getbank")%>&nbsp; </td>
        <td width="52" style="padding: 5px" height="40" align="center"><%=rs("sub_totalcash")%>&nbsp;</td>
        <td width="84" style="padding: 5px" height="40" align="center"><%if rs("sub_payok") then %><b><font color="#FF6600">已支付<%else%>未成功</font></b><%end if%>
</td>
        <td width="111" style="padding: 5px" height="40" align="center"><font color="#FF0000"><%=rs("sub_date")%>&nbsp;</font></td>
        <td width="96" style="padding: 5px" height="40" align="center"><a href="onlinepayok.asp?pay_id=<%=rs("pay_id")%>&action=del" onClick="return confirm('您确定要删除此汇款吗,这是汇款的凭证哟!')">删除此汇款</a></td>
      </tr>
<%
rs.movenext
if rs.eof then exit for
next
%>
      <tr>
        <td width="100%" colspan="8" style="padding: 5px" height="49" align="center">
                    <p align="center">共有记录<%=rs.recordcount%>条&nbsp;                   
                    <%=page%>/<%=rs.pagecount%>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <A href="<%request.servervariables("document_name")%>?page=<%=page-1%>">上一页</A> <A href="<%request.servervariables("document_name")%>?page=<%=page+1%>">下一页</A>&nbsp;&nbsp;&nbsp; 转到第 <SELECT onchange="window.location='?page='+this.value" name=gopage>              
                    <%for x=1 to rs.pagecount%>
                    <OPTION <%if x=page then%>selected<%end if%> value=<%=x%>><%=x%></OPTION>
                    <%next%>      
                    </SELECT> 页        
                    </div>
                    <%rs.close%>  
        </td>
      </tr>
    </table>
</div>
<p align="left"><font color="#FF6600"><b>总计已确认汇款:<%=formatcurrency(tomoney)%></font></b></p>

<%
set rs=nothing
conn.close
set conn=nothing%>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?