<div class="cl-right"><div class="s-bk-lf">
	<div class="acc-title">Мой профиль</div>
</div>
<div class="silver-bk">
<br>
<?PHP
$_OPTIMIZATION["title"] = "Аккаунт - Профиль";
$user_id = $_SESSION["user_id"];
$db->Query("SELECT * FROM db_users_a, db_users_b WHERE db_users_a.id = db_users_b.id AND db_users_a.id = '$user_id'");
$prof_data = $db->FetchArray();
?>
							
	<style>
.profile{
position: relative;
width: 100%;
display: table;
font-size: 10pt;
}
.profile .bleft{
width: 175px;
float: left;
margin-right: 20px;
vertical-align: top;
}
.profile .bleft .avatar{
position: relative;
width: 100px;
height: 100px;
BORDER-RADIUS: 3px;
border: 1px solid gray;
text-align: center;
}
.profile .bleft .avatar img{
height: 100px;
position: relative;
text-align: center;
}
.profile .bleft .avatar .change{
position: absolute;
right: 6px;
bottom: 6px;
color: rgb(65, 165, 228);
cursor: pointer;
font-weight: bold;
text-decoration: underline;
}
.profile .bleft .avatar .addava{
position: absolute;
top: 0px;
background: rgba(6, 6, 6, 0.74);
width: 175px;
height: 175px;
left: 0px;
}
.profile .bleft .avatar .form .close{
position: absolute;
right: 4px;
top: 1px;
}
.profile .bleft .avatar .change {
  position: absolute;
  right: 6px;
  bottom: 6px;
  color: rgb(65, 165, 228);
  cursor: pointer;
  font-weight: bold;
  text-decoration: underline;
  background-color: #FFF;
  BORDER-RADIUS: 3px;
  padding: 0px 3px 2px;
}

.profile .bleft .avatar .change:hover {
  position: absolute;
  right: 6px;
  bottom: 6px;
  color: rgb(76, 93, 103);
  cursor: pointer;
  font-weight: bold;
  text-decoration: underline;
  background-color: #FFF;
  BORDER-RADIUS: 3px;
  padding: 0px 3px 2px;
}

.profile .bleft .avatar .addava .key{

}
.profile .bleft .infos{
margin-top: 10px;
}
.profile .bleft .infos h3{
font-size: 13pt;
margin: 0px 0px 10px 0px;
font-weight: bold;
color: rgb(236, 136, 0);
}
.profile .bleft .infos label{
font-weight: bold;
color: rgb(132, 92, 52);
}
.profile .bleft .infos span{
float: right;
color: rgb(139, 179, 27);
}
.profile .bleft .infos div{
position: relative;
width: 100%;
margin-bottom: 5px;
}
.profile .bright {
  float: left;
  width: 472px;
}
.profile .bright h2{
font-size: 17pt;
margin: 0px 0px 10px 0px;
font-weight: bold;
color: rgb(236, 136, 0);
}
.profile .bright .user_info {
  border-bottom: 1px dashed rgb(245, 210, 146);
  padding: 0px 0px 6px;
}
.profile .bright .user_info div{
position: relative;
margin-bottom: 2px;
}
.profile .bright .user_info div label{
font-weight: bold;
color: rgb(132, 92, 52);
}
.profile .bright .user_info div span{
float: right;
color: rgb(139, 179, 27);
font-weight: bold;
}
.profile .bright .user_info a{
color: rgb(132, 92, 52);
text-decoration: underline;
cursor: pointer;
}
.profile .bright .referer{
position: relative;
margin-top: 10px;
}
.profile .bright .referer .all_ref{

}
.profile .bright .referer .all_ref .referer_info{
color: rgb(132, 92, 52);

}
.profile .bright .referer .all_ref .referer_info span{
float: right;
color: rgb(139, 179, 27);
font-weight: bold;
}
.profile .bright .referer .all_ref_list{
margin-top: 5px;
margin-left: 10px;
margin-bottom: 5px;
}
.profile .bright .referer .all_ref_list div{

}
.profile .bright .referer .all_ref_list div label{
font-weight: bold;
color: rgb(132, 92, 52);
}
.profile .bright .referer .all_ref_list div span{
float: right;
color: rgb(139, 179, 27);
font-weight: bold;
}
.profile .bright .referer .all_ref_list div text{

}



.profile .bright .fishes{
position: relative;
margin-top: 10px;
}
.profile .bright .fishes .all_fish{

}
.profile .bright .fishes .all_fish .fishes_info{
color: rgb(132, 92, 52);
text-decoration: underline;
cursor: pointer;
}
.profile .bright .fishes .all_fish .fishes_info span{
float: right;
color: rgb(139, 179, 27);
font-weight: bold;
}
.profile .bright .fishes .all_fish_list{
margin-top: 5px;
margin-left: 10px;
margin-bottom: 5px;
}
.profile .bright .fishes .all_fish_list div{

}
.profile .bright .fishes .all_fish div label{
font-weight: bold;
color: rgb(132, 92, 52);
}
.profile .bright .fishes .all_fish_list div span{
float: right;
color: rgb(139, 179, 27);
font-weight: bold;
}
.profile .bright .referer .all_fish_list div text{

}



