| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197 | 
							- <{include file='../public/admin_header.html'}>
 
- <{include file='../public/admin_navi.html'}>
 
- <!-- Right side column. Contains the navbar and content of the page -->
 
- <aside class="right-side">
 
- 	<!-- Content Header (Page header) -->
 
- 	<section class="content-header">
 
- 		<h1>
 
- 			客户列表
 
- 			<small>Control panel</small>
 
-           <small>临时队列数据剩余 <span style="color:red"> <{$tmp_num}> </span> </small>
 
- 		</h1>
 
- 		<ol class="breadcrumb">
 
- 			<li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li>
 
- 			<li class="active">Blank page</li>
 
- 		</ol>
 
- 	</section>
 
- 	<!-- Main content -->
 
- 	<section class="content">
 
- 		<div class="span9">
 
- 			<{if $info}>
 
- 			<div   class="alert alert-success  nodisplay"><{$info}></div>
 
- 			<{/if}>
 
- 			<div style="margin-bottom:20px;float:right;">
 
- 				<a href="/?a=customer_list_admin&m=add" style="color:red;text-decoration:underline;">添加客户</a>
 
- 			</div>
 
- 			<div id='main' class="form-actions">
 
- 				<form method="post" action="/?a=customer_list_admin&m=index" >
 
- 					<div style="margin-left:20px;float:left;margin-bottom:20px;margin-right:20px;">
 
- 						客户姓名:<input type="text" name="username" value="<{$username}>" style="width:200px;">
 
- 					</div>
 
- 					<div >
 
- 						客户分组:
 
- 						<select name="group_name" style="width:280px;" id="group_name" >
 
- 							<option value="0">请选择</option>
 
- 							<{foreach from=$group_list item=item}>
 
- 							<option value="<{$item.name}>"  <{if $group_name==$item.name}>selected<{/if}> ><{$item.name}></option>
 
- 							<{/foreach}>
 
- 						</select>
 
- 					</div>
 
- 					
 
- 					
 
- 						
 
- 					
 
- 					<div style="clear:both;margin-left:20px;">
 
- 						<input type="submit" class="btn btn-info" value="查询" style="clear:both;height: 30px; width: 600px; "/>
 
- 					</div>
 
- 				</form>
 
- 				<br/><br/>
 
- 				<form method="post" action="/?a=customer_list_admin&m=export" target="_blank">
 
- 					<div style="text-align:right;">
 
- 						<input type="hidden"  name="group_name" value="<{$group_name}>" />
 
- 						<input type="submit" class="btn btn-primary" value="导出数据"  style="width:200px;"/>
 
- 					</div>
 
- 				</form>
 
- 				<form method="post" id="batch_user_group" action="/?a=customer_list_admin&m=import" enctype="multipart/form-data"  >
 
- 					<input type="hidden"  name="to_import_user" value="yes" />
 
- 					<input type="file" name="inputExcel" style="width:175px;"><span style="color:red;">(excel是.xls格式的)</span>
 
- 					<input type="submit" class="btn btn-success" value="导入用户"   style="cursor:pointer;height: 32px; width: 140px;margin-left:10px;margin-top:20px;" />
 
- 				</form>
 
- 				<form id="batch_delete" method="post" action="/?a=customer_list_admin&m=batch_delete">
 
- 					<input class="btn btn-warning" onclick="toSubmit();" value="批量删除" style="margin-bottom:20px;float:right;width:200px;"  />
 
- 					<table class="table table-mailbox" style="margin-top:15px;">
 
- 						<tr>
 
- 							<th style="width:80px;"><input type="checkbox"  id="check-all" />  全选</th>
 
- 							<th>ID</th>
 
- 							<th>客户姓名</th>
 
- 							<th>邮箱</th>
 
- 							<th>客户所属分组</th>
 
- 							<th>国家</th>
 
- 							<th>城市</th>
 
- 							<th>操作</th>
 
- 						</tr>
 
- 						<{foreach from=$list item=item}>
 
- 						<tr>
 
- 							<td>
 
- 								<input type="checkbox"   name="id_array[]" value="<{$item.id}>" />
 
- 							</td>
 
- 							<td><{$item.id}></td>
 
- 							<td><{$item.uname}></td>
 
- 							<td><{$item.email}></td>
 
- 							<td><{$item.group_name}></td>
 
