History_order.asp
上传用户:jisenq
上传日期:2014-06-29
资源大小:7216k
文件大小:10k
源码类别:

数据库编程

开发平台:

ASP/ASPX

  1. <% Option Explicit %>
  2. <!--#include file="../../FS_Inc/Const.asp" -->
  3. <!--#include file="../../FS_Inc/Function.asp"-->
  4. <!--#include file="../../FS_InterFace/MF_Function.asp" -->
  5. <!--#include file="../../FS_Inc/Func_Page.asp" -->
  6. <%'CopyRight (c) 2006 Fooun Inc. Code by Simpwind.Xie
  7. Dim Conn,User_Conn,strShowErr
  8. MF_Default_Conn
  9. MF_User_Conn
  10. 'session判断
  11. MF_Session_TF 
  12. if not MF_Check_Pop_TF("ME_Horder") then Err_Show 
  13. if not MF_Check_Pop_TF("ME033") then Err_Show 
  14. Function GetFriendName(f_strNumber)
  15. Dim RsGetFriendName
  16. Set RsGetFriendName = User_Conn.Execute("Select UserName From FS_ME_Users Where UserNumber = '"& f_strNumber &"'")
  17. If  Not RsGetFriendName.eof  Then 
  18. GetFriendName = RsGetFriendName("UserName")
  19. Else
  20. GetFriendName = 0
  21. End If 
  22. set RsGetFriendName = nothing
  23. End Function 
  24. if Request.Form("Action")="Del" then
  25. if trim(Request.Form("Id"))="" then
  26. strShowErr = "<li>请选择至少一项</li>"
  27. Response.Redirect("../Error.asp?ErrCodes="&Server.URLEncode(strShowErr)&"&ErrorUrl=")
  28. Response.end
  29. end if
  30. User_Conn.execute("Delete From FS_ME_Log where LogId in ("&Request.Form("Id")&")")
  31. Call MF_Insert_oper_Log("删除交易明晰","ID("& Replace(Request.Form("Id")," ","")&")",now,session("admin_name"),"ME")
  32. strShowErr = "<li>删除成功</li>"
  33. Response.Redirect("../Success.asp?ErrCodes="&Server.URLEncode(strShowErr)&"&ErrorUrl=User/History_Order.asp")
  34. Response.end
  35. end if
  36. if Request.Form("Action")="Delall" then
  37. User_Conn.execute("Delete From FS_ME_Log ")
  38. Call MF_Insert_oper_Log("删除交易明晰","删除所有用户的交易明晰",now,session("admin_name"),"ME")
  39. end if
  40. Dim int_RPP,int_Start,int_showNumberLink_,str_nonLinkColor_,toF_,toP10_,toP1_,toN1_,toN10_,toL_,showMorePageGo_Type_,cPageNo,strpage,i
  41. int_RPP=30 '设置每页显示数目
  42. int_showNumberLink_=8 '数字导航显示数目
  43. showMorePageGo_Type_ = 1 '是下拉菜单还是输入值跳转,当多次调用时只能选1
  44. str_nonLinkColor_="#999999" '非热链接颜色
  45. toF_="<font face=webdings title=""首页"">9</font>"   '首页 
  46. toP10_=" <font face=webdings title=""上十页"">7</font>" '上十
  47. toP1_=" <font face=webdings title=""上一页"">3</font>" '上一
  48. toN1_=" <font face=webdings title=""下一页"">4</font>" '下一
  49. toN10_=" <font face=webdings title=""下十页"">8</font>" '下十
  50. toL_="<font face=webdings title=""最后一页"">:</font>"
  51. strpage=request("page")
  52. if len(strpage)=0 Or strpage<1 or trim(strpage)=""Then:strpage="1":end if
  53. %>
  54. <html xmlns="http://www.w3.org/1999/xhtml">
  55. <title>日志-网站内容管理系统</title>
  56. <meta name="keywords" content="风讯cms,cms,FoosunCMS,FoosunOA,FoosunVif,vif,风讯网站内容管理系统">
  57. <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
  58. <meta content="MSHTML 6.00.3790.2491" name="GENERATOR" />
  59. <meta name="Keywords" content="Foosun,FoosunCMS,Foosun Inc.,风讯,风讯网站内容管理系统,风讯系统,风讯新闻系统,风讯商城,风讯b2c,新闻系统,CMS,域名空间,asp,jsp,asp.net,SQL,SQL SERVER" />
  60. <link href="../images/skin/Css_<%=Session("Admin_Style_Num")%>/<%=Session("Admin_Style_Num")%>.css" rel="stylesheet" type="text/css">
  61. <head>
  62. <body>
  63. <table width="98%" border="0" align="center" cellpadding="5" cellspacing="1" class="table">
  64.   <tr class="hback"> 
  65.     <td class="hback"><strong>交易明晰</strong> | <strong><a href="../News/Constr_Manage.asp">稿件管理</a></strong></td>
  66.   </tr>
  67. </table>
  68. <table width="98%" border="0" align="center" cellpadding="5" cellspacing="1" class="table">
  69.   <tr class="hback"> 
  70.     <td colspan="8" class="hback"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  71.         <tr> 
  72.           <td width="44%"> <strong> 
  73.             <%
  74.   dim strTmp,strLogType,strTmp1
  75.   strLogType = NoSqlHack(Trim(Request.QueryString("LogTye")))
  76.      if Request.QueryString("LogTye")<>"" then
  77.    strTmp =  " and LogType='"& strLogType &"'"
  78.      Else
  79.    strTmp =  " "
  80.     End if
  81. if Request("date1") <>"" and  Request("date2")<>"" then
  82. if isdate(Request("date1"))=false or isdate(Request("date2"))=false then
  83. strShowErr = "<li>您输入的日期格式不正确</li>"
  84. Response.Redirect("../Error.asp?ErrCodes="&Server.URLEncode(strShowErr)&"&ErrorUrl=")
  85. Response.end
  86. else
  87. if G_IS_SQL_User_DB =0 then
  88. strTmp1 = " and datevalue(Logtime)>=#"&datevalue(Request("date1"))&"#  and datevalue(Logtime)<=#"&datevalue(Request("date2"))&"#"
  89. Else
  90. strTmp1 = " and convert(varchar(10),Logtime,120)>='"&datevalue(Request("date1"))&"'  and convert(varchar(10),Logtime,120)<='"&datevalue(Request("date2"))&"'"
  91. End if
  92. End if
  93. End if
  94. Dim RsUserListObj,RsUserSQL
  95. Dim strSQLs,StrOrders
  96. strpage=request("page")
  97. if len(strpage)=0 Or strpage<1 or trim(strpage)=""  Then strpage="1"
  98. Set RsUserListObj = Server.CreateObject(G_FS_RS)
  99. RsUserSQL = "Select LogId,LogType,UserNumber,points,moneys,LogTime,LogContent,Logstyle From Fs_ME_Log  where LogID>0 "& strTmp & strTmp1 &" order by  LogID desc"
  100. RsUserListObj.Open RsUserSQL,User_Conn,1,3
  101. Response.Write "<Font color=red>" & RsUserListObj.RecordCount&"</font>"
  102. %>
  103.             </strong> 个日志 类型:<a href="History_Order.asp">所有</a>|<a href="history_order.asp?LogTye=%D7%A2%B2%E1">注册</a>|<a href="history_order.asp?LogTye=%B5%C7%C2%BD">登陆</a>|<a href="history_order.asp?LogTye=购买">购买</a>|<a href="history_order.asp?LogTye=%D4%DA%CF%DF%D6%A7%B8%B6">冲值</a>|<a href="history_order.asp?LogTye=兑换">兑换</a>|<a href="history_order.asp?LogTye=其他">其他</a></td>
  104.           <form action="history_order.asp"  method="post" name="myform" id="myform">
  105.             <td width="56%"><div align="left"> 
  106.                 <table width="100%" border="0" cellspacing="0" cellpadding="0">
  107.                   <tr> 
  108.                     <td width="63%" valign="top">从 
  109.                       <input name="date1" type="text" id="date1" value="<%=datevalue(date())-1%>" size="10">
  110.                       到 
  111.                       <input name="date2" type="text" id="date2" value="<%=datevalue(date())%>" size="10">
  112.                       的记录 
  113.                       <input type="submit" name="Submit" value="搜索">
  114.                       日期格式请用1977-6-7格式</td>
  115.                   </tr>
  116.                 </table>
  117.               </div></td>
  118.           </form>
  119.         </tr>
  120.       </table></td>
  121.   </tr class="hback">
  122.   <form action="history_order.asp"  method="post" name="form1" id="form1">
  123.     <tr class="hback"> 
  124.       <td width="16%" class="xingmu"><div align="left"><strong> 类型</strong></div></td>
  125.       <td width="7%" class="xingmu"><div align="center"><strong>点数</strong></div></td>
  126.       <td width="16%" class="xingmu"><div align="center"><strong>用户</strong></div></td>
  127.       <td width="9%" class="xingmu"><div align="center"><strong>金币</strong></div></td>
  128.       <td width="20%" class="xingmu"><div align="center"><strong>日期</strong></div></td>
  129.       <td width="20%" class="xingmu"><div align="center"><strong>说明</strong></div></td>
  130.       <td width="9%" class="xingmu"><div align="center"><strong>增加/减少</strong></div></td>
  131.       <td width="3%" class="xingmu">&nbsp;</td>
  132.     </tr>
  133.     <%
  134. if RsUserListObj.eof then
  135.    RsUserListObj.close
  136.    set RsUserListObj=nothing
  137.    Response.Write"<tr  class=""hback""><td colspan=""8""  class=""hback"" height=""40"">没有管理员。</td></tr>"
  138. else
  139. RsUserListObj.PageSize=int_RPP
  140. cPageNo=NoSqlHack(Request.QueryString("Page"))
  141. If cPageNo="" Then cPageNo = 1
  142. If not isnumeric(cPageNo) Then cPageNo = 1
  143. cPageNo = Clng(cPageNo)
  144. If cPageNo<=0 Then cPageNo=1
  145. If cPageNo>RsUserListObj.PageCount Then cPageNo=RsUserListObj.PageCount 
  146. RsUserListObj.AbsolutePage=cPageNo
  147. for i=1 to RsUserListObj.pagesize
  148. if RsUserListObj.eof Then exit For 
  149. %>
  150.     <tr class="hback"> 
  151.       <td class="hback"><div align="left"><a href=history_Order.asp?LogTye=<% = RsUserListObj("LogType")%>> 
  152.           <% = RsUserListObj("LogType")%>
  153.           </a></div></td>
  154.       <td class="hback"> 
  155.         <div align="center"><% = RsUserListObj("points")%>
  156.         </div></td>
  157.       <td class="hback"><div align="center"><a href="../../<%=G_USER_DIR%>/ShowUser.asp?UserNumber=<% = RsUserListObj("UserNumber")%>" target="_blank"> 
  158.           <% = GetFriendName(RsUserListObj("UserNumber"))%>
  159.           </a></div></td>
  160.       <td class="hback"> <div align="center">
  161.           <% = FormatNumber(RsUserListObj("moneys"),2,-1)%>
  162.         </div></td>
  163.       <td class="hback"><div align="center"> 
  164.           <% = RsUserListObj("LogTime")%>
  165.         </div></td>
  166.       <td class="hback"><div align="center"> 
  167.           <% = RsUserListObj("LogContent")%>
  168.         </div></td>
  169.       <td class="hback"><div align="center"> 
  170.           <%
  171.   if RsUserListObj("Logstyle") = 0 then
  172.   Response.Write("<font color=red>增加</font>")
  173.   Else
  174.   Response.Write("减少")
  175.   End if
  176.   %>
  177.         </div></td>
  178.       <td class="hback"><input name="ID" type="checkbox" id="ID" value="<% = RsUserListObj("LogID")%>"></td>
  179.     </tr>
  180.     <%
  181.   RsUserListObj.MoveNext
  182.   Next
  183.   %>
  184.     <tr class="hback"> 
  185.       <td colspan="8" class="xingmu"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
  186.           <tr> 
  187.             <td width="80%"> <span class="top_navi"> 
  188.               <%
  189. response.Write "<p>"&  fPageCount(RsUserListObj,int_showNumberLink_,str_nonLinkColor_,toF_,toP10_,toP1_,toN1_,toN10_,toL_,showMorePageGo_Type_,cPageNo)
  190. %>
  191.               <input type="checkbox" name="chkall" value="checkbox" onClick="CheckAll(this.form)">
  192.               选中所有短信 
  193.               <input name="Action" type="hidden" id="Action" value="">
  194.               <input type="button" name="Submit2" value="删除选中的明晰"  onClick="document.form1.Action.value='Del';{if(confirm('确定清除您所选择的记录吗?')){this.document.form1.submit();return true;}return false;}">
  195.               <input type="button" name="Submit22" value="删除全部明晰"  onClick="document.form1.Action.value='Delall';{if(confirm('确定清除您所选择的记录吗?')){this.document.form1.submit();return true;}return false;}">
  196.               </SPAN></td>
  197.           </tr>
  198.           <%end if%>
  199.         </table></td>
  200.     </tr>
  201.   </FORM>
  202. </table>
  203. </body>
  204. </html>
  205. <script language="JavaScript" type="text/JavaScript">
  206. function CheckAll(form)  
  207.   {  
  208.   for (var i=0;i<form1.elements.length;i++)  
  209.     {  
  210.     var e = form1.elements[i];  
  211.     if (e.name != 'chkall')  
  212.        e.checked = form1.chkall.checked;  
  213.     }  
  214.   }
  215. </script>
  216. <!--Powsered by Foosun Inc.,Product:FoosunCMS V4.0系列-->