<? 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">
      <h2 class="org"><? if($this->member['groupid']==4) { ?><?=$this->member[company][name]; } else { ?><?=$this->member['username']?><? } ?>(<?=$this->member['groupname']?>)</h2>
      <div class="top_info clearfix">
        <div class="xqxinfo">
          <table>
            <tr>
              <th>用户账号：</th>
              <td><p class="yhzh_p"><strong> <?=$this->member['username']?> </strong>(<?=$this->member['groupname']?>)</p></td>
              <td>
              
<span class="mr20 f14 left">用户认证：</span>
<div id="sfyz" class="clearfix">
 <? if($this->member['echeck']) { ?>
 <a title="邮件已验证" href="<?=Purl("?mod=member&act=auth&type=email"); ?>"><span class="maileyz"></span></a> 
 <? } else { ?>
 <a title="邮件未验证" href="<?=Purl("?mod=member&act=auth&type=email"); ?>"><span class="maileyzw"></span></a> 
 <? } ?>
 <? if($this->member['mcheck']) { ?>
 <a title="手机已验证" href="<?=Purl("?mod=member&act=auth&type=mobile"); ?>"><span class="sjyz"></span></a> 
 <? } else { ?>
 <a title="手机未验证" href="<?=Purl("?mod=member&act=auth&type=mobile"); ?>"><span class="sjyzw"></span></a> 
 <? } ?>
 <? if($this->member['truename']&&$this->member['idcard']) { ?>
 <a title="实名已验证" href="<?=Purl("?mod=member&act=auth&type=realname"); ?>"><span class="nameyz"></span></a> 
 <? } else { ?>
 <a title="实名未验证" href="<?=Purl("?mod=member&act=auth&type=realname"); ?>"><span class="nameyzw"></span></a> 
 <? } ?>
</div></td>
            </tr>
            
            <tr>
              <th>账户现金：</th>
              <td><span class="red"><?=fnum($this->member['money']); ?>元</span><span class="jf">&nbsp;</span><span class="pay">(<a href="<?=Purl('member_payment')?>">充值</a>)</span></td>
              <td>              
              <span class="mr20 f14 left">可用余额：</span>
              <div class="clearfix" id="sfyz"><span class="red"><?=fnum($this->member['money']); ?>元</span></div>
               </td>
            </tr>
            
            
            <tr>
              <th>消费总额：</th>
              <td><span class="red"><?=fnum($this->member['consume']); ?>元</span></td>
              <td><span class="mr20 f14 left">返利余额：</span>
                <div class="clearfix" id="sfyz"><span class="red"><?=fnum($this->member['balance']); ?>元</span></div></td>
            </tr>
            

            
            
            <tr>
              <th>可提现金额：</th>
              <td><span class="red"><?=fnum($this->member['keti']); ?>元</span></td>
              <td><span class="mr20 f14 left">提现总额：</span>
                <div class="clearfix"><span class="red"><?=$this->txze?>元</span></div></td>
            </tr>
            
            
            <tr>
              <th>累计返利：</th>
              <td><span class="red"><?=$this->ljfl?>元</span></td>
              <td><span class="mr20 f14 left">待返余额：</span>
                <div class="clearfix" id="sfyz"><span class="red"><?=$this->dfye?>元</span></div></td>
            </tr>
            
<? if($this->member['groupid']==3) { ?>  
            <tr>
              <th>营业总额：</th>
              <td><span class="red"><?=fnum($this->member['yyze']); ?>元</span></td>
              <td><span class="mr20 f14 left">下单总数：</span>
                <div class="clearfix" id="sfyz"><span class="red"><?=$this->xdzs?>单</span></div></td>
            </tr>
<? } if($this->member['groupid']==2) { ?>  
            <tr>
              <th>提成金额：</th>
              <td><span class="red"><?=$this->tcje?>元</span></td>
              <td><span class="mr20 f14 left">商户总数：</span>
                <div class="clearfix" id="sfyz"><span class="red"><?=$this->shzs?>个</span></div></td>
            </tr>
<? } ?>


            <tr>
              <th>购物清单：</th>
              <td><span class="red"><?=$this->carts?></span>件商品</td>
              <td>              
              <span class="mr20 f14 left">总计金额：</span><div class="clearfix" id="sfyz"><span class="red"><?=$this->moneyall?>元</span></div>
               </td>
            </tr>


            <tr>
              <th>上次登陆IP：</th>
              <td><?=$this->member['lastip']?></td>
              <td><span class="mr20 f14 left">登陆时间：</span>
                <div class="clearfix" id="sfyz"> <?=formattime($this->member['lasttime']); ?> </div></td>
            </tr>
          </table>
        </div>
      </div>
    </div>
    <!--right con-->
  </div>
  <!--wraper-->
  <div class="wraper-border"></div>
</div>
<? include template('member_footer','wjgw/member'); ?>
<script language="javascript">
$("document").ready(function(){
  getgm("#<?=$this->action?>").addClass('open');							 
});
</script>
</body></html>