<?php defined('SYSTEM_IN') or exit('Access Denied');?><?php  include page('header');?>
<h3 class="header smaller lighter blue">余额管理</h3>


<form action="" method="post" enctype="multipart/form-data" class="form-horizontal" >
				<input type="hidden" name="op" value="<?php  echo $op;?>">
		<input type="hidden" name="openid" value="<?php  echo $member['openid'];?>">
   <div class="form-group">
										<label class="col-sm-2 control-label no-padding-left" > 用户名：</label>

										<div class="col-sm-9">
													<?php  echo $member['realname'];?>
										</div>
									</div>

   <div class="form-group">
										<label class="col-sm-2 control-label no-padding-left" > 联系电话：</label>

										<div class="col-sm-9">
													<?php  echo $member['mobile'];?>
										</div>
									</div>
									
			<div class="form-group">
										<label class="col-sm-2 control-label no-padding-left" > 现有余额：</label>

										<div class="col-sm-9">
													 <?php  echo $member['gold'];?>
										</div>
									</div>
									
									
											<div class="form-group">
										<label class="col-sm-2 control-label no-padding-left" > 操作类型：</label>

										<div class="col-sm-9">
											
												   <input type="radio" name="op_type" value="0" checked> 充值余额  &nbsp;&nbsp;
              		  				<input type="radio" name="op_type" value="1" > 消费余额
										</div>
									</div>
									
									<div class="form-group">
										<label class="col-sm-2 control-label no-padding-left" > 操作备注：</label>

										<div class="col-sm-9">
													<input type='text' name='remark' maxlength="20" class="col-xs-10 col-sm-2" value="后台操作余额" />  
										</div>
									</div>
									
		<div class="form-group">
										<label class="col-sm-2 control-label no-padding-left" > 操作余额：</label>

										<div class="col-sm-9">
													<input type='text' name='fee' maxlength="20" class="col-xs-10 col-sm-2" value="" /> 
										</div>
									</div>
									
									
										  <div class="form-group">
										<label class="col-sm-2 control-label no-padding-left" for="form-field-1"> </label>

										<div class="col-sm-9">
										<input name="submit" type="submit" value=" 提 交 " class="btn btn-info"/>
										
										</div>
									</div>
</form>
<table class="table table-striped table-bordered table-hover">
			<thead>
				<tr>
				   <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>
				</tr>
			</thead>
			<tbody>
   <?php  if(is_array($list)) { foreach($list as $v) { ?>
   
   <tr>
   <td class="text-center"><?php  echo date('Y-m-d H:i:s',$v['createtime'])?></td>
    <td class="text-center"><?php  echo $v['type']=='addgold'?'充值':($v['type']=='usegold'?'消费':'')?></td>
     <td class="text-center"><?php  echo $v['fee']?></td>
          <td class="text-center"><?php  echo $v['account_fee']==0?'':$v['account_fee']?></td>
      <td class="text-center"><?php  echo $v['remark']?></td>
    </tr>
  		<?php  } } ?></tbody>
  		</table>
<?php  include page('footer');?>