733ab921645e61897f1c97b777626cceb54a0135.file.index.html.php 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214
  1. <?php /* Smarty version Smarty-3.1.11, created on 2019-04-15 10:55:51
  2. compiled from "/www/wwwroot/edm.alipearl.net/application/module/view/black_list_admin/index.html" */ ?>
  3. <?php /*%%SmartyHeaderCode:18622959805abda629c968a8-64330548%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
  4. $_valid = $_smarty_tpl->decodeProperties(array (
  5. 'file_dependency' =>
  6. array (
  7. '733ab921645e61897f1c97b777626cceb54a0135' =>
  8. array (
  9. 0 => '/www/wwwroot/edm.alipearl.net/application/module/view/black_list_admin/index.html',
  10. 1 => 1522381846,
  11. 2 => 'file',
  12. ),
  13. ),
  14. 'nocache_hash' => '18622959805abda629c968a8-64330548',
  15. 'function' =>
  16. array (
  17. ),
  18. 'version' => 'Smarty-3.1.11',
  19. 'unifunc' => 'content_5abda629cfbcd3_13080599',
  20. 'variables' =>
  21. array (
  22. 'info' => 0,
  23. 'useremail' => 0,
  24. 'username' => 0,
  25. 'list' => 0,
  26. 'item' => 0,
  27. 'show' => 0,
  28. ),
  29. 'has_nocache_code' => false,
  30. ),false); /*/%%SmartyHeaderCode%%*/?>
  31. <?php if ($_valid && !is_callable('content_5abda629cfbcd3_13080599')) {function content_5abda629cfbcd3_13080599($_smarty_tpl) {?><?php echo $_smarty_tpl->getSubTemplate ('../public/admin_header.html', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>
  32. <?php echo $_smarty_tpl->getSubTemplate ('../public/admin_navi.html', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>
  33. <!-- Right side column. Contains the navbar and content of the page -->
  34. <aside class="right-side">
  35. <!-- Content Header (Page header) -->
  36. <section class="content-header">
  37. <h1>
  38. 黑名单列表
  39. <small>Control panel</small>
  40. </h1>
  41. <ol class="breadcrumb">
  42. <li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li>
  43. <li class="active">Blank page</li>
  44. </ol>
  45. </section>
  46. <!-- Main content -->
  47. <section class="content">
  48. <div class="span9">
  49. <?php if ($_smarty_tpl->tpl_vars['info']->value){?>
  50. <div class="alert alert-success nodisplay"><?php echo $_smarty_tpl->tpl_vars['info']->value;?>
  51. </div>
  52. <?php }?>
  53. <div style="margin-bottom:20px;float:right;">
  54. <a href="/?a=black_list_admin&m=add" style="color:red;text-decoration:underline;">添加黑名单</a>
  55. </div>
  56. <div id='main' class="form-actions">
  57. <form method="post" action="/?a=black_list_admin&m=index" >
  58. <div style="margin-left:20px;float:left;margin-bottom:20px;margin-right:20px;">
  59. 邮箱:<input type="text" name="useremail" value="<?php echo $_smarty_tpl->tpl_vars['useremail']->value;?>
  60. " style="width:200px;">
  61. </div>
  62. <div style="clear:both;margin-left:20px;">
  63. <input type="submit" class="btn btn-info" value="查询" style="clear:both;height: 30px; width: 260px; "/>
  64. </div>
  65. </form>
  66. <br/><br/>
  67. <form method="post" action="/?a=black_list_admin&m=export" target="_blank">
  68. <div style="text-align:right;">
  69. <input type="hidden" name="username" value="<?php echo $_smarty_tpl->tpl_vars['username']->value;?>
  70. " />
  71. <input type="submit" class="btn btn-primary" value="导出数据" style="width:200px;"/>
  72. </div>
  73. </form>
  74. <form method="post" id="batch_user_group" action="/?a=black_list_admin&m=import" enctype="multipart/form-data" >
  75. <input type="hidden" name="to_import_user" value="yes" />
  76. <input type="file" name="inputExcel" style="width:175px;"><span style="color:red;">(excel是.xls格式的)</span>
  77. <input type="submit" class="btn btn-success" value="导入黑名单" style="cursor:pointer;height: 32px; width: 140px;margin-left:10px;margin-top:20px;" />
  78. </form>
  79. <form id="batch_delete" method="post" action="/?a=black_list_admin&m=batch_delete">
  80. <input class="btn btn-warning" onclick="toSubmit();" value="批量删除" style="margin-bottom:20px;float:right;width:200px;" />
  81. <table class="table table-mailbox" style="margin-top:15px;">
  82. <tr>
  83. <th style="width:80px;"><input type="checkbox" id="check-all" />&nbsp;&nbsp;全选</th>
  84. <th>ID</th>
  85. <th>邮箱</th>
  86. <th>操作</th>
  87. </tr>
  88. <?php $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['item']->_loop = false;
  89. $_from = $_smarty_tpl->tpl_vars['list']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
  90. foreach ($_from as $_smarty_tpl->tpl_vars['item']->key => $_smarty_tpl->tpl_vars['item']->value){
  91. $_smarty_tpl->tpl_vars['item']->_loop = true;
  92. ?>
  93. <tr>
  94. <td>
  95. <input type="checkbox" name="id_array[]" value="<?php echo $_smarty_tpl->tpl_vars['item']->value['id'];?>
  96. " />
  97. </td>
  98. <td><?php echo $_smarty_tpl->tpl_vars['item']->value['id'];?>
  99. </td>
  100. <td><?php echo $_smarty_tpl->tpl_vars['item']->value['email'];?>
  101. </td>
  102. <td>
  103. <a href="/?a=black_list_admin&m=edit&id=<?php echo $_smarty_tpl->tpl_vars['item']->value['id'];?>
  104. ">编辑</a>
  105. <a onclick="to_confirm('<?php echo $_smarty_tpl->tpl_vars['item']->value['id'];?>
  106. ','<?php echo $_smarty_tpl->tpl_vars['item']->value['uname'];?>
  107. ')" style="float:right;margin-right:15px;cursor:pointer;">删除</a>
  108. </td>
  109. </tr>
  110. <?php } ?>
  111. </table>
  112. </form>
  113. <?php echo $_smarty_tpl->tpl_vars['show']->value;?>
  114. </div>
  115. <script src="static/AdminLTE/js/plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.all.min.js" type="text/javascript"></script>
  116. <script src="static/AdminLTE/js/plugins/iCheck/icheck.min.js" type="text/javascript"></script>
  117. <link href="static/AdminLTE/css/iCheck/minimal/blue.css" rel="stylesheet" type="text/css" />
  118. <link href="static/AdminLTE/css/daterangepicker/daterangepicker-bs3.css" rel="stylesheet" type="text/css" />
  119. <script src="static/AdminLTE/js/plugins/daterangepicker/daterangepicker.js" type="text/javascript"></script>
  120. <script type="text/javascript">
  121. $(function() {
  122. "use strict";
  123. //iCheck for checkbox and radio inputs
  124. $('input[type="checkbox"]').iCheck({
  125. checkboxClass: 'icheckbox_minimal-blue',
  126. radioClass: 'iradio_minimal-blue'
  127. });
  128. //When unchecking the checkbox
  129. $("#check-all").on('ifUnchecked', function(event) {
  130. //Uncheck all checkboxes
  131. $("input[type='checkbox']", ".table-mailbox").iCheck("uncheck");
  132. });
  133. //When checking the checkbox
  134. $("#check-all").on('ifChecked', function(event) {
  135. //Check all checkboxes
  136. $("input[type='checkbox']", ".table-mailbox").iCheck("check");
  137. });
  138. });
  139. </script>
  140. <script>
  141. function toSubmit(){
  142. var n = $("input:checked").length;
  143. if (n<=1) {
  144. alert("请选择要批量删除的黑名单吗");
  145. }else{
  146. if(confirm("确定要删除吗?")){
  147. $('#batch_delete').submit();
  148. }
  149. }
  150. }
  151. </script>
  152. </div>
  153. </section><!-- /.content -->
  154. </aside><!-- /.right-side -->
  155. </div><!-- ./wrapper -->
  156. <style>
  157. select{height:30px;}
  158. </style>
  159. <script>
  160. $('#treeview3').addClass('active');
  161. $(".blacklist_left").addClass('active');
  162. $(function() {
  163. //Date range picker
  164. $('#reservation').daterangepicker();
  165. });
  166. </script>
  167. <script>
  168. function to_confirm(id,name){
  169. if(confirm("确定要删除用户 "+name+" 吗?"))
  170. {
  171. window.location.href = "/?a=black_list_admin&m=delete&id="+id;
  172. }
  173. }
  174. </script>
  175. </body>
  176. </html><?php }} ?>