| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135 | 
							- <{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>
 
- 		</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">
 
- 		<{if $info}>
 
- 		<div   class="alert alert-success"><{$info}></div>
 
- 		<{/if}>
 
- 		<{if $error}>
 
- 		<div   class="alert alert-danger alert-dismissable"><{$error}></div>
 
- 		<{/if}>
 
- 		<div id='main' class="form-actions">
 
- 			<a href="/?a=user_group_admin&m=add" style="font-weight:bold;text-decoration:underline;">添加客户分组</a>
 
- 			<form id="batch_delete" method="post" action="/?a=user_group_admin&m=batch_delete">
 
- 			<input class="btn btn-warning" onclick="toSubmit();" value="批量删除" style="float:right;width:200px;margin-bottom:20px;"  />
 
- 			<table class="table table-bordered" style="margin-top:15px;clear:both;">
 
- 				<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>
 
- 				</tr>
 
- 				<{foreach from=$list item=item}>
 
- 				<tr>
 
- 					<td>
 
- 						<input type="checkbox"   name="id_array[]" value="<{$item.id}>" />
 
- 					</td>
 
- 					<td><{$item.id}></td>
 
- 					<td><{$item.name}></td>
 
- 					<td><{$uname}></td>
 
- 					<td><{$item.update_time}></td>
 
- 					<td><{$item.add_time}></td>
 
- 					<td>
 
- 						<a href="/?a=user_group_admin&m=update&id=<{$item.id}>">编辑</a>
 
- 						<a style="margin-left:50px;text-align:right;" href="/?a=user_group_admin&m=group_list&id=<{$item.id}>&gname=<{$item.name}>">详情</a>
 
- 						<a  onclick="to_delete('<{$item.name}>','<{$item.id}>');" style="margin-left:50px;text-align:right;cursor:pointer;" >删除</a>
 
- 					</td>
 
- 				</tr>
 
- 				<{/foreach}>
 
- 			</table>
 
- 			</form>
 
- 		</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-bordered").iCheck("uncheck");
 
- 				});
 
- 				//When checking the checkbox
 
- 				$("#check-all").on('ifChecked', function(event) {
 
- 					//Check all checkboxes
 
- 					$("input[type='checkbox']", ".table-bordered").iCheck("check");
 
- 				});
 
- 			});
 
- 		</script>
 
- 		<script>
 
- 			function toSubmit(){
 
- 				var n = $("input:checked").length;
 
- 				if (n<=1) {
 
- 					alert("请选择要批量删除的黑名单吗");
 
- 				}else{
 
- 					if(confirm("确定要删除吗?")){
 
- 						$('#batch_delete').submit();
 
- 					}
 
- 				}
 
- 			}
 
- 		</script>
 
- 	</section><!-- /.content -->
 
- </aside><!-- /.right-side -->
 
- </div><!-- ./wrapper -->
 
- <script>
 
- 	$('#treeview3').addClass('active');
 
- 	$(".user_group_left").addClass('active');
 
- 	function to_delete(name,id){
 
- 		if(confirm("确定删除"+name)){
 
- 			window.location.href="/?a=user_group_admin&m=delete&id="+id+"&group_name="+name;
 
- 		}
 
- 	}
 
- </script>
 
- </body>
 
- </html>
 
 
  |