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

数据库编程

开发平台:

ASP/ASPX

  1. <% Option Explicit %>
  2. <!--#include file="../FS_Inc/Const.asp" -->
  3. <!--#include file="../FS_InterFace/MF_Function.asp" -->
  4. <!--#include file="../FS_Inc/Function.asp" -->
  5. <!--#include file="lib/strlib.asp" -->
  6. <!--#include file="lib/UserCheck.asp" -->
  7. <%
  8. if NoSqlHack(request.QueryString("ToUserNumber")) = Fs_User.UserNumber then
  9. strShowErr = "<li>不能自己举报自己</li>"
  10. Call ReturnError(strShowErr,"")
  11. End if
  12. Dim ReturnValue_Report
  13. ReturnValue_Report = Fs_User.GetFriendName(NoSqlHack(request.QueryString("ToUserNumber")))
  14. if Request.Form("Action") = "Save" then
  15. If Trim(Request.Form("F_UserName"))="" then
  16. strShowErr = "<li>请填写被举报的人</li>"
  17. Call ReturnError(strShowErr,"")
  18. End if
  19. If Trim(Request.Form("ReportType"))="" then
  20. strShowErr = "<li>请填写要举报的类型</li>"
  21. Call ReturnError(strShowErr,"")
  22. End if
  23. If Trim(Request.Form("Content"))="" then
  24. strShowErr = "<li>请填写举报描述</li>"
  25. Call ReturnError(strShowErr,"")
  26. End if
  27. If Len(Trim(Request.Form("Content")))>1000 then
  28. strShowErr = "<li>举报描述不能超过1000个字符</li>"
  29. Call ReturnError(strShowErr,"")
  30. End if
  31. Dim GetUserNumberValue,UserTFobj
  32. GetUserNumberValue = Fs_User.GetFriendNumber(NoSqlHack(request.Form("F_UserName")))
  33. Set UserTFobj = User_Conn.execute("Select UserID From FS_ME_Users Where UserNumber ='"& GetUserNumberValue &"'")
  34. if UserTFobj.eof then
  35. strShowErr = "<li>找不到您要举报的用户名</li>"
  36. Call ReturnError(strShowErr,"")
  37. Else
  38. Dim RsRepObj
  39. Set RsRepObj = server.CreateObject(G_FS_RS)
  40. RsRepObj.open "select * From FS_ME_Report where 1=0",User_Conn,1,3
  41. RsRepObj.addnew
  42. RsRepObj("UserNumber") =  Fs_User.UserNumber
  43. RsRepObj("F_UserNumber") = GetUserNumberValue
  44. RsRepObj("addtime") = now
  45. RsRepObj("Content") = NoHtmlHackInput(Request.Form("Content"))
  46. RsRepObj("isLock") = 0
  47. RsRepObj("ReportType") = NoSqlHack(request.Form("ReportType"))
  48. RsRepObj.update
  49. RsRepObj.close
  50. set RsRepObj = nothing
  51. strShowErr = "<li>举报成功</li>"
  52. Response.Redirect("lib/Success.asp?ErrCodes="&Server.URLEncode(strShowErr)&"&ErrorUrl=")
  53. Response.end
  54. End if
  55. End if
  56. %>
  57. <html xmlns="http://www.w3.org/1999/xhtml">
  58. <title>举报-网站内容管理系统</title>
  59. <meta name="keywords" content="风讯cms,cms,FoosunCMS,FoosunOA,FoosunVif,vif,风讯网站内容管理系统">
  60. <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
  61. <meta content="MSHTML 6.00.3790.2491" name="GENERATOR" />
  62. <meta name="Keywords" content="Foosun,FoosunCMS,Foosun Inc.,风讯,风讯网站内容管理系统,风讯系统,风讯新闻系统,风讯商城,风讯b2c,新闻系统,CMS,域名空间,asp,jsp,asp.net,SQL,SQL SERVER" />
  63. <link href="images/skin/Css_<%=Request.Cookies("FoosunUserCookies")("UserLogin_Style_Num")%>/<%=Request.Cookies("FoosunUserCookies")("UserLogin_Style_Num")%>.css" rel="stylesheet" type="text/css">
  64. <head>
  65. <body>
  66. <table width="98%" border="0" align="center" cellpadding="1" cellspacing="1" class="table">
  67.   <tr>
  68.     <td>
  69.       <!--#include file="top.asp" -->
  70.     </td>
  71.   </tr>
  72. </table>
  73. <table width="98%" height="135" border="0" align="center" cellpadding="1" cellspacing="1" class="table">
  74.   
  75.     <tr class="back"> 
  76.       <td   colspan="2" class="xingmu" height="26"> <!--#include file="Top_navi.asp" --> </td>
  77.     </tr>
  78.     <tr class="back"> 
  79.       <td width="18%" valign="top" class="hback"> <div align="left"> 
  80.           <!--#include file="menu.asp" -->
  81.         </div></td>
  82.       <td width="82%" valign="top" class="hback"><table width="98%" border="0" align="center" cellpadding="5" cellspacing="1" class="table">
  83.         <tr class="hback"> 
  84.           <td class="hback"><strong>位置:</strong><a href="../">网站首页</a> &gt;&gt; 
  85.             <a href="main.asp">会员首页</a> &gt;&gt; 举报用户</td>
  86.         </tr>
  87.       </table> 
  88.       <table width="98%" border="0" align="center" cellpadding="5" cellspacing="1" class="table">
  89.         <form name="UserForm" method="post" action="">
  90.           <tr class="hback"> 
  91.             <td width="16%" class="hback_1"><div align="right"><strong>用户名</strong></div></td>
  92.             <td class="hback"> <input name="F_UserName" type="text" id="F_UserName" value="<% = ReturnValue_Report %>" size="26" maxlength="50">
  93.               请填写用户名 
  94.               <div align="center"></div></td>
  95.           </tr>
  96.           <tr class="hback"> 
  97.             <td class="hback_1" > <div align="right"><strong>类型</strong></div></td>
  98.             <td class="hback"><select name="ReportType" id="ReportType">
  99.                 <option selected value="">选择举报类型</option>
  100.                 <option value="0">骗子</option>
  101.                 <option value="1">广告</option>
  102.                 <option value="2">攻击别人</option>
  103.                 <option value="3">非法言论</option>
  104.                 <option value="4">其他</option>
  105.               </select></td>
  106.           </tr>
  107.           <tr class="hback"> 
  108.             <td class="hback_1" ><div align="right"><strong>举报描述</strong></div></td>
  109.             <td class="hback"><textarea name="Content" cols="60" rows="10" id="Content"></textarea>
  110.               限制1000个字符</td>
  111.           </tr>
  112.           <tr class="hback"> 
  113.             <td class="hback"><div align="center"> </div></td>
  114.             <td class="hback"><input name="Action" type="hidden" id="Action2" value="Save"> 
  115.               <input type="button" name="SubmitButton" value="提交举报"  onClick="{if(confirm('确认提交举报吗?n你需要对您的举报负责!')){this.document.UserForm.submit();return true;}return false;}">
  116.                 
  117.               <input type="reset" name="Submit3" value="重新填写">
  118.                 </td>
  119.           </tr>
  120.         </form>
  121.       </table>
  122.        </td>
  123.     </tr>
  124.     <tr class="back"> 
  125.       <td height="20"  colspan="2" class="xingmu"> <div align="left"> 
  126.           <!--#include file="Copyright.asp" -->
  127.         </div></td>
  128.     </tr>
  129.  
  130. </table>
  131. </body>
  132. </html>
  133. <%
  134. Set Fs_User = Nothing
  135. %>
  136. <!--Powsered by Foosun Inc.,Product:FoosunCMS V4.0系列-->