index.html 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  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/>
  40. <form method="post" action="/?a=sms_customer_list_admin&m=export" target="_blank">
  41. <div style="text-align:right;">
  42. <input type="hidden" name="group_name" value="<{$group_name}>" />
  43. <input type="submit" class="btn btn-primary" value="导出数据" style="width:200px;"/>
  44. </div>
  45. </form>
  46. <br/>
  47. <form method="post" id="batch_user_group" action="/?a=sms_customer_list_admin&m=import" enctype="multipart/form-data" >
  48. <input type="hidden" name="to_import_user" value="yes" />
  49. <input type="file" name="inputExcel" style="width:175px;"><span style="color:red;">(excel是.xls格式的)</span>
  50. <input type="submit" class="btn btn-success" value="导入用户" style="cursor:pointer;height: 32px; width: 140px;margin-left:10px;margin-top:20px;" />
  51. </form>
  52. <form id="batch_delete" method="post" action="/?a=sms_customer_list_admin&m=batch_delete">
  53. <input class="btn btn-warning" onclick="toSubmit();" value="批量删除" style="margin-bottom:20px;float:right;width:200px;" />
  54. <table class="table table-mailbox" style="margin-top:15px;">
  55. <tr>
  56. <th style="width:80px;"><input type="checkbox" id="check-all" />&nbsp;&nbsp;全选</th>
  57. <th>ID</th>
  58. <th>客户姓名</th>
  59. <th>手机号码</th>
  60. <th>客户所属分组</th>
  61. <th>国家</th>
  62. <th>操作</th>
  63. </tr>
  64. <{foreach from=$list item=item}>
  65. <tr>
  66. <td>
  67. <input type="checkbox" name="id_array[]" value="<{$item.id}>" />
  68. </td>
  69. <td><{$item.id}></td>
  70. <td><{$item.uname}></td>
  71. <td><{$item.tel}></td>
  72. <td><{$item.group_name}></td>
  73. <td><{$item.country}></td>
  74. <td>
  75. <a href="/?a=sms_customer_list_admin&m=edit&id=<{$item.id}>">编辑</a>
  76. <a onclick="to_confirm('<{$item.id}>','<{$item.uname}>')" style="float:right;margin-right:15px;cursor:pointer;">删除</a>
  77. </td>
  78. </tr>
  79. <{/foreach}>
  80. </table>
  81. </form>
  82. <{$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'">
  83. <option value="20" <{if $pagesize==20}>selected<{/if}> > 20</option>
  84. <option value="30" <{if $pagesize==30}>selected<{/if}> >30</option>
  85. <option value="50" <{if $pagesize==50}>selected<{/if}> >50</option>
  86. <option value="100" <{if $pagesize==100}>selected<{/if}> >100</option>
  87. <option value="200" <{if $pagesize==200}>selected<{/if}> >200</option>
  88. <option value="500" <{if $pagesize==500}>selected<{/if}> >500</option>
  89. <option value="1000" <{if $pagesize==1000}>selected<{/if}> >1000</option>
  90. </select>
  91. </div>
  92. <script src="static/AdminLTE/js/plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.all.min.js" type="text/javascript"></script>
  93. <script src="static/AdminLTE/js/plugins/iCheck/icheck.min.js" type="text/javascript"></script>
  94. <link href="static/AdminLTE/css/iCheck/minimal/blue.css" rel="stylesheet" type="text/css" />
  95. <link href="static/AdminLTE/css/daterangepicker/daterangepicker-bs3.css" rel="stylesheet" type="text/css" />
  96. <script src="static/AdminLTE/js/plugins/daterangepicker/daterangepicker.js" type="text/javascript"></script>
  97. <script type="text/javascript">
  98. $(function() {
  99. "use strict";
  100. //iCheck for checkbox and radio inputs
  101. $('input[type="checkbox"]').iCheck({
  102. checkboxClass: 'icheckbox_minimal-blue',
  103. radioClass: 'iradio_minimal-blue'
  104. });
  105. //When unchecking the checkbox
  106. $("#check-all").on('ifUnchecked', function(event) {
  107. //Uncheck all checkboxes
  108. $("input[type='checkbox']", ".table-mailbox").iCheck("uncheck");
  109. });
  110. //When checking the checkbox
  111. $("#check-all").on('ifChecked', function(event) {
  112. //Check all checkboxes
  113. $("input[type='checkbox']", ".table-mailbox").iCheck("check");
  114. });
  115. });
  116. </script>
  117. <script>
  118. function toSubmit(){
  119. var n = $("input:checked").length;
  120. if (n<=1) {
  121. alert("请选择要批量删除的客户");
  122. }else{
  123. if(confirm("确定要删除吗?")){
  124. $('#batch_delete').submit();
  125. }
  126. }
  127. }
  128. </script>
  129. </div>
  130. </section><!-- /.content -->
  131. </aside><!-- /.right-side -->
  132. </div><!-- ./wrapper -->
  133. <style>
  134. select{height:30px;}
  135. </style>
  136. <script>
  137. $('#treeview9').addClass('active');
  138. $(".return_rate_left").addClass('active');
  139. $(function() {
  140. //Date range picker
  141. $('#reservation').daterangepicker();
  142. });
  143. </script>
  144. <script>
  145. function to_confirm(id,name){
  146. if(confirm("确定要删除用户 "+name+" 吗?"))
  147. {
  148. window.location.href = "/?a=sms_customer_list_admin&m=delete&id="+id;
  149. }
  150. }
  151. </script>
  152. </body>
  153. </html>