<?php
session_start();
error_reporting(0);
header("content-type:text/html;charset=utf-8");
if(!isset($_SESSION['admin_name'])){
   exit; 
}
date_default_timezone_set("PRC");
include "../sql.php";
$username_search=isset($_POST['search_name'])?$_POST['search_name']:null;
$username_sql="select * from user where username='{$username_search}'";
$username_row=mysql_fetch_assoc(mysql_query($username_sql));
$logo="select * from admin_logo";
$row=mysql_fetch_assoc(mysql_query($logo));
$dibu="select * from admin_dibu";
$dibu_row=mysql_fetch_assoc(mysql_query($dibu));
?>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
	<title>分享传播推广系统</title>
<style>
*{
    
    margin:0px;
    padding:0px;
}
a{
    text-decoration: none;
}
.main{
        width: 1280px;
        height:auto;
        margin: 0 auto;
        overflow: auto;

}
.logo{
        width:1280px;
        height:200px;
    }
.logodiv{
    line-height: 130px;        
    }
.logo img{
        vertical-align: middle;
    }
.logo span{
        font-weight: bold;
        font-size: 40px;
        color:#888872;
    }

.top{
    width:1300px;
    height:50px;
    background:#009999;
}
.topleft{
    text-align: center;
    line-height:50px;
    float: left;
    width: 200px;
    height:50px;
    
}
.topright{
    line-height:50px;
    float: left;
    width:1100px;
    height:50px;
    
}
.biaoti{
    text-align: center;
}
.biaoti{
    font-size:20px;
    font-weight: bold;
    line-height: 100px;
    
}
.bottom{
    text-align: center;
    width:1280px;
    height:800px;
}
.dibu{
        width:1280px;
        height: 300px;
        background: #333438;
        clear: both;
        text-align:center;
        font-size:15px;
        color:#888872;
    }
</style>

</head>
<body>
<div class="main">
<div class="logo">
<div class="logodiv"><a href="../index.php"><img style='width:80px;height:80px;'src="../image/<?php echo $row['image'];?>"/><span style="font-size: 30px;"><?php echo $row['logo'];?></span></a></div>
</div>
<div class="top">
<div class="topleft"><a style="color:#fff;font-size:20px;" href="../index.php">返回首页</a></div>
<div class="topright"><a href="../admin/loginout.php" style="margin-left: 950px;color:#fff;font-size:20px;">退出后台</a></div>
</div>
<div class="bottom">
<br>
<br>
<p style="font-size: 25px;">用户信息</p>
<br>
<br>
<table style="width:1020px;margin:0 auto;" cellspacing="0">
<tr style="background: #009999;height: 30px;">
<th style="font-weight: bold;border: 1px solid #BCBCBC;border-width:0px 1px 1px 0px; color: #fff;">用户ID</th>
<th style="font-weight: bold;border: 1px solid #BCBCBC;border-width:0px 1px 1px 0px; color: #fff;">用户名称</th>
<th style="font-weight: bold;border: 1px solid #BCBCBC;border-width:0px 1px 1px 0px;color: #fff;">QQ 号码</th>
<th style="font-weight: bold;border: 1px solid #BCBCBC;border-width:0px 1px 1px 0px;color: #fff;">支付宝账号</th>
<th style="font-weight: bold;border: 1px solid #BCBCBC;border-width:0px 1px 1px 0px;color: #fff;">支付宝姓名</th>
<th style="font-weight: bold;border: 1px solid #BCBCBC;border-width:0px 1px 1px 0px;color: #fff;">注册时间</th>
</tr>
<tr style="height: 30px;">
<?php
echo "<td style='font-weight: bold;border: 1px solid #BCBCBC;border-width:0px 1px 1px 1px;'>{$username_row['id']}</td>";
echo "<td style='font-weight: bold;border: 1px solid #BCBCBC;border-width:0px 1px 1px 0px;'>{$username_row['username']}</td>";
echo "<td style='font-weight: bold;border: 1px solid #BCBCBC;border-width:0px 1px 1px 0px;'>{$username_row['qq']}</td>";
echo "<td style='font-weight: bold;border: 1px solid #BCBCBC;border-width:0px 1px 1px 0px;'>{$username_row['zhifubao']}</td>";
echo "<td style='font-weight: bold;border: 1px solid #BCBCBC;border-width:0px 1px 1px 0px;'>{$username_row['xingming']}</td>";
echo "<td style='font-weight: bold;border: 1px solid #BCBCBC;border-width:0px 1px 1px 0px;'>".date("Y/m/d H:i:s",$username_row['time'])."</td>";
?>
</tr>
</table>
</div>
<div class="dibu">
<br>
<?php
     $dibu=str_replace("@",";",$dibu_row['dibu']);
     echo htmlspecialchars_decode($dibu); 
    
?>
<br>
<p><img src="../../image/qq.png"/>&nbsp;<img src="../../image/360.jpg"/></p>
</div>
</div>
</body>
</html>