charge.html 6.37 KB
{template 'common/header'}
<ul class="nav nav-tabs">
	<li {if $op == 'list'}class="active"{/if}><a href="{php echo create_url('site/entry', array('do' => 'charge', 'op' => 'list','m' => 'wwx_fxxt','uniacid'=>$_W['uniacid']))}">会员管理</a></li>	
	<li {if $operation == 'display'}class="active"{/if}><a href="{php echo $this->createWebUrl('membershipgrade', array('op' => 'display'))}">等级管理</a></li>
	{if $operation == 'post'}<li class="active"><a>{if !empty($membership['id'])}编辑{else}添加{/if}会员等级</a></li>{/if}
</ul>


<div class="main">
	<div class="panel panel-info">
		<div class="panel-heading">筛选</div>
		<div class="panel-body">
			<form action="./index.php" method="get" class="form-horizontal" role="form" id="form1">
				<input type="hidden" name="c" value="site" />
				<input type="hidden" name="a" value="entry" />
				<input type="hidden" name="m" value="wwx_fxxt" />
				<input type="hidden" name="do" value="charge" />
				<input type="hidden" name="op" value="list" />
				<div class="form-group">
					<label class="col-xs-12 col-sm-3 col-md-3 col-lg-2 control-label">姓名</label>
					<div class="col-sm-8 col-lg-9 col-xs-12">
						<input class="form-control" name="realname" id="" type="text" value="{$gprealname}" placeholder="可模糊查询会员姓名 /昵称">
					</div>
				</div> 
				<div class="form-group">
					<label class="col-xs-12 col-sm-3 col-md-3 col-lg-2 control-label">手机</label>
					<div class="col-sm-8 col-lg-9 col-xs-12">
						<input class="form-control" name="mobile" id="" type="text" value="{$gpmobile}" placeholder="可模糊查询手机号">
					</div>
				</div>
				<div class="form-group">
					<label class="col-xs-12 col-sm-3 col-md-3 col-lg-2 control-label">会员标识</label>
					<div class="col-sm-8 col-lg-9 col-xs-12">
						<input class="form-control" name="userid" onkeyup="value=this.value.replace(/\D+/g,'')" id="" type="text" value="{$gpuserid}" placeholder="可精确查询会员标识">
					</div>
				</div> 
				<div class="form-group">
					<label class="col-xs-12 col-sm-3 col-md-3 col-lg-2 control-label">上级标识</label>
					<div class="col-sm-8 col-lg-9 col-xs-12">
						<input class="form-control" name="flagid" onkeyup="value=this.value.replace(/\D+/g,'')" id="" type="text" value="{$gpflagid}" placeholder="可精确查询上级标识">
					</div>
				</div>
				<div class="form-group">
					<label class="col-xs-12 col-sm-3 col-md-3 col-lg-2 control-label">会员等级</label>
					<div class="col-sm-9 col-xs-12">
						<select name='usergrade' class="form-control" style="width:300px;display:inline;">
							<option value="0" selected>所有会员</option>
							{loop $userexp $ex}
								<option value="{$ex['displayorder']}" {if $gpusergrade==$ex['displayorder']}selected{/if}>{$ex['member_name']}</option>
							{/loop}
						</select>
						<label class="radio-inline"><input type="checkbox"  name="Thecharts" value="1" {if $gpThecharts == 1} checked="checked"{/if}/> 涮选有单会员</label>
					</div>
				</div>
				
				<div class="form-group">
					<label class="col-xs-12 col-sm-3 col-md-3 col-lg-2 control-label"></label>
					<div class="col-sm-1 col-lg-1"><input type="submit" name="submit" value="搜  索" class="btn btn-primary"></div>
					<div class="col-sm-2 col-lg-2"><button type="submit" name="memberstatisticsEXP01" value="memberstatisticsEXP01" class="btn btn-warning btn-lg">导出会员excel</button></div>
				</div> 
			</form>
		</div>
	</div>
	
	
	
	
	
	
	
	
	<div class="panel panel-default">
		<div class="panel-heading">会员管理名单:<span class="label label-success">{$total}</span> 位</div>
		<div class="panel-body table-responsive">
			<table class="table table-hover">
				<thead class="navbar-inner">
					<tr>
					    <th style="width:55px;">会员标识</th>
						<th style="width:55px;">上级标识</th>
						<th style="width:50px;">会员订单</th>
						<th style="width:80px;">昵称</th>
						<th style="width:80px;">姓名</th>
						<th style="width:65px;">电话</th>
						<th style="width:55px;">余额</th>
						<th style="width:50px;">积分</th>
						<th style="width:160px; text-align:right;">操作</th>
					</tr>
				</thead>
				<tbody>
					{loop $list $v}
					<tr>
						<td title="点击前往用户详情"><a href="{php echo $this->createWebUrl('fansmanager', array('op' => 'detail', 'from_user'=>$v['from_user']))}"><span class="label label-success" style="cursor:pointer;">{$v['flagid']}</span></a></td>
						<td title="点击前往上级详情"><a href="{php echo $this->createWebUrl('fansmanager', array('op' => 'detail', 'id'=>$this->getShareId($v['from_user'])))}"><span class="label {if $this->getShareId($v['from_user'])==0}label-success{else}label-danger{/if}" style="cursor:pointer;">{php echo $this->getShareId($v['from_user'])}</span></a></td>
						<td title="点击前往会员订单"><a href="{php echo $this->createWebUrl('order', array('op' => 'display', 'status'=>-99, 'uid'=>$v['uid'], 'from_user'=>$v['from_user']))}"><span class="label {if $this->getFromUserOrderSum(0,$v['from_user'])==0}label-info{else}label-danger{/if}" style="cursor:pointer;">{php echo $this->getFromUserOrderSum(0,$v['from_user'])}</span></a></td>
						<td title="{$v['nickname']}">{$v['nickname']}</td>
						<td title="{$v['realname']}">{$v['realname']}</td>
						<td title="{$v['mobile']}">{$v['mobile']}</td>
						<td>{$v['credit2']}</td>
						<td>{$v['credit1']}</td>
						<td style="width:160px; text-align:right;">
							<a href="{php echo create_url('site/entry', array('do' => 'charge', 'op' => 'post','m' => 'wwx_fxxt','uniacid'=>$_W['uniacid'],'chargeType'=>'credit2','uid'=>$v['uid'],'from_user'=>$v['from_user']))}" class="btn btn-primary">充值余额</a>&nbsp;
							<a href="{php echo create_url('site/entry', array('do' => 'charge', 'op' => 'post','m' => 'wwx_fxxt','uniacid'=>$_W['uniacid'],'chargeType'=>'credit1','uid'=>$v['uid'],'from_user'=>$v['from_user']))}" class="btn btn-primary">充值积分</a>&nbsp;
							<a href="{php echo create_url('site/entry',array('do' => 'charge', 'op' => 'delete','m' => 'wwx_fxxt','uniacid'=>$_W['uniacid'],'uid'=>$v['uid'],'from_user'=>$v['from_user']));}" onclick="return confirm('删除会员将删除该会员的一切信息,确定要删除该会员吗?');" class="btn btn-primary">删除会员</a>
						</td>
					</tr>
					{/loop}
				</tbody>
			</table>
		</div>
		{$pager}
	</div>
 </div>


{template 'common/footer'}