<? 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>
<style>
.xiaxian{
padding:20px 0 0 0;
padding-left:20px;
}
.xiaxian a{
text-decoration:none;
}
table.t_info{ width:180px; background:#006600; cursor:pointer;}
table.t_info td{ height:22px; background:#FFFFFF; text-align:center;}
table.t_info th{ height:22px;text-align:center; color: #FFF}
</style>
</head>
<body>
<style>
a.t_infos{
color:#F00;
}
a.t_infos:hover{
color: #666;
}

</style>
<? 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 class="title clearfix">
        <h2 class="balance-h2">推广中心   <a href="<?=$this->turl?>" class="t_infos" target="_blank">直接为他人注册用户</a></h2> 
      </div>
      <div class="xiaxian">
         <span>你的推广地址：</span><input type="text" class="inw inp" style="width:250px" id="turl" name="turl" value="<?=$this->turl?>" > <input type="submit" name="submit" id="submit" value="复制链接" class='btns' style="display:inline;" onclick="jsCopy()"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font style="font-size:14px;">推荐会员共获得返利<span class="red"><?=$this->good?></span>元，共推荐会员<span class="red"><?=$this->pagetotal?></span>名</font>
<script type="text/javascript"> 
function jsCopy(){ 
  var e=document.getElementById("turl");//对象是content 
  e.select(); //选择对象 
  document.execCommand("Copy"); //执行浏览器复制命令
  alert("复制成功，请粘贴到你的QQ/MSN上推荐给你的好友"); 
} 
</script> 


      </div>
      <div style="padding:20px 0 0 0;">
          <table width="100%" border="0" cellspacing="0" cellpadding="0" class="tbmyinfo">
            <tr>
              <th style="width:5px; overflow:hidden;"></th>
              <th style="width:50px">uid</th>
              <th>用户名</th>
              <th style="width:120px">总消费额</th>
              <th style="width:120px">上次登录时间</th>
              <th style="width:140px">注册时间</th>
            </tr>
            <? if(is_array($this->record)) { foreach($this->record as $v) { ?>            <tr>
              <td></td>
              <td><p><?=$v['uid']?></p></td>
              <td><p><?=$v['username']?></p></td>
              <td><span class="red"><?=fnum($v['consume']); ?>元</span></td>
              <td><? echo formattime($v['lasttime']) ?></td>
              <td><? echo formattime($v['regtime']) ?></td>
            </tr>
            <? } } ?>          </table>         
      </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>