Файл: LinkUserInc/LinkHead.php
Строк: 112
<link rel="shortcut icon" href="/favicon.ico" />
<?php
/**
* @author
* @copyright 2013
*/
if($user){
echo '<style type="text/css" id="com-cri-dogs-wicket-pagination-BookmarkablePagingNavigator-0">
/*<![CDATA[*/
.pg {
text-align: center;
display: inline-block;
min-width: 20px;
}
/*]]>*/
</style>';
$log = mysql_query("SELECT * FROM `mystyle_log` WHERE `user` = '".$user['id']."' ORDER BY `id` DESC LIMIT 1");
while($logs = mysql_fetch_assoc($log))
{
echo '<img class="portrait" src="images/icons/tutorialFaceWithDialog.png" width="48" height="48" alt="o" /><div class="tframe">Оповещание:<br>'.$logs['text'].'</div>';
}
if(isset($_GET['Error_Podarki'])){
echo '<img class="portrait" src="images/icons/tutorialFaceWithDialog.png" width="48" height="48" alt="o">
<div class="tframe">
<span class="small">Неверный запрос. <br/> У вас еще нет подарков!</span>
</div>';
}elseif(isset($_GET['Error'])){
echo '<img class="portrait" src="images/icons/tutorialFaceWithDialog.png" width="48" height="48" alt="o">
<div class="tframe">
<span class="small">Неверный запрос. <br/> Раздел еще не создан Администратором!</span>
</div>';
}elseif(isset($_GET['LinkPodarok'])){
echo '<img class="portrait" src="images/icons/tutorialFaceWithDialog.png" width="48" height="48" alt="o" />
<div class="tframe">
<span class="small">Выполнено. <br/> Подгон отправлен!</span>
</div>';
}elseif(isset($_GET['NoLink'])){
echo '<img class="portrait" src="images/icons/tutorialFaceWithDialog.png" width="48" height="48" alt="o">
<div class="tframe">
<span class="small">Неверный запрос. <br/> Или у вас еще нет этих вещей!</span>
</div>';
}elseif($user['guest']==1)echo '<img class="portrait" src="images/icons/tutorialFaceWithDialog.png" width="48" height="48" alt="o">
<div class="tframe">
<span class="small">Вы не прописались. <br/> <a href="?UserSave">Пропишитесь</a> пожалуйста!</span>
</div>';
if(mysql_result(mysql_query("SELECT COUNT(*) FROM `mystyle_gifts` WHERE `id_user` = '$user[id]' AND `read` = '0'"),0)!=0)
{
echo "<img class="portrait" src="images/icons/tutorialFaceWithDialog.png" width="48" height="48" alt="o" /><div class='tframe'>У вас новый подарок<br><br><a class="btnp" href='?presents=$user[id]'>Смотреть</a></div>";
}
echo '<div class="body">
<div>
<div class="panel">
<div>
<a href=""><img class="fl" width="48" height="48" alt="Мой аристант" src="'.$user['pitomec'].'"/></a>
</div>
<div style="margin-left: 48px;">
<div align="right">';
mysql_query("UPDATE `mystyle_user` SET `beauty2` = '".rat($user['id'])."' WHERE `id` = '$user[id]'");
echo '<span>';
if($user['admin'] == 1){
if(mysql_result(mysql_query("SELECT COUNT(*) FROM `mystyle_webmoney_user` WHERE `status` = 'no'"),0)!=0)
{
echo "<a href='?LinkAdminWebMoney'>Заявлений</a>
(<span>".mysql_result(mysql_query("SELECT COUNT(*) FROM `mystyle_webmoney_user` WHERE `status` = 'no'"),0)."</span>)</span>";
}
}
if(mysql_result(mysql_query("SELECT COUNT(*) FROM `mystyle_mail` WHERE `id_user` = '$user[id]' AND `read` = '0'"),0)!=0)
{
echo "<a href='?mail&new'><img width="16" height="16" src="images/icons/mail_.png" alt="Малява" title="Малява"/></a>
(<span>".mysql_result(mysql_query("SELECT COUNT(*) FROM `mystyle_mail` WHERE `id_user` = '$user[id]' AND `read` = '0'"),0)."</span>)</span>";
}
echo '
<span class="beauty nobr textshadow"><img width="16" height="16" alt="крутость" title="крутость" src="images/icons/beauty.png"> <span>'.rat($user['id']).'</span></span>
</span>
<span>
<span class="faith nobr textshadow"><img width="16" height="16" src="images/icons/faith.png" alt="авторитет" title="авторитет"> <span>'.$user['faith'].'</span></span>
</span>
<span><span class="money nobr textshadow"><img width="16" height="16" src="images/icons/coins.png" alt=""/> <span>'.$user['money'].'</span></span></span>
<span><span class="money nobr textshadow"><img width="16" height="16" src="images/icons/ruby.png" alt=""/> <span>'.$user['ruby'].'</span></span></span>
</div>
<div>
<div class="fr" style="padding: 5px 0 0 5px; width: 70%;">
<div>
<div>';
$x = $kr / $level['rating'] * 100;
echo '<div class="expBorder">
<div class="expline2" style="width:'.$x.'%;"></div>
</div>
</div>
</div>
</div>';
echo '<div class="fr">
<span>
<span class="level nobr textshadow">
<img width="16" height="16" src="images/icons/level.png" alt="уровень" title="уровень"/>
<span>'.$user['level'].'</span>
</span>';
echo '
</span>
</div>
</div>
<div style="clear:both;"></div>
</div>
</div>
</div>
<div>
</div>
<div>
</div>
<div>
</div>
<div>
</div>
<div>
</div>
<div>';
}
?>