112 lines
5.9 KiB
HTML
Executable File
112 lines
5.9 KiB
HTML
Executable File
<!-- Content Wrapper. Contains page content -->
|
|
<div class="content-wrapper">
|
|
<!-- Content Header (Page header) -->
|
|
<section class="content-header">
|
|
<h1>
|
|
会员管理
|
|
<small>会员列表</small>
|
|
</h1>
|
|
<ol class="breadcrumb">
|
|
<li><a href="<?php echo url('/admin');?>"><i class="fa fa-dashboard"></i> 首页</a></li>
|
|
<li><a href="<?php echo url('/admin/customer/lists');?>"> 会员</a></li>
|
|
<li class="active"> 会员列表</li>
|
|
</ol>
|
|
</section>
|
|
|
|
<!-- Main content -->
|
|
<section class="content">
|
|
<div class="box box-primary">
|
|
<div class="box-header with-border">
|
|
<h3 class="box-title">会员列表</h3>
|
|
<div class="box-tools pull-right">
|
|
<div class="input-group input-group-sm">
|
|
<input type="text" class="form-control pull-right" id="list-search-in" placeholder="Search Name" value="<?php echo $search['skeyword'];?>">
|
|
<div class="input-group-btn">
|
|
<button type="button" class="btn btn-default" id="list-search-btn"><i class="fa fa-search"></i></button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- /.box-tools -->
|
|
</div>
|
|
<!-- /.box-header -->
|
|
<div class="box-body no-padding">
|
|
<?php if(!empty($list)):?>
|
|
<div class="table-responsive lists-table">
|
|
<table class="table table-hover table-bordered">
|
|
<tbody>
|
|
<tr>
|
|
<th width="35rem"> </th>
|
|
<th>ID</th>
|
|
<th>会员姓名</th>
|
|
<th class="text-center">邮箱</th>
|
|
<th class="text-center">电话</th>
|
|
<th class="text-center">会员组</th>
|
|
<th class="text-center">状态</th>
|
|
<th class="text-center">安全性</th>
|
|
<th class="text-center">添加时间</th>
|
|
<th>操作</th>
|
|
</tr>
|
|
<?php foreach($list as $k=>$customer):?>
|
|
<tr>
|
|
<td><input type="checkbox" name="ids[]" value="<?php echo $customer['id'];?>"></td>
|
|
<td><?php echo $customer['id'];?></td>
|
|
<td><a href="<?php echo url('/admin/customer/edit',['id'=>$customer['id']]);?>"><?php echo $customer['firstname'];?></a></td>
|
|
<td class="text-center"><?php echo $customer['email'];?></td>
|
|
<td class="text-center"><?php echo $customer['telephone'];?></td>
|
|
<td class="text-center"><?php echo $customer['group_name'];?></td>
|
|
<td class="text-center"><?php echo array_switch(array('-2' => '<label style="color:red;">删除</label>', '-1' => '<label style="color:blue;">禁用</label>', '0' => '<label style="color:green;">启用</label>','1' => '未审核'),$customer['stat']);?></td>
|
|
<td class="text-center"><?php echo array_switch(array('0' => '<label style="color:red;">否</label>', '1' => '<label style="color:green;">是</label>'),$customer['safe']);?></td>
|
|
<td class="text-center"><?php echo date('Y-m-d H:i:s',$customer['addtime']);?></td>
|
|
<td>
|
|
<a class="btn btn-xs btn-info" href="<?php echo url('/admin/customer/edit',['id'=>$customer['id']]);?>">编辑</a>
|
|
<a class="btn btn-xs btn-info" data-id="<?php echo $customer['id'];?>" data-url="<?php echo url('/admin/customer/delete');?>" data-cod="dowarn">删除</a>
|
|
</td>
|
|
</tr>
|
|
<?php endforeach;?>
|
|
</tbody>
|
|
</table>
|
|
<!-- /.table -->
|
|
</div>
|
|
<?php endif;?>
|
|
<!-- /.lists-table -->
|
|
</div>
|
|
<!-- /.box-body -->
|
|
<div class="box-footer no-padding">
|
|
<div class="mailbox-controls row">
|
|
<div class="col-sm-6">
|
|
<button type="button" class="btn btn-default btn-sm checkbox-toggle"><i class="fa fa-square-o"></i></button>
|
|
<div class="btn-group">
|
|
<button type="button" class="btn btn-default btn-sm" data-url="<?php echo url('/admin/customer/deletes');?>" data-cod="batch">删除</button>
|
|
<button type="button" class="btn btn-default btn-sm" data-cod="refresh">刷新</button>
|
|
</div>
|
|
<!-- /.btn-group -->
|
|
<a href="<?php echo url('/admin/customer/add');?>" class="btn btn-default btn-sm">添加</a>
|
|
</div>
|
|
<div class="col-sm-6">
|
|
<div class="pull-right">
|
|
<?php if($page):?>
|
|
<?php echo $page;?>
|
|
<?php endif;?>
|
|
</div>
|
|
<!-- /.pull-right -->
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- /.box -->
|
|
</section>
|
|
<!-- /.content -->
|
|
</div>
|
|
<!-- /.content-wrapper -->
|
|
<style>
|
|
.table-responsive .table tbody > tr > th,.table-responsive .table thead > tr > td, .table-responsive .table tbody > tr > td {
|
|
vertical-align: middle;
|
|
}
|
|
</style>
|
|
<!-- Page Script -->
|
|
<script type="text/javascript">
|
|
$(function() {
|
|
|
|
});
|
|
</script>
|