File size: 6.18Kb
<?php
/**********************************************/
/* Автор скрипта: Александр Есин */
/* E-Mail: [email protected] ([email protected]) */
/* ICQ: 6464729 */
/* Site: http://ticlove.ru */
/**********************************************/
?>
<?php if (!defined('SECURED')) die("SORRY! Unknown Error!"); ?>
<form method="post" action="http://<?php echo $_SERVER['HTTP_HOST']; ?>/search/">
<input type="hidden" name="action" value="1" />
<div class="tit_zag">Поиск анкет</div>
<div class="clear"></div>
<div class="tit_zag_hr"></div>
<div class="search">
<div class="left">
<div class="left" style="padding-right: 5px; padding-top: 2px;">Я</div>
<div class="left" style="padding-right: 10px;">
<select class="select" name="ya">
<?php for ($i = 0; $i < 3; $i++) {
$ya = array('не важно', 'парень', 'девушка');
?>
<option value="<?php echo $i; ?>"><?php echo $ya[$i]; ?></option>
<?php } ?>
</select>
</div>
<div class="left" style="padding-right: 5px; padding-top: 2px;">Ищу</div>
<div class="left" style="padding-right: 10px;">
<select class="select" name="ya_search">
<?php for ($i = 0; $i < 3; $i++) {
$search = array('не важно', 'парня', 'девушку');
?>
<option value="<?php echo $i; ?>"><?php echo $search[$i]; ?></option>
<?php } ?>
</select>
</div>
<div class="left" style="padding-right: 5px; padding-top: 2px;">Возраст от</div>
<div class="left">
<select class="select" name="ot">
<option value="0"></option>
<?php for ($i = VOZRAST_OGR; $i < 100; $i++) { ?>
<option value="<?php echo $i; ?>"><?php echo $i; ?></option>
<?php } ?>
</select>
</div>
<div class="left" style="padding-left: 5px; padding-right: 5px; padding-top: 2px;">до</div>
<div class="left" style="padding-right: 10px;">
<select class="select" name="do">
<option value="0"></option>
<?php for ($i = VOZRAST_OGR; $i < 100; $i++) { ?>
<option value="<?php echo $i; ?>"><?php echo $i; ?></option>
<?php } ?>
</select>
</div>
<div class="clear"></div>
<div class="left">
<div style="padding-top: 10px;">
<div class="left" style="padding-right: 5px; padding-top: 2px; width: 50px;">Страна</div>
<div class="left">
<select class="select" style="width:200px;" id="sel_country" name="sel_country" onchange="javascript:select_region()">
<option value="">-- Выберите страну --</option>
<?php $res = mysql_query("SELECT * FROM `q_country` ORDER BY `name_country` ASC;"); ?>
<?php while ($row = mysql_fetch_assoc($res)) { ?>
<option value="<?php echo $row['id_country']; ?>"><?php echo htmlspecialchars($row['name_country'], ENT_QUOTES); ?></option>
<?php } ?>
</select>
</div>
<div class="clear"></div>
<div style="padding-top: 11px;">
<div class="left" style="padding-right: 5px; padding-top: 2px; width: 50px;">Регион</div>
<div class="left">
<div id="select_region">
<select class="select" style="width:200px;" id="sel_region" name="sel_region" disabled="disabled">
<option value="">-- Выберите регион --</option>
</select>
</div>
</div>
</div>
<div class="clear"></div>
<div style="padding-top: 11px;">
<div class="left" style="padding-right: 5px; padding-top: 2px; width: 50px;">Город</div>
<div class="left">
<div id="select_city">
<select class="select" style="width:200px;" id="sel_city" name="sel_city" disabled="disabled">
<option value="">-- Выберите город --</option>
</select>
</div>
</div>
</div>
<div class="clear"></div>
</div>
</div>
<div class="left" style="padding-top: 10px; padding-left: 10px;">
<div class="left" style="padding-right: 5px; padding-top: 1px;"><input type="checkbox" id="photo" name="photo" value="1" /></div><div class="left"><label for="photo">с фотографией</label></div>
<div class="clear"></div>
<div class="left" style="padding-right: 5px; padding-top: 1px;"><input type="checkbox" id="online" name="online" value="1" /></div><div class="left"><label for="online">сейчас на сайте</label></div>
<div class="clear"></div>
<div class="left" style="padding-right: 5px; padding-top: 1px;"><input type="checkbox" id="new" name="new" value="1" /></div><div class="left"><label for="new">новые</label></div>
<div class="clear"></div>
<div class="left" style="padding-right: 5px; padding-top: 1px;"><input type="checkbox" id="dr" name="dr" value="1" /></div><div class="left"><label for="dr">день рождения</label></div>
<div class="clear"></div>
<div class="left" style="padding-right: 5px; padding-top: 1px;"><input type="checkbox" id="vip" name="vip" value="1" /></div><div class="left"><label for="vip">только VIP</label></div>
<div class="clear"></div>
</div>
</div>
<div class="left" style="padding-left: 10px; padding-top: 35px;">
<input type="image" style="border: 0; cursor: pointer;" src="http://<?php echo $_SERVER['HTTP_HOST']; ?>/images/qsearch_bg.gif" value="Найти" />
</div>
<div class="clear"></div>
<div id="expanded_search">
<div style="padding-top: 10px;">
<div class="left" style="padding-right: 5px; padding-top: 2px; width: 50px;"></div>
<div class="left">
</div>
<div class="clear"></div>
</div>
</div>
</div>
<div class="clear"></div>
<div style="text-align: center; padding-top: 10px;"><a id="exp_search" style="border-bottom: 1px dotted #aa44aa; color: #aa44aa; text-decoration: none; font-size: 14px;" href="javascript:void(0)">Расширенный поиск</a><br/>
<a id="ob_search" style="border-bottom: 1px dotted #aa44aa; color: #aa44aa; text-decoration: none; font-size: 14px;" href="javascript:void(0)">Обычный поиск</a></div>
<script type="text/javascript">
$('#expanded_search').hide(0);
$('#ob_search').hide(0);
$(document).ready(function() {
$('#exp_search').click(function() {
$('#expanded_search').slideToggle(400);
$('#exp_search').hide(0);
$('#ob_search').show(0);
});
$('#ob_search').click(function() {
$('#expanded_search').slideToggle(400);
$('#exp_search').show(0);
$('#ob_search').hide(0);
});
});
</script>
</form>