<? 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 class="hover"><a href="javascript:;">我的商户</a></li>
        </ul>
      </div>
      <div class="minheightout" style="background-color:#fff; width:815px;">
        <div class="detail">
          <div class="detail_tit" style="height:5px;">
          </div>
          <table width="100%" border="0" cellspacing="0" cellpadding="0" class="tbmyinfo">
            <tr>
              <th style="width:60px">用户名</th>
              <th style="width:140px">商户名称</th>
              <th style="width:60px">商户联系人</th>
              <th style="width:80px">联系电话</th>
              <th style="width:50px">让利扣点</th>
              <th style="width:60px">审核状态</th>
              <th style="width:60px">营业总额</th>
            </tr>
            <? if(is_array($this->joins)) { foreach($this->joins as $v) { ?>            <? $company = $this->mysql->select_one("select * from ".$this->pre."company where uid='".$v['uid']."'") ?>            <tr>
              <td><p><?=$v['username']?></p></td>
              <td><p><?=$company['name']?></p></td>
              <td><p><?=$v['truename']?></p></td>
              <td><p><?=$v['userphone']?></p></td>
              <td><p><?=$v['shsf']?></p></td>
              <td><p><?=usercheck($v['status']); ?></p></td>
              <td><span class="red"><?=$v['yyze']?>元</span></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>