$ar = $Item->confirm_market($is_clan_town); } else { if (isset($_POST['cena'])) { $cena = (double) $_POST['cena']; if (!isset($_POST['colitems'])) { $kol = 1; } else { // Проверка на максимум пачки внутри $Item->sell_market $kol = (int) $_POST['colitems']; } if ($is_clan_town > 0) { $ar = $Item->sell_market($town, $cena, 0, 0, 0, $kol, 0); $Item->setOpis($_POST['opis']); } else { $ar = $Item->sell_market($town, $cena, 0, 0, 0, $kol); $Item->delOpis(); } } echo '<meta http-equiv="refresh" content="3;url=town.php?option=' . $option . '">'; } } else { echo 'Все места на рынке для продажи заняты!'; } echo '<br><input type="button" value="Выйти" onClick=location.replace("town.php?option=' . $option . '")>'; break; case 'confirmres': if (!isset($_POST['sell'])) { echo '<form action="" method="post">'; $it = (int) $_GET['it']; $sel = myquery("select * from craft_resource_user where id='{$it}' and user_id='{$user_id}'"); while ($items = mysql_fetch_array($sel)) {