index.html 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. <{include file='../public/admin_header.html'}>
  2. <{include file='../public/admin_navi.html'}>
  3. <!-- Right side column. Contains the navbar and content of the page -->
  4. <aside class="right-side">
  5. <!-- Content Header (Page header) -->
  6. <section class="content-header">
  7. <h1>
  8. 客户列表
  9. </h1>
  10. <ol class="breadcrumb">
  11. <li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li>
  12. <li class="active">Blank page</li>
  13. </ol>
  14. </section>
  15. <!-- Main content -->
  16. <section class="content">
  17. <div class="span9">
  18. <{if $info}>
  19. <div class="alert alert-success nodisplay"><{$info}></div>
  20. <{/if}>
  21. <div id='main' class="form-actions">
  22. <form method="post" action="/?a=sms_customer_list_admin&m=index" >
  23. <div style="margin-left:20px;float:left;margin-bottom:20px;margin-right:20px;">
  24. 手机号码:<input type="text" name="tel" value="" style="width:200px;">
  25. </div>
  26. <div >
  27. 分组:
  28. <select name="group_name" style="width:280px;" id="group_name" >
  29. <option value="0">请选择</option>
  30. <{foreach from=$group_list item=item}>
  31. <option value="<{$item.name}>" <{if $group_name==$item.name}>selected<{/if}> ><{$item.name}></option>
  32. <{/foreach}>
  33. </select>
  34. </div>
  35. <div style="clear:both;margin-left:20px;">
  36. <input type="submit" class="btn btn-info" value="查询" style="clear:both;height: 30px; width: 600px; "/>
  37. </div>
  38. </form>
  39. <br/><br/>
  40. <form method="post" id="batch_user_group" action="/?a=sms_customer_list_admin&m=import" enctype="multipart/form-data" >
  41. <input type="hidden" name="to_import_user" value="yes" />
  42. <input type="file" name="inputExcel" style="width:175px;"><span style="color:red;">(excel是.xls格式的)</span>
  43. <input type="submit" class="btn btn-success" value="导入用户" style="cursor:pointer;height: 32px; width: 140px;margin-left:10px;margin-top:20px;" />
  44. </form>
  45. <form id="batch_delete" method="post" action="/?a=sms_customer_list_admin&m=batch_delete">
  46. <input class="btn btn-warning" onclick="toSubmit();" value="批量删除" style="margin-bottom:20px;float:right;width:200px;" />
  47. <table class="table table-mailbox" style="margin-top:15px;">
  48. <tr>
  49. <th style="width:80px;"><input type="checkbox" id="check-all" />&nbsp;&nbsp;全选</th>
  50. <th>客户姓名</th>
  51. <th>手机号码</th>
  52. <th>客户所属分组</th>
  53. <th>国家</th>
  54. <th>操作</th>
  55. </tr>
  56. <{foreach from=$list item=item}>
  57. <tr>
  58. <td>
  59. <input type="checkbox" name="id_array[]" value="<{$item.id}>" />
  60. </td>
  61. <td><{$item.uname}></td>
  62. <td><{$item.tel}></td>
  63. <td><{$item.group_name}></td>
  64. <td><{$item.country}></td>
  65. <td>
  66. <a href="/?a=sms_customer_list_admin&m=edit&id=<{$item.id}>">编辑</a>
  67. <a onclick="to_confirm('<{$item.id}>','<{$item.uname}>')" style="float:right;margin-right:15px;cursor:pointer;">删除</a>
  68. </td>
  69. </tr>
  70. <{/foreach}>
  71. </table>
  72. </form>
  73. <{$show}> <select name="pagesize" id="pagesize" onchange="javascript:var pagesize=this.value;location='/?a=sms_customer_list_admin&amp;m=index&amp;pagesize='+pagesize+'&group_name=<{$group_name}>'+'#ly'">
  74. <option value="20" <{if $pagesize==20}>selected<{/if}> > 20</option>
  75. <option value="30" <{if $pagesize==30}>selected<{/if}> >30</option>
  76. <option value="50" <{if $pagesize==50}>selected<{/if}> >50</option>
  77. <option value="100" <{if $pagesize==100}>selected<{/if}> >100</option>
  78. <option value="200" <{if $pagesize==200}>selected<{/if}> >200</option>
  79. <option value="500" <{if $pagesize==500}>selected<{/if}> >500</option>
  80. <option value="1000" <{if $pagesize==1000}>selected<{/if}> >1000</option>
  81. </select>
  82. </div>
  83. <script src="static/AdminLTE/js/plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.all.min.js" type="text/javascript"></script>
  84. <script src="static/AdminLTE/js/plugins/iCheck/icheck.min.js" type="text/javascript"></script>
  85. <link href="static/AdminLTE/css/iCheck/minimal/blue.css" rel="stylesheet" type="text/css" />
  86. <link href="static/AdminLTE/css/daterangepicker/daterangepicker-bs3.css" rel="stylesheet" type="text/css" />
  87. <script src="static/AdminLTE/js/plugins/daterangepicker/daterangepicker.js" type="text/javascript"></script>
  88. <script type="text/javascript">
  89. $(function() {
  90. "use strict";
  91. //iCheck for checkbox and radio inputs
  92. $('input[type="checkbox"]').iCheck({
  93. checkboxClass: 'icheckbox_minimal-blue',
  94. radioClass: 'iradio_minimal-blue'
  95. });
  96. //When unchecking the checkbox
  97. $("#check-all").on('ifUnchecked', function(event) {
  98. //Uncheck all checkboxes
  99. $("input[type='checkbox']", ".table-mailbox").iCheck("uncheck");
  100. });
  101. //When checking the checkbox
  102. $("#check-all").on('ifChecked', function(event) {
  103. //Check all checkboxes
  104. $("input[type='checkbox']", ".table-mailbox").iCheck("check");
  105. });
  106. });
  107. </script>
  108. <script>
  109. function toSubmit(){
  110. var n = $("input:checked").length;
  111. if (n<=1) {
  112. alert("请选择要批量删除的客户");
  113. }else{
  114. if(confirm("确定要删除吗?")){
  115. $('#batch_delete').submit();
  116. }
  117. }
  118. }
  119. </script>
  120. </div>
  121. </section><!-- /.content -->
  122. </aside><!-- /.right-side -->
  123. </div><!-- ./wrapper -->
  124. <style>
  125. select{height:30px;}
  126. </style>
  127. <script>
  128. $('#treeview9').addClass('active');
  129. $(".return_rate_left").addClass('active');
  130. $(function() {
  131. //Date range picker
  132. $('#reservation').daterangepicker();
  133. });
  134. </script>
  135. <script>
  136. function to_confirm(id,name){
  137. if(confirm("确定要删除用户 "+name+" 吗?"))
  138. {
  139. window.location.href = "/?a=sms_customer_list_admin&m=delete&id="+id;
  140. }
  141. }
  142. </script>
  143. </body>
  144. </html>