index.html 6.2 KB

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