<?php
error_reporting(0); 
include("../../config/wap.php");
session_start();
if(!isset($_SESSION['username'])){echo "<script>alert('请重新登录!')</script><script>top.location.href='/m$dshz'</script>";exit;}
$username=$_SESSION['username'];
$type="where name='$username'";
$user=queryall(user,$type);
$userid=$user['userid'];
if(!$user){echo "<script>alert('请重新登录!')</script><script>top.location.href='/m$dshz'</script>";exit;}
?>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta name="format-detection" content="telephone=no,email=no,adress=no"/>
<title>代理中心</title>
<link rel="stylesheet" type="text/css" href="/2019newui/m/css/common.css" />
<link rel="stylesheet" type="text/css" href="/layui/css/m.css" />
</head>
<body>
<section>
<div class="navigation-bar"><span>代理中心</span></div>
</section>
<div class="summary">
<div class="head"><img id="photoImage" src="<?php echo $user[tx]?>" alt="" style="width:80px;height:80px;z-index:0;"> <span class="username"><?php echo $user[nikname]?></span>
<div class="headamount">
<div class="p-amount"><i><?php if($user[money] == null){ ?>￥0元<?php }else{  ?>￥<?php $xs4=round($user[money],2);echo $xs4;?> 元<?php } ?></i><br>余额</div>
<div class="p-amount"><i><label><?php if($user[txmoney] == null){ ?>￥0元<?php }else{  ?>￥<?php $xs4=round($user[txmoney],2);echo $xs4;?> 元<?php } ?></label></i><br>已提款</div></div>
</div>
</div>
<div class="personal">
<div class="personal-list"> 
<a class="plist" href="/mxitong<?php echo $dshz?>"> <span class="picon1"><i class="layui-icon" style="font-size: 20px;">&#xF03D;</i></span><span class="ptit">公共片库</span><span class="iconarrow"></span> </a> 
<a class="plist" href="/mshipin<?php echo $dshz?>"> <span class="picon1"><i class="layui-icon" style="font-size: 20px;">&#xF152;</i></span><span class="ptit">私有片库</span><span class="iconarrow"></span> </a> 
<a class="plist" href="/mshipinsc<?php echo $dshz?>"> <span class="picon1"><i class="layui-icon" style="font-size: 20px;">&#xF0C1;</i></span><span class="ptit">推广链接</span><span class="iconarrow"></span> </a> 
<?php if($shipin=='1'){?>
<a class="plist" href="/mfabushipin<?php echo $dshz?>"> <span class="picon1"><i class="layui-icon" style="font-size: 20px;">&#xF093;</i></span><span class="ptit">上传视频</span><span class="iconarrow"></span> </a> 
<a class="plist" href="/mtjshipin<?php echo $dshz?>"> <span class="picon1"><i class="layui-icon" style="font-size: 20px;">&#xF067;</i></span><span class="ptit">添加外链</span><span class="iconarrow"></span> </a> 
<?php }?>
</div>
<div class="personal-list"> 
<a class="plist" href="/mxiauser<?php echo $dshz?>"> <span class="picon1"><i class="layui-icon" style="font-size: 20px;">&#xF0C0;</i></span><span class="ptit">下级用户列表</span><span class="iconarrow"></span> </a> 
<a class="plist" href="/myqm<?php echo $dshz?>"> <span class="picon1"><i class="layui-icon" style="font-size: 20px;">&#xF079;</i></span><span class="ptit">邀请码列表</span><span class="iconarrow"></span> </a> 
<a class="plist" href="/mfanyong<?php echo $dshz?>"> <span class="picon1"><i class="layui-icon" style="font-size: 20px;">&#xF080;</i></span><span class="ptit">返佣明细列表</span><span class="iconarrow"></span> </a> 
</div>
<div class="personalout"> <a class="plist" href="/mgg<?php echo $dshz?>"><span class="picon1"><i class="layui-icon" style="font-size: 20px;">&#xF0A2;</i></span><span class="ptit">系统消息</span><span class="iconarrow"></span> </a> </div>
<?php 
$sql = mysql_query("SELECT tz,userid FROM gonggao WHERE   tz='未读' and userid='$userid'");
$xinxi = mysql_num_rows($sql);
?>
<?php if($xinxi){?>
<div class="personalout"> <a class="plist" href="/mxinxi<?php echo $dshz?>"><span class="picon1"><i class="layui-icon" style="font-size: 20px;">&#xF0A1;</i></span><span class="ptit">个人通知（<i class="pink"><?php echo $xinxi?></i> 条未读）</span><span class="iconarrow"></span> </a> </div><?php }?>
<div class="personalout"><a class="plist" href="/mpay<?php echo $dshz?>"><span class="picon1"><i class="layui-icon" style="font-size: 20px;">&#xF155;</i></span><span class="ptit">我的钱包</span><span class="iconarrow"></span> </a></div>
<div class="personalout"><a class="plist" href="/mtui<?php echo $dshz?>"><span class="picon1"><font color="ff0000"><i class="layui-icon" style="font-size: 20px;">&#xF011;</i></font></span><span class="ptit"><font color="ff0000">退出账号</font></span><span class="iconarrow"></span> </a> </div>
</div>
<footer class="aui-footer aui-footer-fixed">
<a href="/mmain<?php echo $dshz?>" class="aui-tabBar-item aui-tabBar-item-active"><i class="icon layui-icon" style="font-size: 30px; color: #1E9FFF;">&#xF015;</i><span class="aui-tabBar-item-text">首页</span></a>
<a href="/mdingdan<?php echo $dshz?>" class="aui-tabBar-item"><i class="icon layui-icon" style="font-size: 30px;">&#xF123;</i><span class="aui-tabBar-item-text">订单</span></a>
<a href="/muser<?php echo $dshz?>" class="aui-tabBar-item"><i class="icon layui-icon" style="font-size: 30px;">&#xF007;</i><span class="aui-tabBar-item-text">我的</span></a>
</footer>
</body>
</html>