<?php
require_once ("includes/arrays.inc.php");
//echo"<pre>";print_r($_SESSION);echo"</pre>";
$user_gender	= (isset($_SESSION['gender_search'])&&$_SESSION['gender_search']<>"")	?	$_SESSION['gender_search']	:	"Male";
$age_from		= (isset($_SESSION['agefrom'])&&$_SESSION['agefrom']<>"")	?	$_SESSION['agefrom']		:	"18";
$age_to			= (isset($_SESSION['ageto'])&&$_SESSION['ageto']<>"")	?	$_SESSION['ageto']		:$age_from	+ 22;


$steps	= isset($_SESSION['steps'])	?	$_SESSION['steps']	:	"1";
if ($steps > 2) 
{
?>
<table width="100%"  border="0" cellspacing="0" cellpadding="3">
          <tr>
            <td class="box11"><table width="100%"  border="0" cellspacing="0" cellpadding="5">
                <tr>
                  <td class="headings">Menu</td>
                </tr>
              </table>
                <table width="100%"  border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td><table width="100%"  border="0" cellspacing="0" cellpadding="0">
                      <tr>
                        <td class="box1"><table width="100%"  border="0" cellspacing="0" cellpadding="0">
                          <tr>
                            <td><div class="body1">
                                <div id="menu">
                                  <ul>
									<?php if ($steps > 2) 
									{ 
									?>
										<li><a href="register.php?step=2">My Basics</a></li>
									<?php 
									}//end 2nd if
									if ($steps > 3) 
									{ 
									?>
										<li><a href="register.php?step=3">My Appearence </a></li>
									<?php 
									}//end 3rd if
									if ($steps > 4) 
									{ 
									?>
										<li><a href="register.php?step=4">My Interests</a></li>
									<?php 
									}//end 4th if
									if ($steps > 5) 
									{ 
									?>
										<li><a href="register.php?step=5">My Lifestyle</a></li>
									<?php 
									}//end 5th if
									if ($steps > 6) 
									{ 
									?>
										<li><a href="register.php?step=6">My Outlook</a></li>
									<?php 
									}//end 6th if
									if ($steps > 7) 
									{ 
									?>
										<li><a href="register.php?step=7">My Intro</a></li>
									<?php 
									}//end 7th if
									?>
                                  </ul>
                                </div>
                            </div></td>
                          </tr>
                        </table></td>
                      </tr>
                    </table></td>
                  </tr>
              </table></td>
          </tr>
        </table>
<?php }//end first if ?>
          <table width="100%"  border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td><img src="images/spacer.gif" width="1" height="10"></td>
            </tr>
          </table>
<div class="box-ryt">
					<div class="box-ryt-top">&nbsp;</div>
					<div class="box-ryt-mid">		  
          <table width="100%"  border="0" cellspacing="0" cellpadding="3">
          <tr>
            <td class=""><table width="100%"  border="0" cellspacing="0" cellpadding="5">
                <tr>
                  <td class="headings"><h5>Search Partner</h5> </td>
                </tr>
              </table>
                <table width="100%"  border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td><table width="100%"  border="0" cellspacing="0" cellpadding="0">
                      <tr>
                        <td><img src="images/spacer.gif" width="1" height="10"></td>
                      </tr>
                    </table></td>
                  </tr>
                  <tr>
                    <td><table width="100%"  border="0" cellspacing="0" cellpadding="0">
                        <tr>
                          <td valign="top" class="box1"><table width="100%"  border="0" cellspacing="0" cellpadding="3">
								<form name="frmSearch" method="post" action="search_profiles.php">
                                <tr>
                                  <td width="49%" align="left" class="maintextCopy bx-txt-sz">I am a </td>
                                  <td width="51%" align="left"><select name="vSG" class="select-mini">
                                      <option value="Female" <?php echo ($user_gender=="Female") ? "selected" : ""?>>Man looking for a Woman</option>
                                      <option value="Male" <?php echo ($user_gender=="Male") ? "selected" : ""?>>Woman looking for a Man</option>
                                   </select></td>
                                </tr>
                                <tr>
                                  <td align="left" class="maintextCopy bx-txt-sz">Who is from</td>
                                  <td align="left"><select name="vSAF" class="select-small">
                                    <?php foreach ($arrPartnerAgeFrom as $key => $value) 
										  { 
									?>
                            					<option value="<?php echo $value;?>" <?php echo $age_from==$value?"selected":""?>><?php echo $value;?></option>
                            		<?php }//end foreach ?>
                                    </select> 
                                     &nbsp; to &nbsp; 
									<select name="vSAT" class="select-small">
                                    <?php foreach ($arrPartnerAgeFrom as $key => $value) 
										  { 
									?>
                            					<option value="<?php echo $value;?>" <?php echo $age_to==$value?"selected":""?>><?php echo $value;?></option>
                            		<?php }//end foreach ?>
                                    </select></td>
                                </tr>
                                <tr>
                                  <td align="left" class="maintextCopy"></td>
                                  <td align="left"><input type="checkbox" name="vSP" value="Y">Who has a photo </td>
                                </tr>
                                <tr>
                                  <td align="right">&nbsp;</td>
                                  <td class="log-btn"><input type="hidden" name="SearchNow" value=" Search "><input name="imageField" type="submit" class="search-sml-btn" value=""></td>
                                </tr>
							</form>
                            </table></td>
                        </tr>
                    </table></td>
                  </tr>
              </table></td>
          </tr>
        </table>
</div>
					<div class="box-ryt-btm">&nbsp;</div>
				
				</div>
