<? if (!defined('ROOT')) exit('Can\'t Access !'); ?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<title><?=$this->title?></title>
<meta name="keywords" content="<?=$this->keywords?>" />
<meta name="description" content="<?=$this->description?>" />
<link rel="stylesheet" href="<?=$this->tempdir?>images/header.css" type="text/css" />
<link rel="stylesheet" href="<?=$this->tempdir?>images/member.css" type="text/css" />
<script type="text/javascript" src="<?=$this->tempdir?>images/member.js" ></script>
<script type="text/javascript" src="<?=$this->appdir?>jquery.js" ></script>
<script type="text/javascript" src="<?=$this->appdir?>public.js" ></script>
</head>
<body>
<? include template('member_header','wjgw/member'); ?>
<div id="container" class="win1000">
  <div class="wraper-border"></div>
  <div id="wraper" class="clearfix"> 
<? include template('member_left','wjgw/member'); ?>
    <div id="right-con-user" class="right">
      <div id="details" class="clearfix">
<ul id="details-ul" class="clearfix">
          <li <? if($this->type=='monlog') { ?>class="hover"<? } ?>><a href="<?=$this->monlogurl?>">现金明细</a></li>
          <li <? if($this->type=='reslog') { ?>class="hover"<? } ?>><a href="<?=$this->reslogurl?>">返利记录</a></li>
          <li <? if($this->type=='conlog') { ?>class="hover"<? } ?>><a href="<?=$this->conlogurl?>">消费记录</a></li>
          <li <? if($this->type=='atmlog') { ?>class="hover"<? } ?>><a href="<?=$this->atmlogurl?>">提现记录</a></li>
          <li <? if($this->type=='paylog') { ?>class="hover"<? } ?>><a href="<?=$this->paylogurl?>">充值记录</a></li>
        </ul>
      </div>
      <div class="minheightout" style="background-color:#fff; width:815px;">
        <div class="detail">
          <div class="detail_tit" style="height:5px;">
          </div>
          
         <? if($this->type=='monlog') { ?>          
          <table width="100%" border="0" cellspacing="0" cellpadding="0" class="tbmyinfo">
            <tr>
              <th style="width:5px; overflow:hidden;"></th>
              <th style="width:50px">序号</th>
              <th>备注信息</th>
              <th style="width:120px">金额</th>
              <th style="width:140px">日期</th>
            </tr>
            <? if(is_array($this->monlog)) { foreach($this->monlog as $v) { ?>            <tr>
              <td></td>
              <td><p><?=$v['id']?></p></td>
              <td><p><?=$v['content']?></p></td>
              <td><span class="red"><?=$v['lognum']?>元</span></td>
              <td><? echo formattime($v['addtime']) ?></td>
            </tr>
            <? } } ?>          </table>
         <? } ?>          
          
          
         <? if($this->type=='reslog') { ?>          
          <table width="100%" border="0" cellspacing="0" cellpadding="0" class="tbmyinfo">
            <tr>
              <th style="width:5px; overflow:hidden;"></th>
              <th style="width:50px">序号</th>
              <th style="width:90px">返利类型</th>
              <th style="width:60px">返利金额</th>
              <th style="width:290px">返利说明</th>
              <th style="width:100px">返利时间</th>
            </tr>
            <? if(is_array($this->reslog)) { foreach($this->reslog as $v) { ?>            <tr>
              <td></td>
              <td><p><?=$v['id']?></p></td>
              <td><p><?=reslog($v['type']); ?></p></td>
              <td><span class="red"><?=fnum($v['lognum']); ?>元</span></td>
              <td><?=$v['content']?></td>
              <td><? echo formattime($v['addtime']) ?></td>
            </tr>
            <? } } ?>          </table>
         <? } ?> 
         
         <? if($this->type=='conlog') { ?>          
          <table width="100%" border="0" cellspacing="0" cellpadding="0" class="tbmyinfo">
            <tr>
              <th style="width:140px">订单号</th>
              <th style="width:180px">商户名称</th>
              <th style="width:120px">购买商品</th>
              <th style="width:50px">购买数量</th>
              <th style="width:70px">消费金额</th>
              <th style="width:110px">消费时间</th>
            </tr>
            <? if(is_array($this->conlog)) { foreach($this->conlog as $v) { ?>            <tr>
              <td><p><?=$v['orderid']?></p></td>
              <td><p><?=$this->mysql->value($this->pre."company","name","uid=".$v['cid']); ?></p></td>
              <td><p><?=$v['shopname']?></p></td>
              <td><p><?=$v['shopnum']?></p></td>
              <td><span class="red"><?=fnum($v['money']); ?>元</span></td>
              <td><? echo formattime($v['addtime']) ?></td>
            </tr>
            <? } } ?>          </table>
         <? } ?>
         
         <? if($this->type=='atmlog') { ?>          
          <table width="100%" border="0" cellspacing="0" cellpadding="0" class="tbmyinfo">
            <tr>
              <th style="width:5px; overflow:hidden;"></th>
              <th style="width:50px">序号</th>
              <th style="width:80px">提现金额</th>
              <th style="width:100px">提现银行</th>
              <th style="width:140px">银行卡号</th>
              <th style="width:80px">当前状态</th>
              <th style="width:140px">申请时间</th>
            </tr>
            <? if(is_array($this->atmlog)) { foreach($this->atmlog as $v) { ?>            <tr>
              <td></td>
              <td><p><?=$v['id']?></p></td>
              <td><span class="red"><?=fnum($v['lognum']); ?>元</span></td>
              <td><p><?=$v['bankname']?></p></td>
              <td><p><?=$v['bankcard']?></p></td>
              <td style="font-size:12px;"><?=atmcheck($v['checked']); ?></td>
              <td><? echo formattime($v['addtime']) ?></td>
            </tr>
            <? } } ?>          </table>
         <? } ?>   
          
         <? if($this->type=='paylog') { ?>          
          <table width="100%" border="0" cellspacing="0" cellpadding="0" class="tbmyinfo">
            <tr>
              <th style="width:5px; overflow:hidden;"></th>
              <th style="width:40px">序号</th>
              <th>充值订单号</th>
              <th style="width:80px">充值金额</th>
              <th style="width:120px">充值方式</th>
              <th style="width:120px">目前状态</th>
              <th style="width:140px">充值时间</th>
            </tr>
            <? if(is_array($this->paylog)) { foreach($this->paylog as $v) { ?>            <tr>
              <td></td>
              <td><p><?=$v['id']?></p></td>
              <td><p><?=$v['orderid']?></p></td>
              <td><span class="red"><?=fnum($v['total_fee']); ?>元</span></td>
              <td><?=$v['paytype']?></td>
              <td style="font-size:12px;"><?=paycheck($v['checked'],$v['orderid']); ?></td>
              <td><? echo formattime($v['addtime']) ?></td>
            </tr>
            <? } } ?>          </table>          
         <? } ?>
          
          
          
        </div>
        <div class="c"></div>
        <div class="detail_page"><?=$this->showpage?></div>
      </div>
    </div>
  </div>
  <div class="wraper-border"></div>
</div>
<? include template('member_footer','wjgw/member'); ?>
<script language="javascript">
$("document").ready(function(){$("#<?=$this->action?>").addClass('open');});
</script>
</body></html>