Размер файла: 5.11Kb
<?
header("Cache-Control: no-cache");
require "consts.php";
require "incl.php";
$agent=$HTTP_USER_AGENT;
$conn=mysql_connect(my_host, my_user, my_password);
mysql_select_db(my_db, $conn);
if(isset($HTTP_GET_VARS['UIN']))
{
$UIN=$HTTP_GET_VARS['UIN'];
}
else
{
$UIN="Guest";
}
if(isset($HTTP_GET_VARS['pass']))
{
$pass=$HTTP_GET_VARS['pass'];
}
else
{
$pass="Guest";
}
$sql="select name, pass from users where id='$UIN'";
$result=mysql_query($sql);
$row=mysql_fetch_object($result);
$fon_color=$row->fon_color;
$font_color=$row->font_color;
$link_color=$row->link_color;
$nick=$row->nick;
$name=$row->name;
if ($row->pass!=$pass)
{
$UIN="Guest";
}
if ($UIN==0)
{
$UIN="Guest";
}
header("Content-Type: text/vnd.wap.wml; charset=utf-8");
echo '<?xml version="1.0" encoding="utf-8"?>';
?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"
"http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<card id="find" title="Поиск">
<do name="a1" type="options" label="Назад"><go href="index.php?UIN=<?=$UIN?>&pass=<?=$pass?>"/></do>
<p align="left">
Оставьте поля пустыми чтобы просмотреть подряд все анкеты <br/>
<br/>
Введите параметры: <br/>
Кто:<br/>
<select name="sex">
<option value="1">Парень</option>
<option value="2">Девушка</option>
</select><br/>
<?
if (($co=="") and ($ct==""))
{
?>
Откуда:
<a href="country2.php?UIN=<?=$UIN?>&pass=<?=$pass?>">[Выбрать]</a><br/>
<?
}
else
{
$sql="select * from country where id='$co' order by id";
$res=mysql_query($sql);
$row2=mysql_fetch_object($res);
$country=translate($row2->name);
$sql="select * from city where id='$ct' order by id";
$res2=mysql_query($sql);
$row3=mysql_fetch_object($res2);
$city=translate($row3->name);
?>
Страна:<br/>
<?=$country?><br/>
Город:<br/>
<?=$city?><br/>
<a href="country2.php?UIN=<?=$UIN?>&pass=<?=$pass?>">[Изменить]</a><br/>
<?
}
?>
<select name="hair_color">
<?
$sql="select * from hair_color order by name";
$res=mysql_query($sql);
while ($row=mysql_fetch_object($res))
{
$row->name=translate($row->name);
?>
<option value="<?=$row->id?>"><?=$row->name?></option>
<?
}
?>
<option value="0">Нет в списке</option>
</select><br/>
<select name="iye_color">
<?
$sql="select * from iye_color order by name";
$res=mysql_query($sql);
while ($row=mysql_fetch_object($res))
{
$row->name=translate($row->name);
?>
<option value="<?=$row->id?>"><?=$row->name?></option>
<?
}
?>
<option value="0">Нет в списке</option>
</select><br/>
Возраст:<br/>
От<br/>
<input type="text" title="Возраст" value="" maxlength="2" format="NN" name="age1" emptyok="true"/><br/>
До<br/>
<input type="text" title="Возраст" value="" maxlength="2" format="NN" name="age2" emptyok="true"/><br/>
Рост:<br/>
От<br/>
<input type="text" title="Рост" value="" maxlength="3" format="NNN" name="rost1" emptyok="true"/><br/>
До<br/>
<input type="text" title="Рост" value="" maxlength="3" format="NNN" name="rost2" emptyok="true"/><br/>
<anchor title="Поиск">[Поиск]
<go method="post" href="finduser.php?UIN=<?=$UIN?>&pass=<?=$pass?>">
<postfield name="data5" value="$(from)"/>
<postfield name="data71" value="$(age1)"/>
<postfield name="data72" value="$(age2)"/>
<postfield name="data8" value="$(email)"/>
<postfield name="data10" value="$(mops)"/>
<postfield name="data151" value="$(rost1)"/>
<postfield name="data152" value="$(rost2)"/>
<postfield name="data16" value="$(ves)"/>
<postfield name="data17" value="$(iye_color)"/>
<postfield name="data18" value="$(hair_color)"/>
<postfield name="sex" value="$(sex)"/>
<postfield name="country" value="<?=$co?>"/>
<?
if ($ct!=0)
{
?>
<postfield name="city" value="<?=$ct?>"/>
<?
}
<postfield name="hair_color" value="<?=$hair_color?>"/>
<postfield name="iye_color" value="<?=$iye_color?>"/>
?>
<postfield name="nick" value="$(name)"/>
</go>
</anchor>
<?
end_page(1);
?>
</p>
</card>
</wml>