⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 buyuser01ji.asp

📁 视频点播系统
💻 ASP
字号:
<!--#include file="articleconn.asp"-->
<!--#include file="security.asp"-->
<!--#include file="home1.asp"-->
<%if session("flag")>2 then
    response.write "<br><p align=center>您的操作权限不够!</p>"
    response.end
end if
%>

<html><!--#include file="../checkpost.asp"-->

<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<link rel="stylesheet" type="text/css" href="css/css.css">
<title>订单管理页</title>
</head>
<style type=text/css>
body  { background:#799AE1; margin:0px; font:9pt 宋体; }
table  { border:0px; }
td  { font:normal 12px 宋体; }
img  { vertical-align:bottom; border:0px; }
a  { font:normal 12px 宋体; color:#000000; text-decoration:none; }
a:hover  { color:#428EFF;text-decoration:underline; }
.sec_menu  { border-left:1px solid white; border-right:1px solid white; border-bottom:1px solid white; overflow:hidden; background:#D6DFF7; }
.menu_title  { }
.menu_title span  { position:relative; top:2px; left:8px; color:#215DC6; font-weight:bold; }
.menu_title2  { }
.menu_title2 span  { position:relative; top:2px; left:8px; color:#428EFF; font-weight:bold; }
</style>
<body bgcolor="#D6EF7E" leftmargin="0" topmargin="0">

<script language="javascript">
<!--
function winopen(url)                    
     {                    
        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");                    
      }

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
//-->
</script>
<script language="javascript">
<!--
function emailopen(url)                    
     {                    
        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");                    
      }

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
//-->
</script>
<%
   MaxPerPage=20
   dim totalPut   
   dim CurrentPage
   dim TotalPages
   dim i,j
   dim money
   money=0

   dim typename
   
   typename=""
   if not isempty(request("page")) then
      currentPage=cint(request("page"))
   else
      currentPage=1
   end if
   dim sql
   dim rs
   dim rstype

   dim typesql
   dim typeid,typename1
   if not isEmpty(Replace(request("typeid"), "'", "''")) then
	typeid=Replace(request("typeid"), "'", "''")
   else
	typeid=0
   end if
  
%>
<table border="0" width="100%" cellspacing="0" cellpadding="0">
  <tr>
    <td width="100%"></td>
  </tr>
</table>
<%
 if request("name23")="" and request("date01")="" and request("date02")=""  then
 sql="select * from buy where baoyue=0 and pay=0 order by id desc"
 else if request("name23")<>"" and request("date01")="" and request("date02")="" then
 sql="select * from buy where baoyue=0 and userid like '%"&request("name23")&"%'"
  else if request("date01")<>"" and request("date02")<>"" then
   sql="select * from buy where baoyue=0 and datetime>='"&request("date01")&"' and datetime<='"&request("date02")&"' "
 end if
 end if
 end if
 Set rs= Server.CreateObject("ADODB.Recordset")
 rs.open sql,conn,1,1
  if rs.eof and rs.bof then
       response.write "<p align='center'> 还 没 有 任 何 购 买 会 员</p>"
   else
	  totalPut=rs.recordcount
      totalPut=rs.recordcount
      if currentpage<1 then
          currentpage=1
      end if
      if (currentpage-1)*MaxPerPage>totalput then
	   if (totalPut mod MaxPerPage)=0 then
	     currentpage= totalPut \ MaxPerPage
	   else
	      currentpage= totalPut \ MaxPerPage + 1
	   end if

      end if
       if currentPage=1 then
           showpage totalput,MaxPerPage,"buyuser01ji.asp"
            showContent
            showpage totalput,MaxPerPage,"buyuser01ji.asp"
       else
          if (currentPage-1)*MaxPerPage<totalPut then
            rs.move  (currentPage-1)*MaxPerPage
            dim bookmark
            bookmark=rs.bookmark
           showpage totalput,MaxPerPage,"buyuser01ji.asp"
            showContent
             showpage totalput,MaxPerPage,"buyuser01ji.asp"
        else
	        currentPage=1
           showpage totalput,MaxPerPage,"buyuser01ji.asp"
           showContent
           showpage totalput,MaxPerPage,"buyuser01ji.asp"
	      end if
	   end if
   end if
	        

  

   sub showContent
       dim i
	   i=0

  %> <center><font size=3 color=#FFFF00><b>计点会员订单管理</b></font><br><br><a href="buyuserji.asp"> <font color=#ffffff> 查看全部订单</font></a>  <a href="buyuser02ji.asp"> <font color=#ffffff> 查看已处理订单</font></a><br><br>
  <table border="0" cellspacing="1" width="100%" bordercolorlight="#000000" bordercolordark="#FFFFFF" cellpadding="2" height="33" style="border-collapse: collapse" bordercolor="#111111">
    <tr bgcolor="#CCCCCC"> 
      <td width="62" align="center" bgcolor="#CCCCCC" height="20">用户名</td>
      <td width="66" align="center" bgcolor="#CCCCCC" height="20">姓<span lang="en-us">&nbsp;&nbsp;&nbsp; 
        </span>名</td>
      <td width="39" align="center" bgcolor="#CCCCCC" height="20">点<span lang="en-us"> 
        </span>数</td>
      <td width="61" align="center" bgcolor="#CCCCCC" height="20">应收金额</td>
      <td width="80" align="center" bgcolor="#CCCCCC" height="20">付款方式</td>
      <td width="57" align="center" bgcolor="#CCCCCC" height="20">代理会员</td>
      <td width="94" align="center" bgcolor="#CCCCCC" height="20"> <p align="center">购买时间</td>
      <td width="50" align="center" bgcolor="#CCCCCC" height="20">回复会员</td>
      <td width="42" align="center" bgcolor="#CCCCCC" height="20">处理</td>
      <td width="45" align="center" bgcolor="#CCCCCC" height="20">操作</td>
    </tr>
    <%do while not rs.eof%>
    <form method="POST" action="userbuyserverji.asp?id=<%=rs("id")%>&userid=<%=rs("userid")%>&askmejoin=<%=rs("askmejoin")%>">
      <tr> 
        <td height="4" width="62" bgcolor="#FFFFFF"> <p align="center"> <a href="javascript:winopen('useredit.asp?userid=<%=rs("userid")%>')"> 
            <font color="#0000FF"><u><%=rs("userid")%></u></font></a> 
            <input type="hidden" name="id" value="<%=rs("id")%>">
        </td>
        <td width="66" height="4" bgcolor="#FFFFFF" align="center"><%=rs("name")%></td>
        <td width="39" height="4" bgcolor="#FFFFFF" align="center"> <input type="text" name="count" size="3" value="<%=rs("count")%>"></td>
        
        <td width="61" height="4" bgcolor="#FFFFFF" align="center">&yen;<%=rs("paymoney")%> 
          <input type="hidden" name="paymoney" value="<%=rs("paymoney")%>">
          元</td><% money=money+rs("paymoney") %>		  
        <td width="80" height="4" bgcolor="#FFFFFF" align="center"><%=rs("giveme")%></td>
        <td width="57" height="4" bgcolor="#FFFFFF" align="center"> 
          <% if rs("askmejoin")<>"" then%>
          <%=rs("askmejoin")%> 
          <%else%>
          没有 
          <%end if%>
          <input type="hidden" name="askmejoin" size="1" value="<%=rs("askmejoin")%>"> 
          <input type="hidden" name="oklook" size="1" value="<%=rs("oklook")%>"></td>
        <td width="94" height="4" bgcolor="#FFFFFF" align="center"> <%=month(rs("datetime"))%>月<%=day(rs("datetime"))%>日<%=hour(rs("datetime"))%>时</td>
        <td width="50" height="4" bgcolor="#FFFFFF" align="center"> <a href="javascript:emailopen('sendmail.asp?email=<%=rs("email")%>')">回复</a></td>
        <td width="42" height="4" bgcolor="#FFFFFF"> <p align="center"> 
            <% if rs("pay")=0 then %>
            <input type="submit" value="确认" name="add">
            <% else if rs("pay")=1 then
			response.write"已处理"
			end if
		   end if
		%>
        </td>
        <td width="45" height="4" bgcolor="#FFFFFF"> <p align="center"> 
		<% if rs("pay")=0 then %>
            <input type="submit" value="删除" name="del">
            <% else if rs("pay")=1 then
			response.write"已付款"
		   end if
		   end if
		%>
           
        </td>
      </tr>
    </form>
    <% i=i+1
	      if i>=MaxPerPage then exit do
	      rs.movenext
	   loop
		  %>
  </table>
</center>
<%
   end sub 

function showpage(totalnumber,maxperpage,filename)
  dim n
  if totalnumber mod maxperpage=0 then
     n= totalnumber \ maxperpage
  else
     n= totalnumber \ maxperpage+1
  end if
  response.write "<p align=""center""><form method=Post action="&filename&"?typeid="&typeid&">"
    if CurrentPage<2 then
    response.write "<font color='#000080'>首页 上一页</font>&nbsp;"
  else
    response.write "<a href="&filename&"?page=1&typeid="&typeid&">首页</a>&nbsp;"
    response.write "<a href="&filename&"?page="&CurrentPage-1&"&typeid="&typeid&">上一页</a>&nbsp;"
  end if
  if n-currentpage<1 then
    response.write "<font color='#000080'>下一页 尾页</font>"
  else
    response.write "<a href="&filename&"?page="&(CurrentPage+1)&"&typeid="&typeid&">"
    response.write "下一页</a> <a href="&filename&"?page="&n&"&typeid="&typeid&">尾页</a>"
  end if
   response.write "<font color='#000080'>&nbsp;页次:</font><strong><font color=#ffffff>"&CurrentPage&"</font><font color='#000080'>/"&n&"</strong>页</font> "
    response.write "<font color='#000080'>&nbsp;共<b>"&totalnumber&"</b>个订单 <b>"&maxperpage&"</b>个订单/页</font> "
   response.write " <font color='#000080'>转到:</font><input type='text' name='page' size=4 maxlength=10 class=smallInput value="&currentpage&">"
   response.write " <input class=buttonface type='submit'  value='Goto'  name='cndok'></span></p></form></p>"
       
end function
   rs.close
   set rs=nothing  
   conn.close
   set conn=nothing
  %>
<form method="POST" action="buyuser01ji.asp">
  <p align="center"><b><font color="#FFFFFF">按用户名查询</font></b><font color="#FFFFFF"><br>
    用户名:
    <input type="text" name="name23" size="20">
    <input type="submit" value="查询">
    <br>
    </font>
</form>
<form method="POST" action="buyuser01ji.asp">
  <font color="#FFFFFF"><b>按日期查询(<font color="#FFFF00">输入格式:年-月-日</font>)</b><br>
  起始日期:
  <input type="text" name="date01" size="20">
    终止日期:</font>
<input type="text" name="date02" size="20">
  <input type="submit" value="查询"><br>
</form>
 <p align="center"><font color=#00FFFF><b>当前页面金额:</b></font> <font color=#ffffff><b><% response.write(money) %>元</b></font></p>
<p align="center"><a href="DELbuy01ji.ASP"><font color=#ffffff><b>删除3天未处理的定单</b></font></a><br>
<form method="POST" action="delbuy01ji.asp">
  <font color=blue><b><font color="#FFFFFF">按日期删除未处理的定单(<font color="#FFFF00">输入格式:年-月-日</font>)</font></b><font color="#FFFFFF"><br>
  起始日期: 
  <input type="text" name="date03" size="20">
    终止日期:</font> 
  <input type="text" name="date04" size="20">
  <input type="submit" value="确定"></font>
  </form>
</p>


</body>

</html>

⌨️ 快捷键说明

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