File size: 2.14Kb
<?
session_start();
include ("header.php");
$data=date("YmdHi");
$data4=date("Ymd");
$ref=rand(100000,1000000);
if (empty($go)){
echo $div["header"];
echo "Поиск пользователя: <br/>";
echo $div["end"];
if ($_SESSION['wap']=="xml")
{
echo "<form action=\"search.php?go=search&".session_name()."=".session_id()."\" method=\"post\">";
echo "<div>";
echo "<input type=\"text\" name=\"user\" title=\"Text\"/><br/>";
echo "<input class=\"ibutton\" type=\"submit\" value=\"Поиск\"/>";
echo "</div>";
echo "</form>";
}
else
{
echo "</small><input name=\"user\" title=\"Text\"/><br/><small>";
echo "<anchor title=\"send\">Поиск<go href=\"search.php?go=search&".session_name()."=".session_id()."\" method=\"post\">";
echo "<postfield name=\"user\" value=\"$(user)\"/>";
echo "</go></anchor><br/>";
}
echo $div["div"];
echo "-<br/>";
echo $div["end"];
}
else
{
$qi = mysql_query("select `login` from `users` where `login` like '%$user%' order by login;");
$i=mysql_num_rows($qi);
echo $div["header"];
echo "Найденно: $i<br/>";
echo $div["end"];
echo $div["div"];
if (mysql_affected_rows()!=0)
{
while ($row=mysql_fetch_array($qi))
{
$find_users=$row['login'];
echo "[<a href=\"anketa.php?user=$find_users&".session_name()."=".session_id()."\">$find_users</a>]<br/>";
}
}
echo "-<br/>";
echo "[<a href=\"search.php?".session_name()."=".session_id()."\">Назад в поиск</a>]<br/>";
echo "-<br/>";
echo $div["end"];
}
echo $div["div"];
echo "[<a href=\"index.php?".session_name()."=".session_id()."\">Форумы</a>]<br/>";
echo "-<br/>";
echo $div["end"];
include ("footer.php");
?>