.profile .bright .money_ins{
margin-top: 10px;
}
.profile .bright .money_ins .insert_money{
color: rgb(132, 92, 52);
text-decoration: underline;
cursor: pointer;
}
.profile .bright .money_ins .insert_money span{
float: right;
color: rgb(139, 179, 27);
font-weight: bold;
}
.profile .bright .money_ins .all_ins_mon{

}
.profile .bright .money_ins .all_ins_mon .intable{
margin-left: 10px;
position: relative;
font-size: 10pt;

text-align: center;
color: rgb(206, 140, 4);
margin-top: 5px;

}
.profile .bright .money_ins .all_ins_mon .intable b{

}
.profile .bright .money_ins .all_ins_mon .intable tr{

}
.profile .bright .money_ins .all_ins_mon .intable td{

}


.profile .bright .loginsst{
margin-top: 10px;
}
.profile .bright .loginsst .logins_list{
color: rgb(132, 92, 52);
text-decoration: underline;
cursor: pointer;
}
.profile .bright .loginsst .logins_list span{
float: right;
color: rgb(139, 179, 27);
font-weight: bold;
}
.profile .bright .loginsst .all_logins{

}
.profile .bright .loginsst .all_logins .intable{
margin-left: 10px;
position: relative;
font-size: 10pt;

text-align: center;
color: rgb(206, 140, 4);
margin-top: 5px;

}
.profile .bright .loginsst .all_logins .intable b{

}
.profile .bright .loginsst .all_logins .intable tr{

}
.profile .bright .loginsst .all_logins .intable td{

}

.profile .bright .daybonus{
margin-top: 10px;
}
.profile .bright .daybonus .bonuses{
color: rgb(132, 92, 52);
text-decoration: underline;
cursor: pointer;
}
.profile .bright .daybonus .bonuses span{
float: right;
color: rgb(139, 179, 27);
font-weight: bold;
}
.profile .bright .daybonus .all_bonus{

}
.profile .bright .daybonus .all_bonus{
margin-top: 5px;
margin-left: 10px;
margin-bottom: 5px;
}
.profile .bright .daybonus .all_bonus div{

}
.profile .bright .daybonus .all_bonus div label{
font-weight: bold;
color: rgb(132, 92, 52);
}
.profile .bright .daybonus .all_bonus div span{
float: right;
color: rgb(139, 179, 27);
font-weight: bold;
}
.profile .bright .daybonus .all_bonus div text{

}
.profile .bright .daybonus .all_bonus .intable b{

}
.profile .bright .daybonus .all_bonus .intable tr{

}
.profile .bright .daybonus .all_bonus .intable td{

}

.profile #mt{
color:red;
}
</style>								


<div class="silver-bk">
<div class="profile">
	<div class="bleft">
	<center>
		<div class="avatar">
			<div style="overflow: hidden;margin: 0px;">
				<img id="myava" src="/img/mesbox/nonava.png"/>			</div>
			<a class="change">изменить</a>
			<form class="form" method="POST" enctype="multipart/form-data" style="display:none"> 
				<input OnChange='this.form.submit()' id="fifi" type="file" name="avatar" />
			</form>
		</div></center>
		<div class="infos">
			<h3>Информация</h3>
			<style>
		#lvl_body {
  background-color: white;
  position: relative;
  width: 175px;
  border: 1px solid #DDA45D;
  height: 20px;
  border-radius: 2px;
    margin-top: 2px;
}

