Файл: user/info/wap.php
Строк: 1016
<?
/*
* Autor:: Tw1nGo
*/
?>
<script type="text/javascript">
function Changre_ava_Tw1nGo(dir)
{
if (document.getElementById('tw1ngo_photo').style.display == 'block')
{
document.getElementById('tw1ngo_photo').style.display = 'none';
}else{
document.getElementById('tw1ngo_photo').style.display = 'block';
$.ajax({
url: '/user/info/changre_avatar.php?id='+dir,
cache: true,
success: function(html)
{
$("#tw1ngo_photo_new").html(html);
}
});
}
}
function Eshe_Tw1nGo()
{
if (document.getElementById('dop_menu-Tw1nGo').style.display == 'block')
{
document.getElementById('dop_menu-Tw1nGo').style.display = 'none';
}else{
document.getElementById('dop_menu-Tw1nGo').style.display = 'block';
}
}
</script>
<?
/*---статус форма---*/
if (isset($user) && isset($_GET['status']))
{
if ($user['id'] == $ank['id'])
{
echo '<div class="main">Статус [512 символов]</div>';
echo '<form action="/info.php?id=' . $ank['id'] . '" method="post">';
echo "$tPanel<textarea type="text" style='' name="status" value=""/></textarea><br /> ";
echo "<input class="submit" style='' type="submit" value="Установить" />";
echo " <a href='/info.php?id=$ank[id]'>Отмена</a><br />";
echo "</form>";
include_once 'sys/inc/tfoot.php';
exit;
}
}
/*---статус форма конец---*/
//## Только для юзеров & Tw1nGo
if (isset($user))
{
//## Ставим на аву & Tw1nGo
if (isset($_GET['photo']) && mysql_result(mysql_query("SELECT COUNT(*) FROM `gallery_foto` WHERE `id` = '".intval($_GET['photo'])."'"),0) == 1)
{
$postfg = mysql_fetch_assoc(mysql_query("SELECT * FROM `gallery_foto` WHERE `id` = '" . intval($_GET['photo']) . "' LIMIT 1"));
$anks = mysql_fetch_assoc(mysql_query("SELECT * FROM `user` WHERE `id` = $postfg[id_user] LIMIT 1"));
$avatarr = mysql_fetch_array(mysql_query("SELECT * FROM `gallery_foto` WHERE `avatar` = '1' AND `id_user` = '$anks[id]' LIMIT 1"));
if ($avatarr['id'] != $post['id'])
{
mysql_query("UPDATE `gallery_foto` SET `avatar` = '0' WHERE `id_user` = '$anks[id]'");
mysql_query("UPDATE `gallery_foto` SET `avatar` = '1' WHERE `id` = '$postfg[id]' LIMIT 1");
}
header("Location: /info.php?id=".$ank['id']."");
exit;
}
//## Убираем с авы & Tw1nGo
if (isset($_GET['ava_null']))
{
mysql_query("UPDATE `gallery_foto` SET `avatar` = '0' WHERE `id_user` = '$user[id]'");
header("Location: /info.php?id=".$user['id']."");exit;
}
}
/*---------Начало ЛС----------*/
if ($ank['pol']==1){
$a_pol = 'man';
}else{
$a_pol = 'girl';
}
// --> Определяем Аватар
$avatar = mysql_fetch_array(mysql_query("SELECT id,id_gallery,ras FROM `gallery_foto` WHERE `id_user` = '$ank[id]' AND `avatar` = '1' LIMIT 1"));
$skos_foto = mysql_result(mysql_query("SELECT COUNT(*) FROM `gallery_foto` WHERE `id_user` = '$ank[id]'"),0);
$ank['ank_age']= date("Y") - $ank['ank_g_r'];
?>
<link rel='stylesheet' href='/user/info/tw1ngo_anketa.css' type='text/css' />
<div class="Tw1nGo-lc_br Tw1nGo-wbg Tw1nGo-relative Tw1nGo-oh" id="Tw1nGo-header_path">
<a class="Tw1nGo" href="/"> <img src="/user/info/ico/home.png" alt=""> </a>
<span class="Tw1nGo-lc_brw">
<img src="/user/info/ico/sep.png" alt="" class="Tw1nGo-lc_br_sep"> <span class="Tw1nGo-lc_br_text"><?= text($ank['nick'])?></span>
</span>
</div>
<div class="Tw1nGo_BG">
<div>
<div class="Tw1nGo-cont_usr"> <div class="Tw1nGo-content-item3">
<div class="Tw1nGo-user__ava Tw1nGo-user__ava_big">
<div class="Tw1nGo-change_avatar_link Tw1nGo-js-my_avatar">
<?
if($avatar!=0){
if (isset($user) && $user['id']==$ank['id']){
?>
<a onclick="Changre_ava_Tw1nGo()">
<?
}else{
?>
<a href="/foto/<?= $ank['id']?>/<?= $avatar['id_gallery']?>/<?= $avatar['id']?>/">
<?
}
?>
<img class="preview s101_100" src="/foto/foto640/<?= $avatar['id']?>.<?= $avatar['ras']?>" alt="Tw1nGo" />
</a>
<?
}else{
?>
<img class="preview s101_100" src="/style/user/no_ava_<?=$a_pol?>.png" alt="Tw1nGo"/>
<?
}
?>
</div>
<?
//## Если не в сети & Tw1nGo
$rtimeTw1nGo = time() - 600;
if($ank['date_last'] < $rtimeTw1nGo){
?>
<div class="Tw1nGo-pd_t5 Tw1nGo-js-online_status"><div class="Tw1nGo-bordered Tw1nGo-grey">Не в сети</div></div>
<?
}else{
?>
<div class="Tw1nGo-pd_t5 Tw1nGo-js-online_status"><div class="Tw1nGo-bordered Tw1nGo-green"><span class="t green"> В сети </span></div></div>
<?
}
?>
</div>
<!-- end .Tw1nGo-user__ava -->
<div class="Tw1nGo-user__info">
<span class="Tw1nGo-user__nick">
<span class="Tw1nGo-p14 Tw1nGo-online_status_ico" > <?= group($ank['id'])?> </span>
<a href="" class="Tw1nGo-mysite-link"><b class="Tw1nGo-mysite-nick"><?= text($ank['nick'])?></b></a>
</span>
<span class="Tw1nGo-user__rate Tw1nGo-cnt Tw1nGo-cnt-link"><?= text($ank['rating'])?></span>
<div class="Tw1nGo-user__descr">
<?
if ($ank['ank_name']!=NULL){
?>
<div class="Tw1nGo-user__details"><?= text($ank['ank_name'])?></div>
<?
}
//## Склон текста & Tw1nGo
$casess = array('год', 'года', 'лет');
if ($ank['ank_d_r']!=NULL && $ank['ank_m_r']!=NULL && $ank['ank_g_r']!=NULL){
?>
<div class="Tw1nGo-user__details"> <?= des2num($ank['ank_age'], $casess)?> </div>
<?
}
if ($ank['ank_city']!=NULL){
?>
<div class="Tw1nGo-user__details Tw1nGo-to_transparent"><?= $ank['ank_city']?></div>
<?
}
?>
</div>
</div>
<!-- end .user__info -->
<div class="Tw1nGo-cl"></div>
<div id="tw1ngo_photo">
<div class="Tw1nGo-changre_ava8"><div class="Tw1nGo-changre_ava9">
<div id="tw1ngo_photo_new" class="Tw1nGo-changre_ava10"></div>
</div></div>
</div>
<!-- end .content__inner -->
<?
if ($status['id']){
?>
<div class="Tw1nGo-user__status-wrap" id="statuses_wrap"> <div class="Tw1nGo-relative">
<div id="original_status" class="Tw1nGo-no_underline_block"> <div class="Tw1nGo-user__status">
<?
if ($ank['id']==$user['id']){
?>
<a href="/info.php?id=<?= $ank['id']?>&status" class="Tw1nGo-user__change-btn js-dd_menu_link">
<span class="Tw1nGo-ico Tw1nGo-ico_status"></span> </a>
<?
}
?>
<span style="font-size:13px;"><?= output_text($status['msg'])?></span>
<font style="font-size:11px; color:gray;"><?= vremja($status['time'])?></font> </div> </div>
</div> </div>
<?
}
else if ($ank['id']==$user['id']){
?>
<div class="Tw1nGo-user__status-wrap" id="statuses_wrap"> <div class="Tw1nGo-relative">
<div id="original_status" class="Tw1nGo-no_underline_block"> <div class="Tw1nGo-user__status">
<a href="/info.php?id=<?= $ank['id']?>&status" class="Tw1nGo-user__change-btn js-dd_menu_link">
<span class="Tw1nGo-ico Tw1nGo-ico_status"></span> </a> <span style="font-size:13px;" class="Tw1nGo-grey">Напишите приветствие..</span> </div> </div>
</div> </div>
<?
}
?>
</div>
<?
//## Менюшка для юзера
if (isset($user) && $user['id']!=$ank['id']){
?>
<div class="Tw1nGo-user__tools Tw1nGo-user__tools_last">
<table class="Tw1nGo-table__wrap"> <tbody><tr>
<td class="Tw1nGo-table__cell" width="33%">
<a href="/mail.php?id=<?= $ank['id']?>" class="Tw1nGo-stnd-link" title="Написать <?= $ank['nick']?>">
<?
if ($webbrowser==true){
?>
<img class="Tw1nGo-ico" src="/user/info/ico/mail_grey.png" alt="Tw1nGo"/>
<?
}
?>
<span class="Tw1nGo-t"> Написать </span> </a>
</td>
<td class="Tw1nGo-table__cell" width="33%">
<?
if ($frend_new==0 && $frend==0){
?>
<div class="js-friends_add js-dd_menu_link" data-user="<?= $ank['nick']?>">
<a href="/user/frends/create.php?add=<?= $ank['id']?>" class="Tw1nGo-stnd-link" title="Добавить в друзья">
<?
if ($webbrowser==true){
?>
<img class="Tw1nGo-ico" src="/user/info/ico/befriends.png" alt="Tw1nGo"/>
<?
}
?>
<span class="Tw1nGo-t"> Дружить </span> </a>
</div>
<?
}elseif ($frend_new==1){
?>
<div class="js-friends_revoke js-dd_menu_link" data-user="<?= $ank['nick']?>">
<a href="/user/frends/create.php?otm=<?= $ank['id']?>" class="Tw1nGo-stnd-link js-action_link" title="Отменить заявку">
<?
if ($webbrowser==true){
?>
<img class="Tw1nGo-ico" src="/user/info/ico/befriends_new.png" alt="Tw1nGo"/>
<?
}
?>
<span class="Tw1nGo-t"> Запрошено </span> </a>
</div>
<?
}elseif ($frend==2){
?>
<div class="js-friends_delete js-dd_menu_link" data-user="<?= $ank['nick']?>">
<a href="/user/frends/create.php?del=<?= $ank['id']?>" class="Tw1nGo-stnd-link Tw1nGo-list-link-green js-action_link" title="Удалить из друзей">
<?
if ($webbrowser==true){
?>
<img class="Tw1nGo-ico" src="/user/info/ico/befriends_oki.png" alt="Tw1nGo"/>
<?
}
?>
<span class="Tw1nGo-t"> Дружите </span> </a>
</div>
<?
}
?>
</td>
<td class="Tw1nGo-table__cell Tw1nGo-table__cell_last" width="33%">
<a href="/user/gift/categories.php?id=<?= $ank['id']?>" class="Tw1nGo-stnd-link" title="Сделать подарок <?= $ank['nick']?>">
<?
if ($webbrowser==true){
?>
<img class="Tw1nGo-ico" style="" src="/user/info/ico/gifts_grey.png" alt="Tw1nGo"/>
<?
}
?>
<span class="Tw1nGo-t"> Подарок </span> </a>
</td>
</tr></tbody></table>
</div>
<!-- end .Tw1nGo-user__tools -->
<?
}else{
//## Менюшка Нашей страници
?>
<div class="Tw1nGo-user__tools Tw1nGo-user__tools_last">
<table class="Tw1nGo-table__wrap"> <tbody><tr>
<td class="Tw1nGo-table__cell" width="33%">
<a href="/user/frends/?id=<?= $ank['id']?>" class="Tw1nGo-stnd-link" title="Мои друзья">
<?
if ($webbrowser==true){
?>
<img class="Tw1nGo-ico" src="/user/info/ico/user_grey.png" alt="Tw1nGo"/>
<?
}
?>
<span class="Tw1nGo-t"> Друзья </span> </a>
</td>
<td class="Tw1nGo-table__cell" width="33%">
<div class="js-friends_add js-dd_menu_link" data-user="<?= $ank['nick']?>">
<a href="/user/info/settings.php" class="Tw1nGo-stnd-link" title="Мои настройки">
<?
if ($webbrowser==true){
?>
<img class="Tw1nGo-ico" src="/user/info/ico/settings.png" alt="Tw1nGo"/>
<?
}
?>
<span class="Tw1nGo-t"> Настройки </span> </a>
</div>
</td>
<td class="Tw1nGo-table__cell Tw1nGo-table__cell_last" width="33%">
<a onclick="Eshe_Tw1nGo()" class="Tw1nGo-stnd-link" title="Дополнительное меню">
<?
if ($webbrowser==true){
?>
<img class="Tw1nGo-ico" style="" src="/user/info/ico/more.png" alt="Tw1nGo"/>
<?
}
?>
<span class="Tw1nGo-t"> Еще </span> </a>
</td>
</tr></tbody></table>
<div class="Tw1nGo-user__dropdown-menu Tw1nGo-dropdown-menu__wrap" id="dop_menu-Tw1nGo" style="display: none;">
<div class="Tw1nGo-eshe8">
<div class="Tw1nGo-widgets-group Tw1nGo-links-group Tw1nGo-links-group_grey Tw1nGo-dropdown-menu">
<a href="/user/money/" class="Tw1nGo-changre_ava2">
<img class="Tw1nGo-ico" src="/user/info/ico/add_grey.png" alt="Tw1nGo"/> Дополнительные услуги</a>
<a href="my_aut.php" class="Tw1nGo-changre_ava2">
<img class="Tw1nGo-ico" src="/user/info/ico/update.png" alt="Tw1nGo"/> История входов</a>
<a href="/exit.php" class="Tw1nGo-changre_ava2">
<img class="Tw1nGo-ico" src="/user/info/ico/exit.png" alt="Tw1nGo"/> Выйти из аккаунта</a>
</div></div>
</div>
</div>
<!-- end .Tw1nGo-user__tools -->
<?
}
?>
</div>
<!-- end .Tw1nGo-cont_usr -->
</div>
<div class="Tw1nGo-tabs">
<table class="Tw1nGo-table__wrap"> <tbody><tr>
<td class="Tw1nGo-table__cell" width="33%"> <span class="Tw1nGo-tabs__item Tw1nGo-clicked">Профиль</span> </td>
<td class="Tw1nGo-table__cell" width="33%"> <a href="/user/info/anketa.php?id=<?= $ank['id']?>" class="Tw1nGo-tabs__item"> <span class="Tw1nGo-Blacks"> Анкета </span> </a> </td>
</tr> </tbody></table>
</div>
<?
//## ВСЕ Счетчики && Tw1nGo
$st = mysql_result(mysql_query("SELECT COUNT(*) FROM `status` WHERE `id_user` = '$ank[id]'"),0);
$otzivu=mysql_result(mysql_query("SELECT COUNT(*) FROM `user_voice2` WHERE `id_kont` = '".$ank['id']."'"),0);
$k_f = mysql_result(mysql_query("SELECT COUNT(id) FROM `frends_new` WHERE `to` = '$ank[id]' LIMIT 1"), 0);
$k_fr = mysql_result(mysql_query("SELECT COUNT(*) FROM `frends` WHERE `user` = '$ank[id]' AND `i` = '1'"), 0);
$k_frie = mysql_result(mysql_query("SELECT COUNT(*) FROM `frends` WHERE `user` = '$ank[id]' AND `i` = '1'"), 0);
$res = mysql_query("select `frend` from `frends` WHERE `user` = '$ank[id]' AND `i` = '1'");
$my_photoS = mysql_result(mysql_query("SELECT COUNT(*) FROM `gallery_foto` WHERE `id_user` = '$ank[id]'"),0);
$my_filesS = mysql_result(mysql_query("SELECT COUNT(*) FROM `user_files` WHERE `id_user` = '$ank[id]' AND `osn` > '1'"),0);
$k_notif = mysql_result(mysql_query("SELECT COUNT(`read`) FROM `notification` WHERE `id_user` = '$user[id]' AND `read` = '0'"), 0); // Уведомления
$new_g=mysql_result(mysql_query("SELECT COUNT(*) FROM `discussions` WHERE `id_user` = '$user[id]' AND `count` > '0'"),0);
$new_gosti = mysql_result(mysql_query("SELECT COUNT(*) FROM `my_guests` WHERE `id_ank` = '$user[id]' AND `read`='1'"),0);
$k_l=mysql_result(mysql_query("SELECT COUNT(*) FROM `tape` WHERE `id_user` = '$user[id]' AND `read` = '0'"),0);
if (mysql_result(mysql_query("SELECT COUNT(*) FROM `user_files` WHERE `id_user` = '$ank[id]' AND `osn` = '1'"), 0)==0){
mysql_query("INSERT INTO `user_files` (`id_user`, `name`, `osn`) values('$ank[id]', 'Файлы', '1')");
}
$i = 0;
while ($k_frie = mysql_fetch_array($res)){
if (mysql_result(mysql_query("SELECT COUNT(*) FROM `user` WHERE `id` = '$k_frie[frend]' && `date_last` > '".(time()-600)."'"),0) != 0)
$i++;
}
$k_p = mysql_result(mysql_query("SELECT COUNT(id) FROM `gifts_user` WHERE `id_user` = '$ank[id]' AND `status` = '1'"),0);
$dir_osn = mysql_fetch_assoc(mysql_query("SELECT * FROM `user_files` WHERE `id_user` = '$ank[id]' AND `osn` = '1' LIMIT 1"));
$k_music=mysql_result(mysql_query("SELECT COUNT(*) FROM `user_music` WHERE `id_user` = '$ank[id]'"),0);
$kol_dnev=mysql_result(mysql_query("SELECT COUNT(*) FROM `notes` WHERE `id_user` = '".$ank['id']."'"),0);
$forum=mysql_result(mysql_query("SELECT COUNT(id_user) FROM `forum_zakl` WHERE `id_user` = '" . $ank['id'] . "'"),0);
$people=mysql_result(mysql_query("SELECT COUNT(id_user) FROM `mark_people` WHERE `id_user` = '" . $ank['id'] . "'"),0);
$files=mysql_result(mysql_query("SELECT COUNT(id_user) FROM `mark_files` WHERE `id_user` = '" . $ank['id'] . "'"),0);
$foto=mysql_result(mysql_query("SELECT COUNT(id_user) FROM `mark_foto` WHERE `id_user` = '" . $ank['id'] . "'"),0);
$notes=mysql_result(mysql_query("SELECT COUNT(id_user) FROM `mark_notes` WHERE `id_user` = '" . $ank['id'] . "'"),0);
$zakladki = $people + $files + $foto + $notes + $forum;
?>
<div>
<div class="Tw1nGo-widgets-group Tw1nGo-links-group Tw1nGo-bb0">
<a href="/user/info/anketa.php?id=<?= $ank['id']?>" class=" Tw1nGo-list-link Tw1nGo-dark Tw1nGo-stnd-link_arrow Tw1nGo-list-link-darkblue ">
<img class="Tw1nGo-s-s" src="/user/info/ico/my_anketa.png" alt="Tw1nGo"/> <span class="Tw1nGo-t"> Анкета </span>
<img class="Tw1nGo-ico_arr" src="/user/info/ico/arr_grey.png" alt="Tw1nGo"/>
</a>
<?
if (isset($user) && $user['id'] == $ank['id']){
if($new_gosti > 0){
?>
<a href="/user/myguest/" class=" Tw1nGo-list-link Tw1nGo-dark Tw1nGo-stnd-link_arrow Tw1nGo-list-link-darkblue ">
<img class="Tw1nGo-s-s" src="/user/info/ico/users_grey.png" alt="Tw1nGo"/>
<span class="Tw1nGo-t"><font color="red"> Мои гости </font></span>
<img class="Tw1nGo-ico_arr" src="/user/info/ico/arr_grey.png" alt="Tw1nGo"/>
<span class="Tw1nGo-cnt"><font color="red">+<?= $new_gosti?></font></span>
</a>
<?
}
}
?>
<table class="Tw1nGo-table_no_borders Tw1nGo-sublink Tw1nGo-table__wrap-fixed" style="border-spacing:0" width="100%">
<tbody><tr>
<td class="Tw1nGo-table__cell_block Tw1nGo-table__cell">
<a href="/plugins/notes/user.php?id=<?= $ank['id']?>" class=" Tw1nGo-list-link Tw1nGo-dark Tw1nGo-list-link-darkblue Tw1nGo-bb0 ">
<img class="Tw1nGo-ico Tw1nGo-s-s" src="/user/info/ico/my_notes.png" alt="Tw1nGo"/> <span class="Tw1nGo-t"> Личный блог </span>
<span class="Tw1nGo-cnt"><?= $kol_dnev?></span> </a>
</td>
<?
if (isset($user) && $user['id'] == $ank['id']){
?>
<td class="Tw1nGo-table__cell Tw1nGo-table__cell_block Tw1nGo-m" width="150px">
<div class="Tw1nGo-sub_link Tw1nGo-nowrap Tw1nGo-oh">
<a href="/plugins/notes/add.php" class="Tw1nGo-list-link">
<div class="Tw1nGo-bordered Tw1nGo-blue"> <span class="Tw1nGo-t Tw1nGo-blue"> Написать </span> </div>
</a>
</div>
</td>
<?
}
?>
</tr> </tbody></table>
<?
if (isset($user) && $user['id']==$ank['id']){
if($k_notif > 0){
?>
<a href="/user/notification/" class=" Tw1nGo-list-link Tw1nGo-dark Tw1nGo-stnd-link_arrow Tw1nGo-list-link-darkblue ">
<img class="Tw1nGo-s-s" src="/user/info/ico/kniga.png" alt="Tw1nGo"/>
<span class="Tw1nGo-t"><font color="red">Уведомления</font></span>
<img class="Tw1nGo-ico_arr" src="/user/info/ico/arr_grey.png" alt="Tw1nGo"/>
<span class="Tw1nGo-cnt"><font color="red">+<?= $k_notif?></font></span>
</a>
<?
}if($new_g != 0){
?>
<a href="/user/discussions/" class=" Tw1nGo-list-link Tw1nGo-dark Tw1nGo-stnd-link_arrow Tw1nGo-list-link-darkblue ">
<img class="Tw1nGo-s-s" src="/user/info/ico/mail_ms.png" alt="Tw1nGo"/>
<span class="Tw1nGo-t"><font color="red">Обсуждения</font></span>
<img class="Tw1nGo-ico_arr" src="/user/info/ico/arr_grey.png" alt="Tw1nGo"/>
<span class="Tw1nGo-cnt"><font color="red">+<?= $new_g?></font></span>
</a>
<?
}if($k_l != 0){
?>
<a href="/user/tape/" class=" Tw1nGo-list-link Tw1nGo-dark Tw1nGo-stnd-link_arrow Tw1nGo-list-link-darkblue ">
<img class="Tw1nGo-s-s" src="/user/info/ico/read.png" alt="Tw1nGo"/>
<span class="Tw1nGo-t"><font color="red">Лента</font></span>
<img class="Tw1nGo-ico_arr" src="/user/info/ico/arr_grey.png" alt="Tw1nGo"/>
<span class="Tw1nGo-cnt"><font color="red">+<?= $k_l?></font></span>
</a>
<?
}
}
?>
<div class="Tw1nGo-sep-item"></div>
<a href="/foto/<?= $ank['id']?>/" class=" Tw1nGo-list-link Tw1nGo-dark Tw1nGo-stnd-link_arrow Tw1nGo-list-link-darkblue ">
<img class="Tw1nGo-s-s" src="/user/info/ico/piu.png" alt="Tw1nGo"/> <span class="Tw1nGo-t"> Фотографии </span>
<img class="Tw1nGo-ico_arr" src="/user/info/ico/arr_grey.png" alt="Tw1nGo"/>
<span class="Tw1nGo-cnt"><?= $my_photoS?></span>
</a>
<a href="/user/music/?id=<?= $ank['id']?>" class=" Tw1nGo-list-link Tw1nGo-dark Tw1nGo-stnd-link_arrow Tw1nGo-list-link-darkblue ">
<img class="Tw1nGo-s-s" src="/user/info/ico/au.png" alt="Tw1nGo"/> <span class="Tw1nGo-t"> Музыка </span>
<img class="Tw1nGo-ico_arr" src="/user/info/ico/arr_grey.png" alt="Tw1nGo"/>
<span class="Tw1nGo-cnt"><?= $k_music?></span>
</a>
<a href="/user/personalfiles/<?= $ank['id']?>/<?= $dir_osn['id']?>/" class=" Tw1nGo-list-link Tw1nGo-dark Tw1nGo-stnd-link_arrow Tw1nGo-list-link-darkblue ">
<img class="Tw1nGo-s-s" src="/user/info/ico/fiu.png" alt="Tw1nGo"/> <span class="Tw1nGo-t"> Файлы </span>
<img class="Tw1nGo-ico_arr" src="/user/info/ico/arr_grey.png" alt="Tw1nGo"/>
<span class="Tw1nGo-cnt"><?= $my_filesS?></span>
</a>
<div class="Tw1nGo-sep-item"></div>
<?
if ($st > 0){
?>
<a href="/user/status/?id=<?= $ank['id']?>" class=" Tw1nGo-list-link Tw1nGo-dark Tw1nGo-stnd-link_arrow Tw1nGo-list-link-darkblue ">
<img class="Tw1nGo-s-s" src="/user/info/ico/ico_status_blue.png" alt="Tw1nGo"/> <span class="Tw1nGo-t"> Статусы </span>
<img class="Tw1nGo-ico_arr" src="/user/info/ico/arr_grey.png" alt="Tw1nGo"/>
<span class="Tw1nGo-cnt"><?= $st?></span>
</a>
<?
}
?>
<a href="/user/frends/?id=<?= $ank['id']?>" class=" Tw1nGo-list-link Tw1nGo-dark Tw1nGo-stnd-link_arrow Tw1nGo-list-link-darkblue ">
<img class="Tw1nGo-s-s" src="/user/info/ico/users_green.png" alt="Tw1nGo"/> <span class="Tw1nGo-t"> Друзья </span>
<img class="Tw1nGo-ico_arr" src="/user/info/ico/arr_grey.png" alt="Tw1nGo"/>
<span class="Tw1nGo-cnt"><?= $k_fr?></span>
<?
if ($i > 0){
?>
<span class="Tw1nGo-ib">
<span class="Tw1nGo-cnt_friends-online-text">В сети</span>
<span class="Tw1nGo-cnt Tw1nGo-cnt_friends-online"><?= $i ?></span>
</span>
<?
}
?>
</a>
<a href="/user/bookmark/?id=<?= $ank['id']?>" class=" Tw1nGo-list-link Tw1nGo-dark Tw1nGo-stnd-link_arrow Tw1nGo-list-link-darkblue ">
<img class="Tw1nGo-s-s" src="/user/info/ico/action_fav_gray.gif" alt="Tw1nGo"/> <span class="Tw1nGo-t"> Закладки </span>
<img class="Tw1nGo-ico_arr" src="/user/info/ico/arr_grey.png" alt="Tw1nGo"/>
<span class="Tw1nGo-cnt"><?= $zakladki?></span>
</a>
<a href="/user/info/who_rating.php?id=<?= $ank['id']?>" class=" Tw1nGo-list-link Tw1nGo-dark Tw1nGo-stnd-link_arrow Tw1nGo-list-link-darkblue ">
<img class="Tw1nGo-s-s" src="/user/info/ico/my_otziv.png" alt="Tw1nGo"/> <span class="Tw1nGo-t"> Отзывы </span>
<img class="Tw1nGo-ico_arr" src="/user/info/ico/arr_grey.png" alt="Tw1nGo"/>
<span class="Tw1nGo-cnt"><?= $otzivu?></span>
</a>
</div>
<?
if($k_p > 0){
?>
<div class="Tw1nGo-widgets-group">
<div class="Tw1nGo-b-title Tw1nGo-b-title_center Tw1nGo-b-title_first">
<a class="Tw1nGo-b-title__link" href="/user/gift/?id=<?= $ank['id']?>"> Подарки
<span class="Tw1nGo-cnt Tw1nGo-cnt_title"><?= $k_p?></span> </a>
</div>
<div class="Tw1nGo-content-widget">
<?
$q = mysql_query("SELECT id,id_gift,status FROM `gifts_user` WHERE `id_user` = '$ank[id]' AND `status` = '1' ORDER BY `id` DESC LIMIT 4");
while ($post = mysql_fetch_assoc($q)){
$gift = mysql_fetch_assoc(mysql_query("SELECT id FROM `gift_list` WHERE `id` = '$post[id_gift]' LIMIT 1"));
?>
<span class="Tw1nGo-present">
<a href="/user/gift/gift.php?id=<?= $post['id']?>" class="Tw1nGo-arrow_link">
<img src="/sys/gift/<?= $gift['id']?>.png" alt="Подарок" class="Tw1nGo-m" style="max-width:<?= $width?>px;">
</a>
</span>
<?
}
if (isset($user) && $user['id'] != $ank['id']){
?>
<a href="/user/gift/categories.php?id=<?= $ank['id']?>" class="Tw1nGo-btn-link">
<img class="Tw1nGo" src="/user/info/ico/gifts_grey.png" alt="Tw1nGo"/>
</a>
<?
}
?>
</div>
</div>
<?
}
?>
</div>
<?
if (isset($user) && $ank['id'] != $user['id']){
?>
<div class="Tw1nGo-btn-single__wrap">
<div class="Tw1nGo-btn-single__table-wrap Tw1nGo-dropdown-menu_top">
<div class="Tw1nGo-user__tools Tw1nGo-tl Tw1nGo-bb0 Tw1nGo-bt0">
<table class="Tw1nGo-table__wrap"> <tbody><tr>
<td class="Tw1nGo-table__cell Tw1nGo-tc" width="50%">
<?
if ( mysql_result(mysql_query("SELECT COUNT(*) FROM `mark_people` WHERE `id_user` = '" . $user['id'] . "' AND `id_people` = '" . $ank['id'] . "' LIMIT 1"),0) == 0){
?>
<a href="/info.php?id=<?=$ank['id']?>&fav=1" class="Tw1nGo-btn-single Tw1nGo-hover-item " title="Добавить в закладки">
<?
if ($webbrowser==true){
?>
<img class="Tw1nGo-ico" src="/user/info/ico/action_fav_gray.gif" alt="Tw1nGo"/>
<?
}
?>
<span class="Tw1nGo-t"> В закладки </span>
</a>
<?
}else{
?>
<a href="/info.php?id=<?=$ank['id']?>&fav=0" class="Tw1nGo-btn-single Tw1nGo-list-link-green Tw1nGo-hover-item " title="Удалить из закладок">
<?
if ($webbrowser==true){
?>
<img class="Tw1nGo-s-s" src="/user/info/ico/ok_fav.png" alt="Tw1nGo"/>
<?
}
?>
<span class="Tw1nGo-t"> В закладках </span>
</a>
<?
}
?>
</td>
<td class="Tw1nGo-table__cell Tw1nGo-tc Tw1nGo-table__cell_last" width="50%">
<div class="js-lenta_subscr_add js-lenta_subscr_as">
<a href="/user/money/translate.php?id=<?=$ank['id']?>" class="Tw1nGo-btn-single Tw1nGo-hover-item ">
<?
if ($webbrowser==true){
?>
<img class="Tw1nGo-ico" src="/user/info/ico/add_grey.png" alt="Tw1nGo"/>
<?
}
?>
<span class="Tw1nGo-t"> Монетки </span>
</a>
</div>
</td>
</tr> </tbody></table>
</div> </div> </div>
<?
}
?>
</div>
<?
/*
========================================
The End
========================================
*/
?>