d55b9137ce6787870a11bc3c627c37f1d9d4ccef.file.index.html.php 10 KB

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