<?php

	(key_exists('search', $_GET) && $_GET['search']<>'') ? $search = $_GET['search'] : $search = '';
	(key_exists('gender', $_GET) && $_GET['gender']<>'') ? $gender = $_GET['gender'] : $gender = 3;
	(key_exists('online', $_GET) && $_GET['online']<>'') ? $online = $_GET['online'] : $online = '0';
	(key_exists('icq', $_GET) && $_GET['icq']<>'') ? $icq = $_GET['icq'] : $icq = '0';
	(key_exists('msn', $_GET) && $_GET['msn']<>'') ? $msn = $_GET['msn'] : $msn = '0';
	
	$genders = array
	(
		3 => 'nezáleží',
		0 => 'mužské',
		1 => 'ženské'
		
	);
?>
  <div id="menu03">
    <div id="menu01_head">:: hľadaj</div>
    <div id="menu01_item">
	    <form name="search_form" action="index.php" method="get" style="margin: 0; margin-top: 2px; margin-bottom: 2px;">
	      <span id="users_search">Meno:</span>
	      <input type="hidden" name="module" value="users" />
	      <input type="hidden" name="action" value="search" />
	      <input id="form_field01" type="text" name="search" size="15" maxlength="30" value="<?php echo $search ?>" /><br />
	      <span id="users_search">Pohlavie:</span>
	      <select id="form_field01" name="gender" style="width: 86px; border: 0px;">
	      <?php
	        foreach ($genders as $k => $v)
	        {
	        	echo "<option value=\"$k\"";
	        	if ($k==$gender) echo " selected=\"selected\"";
	        	echo ">$v</option>";
	        }
	      ?>
	      </select><br />
	      <input type="checkbox" name="online" value="1" style="color: #930306; padding-top: 2px;" <?php if($online==1) echo " checked=\"checked\""; ?> />Iba online<br />	
	      <input type="checkbox" name="icq" value="1" style="color: #930306; padding-top: 2px;" <?php if($icq==1) echo " checked=\"checked\""; ?> />ICQ<br />	
	      <input type="checkbox" name="msn" value="1" style="color: #930306; padding-top: 2px;" <?php if($msn==1) echo " checked=\"checked\""; ?> />MSN<br />	
	      <input id="form_button01" type="submit" name="Submit" value="OK" /><br /> 
	  
	    </form>
    </div>
  </div>
  
  <div id="menu03">
    <div id="menu01_head">:: reklama</div>
    <div id="news_item">
     <script type="text/javascript"><!--
		google_ad_client = "pub-4917301309934013";
		//120x600, bola vytvorená 14.1.2008
		google_ad_slot = "2443565869";
		google_ad_width = 120;
		google_ad_height = 600;
		//--></script>
		<script type="text/javascript"
		src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
		</script>
    </div>
  </div>
  

