<?php
include("includes/site_info.php");
include('session_handler.inc');

$WUserID = $_SESSION['Sess_UserId'];
$WUserType = $_SESSION['Sess_UserType'];
$WUserLastVisit = $_SESSION['Sess_LastVisit'];
$WUsername = $_SESSION['Sess_UserName'];
$result=mysql_query("SELECT * FROM members LEFT JOIN adverts ON (mem_userid=adv_userid) WHERE mem_userid=$WUserID",$link);
$sql_array = mysql_fetch_object($result);


?>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="white_back_t_xb p5">
                  <tr>
                    <td colspan="2" class="grey_12 orange_row_back solid_line_separator">
                      <div style="background-color:#0000FF; width:10px; height:10px; float:left; margin-top:3px; margin-right:5px;"><img src="images/spacer.gif" width="10" height="10"></div> 
                    Personal Details</td>
  </tr>
                  <tr>
                    <td width="10">&nbsp;</td>
                    <td><table width="100%" border="0" cellspacing="0" cellpadding="5" class="white_back_t_xb p5">
                      <tr>
                        <td valign="baseline">Children</td>
                        <td><strong>
                        <?php
						$moodr=mysql_query("select * from dropvalue where drop_name='children' and drop_active='Y' and drop_id='$sql_array->adv_children'");
						while($rst= mysql_fetch_array($moodr))
						{
						echo $rst["drop_value"];
						}
						?>
                        </strong> </td>
                      </tr>
                      <tr>
                        <td width="150" valign="baseline">Body Type</td>
                        <td>
						  <strong>
						  <?php
						$moodr=mysql_query("select * from dropvalue where drop_name='bodytype' and drop_active='Y' and drop_id='$sql_array->adv_bodytype'");
						while($rst= mysql_fetch_array($moodr))
						{
						echo $rst["drop_value"];
						}
						?>
					      </strong> </td>
                      </tr>
                      <tr>
                        <td valign="baseline">Height</td>
                        <td>
						  <strong>
						  <?php
						$moodr=mysql_query("select * from dropvalue where drop_name='height' and drop_active='Y' and drop_id='$sql_array->adv_height'");
						while($rst= mysql_fetch_array($moodr))
						{
						echo $rst["drop_value"];
						}
						?>
					      </strong> </td>
                      </tr>
                      <tr>
                        <td valign="baseline">Weight</td>
                        <td>
						  <strong>
						  <?php
						$moodr=mysql_query("select * from dropvalue where drop_name='weight' and drop_active='Y' and drop_id='$sql_array->adv_weight'");
						while($rst= mysql_fetch_array($moodr))
						{
						echo $rst["drop_value"];
						}
						?>
					      </strong> </td>
                      </tr>
                      <tr>
                        <td valign="baseline">Eye Color</td>
                        <td>
						  <strong>
						  <?php
						$moodr=mysql_query("select * from dropvalue where drop_name='eyecolor' and drop_active='Y' and drop_id='$sql_array->adv_eyecolor'");
						while($rst= mysql_fetch_array($moodr))
						{
						echo $rst["drop_value"];
						}
						?>
					      </strong> </td>
                      </tr>
                      <tr>
                        <td valign="baseline">Hair Color</td>
                        <td>
						  <strong>
						  <?php
						$moodr=mysql_query("select * from dropvalue where drop_name='haircolor' and drop_active='Y' and drop_id='$sql_array->adv_haircolor'");
						while($rst= mysql_fetch_array($moodr))
						{
						echo $rst["drop_value"];
						}
						?>
					      </strong> </td>
                      </tr>
                      <tr>
                        <td valign="baseline">Smoking Habits</td>
                        <td>
						  <strong>
						  <?php
						$moodr=mysql_query("select * from dropvalue where drop_name='smoker' and drop_active='Y' and drop_id='$sql_array->adv_smoker'");
						while($rst= mysql_fetch_array($moodr))
						{
						echo $rst["drop_value"];
						}
						?>
					      </strong> </td>
                      </tr>
                      <tr>
                        <td valign="baseline">Drinking Habits</td>
                        <td>
						  <strong>
						  <?php
						$moodr=mysql_query("select * from dropvalue where drop_name='drink' and drop_active='Y' and drop_id='$sql_array->adv_drink'");
						while($rst= mysql_fetch_array($moodr))
						{
						echo $rst["drop_value"];
						}
						?>
					      </strong> </td>
                      </tr>
                    </table></td>
                  </tr>
                  <tr>
                    <td>&nbsp;</td>
                    <td>&nbsp;</td>
                  </tr>
                  <tr>
                    <td colspan="2" class="grey_12 orange_row_back solid_line_separator">
                        <div style="background-color:#0000FF; width:10px; height:10px; float:left; margin-top:3px; margin-right:5px;"><img src="images/spacer.gif" width="10" height="10" /></div>
                      Interests / Favorites</td>
                  </tr>
                  <tr>
                    <td>&nbsp;</td>
                    <td><table width="100%" border="0" cellspacing="0" cellpadding="5" class="white_back_t_xb p5">

                      <tr>
                        <td width="150" valign="baseline">Interests</td>
                        <td><strong>
                        <?=$sql_array->adv_interests?>
                        </strong></td>
                      </tr>
                      <tr>
                        <td valign="baseline">Favorite Foods</td>
                        <td><strong>
                        <?=$sql_array->adv_favoritefood?>
                        </strong></td>
                      </tr>
                      <tr>
                        <td valign="baseline">Favorite Sports</td>
                        <td><strong>
                        <?=$sql_array->adv_sports?>
                        </strong></td>
                      </tr>
                      <tr>
                        <td valign="baseline">Favorite Movies</td>
                        <td><strong>
                        <?=$sql_array->adv_movies?>
                        </strong></td>
                      </tr>
                      <tr>
                        <td valign="baseline">Favorite Music</td>
                        <td><strong>
                        <?=$sql_array->adv_music?>
                        </strong></td>
                      </tr>
                      <tr>
                        <td valign="baseline">Favorite Books</td>
                        <td><strong>
                        <?=$sql_array->adv_books?>
                        </strong></td>
                      </tr>
                      <tr>
                        <td valign="baseline">Favorite TV Shows</td>
                        <td><strong>
                        <?=$sql_array->adv_tvshows?>
                        </strong></td>
                      </tr>
                      <tr>
                        <td valign="baseline">Favorite Games </td>
                        <td><strong>
                        <?=$sql_array->adv_games?>
                        </strong></td>
                      </tr>
                      <tr>
                        <td valign="baseline">About Me</td>
                        <td><strong>
                        <?=$sql_array->adv_comment;?>
                        </strong></td>
                      </tr>
                    </table></td>
                  </tr>
                  <tr>
                    <td>&nbsp;</td>
                    <td align="right">&nbsp;</td>
                  </tr>
                  <tr>
                    <td>&nbsp;</td>
                    <td align="right"><input name="Button" type="button" class="button" value="Edit Changes" onclick="callpage('profile_personal')"/></td>
                  </tr>
                  <tr>
                    <td>&nbsp;</td>
                    <td>&nbsp;</td>
                  </tr>
</table>