File size: 1.05Kb
<?
require_once '../core/system.php';
echo only_reg();
echo ban();
$header = 'Поиск кланов';
require_once '../core/head.php';
mysql_query("UPDATE `user` set `mesto` = 'Поиск кланов' where `id` = '".$user['id']."'");
echo'<div class="player"><form action="?rez" method="post">Введите название:<br/>
<input type="text" class="text-area" name="name"/><input class="inpc-ar form-submit" type="submit" value="Искать"/></form></div>';
if(isset($_GET['rez'])){
$nick2 = check($_POST['name']);
$name = mysql_fetch_array(mysql_query("SELECT * from `clan` where `name` = '".$nick2."' "));
if(empty($name['name'])){
echo'<div class="line"></div><div class="foot">Клан не найден</div>';
}else{
echo '<div class="line"></div><div class="but-list" style = "color: #d3e2ed;"><a href="/clan/?id='.$name['id'].'">';
echo online($name['id']);
echo ' '.$name['name'].' <span class="float-right"><img src="/images/icon/rating_'.$name[plem].'.png"> '.$name['rating'].'</span></a> ';
echo "</div>";
}
}
require_once '../core/foot.php';
?>