#lvl_body #lvl_persent {
  position: absolute;
  height: 20px;
  background: #F7DF9C;
  background: -moz-linear-gradient(top, #F7DF9C 0%, #DDA45D 50%, #F7DF9C 100%);
  background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#F7DF9C), color-stop(50%,#DDA45D), color-stop(100%,#F7DF9C));
  background: -webkit-linear-gradient(top, #F7DF9C 0%,#DDA45D 50%,#F7DF9C 100%);
  background: -o-linear-gradient(top, #F7DF9C 0%,#DDA45D 50%,#F7DF9C 100%);
  background: -ms-linear-gradient(top, #F7DF9C 0%,#DDA45D 50%,#F7DF9C 100%);
  background: linear-gradient(to bottom, #F7DF9C 0%,#DDA45D 50%,#F7DF9C 100%);
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#F7DF9C', endColorstr='#F7DF9C',GradientType=0 );
}

#lvl_body #info {
  position: absolute;
  width: 100%;
  text-align: center;
  margin-top: 3px;
  font-weight: bold;
  color: #3C2C1C;
}
			</style>
			<div>
				<label>Покупки</label>
				<span><?=sprintf("%.2f",$prof_data["money_b"]); ?></span>
			</div>
			<div>
				<label>Вывод</label>
				<span><?=sprintf("%.2f",$prof_data["money_p"]); ?></span>
			</div>
		
			
			</div>
	</div>
	<div class="bright">
		<h2><?=$prof_data["user"]; ?> / ID:<?=$prof_data["id"]; ?></h2>
		<div class="user_info">
			<div style="padding: 0px 0px 2px 0px;">
				<label>Регистрация</label>
				<span><?=date("d.m.Y в H:i:s",$prof_data["date_reg"]); ?></span>
			</div>
			<div style="padding: 0px 0px 2px 0px;">
				<label>E-mail</label>
				<span><?=$prof_data["email"]; ?></span>
			</div>
			<div style="padding: 0px 0px 2px 0px;">
				<label>Старший реферал</label>
				<span>
				<?=$prof_data["referer"]; ?> / ID:<?=$prof_data["referer_id"]; ?>				</span>
			</div>
			</div>
		<div class="referer">
			<div class="all_ref">
				<label class="referer_info">Ваши рефералы</label><span style="float: right;color: rgb(139, 179, 27);    font-weight: bold;"><b id="mt"><?=$prof_data["referals"]; ?></b></span>
			</div>
		
		</div>
		<div class="referer">
	<div class="all_ref">
						<label class="referer_info">Пополнения игрового счета</label><span style="float: right; font-weight: bold;" id="mt"><?=sprintf("%.2f",$prof_data["insert_sum"]); ?> <?=$config->VAL; ?> Руб.</span>
			</div>
		</div>
		
		<div class="referer">
	<div class="all_ref">
			<label class="referer_info">Выплачено на кошельки</label><span style="float: right; font-weight: bold;" id="mt"><?=sprintf("%.2f",$prof_data["payment_sum"]); ?> <?=$config->VAL; ?> Руб.</span>
			</div>
		</div>
	
	
			<div class="fishes">
			<div class="all_fish">
				<a class="fishes_info">Ваши птицы</a><span style="float: right; font-weight: bold;"><b id="mt"><?php $all_items = $user_data["a_t"] + $user_data["b_t"] + $user_data["c_t"] + $user_data["d_t"] + $user_data["e_t"] + $user_data["f_t"]; echo $all_items ?></b></span>
			</div>
			<div class="all_fish_list" style="display:none;">
				<div>
					<label>Красный</label>
					<span><b id="mt"><?=$user_data["a_t"]; ?></b></span>
				</div>
				<div>
					<label>Теренс</label>
					<span><b id="mt"><?=$user_data["b_t"]; ?></b></span>
				</div>
				<div>
					<label>Чак</label>
					<span><b id="mt"><?=$user_data["c_t"]; ?></b></span>
				</div>
				<div>
					<label>Эл</label>
					<span><b id="mt"><?=$user_data["d_t"]; ?></b></span>
				</div>
				<div>
					<label>Бабблс</label>
					<span><b id="mt"><?=$user_data["e_t"]; ?></b></span>
				</div>
				<div>
					<label>Бомба</label>
					<span><b id="mt"><?=$user_data["f_t"]; ?></b></span>
				</div>
			</div>
		</div>
			
			
			
		</div>
		
		
		

	</div><center><br><br><br>
	
<a href="http://birdesmine.cu.cc" target="_blank"><img style="opacity: 0.8;" src="https://image.jimcdn.com/app/cms/image/transf/dimension=320x10000:format=gif/path/s55d6f5de94352ed4/image/i9cc5dc9ef0e0123f/version/1448301675/image.gif"></a><br>
	<br><br><br><br>



</center><br>
	
</div>																
<script>
$(document).on('click', '.bonuses', function(e){
	
	$('.all_bonus').slideToggle(200);
});
$(document).on('click', '.logins_list', function(e){
	$('.all_logins').slideToggle(200);
});
$(document).on('click', '.insert_money', function(e){
	$('.all_ins_mon').slideToggle(200);
});
$(document).on('click', '.referer_info', function(e){
	$('.all_ref_list').slideToggle(200);
});
$(document).on('click', '.fishes_info', function(e){
	$('.all_fish_list').slideToggle(200);
});
$(document).on('click', '.change', function(e){
	$('#fifi').click();
});
$(document).on('click', '.addava .close', function(e){
	$('.addava').fadeOut("slow");
});	
</script>								
								
								
						
								
								
								
								
								
								
								
								
								
								




<div class="clr"></div>	
</div>
								
							<div class="clr"></div>	
							<br>
							<br>
							</div>
						<div class="clr"></div>
						
						<style>
						
.logo12 {
    background-image: url('/img/logo12.jpg');
    color: #5d3d1d;
    margin: 10px 0px 0px -10px;
    opacity: 0.9;
    height: 202px;
    background-size: 105%;
}
</style>
  
  
