<td valign="top"> Аватар </td>
Эрудит, такой не могу найти Где там
Построчный редактор
1 <? I X
2 if (isset($_GET['rating']) && isset($user) && $user['id']!=
$ank['id'] && $user['balls']>=50){ I X
3 $new_r=min(max(Удалён I X
4 mysql_query("DELETE FROM `user_voice2` WHERE
`id_user` = '$user[id]' AND `id_kont` = '$ank[id]' LIMIT 1" I
X
5 I X
6 if ($new_r){ I X
7 mysql_query("INSERT INTO `user_voice2` (`rating`,
`id_user`, `id_kont`) VALUES ('$new_r','$user[id]','$ank
[id]')" I X
8 $ank['rating']=intval(mysql_result(mysql_query("SELECT
SUM(`rating`) FROM `user_voice2` WHERE `id_kont` = '$ank
[id]'",0)); I X
9 mysql_query("UPDATE `user` SET `rating` = '$ank[rating]'
WHERE `id` = '$ank[id]' LIMIT 1" I X
10 } I X
11 mysql_query("INSERT INTO `jurnal` (`id_user`, `id_kont`,
`msg`, `time`) values('0', '$ank[id]', '[url=/info.php?id=$user
[id]]$user[nick][/url] поставил +".intval($_GET['rating'])." в
Вашей анкете', '$time')" I X
12 msg('Вы успешно проголосовали за пользователя '); I
X
13 } I X
14 I X
15 I X
16 I X
17 /*-----------------------статус
форма-----------------------*/ I X
18 if (isset($user) && isset($_GET['status'])) I X
19 { I X
20 if ($user['id'] == $ank['id']) I X
21 { I X
22 echo '<div class="main">Статус [512 символов]</div>';
I X
23 echo '<form action="/info.php?id=' . $ank['id'] . '"
method="post">'; I X
24 echo "$tPanel<textarea type="text" style='' name=
"status" value=""/></textarea><br /> "; I X
25 echo "<input class="submit" style='' type="submit"
value="Установить" />"; I X
26 echo " <a href='/info.php?id=$ank[id]'>Отмена</a><br /
>"; I X
27 echo "</form>"; I X
28 include_once 'sys/inc/tfoot.php'; I X
29 exit; I X
30 } I X
31 } I X
32 I X
33 I X
34 I X
35 I X
36 I X
37 I X
38 if ($ank['group_access']>1)echo "<div class='err'>$ank
[group_name]</div>"; I X
39 I X
40 include_once 'user/cvet/db.php'; I X
41 echo "<div style='position:relative;'>"; I X
42 I X
43 include 'info_avatar1.php'; I X
44 I X
45 I X
46 I X
47 I X
48 // Аватар I X
49 echo "<div class='nav2'>"; I X
50 I X
51 ?><div style='position:relative;display:inline-block;'><?
I X
52 I X
53 echo avatar($ank['id'], true, 128, false); I X
54 I X
55 include_once 'user/cvet/css/style.php'; I X
56 $zn=mysql_fetch_array(mysql_query("SELECT * FROM
`zna4ki_pok` WHERE `id_user` = '$ank[id]' AND `time` >
'$time' LIMIT 1"); I X
57 if ($zn['time'] >= $time)echo "<img
style='position:absolute;bottom: -10px; right: -25%;' src='/
user/zna4ki/zna/$zn[id_zn].png'>"; I X
58 I X
59 I X
60 I X
61 I X
62 I X
63 I X
64 $ava_q=mysql_query("SELECT * FROM `ava` WHERE
`id_ank` = $ank[id]" I X
65 while ($ava = mysql_fetch_assoc($ava_q)) I X
66 { I X
67 if ($ava['time']>=$time) I X
68 echo '<img style="position:absolute;top:'.$ava
['top'].'px;left:'.$ava['left'].'px;" src="/otp/'.$ava
['otp'].'.png">'; I X
69 } I X
70 echo "</div>"; I X
71 I X