Файл: vsime.com/system/start/anketa.php
Строк: 58
<?
if (isset($start_page))
{
echo "<div class='list'>n";
if (isset($settings))
{
echo "<span class='right'>n";
echo "<a href='?act=start&up=$post[id]&mdp=$mdp'>$config[code_up]</a> <a href='?act=start&down=$post[id]&mdp=$mdp'>$config[code_down]</a> <a href='?act=start&delete=$post[id]'>$config[code_delete]</a> <a href='?act=start&edit=$post[id]'>$config[code_edit]</a>n";
echo "</span>n";
}
echo "<img src='/i/site/anketa.png' /> <a href='/anketa/?id=$user[id]'>Анкета</a><br />n";
if (isset($settings))
{
$count = mysqli_result("SELECT COUNT(*) FROM `start_user` WHERE `id_start` = '$post[id]'");
if ($count > 0)echo "<span style='font-size: 11px;'>Стоит у ".sklon_text($count, array('человека','человек','человек'))."<br />n";
}
echo "</div>n";
} elseif (isset($submited)) {
} elseif (isset($settings_user)) {
echo "<div class='$div'>n";
if ($div=='list')
{
echo "<span class='right'>n";
echo "<a href='?act=settings&add=$post[id]&mdp=$mdp'>$config[code_add]</a>n";
echo "</span>n";
}
echo "<img src='/i/site/anketa.png' /> Ваша анкета<br />n";
echo "</div>n";
} elseif (isset($add)) {
mysqli_query($dbi, "INSERT INTO `start_user` SET `id_user` = '$user[id]', `id_start` = '$start[id]', `pos` = '$pos'");
} else {
echo "<div class='list'>n";
echo "<span class='right'>n";
echo "<a href='?act=settings&up=$post[id]&mdp=$mdp'>$config[code_up]</a> <a href='?act=settings&down=$post[id]&mdp=$mdp'>$config[code_down]</a> <a href='?act=settings&delete=$post[id]&mdp=$mdp'>$config[code_delete]</a>n";
echo "</span>n";
echo "<img src='/i/site/anketa.png' /> Ваша анкета<br />n";
echo "</div>n";
}
?>