buyuser01ji.asp
上传用户:qyswxdl
上传日期:2013-06-01
资源大小:1373k
文件大小:11k
源码类别:

家庭/个人应用

开发平台:

ASP/ASPX

  1. <!--#include file="../checkpost.asp"-->
  2. <!--#include file="articleconn.asp"-->
  3. <!--#include file="home1.asp"-->
  4. <!--#include file="security.asp"-->
  5. <%if session("flag")>3 then
  6.     response.write "<br><p align=center>您的操作权限不够!</p>"
  7.     response.end
  8. end if
  9. %>
  10. <html>
  11. <head>
  12. <meta http-equiv="Content-Language" content="zh-cn">
  13. <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
  14. <meta name="GENERATOR" content="Microsoft FrontPage 5.0">
  15. <meta name="ProgId" content="FrontPage.Editor.Document">
  16. <link rel="stylesheet" type="text/css" href="inc/Admin_STYLE.CSS"><title>订单管理页</title>
  17. </head>
  18. <body leftmargin="0" topmargin="0">
  19. <script language="javascript">
  20. <!--
  21. function winopen(url)                    
  22.      {                    
  23.         window.open(url,"search","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=yes,width=540,height=380,top=1,left=1");                    
  24.       }
  25. function MM_openBrWindow(theURL,winName,features) { //v2.0
  26.   window.open(theURL,winName,features);
  27. }
  28. //-->
  29. </script>
  30. <script language="javascript">
  31. <!--
  32. function emailopen(url)                    
  33.      {                    
  34.         window.open(url,"search","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=yes,width=500,height=350,top=1,left=1");                    
  35.       }
  36. function MM_openBrWindow(theURL,winName,features) { //v2.0
  37.   window.open(theURL,winName,features);
  38. }
  39. //-->
  40. </script>
  41. <%
  42.    MaxPerPage=20
  43.    dim totalPut   
  44.    dim CurrentPage
  45.    dim TotalPages
  46.    dim i,j
  47.    dim money
  48.    money=0
  49.    dim typename
  50.    
  51.    typename=""
  52.    if not isempty(request("page")) then
  53.       currentPage=cint(request("page"))
  54.    else
  55.       currentPage=1
  56.    end if
  57.    dim sql
  58.    dim rs
  59.    dim rstype
  60.    dim typesql
  61.    dim typeid,typename1
  62.    if not isEmpty(Replace(request("typeid"), "'", "''")) then
  63. typeid=Replace(request("typeid"), "'", "''")
  64.    else
  65. typeid=0
  66.    end if
  67.   
  68. %>
  69. <!--#include file="top1.asp"-->
  70. <%
  71.  if request("name23")="" and request("date01")="" and request("date02")=""  then
  72.  sql="select * from buy where baoyue=0 and pay=0 order by id desc"
  73.  else if request("name23")<>"" and request("date01")="" and request("date02")="" then
  74.  sql="select * from buy where baoyue=0 and userid like '%"&request("name23")&"%'"
  75.   else if request("date01")<>"" and request("date02")<>"" then
  76.    sql="select * from buy where baoyue=0 and datetime>='"&request("date01")&"' and datetime<='"&request("date02")&"' "
  77.  end if
  78.  end if
  79.  end if
  80.  Set rs= Server.CreateObject("ADODB.Recordset")
  81.  rs.open sql,conn,1,1
  82.   if rs.eof and rs.bof then
  83.        response.write "<p align='center'> 还 没 有 任 何 购 买 会 员</p>"
  84.    else
  85.   totalPut=rs.recordcount
  86.       totalPut=rs.recordcount
  87.       if currentpage<1 then
  88.           currentpage=1
  89.       end if
  90.       if (currentpage-1)*MaxPerPage>totalput then
  91.    if (totalPut mod MaxPerPage)=0 then
  92.      currentpage= totalPut  MaxPerPage
  93.    else
  94.       currentpage= totalPut  MaxPerPage + 1
  95.    end if
  96.       end if
  97.        if currentPage=1 then
  98.            showpage totalput,MaxPerPage,"buyuser01ji.asp"
  99.             showContent
  100.             showpage totalput,MaxPerPage,"buyuser01ji.asp"
  101.        else
  102.           if (currentPage-1)*MaxPerPage<totalPut then
  103.             rs.move  (currentPage-1)*MaxPerPage
  104.             dim bookmark
  105.             bookmark=rs.bookmark
  106.            showpage totalput,MaxPerPage,"buyuser01ji.asp"
  107.             showContent
  108.              showpage totalput,MaxPerPage,"buyuser01ji.asp"
  109.         else
  110.         currentPage=1
  111.            showpage totalput,MaxPerPage,"buyuser01ji.asp"
  112.            showContent
  113.            showpage totalput,MaxPerPage,"buyuser01ji.asp"
  114.       end if
  115.    end if
  116.    end if
  117.         
  118.   
  119.    sub showContent
  120.        dim i
  121.    i=0
  122.   %> <center>
  123.   <font color=#FF0000><b>计点会员订单管理</b></font><br>
  124.   <a href="buyuserji.asp"><font color=#ffffff><font color="#000000">查看全部订单</font></font></a><font color="#000000">  <a href="buyuser02ji.asp"> 
  125.   查看已处理订单</a></font><br>
  126.   <table border="0" cellspacing="1" width="100%" class="border" cellpadding="2" height="33" style="border-collapse: collapse" bordercolor="#111111">
  127.     <tr bgcolor="#429AEF"> 
  128.       <td width="62" height="20" align="center"><font color="#FFFFFF">用户名</font></td>
  129.       <td width="66" height="20" align="center"><font color="#FFFFFF">姓<span lang="en-us">&nbsp;&nbsp;&nbsp; 
  130.         </span>名</font></td>
  131.       <td width="39" height="20" align="center"><font color="#FFFFFF">点<span lang="en-us"> 
  132.         </span>数</font></td>
  133.       <td width="61" height="20" align="center"><font color="#FFFFFF">应收金额</font></td>
  134.       <td width="80" height="20" align="center"><font color="#FFFFFF">付款方式</font></td>
  135.       <td width="57" height="20" align="center"><font color="#FFFFFF">代理会员</font></td>
  136.       <td width="94" height="20" align="center"> <p align="center"><font color="#FFFFFF">购买时间</font></td>
  137.       <td width="50" height="20" align="center"><font color="#FFFFFF">回复会员</font></td>
  138.       <td width="42" height="20" align="center"><font color="#FFFFFF">处理</font></td>
  139.       <td width="45" height="20" align="center"><font color="#FFFFFF">操作</font></td>
  140.     </tr>
  141.      <%do while not rs.eof%>
  142.     <form method="POST" action="userbuyserverji.asp?id=<%=rs("id")%>&userid=<%=rs("userid")%>&askmejoin=<%=rs("askmejoin")%>">
  143.       <tr bgcolor="#E1F4EE"> 
  144.         <td width="62" height="4"><p align="center"> <a href="useredit.asp?userid=<%=rs("userid")%>"> <font color="#0000FF"><u><%=rs("userid")%></u></font></a>
  145.             <input type="hidden" name="id" value="<%=rs("id")%>">
  146.         </td>
  147.         <td width="66" height="4" align="center"><%=rs("name")%></td>
  148.         <td width="39" height="4" align="center"> <input type="text" name="count" size="3" value="<%=rs("count")%>"></td>
  149.         <td width="61" height="4" align="center">&yen;<%=rs("paymoney")%>
  150.           <input type="hidden" name="paymoney" value="<%=rs("paymoney")%>">
  151. 元</td>
  152.         <% money=money+rs("paymoney") %>   
  153.         <td width="80" height="4" align="center"><%=rs("giveme")%></td>
  154.         <td width="57" height="4" align="center"> <% if rs("askmejoin")<>"" then%> <%=rs("askmejoin")%> <%else%> 没有 <%end if%>
  155.           <input type="hidden" name="askmejoin" size="1" value="<%=rs("askmejoin")%>">
  156.           <input type="hidden" name="oklook" size="1" value="<%=rs("oklook")%>"></td>
  157.         <td width="94" height="4" align="center"> <%=month(rs("datetime"))%>月<%=day(rs("datetime"))%>日<%=hour(rs("datetime"))%>时</td>
  158.         <td width="50" height="4" align="center"> <a href="javascript:emailopen('sendmail.asp?email=<%=rs("email")%>')">回复</a></td>
  159.         <td width="42" height="4"><p align="center"> <% if rs("pay")=0 then %>
  160.             <input type="submit" value="确认" name="add">
  161.             <% else if rs("pay")=1 then
  162. response.write"已处理"
  163. end if
  164.    end if
  165. %> </td>
  166.         <td width="45" height="4"><p align="center"> <% if rs("pay")=0 then %>
  167.             <input type="submit" value="删除" name="del">
  168.             <% else if rs("pay")=1 then
  169. response.write"已付款"
  170.    end if
  171.    end if
  172. %> </td>
  173.       </tr>
  174.     </form>
  175.        <% i=i+1
  176.       if i>=MaxPerPage then exit do
  177.       rs.movenext
  178.    loop
  179.   %>
  180.   </table>
  181. </center>
  182. <%
  183.    end sub 
  184. function showpage(totalnumber,maxperpage,filename)
  185.   dim n
  186.   if totalnumber mod maxperpage=0 then
  187.      n= totalnumber  maxperpage
  188.   else
  189.      n= totalnumber  maxperpage+1
  190.   end if
  191.   response.write "<p align=""center""><form method=Post action="&filename&"?typeid="&typeid&">"
  192.     if CurrentPage<2 then
  193.     response.write "<font color='#000080'>首页 上一页</font>&nbsp;"
  194.   else
  195.     response.write "<a href="&filename&"?page=1&typeid="&typeid&">首页</a>&nbsp;"
  196.     response.write "<a href="&filename&"?page="&CurrentPage-1&"&typeid="&typeid&">上一页</a>&nbsp;"
  197.   end if
  198.   if n-currentpage<1 then
  199.     response.write "<font color='#000080'>下一页 尾页</font>"
  200.   else
  201.     response.write "<a href="&filename&"?page="&(CurrentPage+1)&"&typeid="&typeid&">"
  202.     response.write "下一页</a> <a href="&filename&"?page="&n&"&typeid="&typeid&">尾页</a>"
  203.   end if
  204.    response.write "<font color='#000080'>&nbsp;页次:</font><strong><font color=#ffffff>"&CurrentPage&"</font><font color='#000080'>/"&n&"</strong>页</font> "
  205.     response.write "<font color='#000080'>&nbsp;共<b>"&totalnumber&"</b>个订单 <b>"&maxperpage&"</b>个订单/页</font> "
  206.    response.write " <font color='#000080'>转到:</font><input type='text' name='page' size=4 maxlength=10 class=smallInput value="&currentpage&">"
  207.    response.write " <input class=buttonface type='submit'  value='Goto'  name='cndok'></span></p></form></p>"
  208.        
  209. end function
  210.    rs.close
  211.    set rs=nothing  
  212.    conn.close
  213.    set conn=nothing
  214.   %>
  215. <form method="POST" action="buyuser01ji.asp">
  216.   <table class="border" width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
  217.     <tr class="title"> 
  218.       <td align="center" height="22" valign="middle"><font color="#FF0000"><b>按用户名查询</b></font></td>
  219.     </tr>
  220.     <tr class="tdbg"> 
  221.       <td align="center" height="19" valign="middle"><font color="#000000">用户名: 
  222.         <input type="text" name="name23" size="20">
  223.         <input name="submit" type="submit" value="查询">
  224.         </font></td>
  225.     </tr>
  226.   </table>
  227. </form>
  228. <form method="POST" action="points_order.asp">
  229.   <table class="border" width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
  230.     <tr class="title"> 
  231.       <td align="center" height="22" valign="middle"><font color="#000000"><b><font color="#FF0000">按日期查询(输入格式:年-月-日)</font></b></font></td>
  232.     </tr>
  233.     <tr class="tdbg"> 
  234.       <td align="center" height="19" valign="middle"><font color="#000000">起始日期: 
  235.         <input type="text" name="date01" size="20">
  236.           终止日期:</font> <font color="#000000"> 
  237.         <input type="text" name="date02" size="20">
  238.         <input name="submit2" type="submit" value="查询">
  239.         </font></td>
  240.     </tr>
  241.   </table>
  242. </form>
  243. <p align="center"><font color=#FF0000><b>当前页面金额: 
  244.   </b></font><font color=#0033FF><b><% response.write(money) %></b></font><font color=#FF0000><b> 元<br>
  245.   </b></font><font color="#000000"><a href="DELbuy01ji.ASP"><b><font color="#3333FF">删除3天未处理的定单</font></b></a></font> 
  246. </p>
  247. <form method="POST" action="del_points_3_no_buy.asp">
  248.   <table class="border" width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
  249.     <tr class="title"> 
  250.       <td align="center" height="22" valign="middle"><font color=#000000><b><font color="#FF0000">按日期删除未处理的定单(输入格式:年-月-日)</font></b></font></td>
  251.     </tr>
  252.     <tr class="tdbg"> 
  253.       <td align="center" height="19" valign="middle"><font color=#000000>起始日期: 
  254.         <input type="text" name="date03" size="20">
  255.           终止日期: 
  256.         <input type="text" name="date04" size="20">
  257.         <input name="submit3" type="submit" value="确定">
  258.         </font></td>
  259.     </tr>
  260.   </table>
  261. </form>
  262. </body>
  263. </html>