<?php 
ini_set("error_reporting","E_ALL & ~E_NOTICE");
?>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<?php 
  include_once "../configuration/config.inc.php";
   if(!$_SESSION['accountName']) exit("<script>location.href='Login.php';</script>");
?>
<title>	
        <?php echo $WebTitle; ?>-会员中心
</title>
<link href="/ClientRes/Styles/BasicStyle.css?_v=634979371913162195" type="text/css" rel="stylesheet" />
<link href="/ClientRes/Styles/jquery-ui.min.css?_v=634979244165085356" type="text/css" rel="stylesheet" />
<link href="/ClientRes/Styles/jmodal.css?_v=634979244164935253" type="text/css" rel="stylesheet" />
<link href="/ClientRes/Styles/loading.css?_v=634979244165185438" type="text/css" rel="stylesheet" />
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js" type="text/javascript" charset="UTF-8"></script>
 <!--如果google CDN不正常，就从本地获取JQ库。--> 
<script>!window.jQuery && document.write('<script src="/ClientRes/Scripts/jquery.min.js"><\/script>');</script>
<script src="/ClientRes/Scripts/jquery-ui.min.js?_v=634979244162663753" type="text/javascript" charset="UTF-8"></script>
<script src="/ClientRes/Scripts/jmodal.js?_v=634979244161903250" type="text/javascript" charset="UTF-8"></script>
<script src="/ClientRes/Scripts/loading.js?_v=634979244164224791" type="text/javascript" charset="UTF-8"></script>
<script src="/ClientRes/Scripts/Common.js?_v=634979706622125062" type="text/javascript" charset="UTF-8"></script>
<script src="/ClientRes/Scripts/Extends.js?_v=634979244161412905" type="text/javascript" charset="UTF-8"></script>
<script src="/ClientRes/Scripts/AjaxRequest.js?_v=634979244161282816" type="text/javascript" charset="UTF-8"></script></head>

<?php 
require '../TempLate/PublicTop.html';//引用模板 
?> 
    <div class="center clearfix mt10">
        <div class="c_main">
<?php 
require '../TempLate/LeftNav.html';//引用模板
	$username=$_SESSION['accountName'];
	$sql="select * from account where name='".$_SESSION['accountName']."'";	//当前登陆的帐号
	$result=mysql_query($sql);												
	$row3=mysql_fetch_array($result); 										
	$sql="select * from $database2.`players` where `account_name`='".$_SESSION['accountName']."'"; //查询对应游戏帐号数据
	$result=mysql_query($sql);
	$row4=mysql_fetch_array($result);
	$sql="SELECT b.lid FROM $database.account a,$database.spread b,$database2.`players` c WHERE b.tid='".$_SESSION['accountName']."' and b.lid=a.`name` AND a.`name`=c.`account_name` and c.`level`>=".$lv." and b.islq=0";

	$result=mysql_query($sql);
	$totaldef=mysql_num_rows($result);
	$dhyb=$totaldef*$tgyuanbao;
	$timestamp = time();

?> 
<div class="center_right ml10">
    <!--无邮箱提示开始 检测到无邮箱才显示-->
    
    <!--无邮箱提示结束-->


    <div class="basicInfo">
        <div class="basicInfo_content">
            <p>
                账号：<b class="orange"><?php echo $username;?></b></b>
            </p>
           <b>进入游戏注意：游戏内首冲界面要关闭在，首冲神器加在5级新手礼包内！！</b><br />
            <p>
                推广注册：当前<b class="orange"><?php
				 if ($totaldef>0){
				 echo $totaldef;
				 }
				 else echo '0';
				?>
				</b>个达到<b class="orange"><?php echo $lv;?></b>级的推广玩家<b class="segmentation"></b>可兑换<b class="orange"><?php echo $dhyb;?></b>个元宝<b class="segmentation"></b>每个推广兑换<b class="orange"><?php echo $tgyuanbao;?>元宝</b>
                
            </p>
            <p>
                <a href="/Gamelogin.php"  class="bt_but c_1_g mr10 tips" target=_blank><u></u>双线入口1进入游戏</a>

				<a  onclick="SignOut();"   class="bt_but c_1_g mr10 tips"><u></u>注销登录</a></a>
            </p>

        </div>

        <div class="basicInfo_currency">
            <ul class="clearfix">
                <li><span class="orange">当前可兑换元宝：</span> <span>
                    <?php echo $row3['dj'];?></span> </li>

<li>充值的玩家直接到帐,刷新游戏即可</li>
					
            </ul>
        </div>
    </div>
    <div class="basicInfor-content-shadow">
    </div>
    <div class="mybox">
        <script type="text/javascript">
            $(function () {
                $.ajaxSetup({ cache: false });
                $("#tabs").tabs();
            })
        </script>
  <div class="mytit">
            角色信息[<b class="orange">请先创建角色，角色数据以游戏内为准</b>]
        </div>
        <div class="myinfo_con clearfix">
          <script type="text/javascript">
                $(function () {
                    <?php 
						if(!$row4 || !is_array($row4)){
							echo '$'.'("#tabs").html("<strong>您还没有创建角色，创建角色后可在此处领取推广元宝</strong>")';
						}
					?>
                })
            </script>
<div id="tabs" class="ui_tabs">
                <ul>
                    <li><a href="#tabs-1"><?php echo $row4['name'];?></a></li>
                </ul>
            <div id="tabs-1">	<p>
            角色名字：<b class="orange"><?php echo $row4['name'];?></b>&nbsp;|&nbsp;
			角色等级：<b class="orange"><?php echo $row4['level'];?></b>&nbsp;|&nbsp;
			角色经验：<b class="orange"><?php echo $row4['exp'];?></b>&nbsp;</b>&nbsp;|&nbsp;
		
	</p>
	
RMB玩家充值领取元宝：<a href="../coon/de.php" class="bt_but c_1_g mr10 tips"><u></u>点击领取</a>
推广兑换元宝：<a  href="../AjaxRequest/AccountHandler.php?Action=SpreadTran"" class="bt_but c_1_g mr10 tips"><u></u>点击领取推广元宝</a></div>
		[<b class="orange">以上领取功能，领取后请刷新游即可！</b>]    </div>
</div></div>
<div class="basicInfor-content-shadow">
    </div>


</div>
</div></div>
<?php 
require '../TempLate/PublicButtom.html';//引用模板 
?> 
</html>