- 							<td><{$item.country}></td>
 
- 							<td><{$item.city}></td>
 
- 							<td>
 
- 								<a href="/?a=customer_list_admin&m=edit&id=<{$item.id}>">编辑</a>
 
- 								<a onclick="to_confirm('<{$item.id}>','<{$item.uname}>')" style="float:right;margin-right:15px;cursor:pointer;">删除</a>
 
- 							</td>
 
- 						</tr>
 
- 						<{/foreach}>
 
- 					</table>
 
- 				</form>
 
- 				<{$show}> <select name="pagesize"  id="pagesize" onchange="javascript:var pagesize=this.value;location='/?a=customer_list_admin&m=index&pagesize='+pagesize+'&group_name=<{$group_name}>'+'#ly'">
 
-                                                         <option value="20" <{if $pagesize==20}>selected<{/if}> > 20</option>
 
-                                                          <option value="30" <{if $pagesize==30}>selected<{/if}> >30</option>
 
-                                                          <option value="50" <{if $pagesize==50}>selected<{/if}> >50</option>
 
-                                                          <option value="100" <{if $pagesize==100}>selected<{/if}> >100</option>
 
-                                                          <option value="200" <{if $pagesize==200}>selected<{/if}> >200</option>
 
-                                                          <option value="500" <{if $pagesize==500}>selected<{/if}> >500</option>
 
-                                                          <option value="1000" <{if $pagesize==1000}>selected<{/if}> >1000</option>
 
-                                                 </select>
 
- 			</div>
 
- 			<script src="static/AdminLTE/js/plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.all.min.js" type="text/javascript"></script>
 
- 			<script src="static/AdminLTE/js/plugins/iCheck/icheck.min.js" type="text/javascript"></script>
 
- 			<link href="static/AdminLTE/css/iCheck/minimal/blue.css" rel="stylesheet" type="text/css" />
 
- 			<link href="static/AdminLTE/css/daterangepicker/daterangepicker-bs3.css" rel="stylesheet" type="text/css" />
 
- 			<script src="static/AdminLTE/js/plugins/daterangepicker/daterangepicker.js" type="text/javascript"></script>
 
- 			<script type="text/javascript">
 
- 				$(function() {
 
- 					"use strict";
 
- 					//iCheck for checkbox and radio inputs
 
- 					$('input[type="checkbox"]').iCheck({
 
- 						checkboxClass: 'icheckbox_minimal-blue',
 
- 						radioClass: 'iradio_minimal-blue'
 
- 					});
 
- 					//When unchecking the checkbox
 
- 					$("#check-all").on('ifUnchecked', function(event) {
 
- 						//Uncheck all checkboxes
 
- 						$("input[type='checkbox']", ".table-mailbox").iCheck("uncheck");
 
- 					});
 
- 					//When checking the checkbox
 
- 					$("#check-all").on('ifChecked', function(event) {
 
- 						//Check all checkboxes
 
- 						$("input[type='checkbox']", ".table-mailbox").iCheck("check");
 
- 					});
 
- 				});
 
- 			</script>
 
- 			<script>
 
- 				function toSubmit(){
 
- 					var n = $("input:checked").length;
 
- 					if (n<=1) {
 
- 						alert("请选择要批量删除的客户");
 
- 					}else{
 
- 						if(confirm("确定要删除吗?")){
 
- 							$('#batch_delete').submit();
 
- 						}
 
- 					}
 
- 				}
 
- 			</script>
 
- 		</div>
 
- 	</section><!-- /.content -->
 
- </aside><!-- /.right-side -->
 
- </div><!-- ./wrapper -->
 
- <style>
 
- 	select{height:30px;}
 
- </style>
 
- <script>
 
- 	$('#treeview3').addClass('active');
 
- 	$(".return_rate_left").addClass('active');
 
- 	$(function() {
 
- 		//Date range picker
 
- 		$('#reservation').daterangepicker();
 
- 	});
 
- </script>
 
- <script>
 
- 	function to_confirm(id,name){
 
- 		if(confirm("确定要删除用户 "+name+" 吗?"))
 
- 		{
 
- 			window.location.href = "/?a=customer_list_admin&m=delete&id="+id;
 
- 		}
 
- 	}
 
- </script>
 
- </body>
 
- </html>
 
 
  |