complain.html 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387
  1. <include file="public@header"/>
  2. </head>
  3. <body>
  4. <div class="wrap js-check-wrap">
  5. <ul class="nav nav-tabs">
  6. <li class="active"><a> 举报用户
  7. </a>
  8. </li>
  9. </ul>
  10. <if condition="$Request.action eq 'custom' || $Request.param.u eq 2 || $Request.param.u eq 4">
  11. <div class="qrcode">
  12. <form class="well form-inline margin-top-20" method="post" onsubmit="return false;">
  13. <span>生成参数</span>
  14. <input class="form-control" id="url" type="text" name="url" style="width: 400px;" placeholder="请填写生成参数:如用户地址">
  15. &nbsp;
  16. <input type="button" class="btn btn-primary" onclick="makeQrcode()" value="生成二维码"/>
  17. <span class="qrcode">
  18. <a title="点击放大" data-href="">
  19. </a>
  20. </span>
  21. </form>
  22. </div>
  23. </if>
  24. <if condition="$Request.action eq 'custom' || $Request.param.u eq 2">
  25. <form class="well form-inline margin-top-20" method="post" action="{:url('user/adminIndex/index',array('u'=>2))}">
  26. <elseif condition="$Request.action eq 'userban' || $Request.param.u eq 3">
  27. <form class="well form-inline margin-top-20" method="post" action="{:url('user/adminIndex/index',array('u'=>3))}">
  28. <elseif condition="$Request.action eq 'screen' || $Request.param.u eq 4">
  29. <form class="well form-inline margin-top-20" method="post" action="{:url('user/adminIndex/index',array('u'=>4))}">
  30. <elseif condition="$Request.action eq 'userlogout' || $Request.param.u eq 5">
  31. <form class="well form-inline margin-top-20" method="post" action="{:url('user/adminIndex/index',array('u'=>5))}">
  32. <else/>
  33. <form class="well form-inline margin-top-20" method="post" action="{:url('user/adminIndex/index',array('u'=>1))}">
  34. </if>
  35. <!-- 用户ID:
  36. <input class="form-control" type="text" name="uid" style="width: 200px;" value="{:input('request.uid')}"
  37. placeholder="请输入用户ID"> -->
  38. 关键字:
  39. <input class="form-control" type="text" name="keyword" style="width: 200px;" value="{:input('request.keyword')}" placeholder="昵称/真实姓名/手机">
  40. <input type="submit" class="btn btn-primary" value="搜索"/>
  41. <if condition="$Request.action eq 'custom' || $Request.param.u eq 2">
  42. <a class="btn btn-default" href="{:url('user/adminIndex/index',array('u'=>2))}">清空</a>
  43. <elseif condition="$Request.action eq 'userban' || $Request.param.u eq 3">
  44. <a class="btn btn-default" href="{:url('user/adminIndex/index',array('u'=>3))}">清空</a>
  45. <elseif condition="$Request.action eq 'screen' || $Request.param.u eq 4">
  46. <a class="btn btn-default" href="{:url('user/adminIndex/index',array('u'=>4))}">清空</a>
  47. <elseif condition="$Request.action eq 'userlogout' || $Request.param.u eq 5">
  48. <a class="btn btn-default" href="{:url('user/adminIndex/index',array('u'=>5))}">清空</a>
  49. <else/>
  50. <a class="btn btn-default" href="{:url('user/adminIndex/index',array('u'=>1))}">清空</a>
  51. </if>
  52. <if condition="$Request.action eq 'custom' || $Request.param.u eq 2">
  53. <a class="btn btn-warning" href="{:url('user/adminIndex/export',array('uid'=>$Request.param.uid,'keyword'=>$Request.param.keyword,'u'=>2))}">导出</a>
  54. <elseif condition="$Request.action eq 'userban' || $Request.param.u eq 3">
  55. <a class="btn btn-warning" href="{:url('user/adminIndex/export',array('uid'=>$Request.param.uid,'keyword'=>$Request.param.keyword,'u'=>3))}">导出</a>
  56. <elseif condition="$Request.action eq 'screen' || $Request.param.u eq 4">
  57. <a class="btn btn-warning" href="{:url('user/adminIndex/export',array('uid'=>$Request.param.uid,'keyword'=>$Request.param.keyword,'u'=>4))}">导出</a>
  58. <elseif condition="$Request.action eq 'userlogout' || $Request.param.u eq 5">
  59. <a class="btn btn-warning" href="{:url('user/adminIndex/export',array('uid'=>$Request.param.uid,'keyword'=>$Request.param.keyword,'u'=>5))}">导出</a>
  60. <else/>
  61. <a class="btn btn-warning" href="{:url('user/adminIndex/export',array('uid'=>$Request.param.uid,'keyword'=>$Request.param.keyword,'u'=>1))}">导出</a>
  62. </if>
  63. <a class="btn btn-danger" onclick="doDelete()">批量删除</a>
  64. <!-- <a class="btn btn-danger" href="{:url('user/adminIndex/index')}" style="border-color:#7349B8;background-color:#7349B8">已冻结的用户</a> -->
  65. <a class="btn btn-danger" id="showcho" style="border-color:#7349B8;background-color:#7349B8">条件筛选</a>
  66. <div id="showchoice" style="display: none; margin-top: 10px;">
  67. <php>$educationarray=array(1=>'大专',2=>'本科',3=>'硕士',4=>'博士');</php>
  68. <php>$marriedarray=array(1=>'未婚',2=>'离异',3=>'离异有孩子');</php>
  69. <php>$propertyarray=array(0=>'无',1=>'有房',2=>'有车',3=>'有房有车');</php>
  70. <php>$agearray=array('1980','1981','1982','1983','1984','1985','1986','1987','1988','1989','1990','1991','1992','1993','1994','1995','1996','1997','1998','1999','2000');</php>
  71. <php>$sexarray=array(1=>'男',2=>'女');</php>
  72. <div>
  73. <div style="margin-top: 10px;">
  74. <!-- 年龄: <input class="form-control js-bootstrap-datetime" type="text" name="age1" style="width: 150px;margin-right:10px;" value="" placeholder="请选择年龄">
  75. <font style="color: red">至</font> &nbsp;
  76. <input class="form-control js-bootstrap-datetime" type="text" name="age2" style="width: 150px;margin-right:25px;" value="" placeholder="请选择年龄"> -->
  77. 年龄: <select class="form-control" name="age1" id="age1" style="width: 150px;margin-right:10px;">
  78. <option value="none">--请选择年龄--</option>
  79. <volist name="$agearray" id="vo">
  80. <option value="{$vo}">{$vo}</option>
  81. </volist>
  82. </select>
  83. <font style="color: red">至</font> &nbsp;
  84. <select class="form-control" name="age2" id="age2" style="width: 150px;margin-right:10px;">
  85. <option value="none">--请选择年龄--</option>
  86. <volist name="$agearray" id="vo">
  87. <option value="{$vo}">{$vo}</option>
  88. </volist>
  89. </select>
  90. 身高: <select class="form-control" name="height" id="height" style="width: 150px;margin-right:10px;">
  91. <option value="none">--请选择身高--</option>
  92. </select>
  93. <font style="color: red">至</font> &nbsp;
  94. <select class="form-control" name="heightt" id="heightt" style="width: 150px;margin-right:10px;">
  95. <option value="none">--请选择身高--</option>
  96. </select>
  97. </div>
  98. <div style="margin-top: 10px;">
  99. 学历: <select class="form-control" name="education" id="education" style="width: 150px;margin-right:10px;">
  100. <option value="none">--请选择学历--</option>
  101. <volist name="$educationarray" id="vo">
  102. <option value="{$key}">{$vo}</option>
  103. </volist>
  104. </select>
  105. 职业:
  106. <select class="form-control" name="occupation" style="margin-right: 15px;width: 150px;" id="position1">
  107. <option value="none">--请选择职位--</option>
  108. </select>
  109. 收入: <select class="form-control" name="salary" id="salary" style="width: 150px;margin-right:10px;">
  110. <option value="none">--请选择收入--</option>
  111. <option value="1">5-10w</option>
  112. <option value="2">10-20w</option>
  113. <option value="3">20-35w</option>
  114. <option value="4">35-55w</option>
  115. <option value="5">100w以上</option>
  116. </select>
  117. 资产: <select class="form-control" name="property" id="property" style="width: 150px;margin-right:10px;">
  118. <option value="none">--请选择资产--</option>
  119. <volist name="$propertyarray" id="vo">
  120. <option value="{$key}">{$vo}</option>
  121. </volist>
  122. </select>
  123. </div>
  124. <div style="margin-top: 10px;">
  125. 家乡: <input class="form-control" type="text" name="home_city" style="width: 150px;margin-right:10px;" value="" placeholder="请输入省/市">
  126. 居住地: <input class="form-control" type="text" name="city" style="width: 150px;margin-right:10px;" value="" placeholder="请输入市">
  127. 婚姻状况: <select class="form-control" name="married" id="married" style="width: 150px;margin-right:10px;">
  128. <option value="none">--请选择婚姻--</option>
  129. <volist name="$marriedarray" id="vo">
  130. <option value="{$key}">{$vo}</option>
  131. </volist>
  132. </select>
  133. 性别: <select class="form-control" name="sex" id="sex" style="width: 150px;margin-right:10px;">
  134. <option value="none">--请选择性别--</option>
  135. <volist name="$sexarray" id="vo">
  136. <option value="{$key}">{$vo}</option>
  137. </volist>
  138. </select>
  139. <a class="btn btn-warning" style=" padding: 3px 10px; border-color:#ca1883;background-color:#ca1883;color: #fff" id="nonecho">隐藏</a>
  140. </div>
  141. </div>
  142. </div>
  143. </form>
  144. <form method="post" class="js-ajax-form">
  145. <table class="table table-hover table-bordered">
  146. <thead>
  147. <tr>
  148. <th><input type="checkbox" class="js-check-all" data-direction="x" data-checklist="js-check-x">全选</th>
  149. <th>ID</th>
  150. <th>举报人</th>
  151. <th>被举报人</th>
  152. <th>举报内容</th>
  153. <th>图片</th>
  154. <th>举报时间</th>
  155. <th>状态</th>
  156. <th>{:lang('ACTIONS')}</th>
  157. </tr>
  158. </thead>
  159. <tbody>
  160. <php>
  161. $user_statuses=array("0"=>lang('USER_STATUS_BLOCKED'),"1"=>lang('USER_STATUS_ACTIVATED'),"2"=>lang('USER_STATUS_UNVERIFIED'));
  162. </php>
  163. <foreach name="list" item="vo">
  164. <tr>
  165. <td><input type="checkbox" class="js-check" data-yid="js-check-y" data-xid="js-check-x" name="ids[]" value="{$vo.id}" title="ID:{$vo.id}"></td>
  166. <td>{$vo.id}</td>
  167. <td><a class="" href="{:url('adminIndex/edit',array('id'=>$vo['ids']))}">{$vo.user_nickname}</a></td>
  168. <td> <a class="" href="{:url('adminIndex/edit',array('id'=>$vo['c_uid']))}">{$vo.c_uid}</a></td>
  169. <td>{$vo.remark}</td>
  170. <td><img src="{:cmf_get_image_preview_url($vo.image)}" style="width: 80px;height: 50px;" onclick="javascript:imagePreviewDialog(this.src)";></td>
  171. <td style="text-align: center;">
  172. {:date('Y-m-d H:i:s',$vo['created_time'])}
  173. </td>
  174. <td style="text-align: center;">
  175. <switch name="vo.status">
  176. <case value="1">
  177. <span style="color:red">待处理</span>
  178. </case>
  179. <case value="2">
  180. <span style="color:green">已处理</span>
  181. </case>
  182. </switch>
  183. </td>
  184. <td>
  185. <!-- <a class="btn btn-xs btn-primary" href="{:url('adminIndex/edit',array('id'=>$vo['id']))}">编辑</a> -->
  186. <a class="btn btn-xs btn-warning js-ajax-dialog-btn" style="background-color: #5c0d8e;border-color:#5c0d8e" href="{:url('adminIndex/tohandle',array('yes'=>1,'ids'=>$vo['id']))}" data-msg="确认处理该用户?">处理</a>
  187. </td>
  188. </tr>
  189. </foreach>
  190. </tbody>
  191. </table>
  192. <div class="pagination">{$page}</div>
  193. </form>
  194. </div>
  195. <script src="__STATIC__/js/admin.js"></script>
  196. <script src="__STATIC__/js/clipboard.min.js"></script>
  197. <script src="__STATIC__/js/layer/layer.js"></script>
  198. <script type="text/javascript" >
  199. //获得大职位下拉框对象
  200. var province = document.getElementById("position1");
  201. //遍历大职位数据,并把里面大职位的数据追加到option选项中
  202. for (var i=0; i<positions.length; i++) {
  203. var option = document.createElement("option");
  204. option.value = positions[i].p_name;
  205. option.innerHTML = positions[i].p_name;
  206. province.appendChild(option);
  207. }
  208. </script>
  209. <script>
  210. function reloadPage(win) {
  211. win.location.reload();
  212. }
  213. $(function () {
  214. setCookie("refersh_time", 3);
  215. Wind.use('ajaxForm', 'artDialog', 'iframeTools', function () {
  216. //批量冻结
  217. $('#js-batch-delete').click(function (e) {
  218. var ids = [];
  219. $("input[name='ids[]']").each(function () {
  220. if ($(this).is(':checked')) {
  221. ids.push($(this).val());
  222. }
  223. });
  224. if (ids.length == 0) {
  225. return false;
  226. }
  227. ids = ids.join(',');
  228. /*art.dialog.open("/user/admin_index/del.html?ids="+ids, {
  229. title: "批量冻结",
  230. width: "300px",
  231. close : function () {
  232. art.dialog.open.origin.location.reload();
  233. }
  234. });*/
  235. });
  236. //end
  237. });
  238. });
  239. </script>
  240. <script>
  241. function doDelete() {
  242. // Wind.use('artDialog', function () {
  243. var ids = [];
  244. $(".js-check:checked").each(function () {
  245. var id = $(this).val();
  246. if (id > 0) {
  247. ids.push(id);
  248. }
  249. });
  250. if (ids.length <= 0) {
  251. showMsg('请先选择操作项');
  252. return false;
  253. }
  254. if(confirm('确定批量删除选择项?不可恢复')){
  255. $.post('/user/admin_index/del',{id:ids},function(res){
  256. if(res.code == 1){
  257. showMsg(res.msg);
  258. setTimeout(function () {
  259. location.reload();
  260. }, 800)
  261. }else{
  262. showMsg(res.msg);
  263. }
  264. },"json")
  265. }
  266. // });
  267. }
  268. function getPaike(id){
  269. var addUrl = "{:url('AdminIndex/ban')}?id="+id;
  270. layer.open({
  271. type: 2, //1:页面层,2:iframe层,3:加载层,4:tips层。
  272. title: '条件筛选',
  273. shadeClose: false, //不开启遮罩关闭,也就是说,点击弹出层其它地方不会关闭弹出框
  274. shade: 0.8, //遮罩
  275. area: ['480px', '360px'],
  276. content: addUrl,
  277. end: function () { //最后执行reload
  278. location.reload();
  279. }
  280. });
  281. }
  282. $("#showcho").click(function(){
  283. $("#showchoice").show();
  284. });
  285. $("#nonecho").click(function(){
  286. $("#showchoice").hide();
  287. });
  288. /* function showMsg(msg, time){
  289. time = time? time : 1000;
  290. art.dialog({
  291. content: msg,
  292. icon: 'warning'
  293. });
  294. setTimeout(function () {
  295. }, time)
  296. }*/
  297. </script>
  298. <script >
  299. function getPaike2(id){
  300. openIframeLayer("{:url('AdminIndex/showimg')}?id=" + id , "", {
  301. area: ['800px', '600px'],
  302. // btn: ['确定', '取消'],
  303. })
  304. }
  305. </script>
  306. </body>
  307. </html>