| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183 | <?php /* Smarty version Smarty-3.1.11, created on 2019-03-22 11:34:51         compiled from "/www/wwwroot/edm.alipearl.net/application/module/view/user_group_admin/index.html" */ ?><?php /*%%SmartyHeaderCode:2606221065951fb393885a6-76329387%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');$_valid = $_smarty_tpl->decodeProperties(array (  'file_dependency' =>   array (    '4dcecb256eadee797e00350c19d73a22b23025df' =>     array (      0 => '/www/wwwroot/edm.alipearl.net/application/module/view/user_group_admin/index.html',      1 => 1522381870,      2 => 'file',    ),  ),  'nocache_hash' => '2606221065951fb393885a6-76329387',  'function' =>   array (  ),  'version' => 'Smarty-3.1.11',  'unifunc' => 'content_5951fb393f1ae6_11133618',  'variables' =>   array (    'info' => 0,    'error' => 0,    'list' => 0,    'item' => 0,    'uname' => 0,  ),  'has_nocache_code' => false,),false); /*/%%SmartyHeaderCode%%*/?><?php if ($_valid && !is_callable('content_5951fb393f1ae6_11133618')) {function content_5951fb393f1ae6_11133618($_smarty_tpl) {?><?php echo $_smarty_tpl->getSubTemplate ('../public/admin_header.html', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?><?php echo $_smarty_tpl->getSubTemplate ('../public/admin_navi.html', $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?><!-- 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">		<?php if ($_smarty_tpl->tpl_vars['info']->value){?>		<div   class="alert alert-success"><?php echo $_smarty_tpl->tpl_vars['info']->value;?></div>		<?php }?>		<?php if ($_smarty_tpl->tpl_vars['error']->value){?>		<div   class="alert alert-danger alert-dismissable"><?php echo $_smarty_tpl->tpl_vars['error']->value;?></div>		<?php }?>		<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>				<?php  $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['item']->_loop = false; $_from = $_smarty_tpl->tpl_vars['list']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}foreach ($_from as $_smarty_tpl->tpl_vars['item']->key => $_smarty_tpl->tpl_vars['item']->value){$_smarty_tpl->tpl_vars['item']->_loop = true;?>				<tr>					<td>						<input type="checkbox"   name="id_array[]" value="<?php echo $_smarty_tpl->tpl_vars['item']->value['id'];?>" />					</td>					<td><?php echo $_smarty_tpl->tpl_vars['item']->value['id'];?></td>					<td><?php echo $_smarty_tpl->tpl_vars['item']->value['name'];?></td>					<td><?php echo $_smarty_tpl->tpl_vars['uname']->value;?></td>					<td><?php echo $_smarty_tpl->tpl_vars['item']->value['update_time'];?></td>					<td><?php echo $_smarty_tpl->tpl_vars['item']->value['add_time'];?></td>					<td>						<a href="/?a=user_group_admin&m=update&id=<?php echo $_smarty_tpl->tpl_vars['item']->value['id'];?>">编辑</a>						<a style="margin-left:50px;text-align:right;" href="/?a=user_group_admin&m=group_list&id=<?php echo $_smarty_tpl->tpl_vars['item']->value['id'];?>&gname=<?php echo $_smarty_tpl->tpl_vars['item']->value['name'];?>">详情</a>						<a  onclick="to_delete('<?php echo $_smarty_tpl->tpl_vars['item']->value['name'];?>','<?php echo $_smarty_tpl->tpl_vars['item']->value['id'];?>');" style="margin-left:50px;text-align:right;cursor:pointer;" >删除</a>					</td>				</tr>				<?php } ?>			</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><?php }} ?>
 |