Файл: setk/user/info/web.php
Строк: 661
<?
/* --------------------в друзья------------------- */
$frend_new = mysql_result(mysql_query("SELECT COUNT(*) FROM `frends_new` WHERE (`user` = '$user[id]' AND `to` = '$ank[id]') OR (`user` = '$ank[id]' AND `to` = '$user[id]') LIMIT 1"), 0);
$frend = mysql_result(mysql_query("SELECT COUNT(*) FROM `frends` WHERE (`user` = '$user[id]' AND `frend` = '$ank[id]') OR (`user` = '$ank[id]' AND `frend` = '$user[id]') LIMIT 1"), 0);
$not_user = mysql_result(mysql_query("SELECT COUNT(*) FROM `user` WHERE `id` = '$ank[id]' LIMIT 1"), 0) == 0;
if (isset($user) && $user['id'] != $ank['id']) {
if (isset($_GET['fok'])) {
echo '<center>';
echo "<div class='main2'><form action='/info.php?id=" . $ank['id'] . "' method="post">";
echo "<input class="submit" type="submit" value="Закрыть" />n";
echo "</form></div>";
echo '</center>';
}
}
if (isset($user) && isset($_GET['frends']) && $frend_new == 0 && $frend == 0) {
if ($user['id'] != $ank['id']) {
echo '<center>';
echo "<div class='err'>Пользователь должен будет подтвердить, что вы друзья.</div><div class='foot'><form action='/user/frends/create.php?add=" . $ank['id'] . "' method="post">";
echo "<input class="submit" type="submit" value="Пригласить" />n";
echo " <a href='/info.php?id=$ank[id]'>Отмена</a><br />n";
echo "</form></div>";
echo '</center>';
}
}
/* --------------------------------------------------------- */
echo "<div class='act'>";
echo "<a class='act_active2'>Профиль</a>";
echo'<a class="act_noactive2" href="/activ.php?id='.$ank['id'].'">Активность</a>';
echo"</div>";
echo "<div class='hide'>";
echo group($ank['id']) . " $ank[nick] ";
echo medal($ank['id']) . " " . online($ank['id']) . " ";
if (isset($user) && isset($_GET['like']) && $user['id'] != $ank['id'] && mysql_result(mysql_query("SELECT COUNT(*) FROM `status_like` WHERE `id_status` = '$status[id]' AND `id_user` = '$user[id]' LIMIT 1"), 0) == 0) {
mysql_query("INSERT INTO `status_like` (`id_user`, `id_status`) values('$user[id]', '$status[id]')");
}
if ($status['id'] || $ank['id'] == $user['id']) {
echo "<div class='st_1'></div>";
echo "<div class='st_2'>";
if ($status['id']) {
echo output_text($status['msg']) . ' <font style="font-size:11px; color:gray;">' . vremja($status['time']) . '</font>';
if ($ank['id'] == $user['id'])
echo " [<a href='?id=$ank[id]&status'><img src='/style/icons/edit.gif' alt='*'> нов</a>]";
echo '<br />';
}
else if ($ank['id'] == $user['id']) {
echo "Ваш статус [<a href='?id=$ank[id]&status'><img src='/style/icons/edit.gif' alt='*'> ред</a>]";
}
echo "</div>";
// Если статус установлен
if ($status['id']) {
$l = mysql_result(mysql_query("SELECT COUNT(*) FROM `status_like` WHERE `id_status` = '$status[id]'"), 0);
if (isset($user) && $user['id'] != $ank['id'] && mysql_result(mysql_query("SELECT COUNT(*) FROM `status_like` WHERE `id_status` = '$status[id]' AND `id_user` = '$user[id]' LIMIT 1"), 0) == 0) {
} else if (isset($user) && $user['id'] != $ank['id']) {
} else {
}
}
{
}
}
echo '</div>';
?>
<table class='table_info' cellspacing="0" cellpadding="0">
<tr><td class='block_menu'>
<?
// Аватар
echo "<div class='main2'>";
echo avatar($ank['id'], false, 640, 220);
echo "</div>";
/*
========================================
Подарки
========================================
*/
$k_p = mysql_result(mysql_query("SELECT COUNT(id) FROM `gifts_user` WHERE `id_user` = '$ank[id]' AND `status` = '1'"), 0);
$width = ($webbrowser == 'web' ? '60' : '45'); // Размер подарков при выводе в браузер
if ($k_p > 0) {
$q = mysql_query("SELECT id,id_gift,status FROM `gifts_user` WHERE `id_user` = '$ank[id]' AND `status` = '1' ORDER BY `id` DESC LIMIT 5");
echo '<div class="nav2">';
while ($post = mysql_fetch_assoc($q)) {
$gift = mysql_fetch_assoc(mysql_query("SELECT id FROM `gift_list` WHERE `id` = '$post[id_gift]' LIMIT 1"));
echo '<a href="/user/gift/gift.php?id=' . $post['id'] . '"><img src="/sys/gift/' . $gift['id'] . '.png" style="max-width:' . $width . 'px;" alt="Подарок" /></a> ';
}
echo '</div>';
echo '<div class="nav2">';
echo '→ <a href="/user/gift/index.php?id=' . $ank['id'] . '">Все подарки</a> (' . $k_p . ')';
echo '</div>';
}
/*
========================================
Анкета
========================================
*/
echo "<div class='nav1'>";
echo "<img src='/style/icons/iconc/profile.png' alt='*' /> <a href='/user/info/anketa.php?id=$ank[id]'>Анкета</a> ";
if (isset($user) && $user['id']==$ank['id'])
{
echo "[<img src='/style/icons/edit.gif' alt='*' /> <a href='/user/info/edit.php'>ред</a>]";
}
echo "</div>";
/*
========================================
Гости
========================================
*/
if (isset($user) && $user['id'] == $ank['id'])
{
echo '<div class="nav2">';
$new_g = mysql_result(mysql_query("SELECT COUNT(*) FROM `my_guests` WHERE `id_ank` = '$user[id]' AND `read`='1'"),0);
echo '<img src="/style/icons/iconc/guests.png" alt="*" /> ';
if($new_g != 0)
{
echo "<a href='/user/myguest/index.php'><font color='red'>Гости +$new_g</font></a> ";
}
else
{
echo "<a href='/user/myguest/index.php'>Гости</a> ";
}
echo ' | ';
$ocenky = mysql_result(mysql_query("SELECT COUNT(*) FROM `gallery_rating` WHERE `avtor` = '$ank[id]' AND `read`='1'"),0);
if($ocenky != 0)
{
echo "<a href='/user/info/ocenky.php'><font color='red'>Оценки +$ocenky</font></a> ";
}
else
{
echo "<a href='/user/info/ocenky.php'>Оценки</a> ";
}
echo "</div>";
}
/*
========================================
Друзья
========================================
*/
echo '<div class="nav2">';
$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);
$res = mysql_query("select `frend` from `frends` WHERE `user` = '$ank[id]' AND `i` = '1'");
echo ' <a class="touch" href="/user/frends/?id=' . $ank['id'] . '"> <img class="middle" src="/style/icons/iconc/druzya.png" alt="*" /> Друзья <span class="left_count">' . $k_fr . '</span>';
$i = 0;
while ($k_fr = mysql_fetch_array($res))
{
if (mysql_result(mysql_query("SELECT COUNT(*) FROM `user` WHERE `id` = '$k_fr[frend]' && `date_last` > '".(time()-600)."'"),0) != 0)
$i++;
}
echo "<span class='right_count'>$i</a></span></a>";
if (isset($user) && $user['id'] == $ank['id'])
{
}
if (isset($user) && $user['id']==$ank['id']){
}
echo "</div>";
include_once H.'plugins/user_garem/garem.php';
/*
========================================
Дневники
========================================
*/
echo "<div class='nav2'>";
$kol_dnev=mysql_result(mysql_query("SELECT COUNT(*) FROM `notes` WHERE `id_user` = '".$ank['id']."'"),0);
echo "<a href='/plugins/notes/user.php?id=$ank[id]'><img class='middle' src='/style/icons/iconc/diary.png' alt='*' /> Дневники <span class='count'>$kol_dnev</span></a>";
echo "</div>";
/*
========================================
Закладки
========================================
*/
echo "<div class='nav2'>";
$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;
echo "<a href='/user/bookmark/index.php?id=$ank[id]'><img class='middle' src='/style/icons/iconc/diary1.png' alt='*' /> Закладки <span class='count'>$zakladki</span></a>";
echo "</div>";
echo "<div class='nav1'>";
/*
========================================
Фото
========================================
*/
echo "<a href='/foto/$ank[id]/'><img class='middle' src='/style/icons/iconc/photo.png' alt='*' /> фото ";
echo "<span class='count'>" . mysql_result(mysql_query("SELECT COUNT(*) FROM `gallery_foto` WHERE `id_user` = '$ank[id]'"),0) . "</span></a>";
echo "</div>";
/*
========================================
Файлы
========================================
*/
echo "<div class='nav1'>";
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')");
}
$dir_osn = mysql_fetch_assoc(mysql_query("SELECT * FROM `user_files` WHERE `id_user` = '$ank[id]' AND `osn` = '1' LIMIT 1"));
echo "<a href='/user/personalfiles/$ank[id]/$dir_osn[id]/'><img class='middle' src='/style/icons/iconc/obmen.gif' alt='*' /> Файлы ";
echo "<span class='left_count'>" . mysql_result(mysql_query("SELECT COUNT(*) FROM `user_files` WHERE `id_user` = '$ank[id]' AND `osn` > '1'"),0) . "</span><span class='right_count'>" . mysql_result(mysql_query("SELECT COUNT(*) FROM `obmennik_files` WHERE `id_user` = '$ank[id]'"),0) . "</span></a>";
echo "</div>";
/*
========================================
Музыка
========================================
*/
echo "<div class='nav1'>";
$k_music=mysql_result(mysql_query("SELECT COUNT(*) FROM `user_music` WHERE `id_user` = '$ank[id]'"),0);
echo "<a href='/user/music/index.php?id=$ank[id]'><img class='middle' src='/style/icons/iconc/play.gif' alt='*' width='16'/> Музыка ";
echo "<span class='count'>" . $k_music . "</span></a>";
echo "</div>";
/*
========================================
Сообщение
========================================
*/
if (isset($user) && $ank['id']!=$user['id']){
echo"<div class='hide'></br>";
echo "<table style='width:100%' cellspacing='7' cellpadding='140'><tr>";
echo "<a class='user_mail' href='/mail.php?id=$ank[id]' title='Отправить сообщение'></a></td> ";/// Сообщения
/*
========================================
Закладки
========================================
*/
if ( mysql_result(mysql_query("SELECT COUNT(*) FROM `mark_people` WHERE `id_user` = '" . $user['id'] . "' AND `id_people` = '" . $ank['id'] . "' LIMIT 1"),0) == 0)
echo '<a class="user_zakl" href="?id=' . $ank['id'] . '&fav=1" title="Добавить в закладки"></a></td> ';/// Добавить в закладки
else
echo '<a class="user_del_zakl" href="?id=' . $ank['id'] . '&fav=0" title="Удалить из закладок"></a> ';/// Удалить из закладок
/*
========================================
Подарки
========================================
*/
echo "<a class='user_gift' href='/user/gift/categories.php?id=$ank[id]&do' title='Подарить подарок'></a></td> "; /// Подарки
/*
========================================
Друзья
========================================
*/
if ($frend_new==0 && $frend==0){
echo "<a class='user_friends' href='/user/frends/create.php?add=".$ank['id']."' title='Добавить в друзья'></a></td> "; ///Друзья
}elseif ($frend==2){
echo "<a class='user_del_zakl' href='/user/frends/create.php?del=$ank[id]' title='Удалить из друзей'></a></td> "; /// удаления из друзей
}
/*
========================================
Монеты
========================================
*/
echo "<a class='user_money' href='/user/money/translate.php?id=$ank[id]' title='Передать монет'></a></td>"; ///монеты
echo '</tr></table></div>';
}
/*
========================================
Настройки
========================================
*/
if (isset($user) && $ank['id']==$user['id']){
echo "<div class='main'>";
echo "<img src='/style/icons/iconc/settings.png' alt='*' /> <a href="/settings/">Мои настройки</a> | <a href="/umenu.php">Меню</a><br /> ";
echo "</div>";
echo "<div class='main'>";
echo "<img src='/style/icons/iconc/services.png' alt='*' /> <a href="/user/money/index.php">Дополнительные услуги</a><br /> ";
echo "</div>";
}
/*
========================================
История входов
========================================
*/
if (isset($user) && $ank['id']==$user['id']){
echo "<a class='touch_black' href='/my_aut.php'><img class='middle' src='/style/icons/clock.png' alt='*' /> История входов </a>";
}
/*
========================================
поздравления с днем рождения
========================================
*/
$currD=date("d", time());
$currm=date("m", time());
$k_birsday=mysql_result(mysql_query("SELECT COUNT(*) FROM `user` WHERE `ank_d_r` = '$currD' and `ank_m_r` = '$currm'",$db), 0);
if ($k_birsday > 0)
{
echo "<div class='nav1'>";
echo'<img src="/style/icons/ic_a7.gif" alt="" /> <a href="/list_bday.php"> поздравления с днем рождения </a> ('.$k_birsday.')<br/>';
echo "</div>n";
}
/* --------------------------друзья онлайн---------------------- */
$set['p_str'] = 20;
$k_post = mysql_result(mysql_query("SELECT COUNT(*) FROM `frends` INNER JOIN `user` ON `frends`.`frend`=`user`.`id` WHERE `frends`.`user` = '$ank[id]' AND `frends`.`i` = '1' AND `user`.`date_last`>'" . (time() - 600) . "'"), 0);
$k_page = k_page($k_post, $set['p_str']);
$page = page($k_page);
$start = $set['p_str'] * $page - $set['p_str'];
$q = mysql_query("SELECT * FROM `frends` INNER JOIN `user` ON `frends`.`frend`=`user`.`id` WHERE `frends`.`user` = '$ank[id]' AND `frends`.`i` = '1' AND `user`.`date_last`>'" . (time() - 600) . "' ORDER BY `user`.`date_last` DESC LIMIT $start, $set[p_str]");
if ($k_post > 0) {
echo "<div class='main2'>Друзья онлайн ($k_post)</div>";
}
while ($post3 = mysql_fetch_assoc($q)) {
$ank3 = get_user($post3['frend']);
/* ---------зебра--------- */
if ($num == 0) {
echo " <div class='nav1'>n";
$num = 1;
} elseif ($num == 1) {
echo " <div class='nav2'>n";
$num = 0;
}
/* ----------------------- */
echo avatar($ank3['id']);
echo ' <a href="/info.php?id=' . $ank3['id'] . '">' . $ank3['nick'] . '</a>' . medal($ank3['id']) . ' ' . online($ank3['id']) . ' (' . (($ank3['pol'] == 1) ? 'М' : 'Ж') . ')<br />';
echo '<a href="/mail.php?id=' . $ank3['id'] . '"><img src="/style/icons/pochta.gif" alt="*" /> Сообщение</a> ';
echo "</div>";
}
/* ---------------------the end-------------------------- */
?>
</td>
<td class=''>
<?
echo '<table>';
echo '</table>';
/*
Вывод анкеты, фото, и стены
*/
echo "<div class='main2'>";
echo " " . group($ank['id']) . " $ank[nick]";
echo " " . medal($ank['id']) . " " . online($ank['id']) . " <font size='small'>" . vremja($ank['date_last']) . "</font> ";
if ((user_access('user_ban_set') || user_access('user_ban_set_h') || user_access('user_ban_unset')) && $ank['id'] != $user['id'])
echo "<a href='/adm_panel/ban.php?id=$ank[id]'><font color=red>[Бан]</font></a>n";
echo "</div>";
/*
===============================
Последние добавленные фото
===============================
*/
$sql = mysql_query("SELECT * FROM `gallery_foto` WHERE `id_user` = '$ank[id]' ORDER BY `id` DESC LIMIT 8");
$coll = mysql_result(mysql_query("SELECT COUNT(*) FROM `gallery_foto` WHERE `id_user` = '$ank[id]' ORDER BY `id` DESC"), 0);
if ($coll > 0) {
echo "<div class='main2'>";
echo "<img src='/style/icons/pht2.png' alt='*' /> ";
echo "<a href='/foto/$ank[id]/'>Фотографии</a> ";
echo "(" . mysql_result(mysql_query("SELECT COUNT(*) FROM `gallery_foto` WHERE `id_user` = '$ank[id]'"), 0) . ")";
echo "</div>";
echo "<div class='nav2'>";
while ($photo = mysql_fetch_assoc($sql)) {
echo "<a href='/foto/$ank[id]/$photo[id_gallery]/$photo[id]/'><img style='padding:1px; padding: 0px; margin:2px; height: 53px; width:53px; border: 1px #4fdafd solid; vertical-align:top; background-image: url(); background-position: center top;' src='/foto/foto50/$photo[id].$photo[ras]' alt=''/></a>";
}
echo "</div>";
}
/*
* ==========================
* Банды
* ==========================
*/
echo "<div class='main2'>";
include H . 'gangs/info.php';
echo '</div>';
/*
=====================================
Анкета пользователя, если автор
то выводим ссылки на редактирование
полей, если нет то нет =)
=====================================
*/
if (isset($user) && $ank['id'] == $user['id']) {
$name = "<a href='/user/info/edit.php?act=ank_web&set=name'>";
$date = "<a href='/user/info/edit.php?act=ank_web&set=date'>";
$gorod = "<a href='/user/info/edit.php?act=ank_web&set=gorod'>";
$pol = "<a href='/user/info/edit.php?act=ank_web&set=pol'>";
$a = "</a>";
} else {
$name = "<font style='padding:1px; color : #005ba8; padding:1px;'>";
$date = "<font style='padding:1px; color : #005ba8; padding:1px;'>";
$gorod = "<font style='padding:1px; color : #005ba8; padding:1px;'>";
$pol = "<font style='padding:1px; color : #005ba8; padding:1px;'>";
$a = "</font>";
}
/*
=====================================
Основное
=====================================
*/
echo "<div class='nav1'>";
if ($ank['ank_name'] != NULL)
echo "$name<span class="ank_n">Имя:</span>$a <span class="ank_d">$ank[ank_name]</span><br />n";
else
echo "$name<span class="ank_n">Имя:</span>$a<br />n";echo "$pol<span class="ank_n">Пол:</span>$a <span class="ank_d">" . (($ank['pol'] == 1) ? 'Мужской' : 'Женский') . "</span><br />n";
if ($ank['ank_city'] != NULL)
echo "$gorod<span class="ank_n">Город:</span>$a <span class="ank_d">" . output_text($ank['ank_city']) . "</span><br />n";
else
echo "$gorod<span class="ank_n">Город:</span>$a<br />n";if ($ank['ank_d_r'] != NULL && $ank['ank_m_r'] != NULL && $ank['ank_g_r'] != NULL) {
if ($ank['ank_m_r'] == 1)
$ank['mes'] = 'Января';
elseif ($ank['ank_m_r'] == 2)
$ank['mes'] = 'Февраля';
elseif ($ank['ank_m_r'] == 3)
$ank['mes'] = 'Марта';
elseif ($ank['ank_m_r'] == 4)
$ank['mes'] = 'Апреля';
elseif ($ank['ank_m_r'] == 5)
$ank['mes'] = 'Мая';
elseif ($ank['ank_m_r'] == 6)
$ank['mes'] = 'Июня';
elseif ($ank['ank_m_r'] == 7)
$ank['mes'] = 'Июля';
elseif ($ank['ank_m_r'] == 8)
$ank['mes'] = 'Августа';
elseif ($ank['ank_m_r'] == 9)
$ank['mes'] = 'Сентября';
elseif ($ank['ank_m_r'] == 10)
$ank['mes'] = 'Октября';
elseif ($ank['ank_m_r'] == 11)
$ank['mes'] = 'Ноября';
else
$ank['mes'] = 'Декабря';
echo "$date<span class="ank_n">Дата рождения:</span>$a $ank[ank_d_r] $ank[mes] $ank[ank_g_r]г. <br />n";
$ank['ank_age'] = date("Y") - $ank['ank_g_r'];
if (date("n") < $ank['ank_m_r'])
$ank['ank_age'] = $ank['ank_age'] - 1;
elseif (date("n") == $ank['ank_m_r'] && date("j") < $ank['ank_d_r'])
$ank['ank_age'] = $ank['ank_age'] - 1;
echo "<span class="ank_n">Возраст:</span> $ank[ank_age] n";
}
elseif ($ank['ank_d_r'] != NULL && $ank['ank_m_r'] != NULL) {
if ($ank['ank_m_r'] == 1)
$ank['mes'] = 'Января';
elseif ($ank['ank_m_r'] == 2)
$ank['mes'] = 'Февраля';
elseif ($ank['ank_m_r'] == 3)
$ank['mes'] = 'Марта';
elseif ($ank['ank_m_r'] == 4)
$ank['mes'] = 'Апреля';
elseif ($ank['ank_m_r'] == 5)
$ank['mes'] = 'Мая';
elseif ($ank['ank_m_r'] == 6)
$ank['mes'] = 'Июня';
elseif ($ank['ank_m_r'] == 7)
$ank['mes'] = 'Июля';
elseif ($ank['ank_m_r'] == 8)
$ank['mes'] = 'Августа';
elseif ($ank['ank_m_r'] == 9)
$ank['mes'] = 'Сентября';
elseif ($ank['ank_m_r'] == 10)
$ank['mes'] = 'Октября';
elseif ($ank['ank_m_r'] == 11)
$ank['mes'] = 'Ноября';
else
$ank['mes'] = 'Декабря';
echo "$date<span class="ank_n">День рождения:</span>$a $ank[ank_d_r] $ank[mes] n";
}if ($ank['ank_d_r'] >= 19 && $ank['ank_m_r'] == 1) {
echo "| Водолей<br />";
} elseif ($ank['ank_d_r'] <= 19 && $ank['ank_m_r'] == 2) {
echo "| Водолей<br />";
} elseif ($ank['ank_d_r'] >= 18 && $ank['ank_m_r'] == 2) {
echo "| Рыбы<br />";
} elseif ($ank['ank_d_r'] <= 21 && $ank['ank_m_r'] == 3) {
echo "| Рыбы<br />";
} elseif ($ank['ank_d_r'] >= 20 && $ank['ank_m_r'] == 3) {
echo "| Овен<br />";
} elseif ($ank['ank_d_r'] <= 21 && $ank['ank_m_r'] == 4) {
echo "| Овен<br />";
} elseif ($ank['ank_d_r'] >= 20 && $ank['ank_m_r'] == 4) {
echo "| Телец<br />";
} elseif ($ank['ank_d_r'] <= 21 && $ank['ank_m_r'] == 5) {
echo "| Телец<br />";
} elseif ($ank['ank_d_r'] >= 20 && $ank['ank_m_r'] == 5) {
echo "| Близнецы<br />";
} elseif ($ank['ank_d_r'] <= 22 && $ank['ank_m_r'] == 6) {
echo "| Близнецы<br />";
} elseif ($ank['ank_d_r'] >= 21 && $ank['ank_m_r'] == 6) {
echo "| Рак<br />";
} elseif ($ank['ank_d_r'] <= 22 && $ank['ank_m_r'] == 7) {
echo "| Рак<br />";
} elseif ($ank['ank_d_r'] >= 23 && $ank['ank_m_r'] == 7) {
echo "| Лев<br />";
} elseif ($ank['ank_d_r'] <= 22 && $ank['ank_m_r'] == 8) {
echo "| Лев<br />";
} elseif ($ank['ank_d_r'] >= 22 && $ank['ank_m_r'] == 8) {
echo "| Дева<br />";
} elseif ($ank['ank_d_r'] <= 23 && $ank['ank_m_r'] == 9) {
echo "| Дева<br />";
} elseif ($ank['ank_d_r'] >= 22 && $ank['ank_m_r'] == 9) {
echo "| Весы<br />";
} elseif ($ank['ank_d_r'] <= 23 && $ank['ank_m_r'] == 10) {
echo "| Весы<br />";
} elseif ($ank['ank_d_r'] >= 22 && $ank['ank_m_r'] == 10) {
echo "| Скорпион<br />";
} elseif ($ank['ank_d_r'] <= 22 && $ank['ank_m_r'] == 11) {
echo "| Скорпион<br />";
} elseif ($ank['ank_d_r'] >= 21 && $ank['ank_m_r'] == 11) {
echo "| Стрелец<br />";
} elseif ($ank['ank_d_r'] <= 22 && $ank['ank_m_r'] == 12) {
echo "| Стрелец<br />";
} elseif ($ank['ank_d_r'] >= 21 && $ank['ank_m_r'] == 12) {
echo "| Козерог<br />";
} elseif ($ank['ank_d_r'] <= 20 && $ank['ank_m_r'] == 1) {
echo "| Козерог<br />";
}echo "</div>n";
echo '<form action="someplace.html" method="post" name="myForm"><div id="formResponse">';
echo ' <a onclick="anketa.submit()" name="myForm"><div class="form_info">Показать подробную информацию</div></a>';
echo '</div></form>';
echo "<script type='text/javascript'>
var anketa = new DHTMLSuite.form({ formRef:'myForm',action:'/ajax/php/anketa.php?id=$ank[id]',responseEl:'formResponse'});
var anketaClose = new DHTMLSuite.form({ formRef:'myForm',action:'/ajax/php/anketa.php',responseEl:'formResponse'});
</script>";
/*
========================================
Подарки
========================================
*/
$k_p = mysql_result(mysql_query("SELECT COUNT(id) FROM `gifts_user` WHERE `id_user` = '$ank[id]' AND `status` = '1'"), 0);
$width = ($webbrowser == 'web' ? '60' : '45'); // Размер подарков при выводе в браузер
if ($k_p > 0) {
echo '<div class="foot">';
echo '→ <a href="/user/gift/index.php?id=' . $ank['id'] . '">Все подарки</a> (' . $k_p . ')';
echo '</div>';
$q = mysql_query("SELECT id,id_gift,status FROM `gifts_user` WHERE `id_user` = '$ank[id]' AND `status` = '1' ORDER BY `id` DESC LIMIT 7");
echo '<div class="nav2">';
while ($post = mysql_fetch_assoc($q)) {
$gift = mysql_fetch_assoc(mysql_query("SELECT id FROM `gift_list` WHERE `id` = '$post[id_gift]' LIMIT 1"));
echo '<a href="/user/gift/gift.php?id=' . $post['id'] . '"><img src="/sys/gift/' . $gift['id'] . '.png" style="max-width:' . $width . 'px;" alt="Подарок" /></a> ';
}
echo '</div>';
}
include_once 'user/stena/index.php';
?>
</td>
</tr>
</table>