| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259 | <?php /* Smarty version Smarty-3.1.11, created on 2020-11-17 10:04:00         compiled from "/www/wwwroot/edm.alipearl.net/application/module/view/customer_list_admin/index.html" */ ?><?php /*%%SmartyHeaderCode:10070221315948e0d3045ae0-99185221%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');$_valid = $_smarty_tpl->decodeProperties(array (  'file_dependency' =>   array (    'd55b9137ce6787870a11bc3c627c37f1d9d4ccef' =>     array (      0 => '/www/wwwroot/edm.alipearl.net/application/module/view/customer_list_admin/index.html',      1 => 1605578637,      2 => 'file',    ),  ),  'nocache_hash' => '10070221315948e0d3045ae0-99185221',  'function' =>   array (  ),  'version' => 'Smarty-3.1.11',  'unifunc' => 'content_5948e0d30bfa85_40292292',  'variables' =>   array (    'tmp_num' => 0,    'info' => 0,    'username' => 0,    'group_list' => 0,    'item' => 0,    'group_name' => 0,    'list' => 0,    'show' => 0,    'pagesize' => 0,  ),  'has_nocache_code' => false,),false); /*/%%SmartyHeaderCode%%*/?><?php if ($_valid && !is_callable('content_5948e0d30bfa85_40292292')) {function content_5948e0d30bfa85_40292292($_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>          <small>临时队列数据剩余 <span style="color:red"> <?php echo $_smarty_tpl->tpl_vars['tmp_num']->value;?> </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">			<?php if ($_smarty_tpl->tpl_vars['info']->value){?>			<div   class="alert alert-success  nodisplay"><?php echo $_smarty_tpl->tpl_vars['info']->value;?></div>			<?php }?>			<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="<?php echo $_smarty_tpl->tpl_vars['username']->value;?>" style="width:200px;">					</div>					<div >						客户分组:						<select name="group_name" style="width:280px;" id="group_name" >							<option value="0">请选择</option>							<?php  $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['item']->_loop = false; $_from = $_smarty_tpl->tpl_vars['group_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;?>							<option value="<?php echo $_smarty_tpl->tpl_vars['item']->value['name'];?>"  <?php if ($_smarty_tpl->tpl_vars['group_name']->value==$_smarty_tpl->tpl_vars['item']->value['name']){?>selected<?php }?> ><?php echo $_smarty_tpl->tpl_vars['item']->value['name'];?></option>							<?php } ?>						</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="<?php echo $_smarty_tpl->tpl_vars['group_name']->value;?>" />						<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>						<?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['uname'];?></td>							<td><?php echo $_smarty_tpl->tpl_vars['item']->value['email'];?></td>							<td><?php echo $_smarty_tpl->tpl_vars['item']->value['group_name'];?></td>							<td><?php echo $_smarty_tpl->tpl_vars['item']->value['country'];?></td>							<td><?php echo $_smarty_tpl->tpl_vars['item']->value['city'];?></td>							<td>								<a href="/?a=customer_list_admin&m=edit&id=<?php echo $_smarty_tpl->tpl_vars['item']->value['id'];?>">编辑</a>								<a onclick="to_confirm('<?php echo $_smarty_tpl->tpl_vars['item']->value['id'];?>','<?php echo $_smarty_tpl->tpl_vars['item']->value['uname'];?>')" style="float:right;margin-right:15px;cursor:pointer;">删除</a>							</td>						</tr>						<?php } ?>					</table>				</form>				<?php echo $_smarty_tpl->tpl_vars['show']->value;?> <select name="pagesize"  id="pagesize" onchange="javascript:var pagesize=this.value;location='/?a=customer_list_admin&m=index&pagesize='+pagesize+'&group_name=<?php echo $_smarty_tpl->tpl_vars['group_name']->value;?>'+'#ly'">                                                        <option value="20" <?php if ($_smarty_tpl->tpl_vars['pagesize']->value==20){?>selected<?php }?> > 20</option>                                                         <option value="30" <?php if ($_smarty_tpl->tpl_vars['pagesize']->value==30){?>selected<?php }?> >30</option>                                                         <option value="50" <?php if ($_smarty_tpl->tpl_vars['pagesize']->value==50){?>selected<?php }?> >50</option>                                                         <option value="100" <?php if ($_smarty_tpl->tpl_vars['pagesize']->value==100){?>selected<?php }?> >100</option>                                                         <option value="200" <?php if ($_smarty_tpl->tpl_vars['pagesize']->value==200){?>selected<?php }?> >200</option>                                                         <option value="500" <?php if ($_smarty_tpl->tpl_vars['pagesize']->value==500){?>selected<?php }?> >500</option>                                                         <option value="1000" <?php if ($_smarty_tpl->tpl_vars['pagesize']->value==1000){?>selected<?php }?> >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><?php }} ?>
 |