4dcecb256eadee797e00350c19d73a22b23025df.file.index.html.php 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  1. <?php /* Smarty version Smarty-3.1.11, created on 2019-03-22 11:34:51
  2. compiled from "/www/wwwroot/edm.alipearl.net/application/module/view/user_group_admin/index.html" */ ?>
  3. <?php /*%%SmartyHeaderCode:2606221065951fb393885a6-76329387%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
  4. $_valid = $_smarty_tpl->decodeProperties(array (
  5. 'file_dependency' =>
  6. array (
  7. '4dcecb256eadee797e00350c19d73a22b23025df' =>
  8. array (
  9. 0 => '/www/wwwroot/edm.alipearl.net/application/module/view/user_group_admin/index.html',
  10. 1 => 1522381870,
  11. 2 => 'file',
  12. ),
  13. ),
  14. 'nocache_hash' => '2606221065951fb393885a6-76329387',
  15. 'function' =>
  16. array (
  17. ),
  18. 'version' => 'Smarty-3.1.11',
  19. 'unifunc' => 'content_5951fb393f1ae6_11133618',
  20. 'variables' =>
  21. array (
  22. 'info' => 0,
  23. 'error' => 0,
  24. 'list' => 0,
  25. 'item' => 0,
  26. 'uname' => 0,
  27. ),
  28. 'has_nocache_code' => false,
  29. ),false); /*/%%SmartyHeaderCode%%*/?>
  30. <?php if ($_valid && !is_callable('content_5951fb393f1ae6_11133618')) {function content_5951fb393f1ae6_11133618($_smarty_tpl) {?><?php echo $_smarty_tpl->getSubTemplate ('../public/admin_header.html', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>
  31. <?php echo $_smarty_tpl->getSubTemplate ('../public/admin_navi.html', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>
  32. <!-- Right side column. Contains the navbar and content of the page -->
  33. <aside class="right-side">
  34. <!-- Content Header (Page header) -->
  35. <section class="content-header">
  36. <h1>
  37. 客户分组列表
  38. <small>Control panel</small>
  39. </h1>
  40. <ol class="breadcrumb">
  41. <li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li>
  42. <li class="active">Blank page</li>
  43. </ol>
  44. </section>
  45. <!-- Main content -->
  46. <section class="content">
  47. <?php if ($_smarty_tpl->tpl_vars['info']->value){?>
  48. <div class="alert alert-success"><?php echo $_smarty_tpl->tpl_vars['info']->value;?>
  49. </div>
  50. <?php }?>
  51. <?php if ($_smarty_tpl->tpl_vars['error']->value){?>
  52. <div class="alert alert-danger alert-dismissable"><?php echo $_smarty_tpl->tpl_vars['error']->value;?>
  53. </div>
  54. <?php }?>
  55. <div id='main' class="form-actions">
  56. <a href="/?a=user_group_admin&m=add" style="font-weight:bold;text-decoration:underline;">添加客户分组</a>
  57. <form id="batch_delete" method="post" action="/?a=user_group_admin&m=batch_delete">
  58. <input class="btn btn-warning" onclick="toSubmit();" value="批量删除" style="float:right;width:200px;margin-bottom:20px;" />
  59. <table class="table table-bordered" style="margin-top:15px;clear:both;">
  60. <tr>
  61. <th style="width:80px;"><input type="checkbox" id="check-all" />&nbsp;&nbsp;全选</th>
  62. <th>ID</th>
  63. <th >客户分组名称</th>
  64. <th >创建人</th>
  65. <th >修改时间</th>
  66. <th >添加时间</th>
  67. <th>操作</th>
  68. </tr>
  69. <?php $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['item']->_loop = false;
  70. $_from = $_smarty_tpl->tpl_vars['list']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
  71. foreach ($_from as $_smarty_tpl->tpl_vars['item']->key => $_smarty_tpl->tpl_vars['item']->value){
  72. $_smarty_tpl->tpl_vars['item']->_loop = true;
  73. ?>
  74. <tr>
  75. <td>
  76. <input type="checkbox" name="id_array[]" value="<?php echo $_smarty_tpl->tpl_vars['item']->value['id'];?>
  77. " />
  78. </td>
  79. <td><?php echo $_smarty_tpl->tpl_vars['item']->value['id'];?>
  80. </td>
  81. <td><?php echo $_smarty_tpl->tpl_vars['item']->value['name'];?>
  82. </td>
  83. <td><?php echo $_smarty_tpl->tpl_vars['uname']->value;?>
  84. </td>
  85. <td><?php echo $_smarty_tpl->tpl_vars['item']->value['update_time'];?>
  86. </td>
  87. <td><?php echo $_smarty_tpl->tpl_vars['item']->value['add_time'];?>
  88. </td>
  89. <td>
  90. <a href="/?a=user_group_admin&m=update&id=<?php echo $_smarty_tpl->tpl_vars['item']->value['id'];?>
  91. ">编辑</a>
  92. <a style="margin-left:50px;text-align:right;" href="/?a=user_group_admin&m=group_list&id=<?php echo $_smarty_tpl->tpl_vars['item']->value['id'];?>
  93. &gname=<?php echo $_smarty_tpl->tpl_vars['item']->value['name'];?>
  94. ">详情</a>
  95. <a onclick="to_delete('<?php echo $_smarty_tpl->tpl_vars['item']->value['name'];?>
  96. ','<?php echo $_smarty_tpl->tpl_vars['item']->value['id'];?>
  97. ');" style="margin-left:50px;text-align:right;cursor:pointer;" >删除</a>
  98. </td>
  99. </tr>
  100. <?php } ?>
  101. </table>
  102. </form>
  103. </div>
  104. <script src="static/AdminLTE/js/plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.all.min.js" type="text/javascript"></script>
  105. <script src="static/AdminLTE/js/plugins/iCheck/icheck.min.js" type="text/javascript"></script>
  106. <link href="static/AdminLTE/css/iCheck/minimal/blue.css" rel="stylesheet" type="text/css" />
  107. <link href="static/AdminLTE/css/daterangepicker/daterangepicker-bs3.css" rel="stylesheet" type="text/css" />
  108. <script src="static/AdminLTE/js/plugins/daterangepicker/daterangepicker.js" type="text/javascript"></script>
  109. <script type="text/javascript">
  110. $(function() {
  111. "use strict";
  112. //iCheck for checkbox and radio inputs
  113. $('input[type="checkbox"]').iCheck({
  114. checkboxClass: 'icheckbox_minimal-blue',
  115. radioClass: 'iradio_minimal-blue'
  116. });
  117. //When unchecking the checkbox
  118. $("#check-all").on('ifUnchecked', function(event) {
  119. //Uncheck all checkboxes
  120. $("input[type='checkbox']", ".table-bordered").iCheck("uncheck");
  121. });
  122. //When checking the checkbox
  123. $("#check-all").on('ifChecked', function(event) {
  124. //Check all checkboxes
  125. $("input[type='checkbox']", ".table-bordered").iCheck("check");
  126. });
  127. });
  128. </script>
  129. <script>
  130. function toSubmit(){
  131. var n = $("input:checked").length;
  132. if (n<=1) {
  133. alert("请选择要批量删除的黑名单吗");
  134. }else{
  135. if(confirm("确定要删除吗?")){
  136. $('#batch_delete').submit();
  137. }
  138. }
  139. }
  140. </script>
  141. </section><!-- /.content -->
  142. </aside><!-- /.right-side -->
  143. </div><!-- ./wrapper -->
  144. <script>
  145. $('#treeview3').addClass('active');
  146. $(".user_group_left").addClass('active');
  147. function to_delete(name,id){
  148. if(confirm("确定删除"+name)){
  149. window.location.href="/?a=user_group_admin&m=delete&id="+id+"&group_name="+name;
  150. }
  151. }
  152. </script>
  153. </body>
  154. </html><?php }} ?>