<?php 

/*
##################################################################
#                       PHP 4&5 MySQL 4&5                        #
##################################################################
#           Copyright (c) 2004-2008 Armia Systems Inc            #
##################################################################
#               This file is part of Cybermatch site             #
##################################################################
#    Developed By: simi (simi@armia.com)                         #
##################################################################
#               Developed On:   03-04-2008                       #
##################################################################
#               Modified By:                                     #
##################################################################
#               Modified On:                                     #
##################################################################
# This script may not be distributed, sold, given away for free  #
# to third party, or used as a part of any internet services 	 #
# such as webdesign etc.                                         #
##################################################################
*/

require_once ("../config.inc.php");
require_once ("../includes/adminlogincheck.inc.php");
require_once ("../includes/mysql.inc.php");
require_once ("../includes/arrays.inc.php");
require_once ("../classes/userside.class.php");
require_once ("../classes/misc.class.php");

$message = "";

$script = "";

$arrImages = array();
$id = isset($_REQUEST['id']) ? trim($_REQUEST['id']) : "0";
$page		= isset($_REQUEST['page'])	?	trim($_REQUEST['page'])	:	"1";

if (!$objDB) {

    $message = "Unable to Locate Database Server.";
} else {
    if (isset($_POST['BackNow'])) {

        if ($message == "") {
            header("Location: users.php?page=$page");
            exit;
        }
    }


    $objU = new userside($objDB);
    $objU1 = new userside($objDB);
    $objM = new misc($objDB);
    $array = $objU->select($id);

    $objU->set_values($array);
    $array1 = $objU1->selectpartner($id);

    $objU1->set_values($array1);
    $arrImages = $objU->get_user_images($id);

    $script = $objM->get_script($message);
    $message = $objM->remove_script($message);
}



//checking any one of field is active in step3

$sql_fld = mysql_query("select * from " . TABLEPREFIX . "SignUpField Where vActive='1' and nSId IN('1','2','3','4','5')") or die(mysql_error());
if (mysql_num_rows($sql_fld) > 0) {
    //storing value for checking array
    $Appearance_check = array($objU->tmy_looks_today, $objU->tmy_likes_onanyday, $objU->tmy_dislikes_onanyday, $objU->tmy_personality, $objU->tmy_mood_today);
    //removing nul value
    foreach ($Appearance_check as $val) {
        if (!empty($val)) {
            $Appearance[].=$val;
        }//end if
    }//end else
}


//checking any one of field is active in step4

$sql_fld = mysql_query("select * from " . TABLEPREFIX . "SignUpField Where vActive='1' and nSId IN('6','7','8','9','10','11',
                                                                '12','13','14','15','16')") or die(mysql_error());

if (mysql_num_rows($sql_fld) > 0) {
    $Interest_check = array($objU->tmy_music, $objU->tmy_movies, $objU->tmy_tv, $objU->tmy_sports_watch, $objU->tmy_sports_play, $objU->tmy_travel_going, $objU->tmy_travel_been, $objU->tmy_arts_culture_events, $objU->tmy_poison_place, $objU->tmy_politics, $objU->tmy_major_world_issue, $objU->tmy_perfect_mate);
    //removing nul value
    foreach ($Interest_check as $val) {
        if (!empty($val)) {
            $Interest[].=$val;
        }//end if
    }//end else
}
//checking any one of field is active in step5
$sql_fld = mysql_query("select * from " . TABLEPREFIX . "SignUpField Where vActive='1' and nSId IN('17','18','19','20','21',
            		'22','23')") or die(mysql_error());
if (mysql_num_rows($sql_fld) > 0) {

    $Lifestyle_check = array($objU->taday_in_my_life, $objU->vmy_night_life_out, $objU->vmy_night_life_in, $objU->tmy_food, $objU->tmy_money, $objU->tmy_last_restaurant, $objU->tmy_charity);

    //removing nul value

    foreach ($Lifestyle_check as $val) {
        if (!empty($val)) {
            $Lifestyle[].=$val;
        }//end if
    }//end else
}


include_once ("title.inc.php");
include_once ("tophtml.php");

?>

<!--<script type="text/javascript" src="../js/prototype.js"></script>
<script type="text/javascript" src="../js/scriptaculous.js?load=effects"></script>-->

<!--<script type="text/javascript" src="../js/lightbox.js"></script>

<link rel="stylesheet" href="../styles/lightbox.css" type="text/css" media="screen" />-->
<link href="../js/facebox.css" media="screen" rel="stylesheet" type="text/css"/>
<script src="../js/facebox_admin.js" type="text/javascript"></script>

<SCRIPT language="javaScript" type="text/javascript">

    var img_loc = '../<?php echo PROFILE_IMAGE_URL."/"?>';

    function movepic(img_src,bimg_src,cnt) {
        //alert(cnt);
        document["profileimage"].src=img_loc+img_src;

        document.getElementById('profileimagea').href=img_loc+bimg_src;
        jQuery('.jcls').css('color','grey');
        jQuery('#ci_'+cnt).css('color','black');

    }
    jQuery(document).ready(function($) {
        $('a[rel*=facebox]').facebox()
    })

</SCRIPT>

<table width="100%"  border="0" cellspacing="0" cellpadding="0">
    <tr>
        <td valign="top" class="white"><table width="100%"  border="0" cellspacing="0" cellpadding="0">
                <tr>
                    <td width="72%" valign="top"><table width="100%"  border="0" cellspacing="0" cellpadding="5">
                            <tr>
                                <td><!--shwo msg -->
                                    <?php //echo"<pre>";print_r($_SESSION);echo"</pre>";?>
                                    <?php
                                    if (isset($message) && $message != '') {
                                        ?>

                                    <table width="100%"  border="0" cellspacing="0" cellpadding="0">

                                        <tr>

                                            <td><table width="100%"  border="0" cellspacing="0" cellpadding="0">

                                                    <tr>

                                                        <td width="39%" align="center" class="maintext warning"><?php echo $message ?></td>

                                                    </tr>

                                                </table></td>

                                        </tr>

                                    </table>

                                        <?php
                                    }//end if
                                    ?>

                                    <!--show msg end -->

                                    <!--show exprd msg -->

                                    <?php if ($objU->is_expired($id)) { ?>

                                    <table width="100%"  border="0" cellspacing="0" cellpadding="0">

                                        <tr>

                                            <td><table width="100%"  border="0" cellspacing="0" cellpadding="0">

                                                    <tr>

                                                        <td width="39%" align="center" class="maintext warning"><strong>Profile has expired.</strong></td>

                                                    </tr>

                                                </table><form name="form1" method="post" action="<?php echo $objU->SecureUrl(); ?>/admin/pay_now.php?id=<?php echo $id?>&mode=admin">

                                                    <input type="hidden" name="showmsgtype2" value="profile_renew">

                                                    <input type="hidden" name="product" value="2">

                                                    <table width="100%"  border="0" cellspacing="0" cellpadding="0">

                                                        <tr>

                                                            <td align="center" class="maintext">&nbsp;</td>

                                                        </tr>

                                                        <tr>

                                                            <td width="39%" align="center" class="maintext"><input name="SN" type="submit" class="loginbutton" id="RN" value="Renew Now"></td>

                                                        </tr>

                                                    </table>

                                                </form></td>

                                        </tr>

                                    </table>

                                        <?php
                                    }//end if
                                    ?>

                                    <!--show exprd msg end -->

                                    <!--show featured msg -->


                                    <!--show featured msg end -->

                                    <table width="100%"  border="0" cellspacing="0" cellpadding="5">
                                        <tr>
                                            <td height="10">&nbsp;</td>
                                        </tr>

                                        <tr>

                                            <td width="100%" class="headings1">Profile for <?php echo $objU->vLogin ?> </td>

                                            <td width="59%" align="right" class="headings1"><table width="20%"  border="0" cellspacing="0" cellpadding="0">

                                                    <tr align="center">

                                                        <td width="25%"><?php echo $objU->get_bgcheck_image($id,'../images/') ?></td>

                                                        <td width="25%"><?php echo $objU->get_featured_image($id,'../images/') ?></td>

                                                    </tr>

                                                </table>

                                            </td>

                                        </tr>

                                    </table>              
                                    <div class="bordernew padding2">


                                        <table width="100%"  border="0" cellspacing="0" cellpadding="0">

                                            <tr>



                                                <td width="57%" align="left" valign="top"><table width="100%"  border="0" cellspacing="0" cellpadding="10">

                                                        <tr>

                                                            <td><table width="100%"  border="0" cellspacing="0" cellpadding="5">

                                                                    <tr>

                                                                        <td class="headings2">Basic details </td>

                                                                    </tr>

                                                                </table>

                                                                <table width="100%"  border="0" cellspacing="0" cellpadding="5">

                                                                    <tr>

                                                                        <td><table width="100%"  border="0" cellspacing="0" cellpadding="0">

                                                                                <?php //if ($objU->vProfileType == "I" OR $objU->tmy_profile == "") {  ?>
                                                                                <?php if ($objU->vProfileType == "I") { ?>
                                                                                <tr>

                                                                                    <td width="39%" align="left" class="maintext1">Profile Title</td>

                                                                                    <td width="61%" align="left" class="maintext1"><?php echo $objU->vTitle <> "" ? nl2br(htmlspecialchars(stripslashes($objU->vTitle))) : "--" ?></td>

                                                                                </tr>

                                                                                    <?php }//end if ?>

                                                                                <tr>

                                                                                    <td align="left" class="maintext1">Marital Status</td>

                                                                                    <td align="left" class="maintext1"><?php echo $objU->vRealtion_Status <> "" ? $objU->vRealtion_Status : "--" ?></td>

                                                                                </tr>

                                                                                <?php if ($objU->vRealtion_Status <> "Single") { ?>

                                                                                <tr>

                                                                                    <td align="left" class="maintext1">Children</td>

                                                                                    <td align="left" class="maintext1"><?php echo $objU->nChildren <> "" ? $objU->nChildren : "--" ?></td>

                                                                                </tr>

                                                                                    <?php } ?>

                                                                                <tr>

                                                                                    <td align="left" class="maintext1">Height</td>

                                                                                    <td align="left" class="maintext1"><?php echo $objU->vFeet <> "" ? $objU->vFeet . " Ft " . $objU->vInch . " in." : "--" ?></td>

                                                                                </tr>

                                                                                <tr>

                                                                                    <td align="left" class="maintext1">Smoking</td>

                                                                                    <td align="left" class="maintext1"><?php echo $objU->vSmoking <> "" ? $objU->vSmoking : "--" ?></td>

                                                                                </tr>

                                                                                <tr>

                                                                                    <td align="left" class="maintext1">Drinking</td>

                                                                                    <td align="left" class="maintext1"><?php echo $objU->vDrinking <> "" ? $objU->vDrinking : "--" ?></td>

                                                                                </tr>

                                                                                <tr>

                                                                                    <td align="left" class="maintext1">Education</td>

                                                                                    <td align="left" class="maintext1"><?php echo $objU->vEducation <> "" ? $objU->vEducation : "--" ?></td>

                                                                                </tr>

                                                                                <tr>

                                                                                    <td align="left" class="maintext1">Body Type</td>

                                                                                    <td align="left" class="maintext1"><?php echo $objU->vBody_Type <> "" ? $objU->vBody_Type : "--" ?></td>

                                                                                </tr>
                                                                                <tr>

                                                                                    <td align="left" class="maintext1">Ethnicity</td>

                                                                                    <td align="left" class="maintext1"><?php echo $objU->vEthinicity <> "" ? $objU->vEthinicity : "--" ?></td>

                                                                                </tr>

                                                                                <tr>

                                                                                    <td align="left" class="maintext1">Religion</td>

                                                                                    <td align="left" class="maintext1"><?php echo $objU->vReligion <> "" ? $objU->vReligion : "--" ?></td>

                                                                                </tr>

                                                                            </table></td>

                                                                    </tr>

                                                                </table></td>

                                                        </tr>

                                                    </table>

                                                    <table width="100%"  border="0" cellspacing="0" cellpadding="5">

                                                        <tr>

                                                            <td align="right"><table width="19%"  border="0" cellspacing="0" cellpadding="0">

                                      <!--<tr>

                                        <td width="83%" align="center"><a href="my_basics.php" class="editbutton">Edit</a></td>

                                        <td width="17%" align="center">&nbsp;</td>

                                      </tr>-->

                                                                </table></td>

                                                        </tr>

                                                    </table>

                                                </td>
                                                <td width="1%" align="left"><table width="100%"  border="0" cellspacing="0" cellpadding="0">

                                                        <tr>

                                                            <td colspan="2"><img src="../images/login_bkgd_top.gif" width="384" height="12"></td>

                                                        </tr>

                                                        <tr>

                                                            <td colspan="2" class="boxbg"><table width="100%"  border="0" cellspacing="0" cellpadding="0">

                                                                    <tr>

                                                                        <td align="center"><a href="<?php echo $objU->get_full_image('../'.PROFILE_IMAGE_URL, $id, $objU->vGender) ?>" rel="facebox" name="profileimagea" id="profileimagea"><img src="<?php echo $objU->get_display_image('../'.PROFILE_IMAGE_URL, $id, $objU->vGender) ?>" width="250" height="250" border="0" name="profileimage" id="profileimage"></a></td>

                                                                    </tr>

                                                                </table></td>

                                                        </tr>

                                                        <tr>

                                                            <td colspan="2"><img src="../images/login_bkgd_bottom.gif" width="384" height="43"></td>

                                                        </tr>

                                                        <tr>
                                                            <td colspan="2" align="left" valign="top">
                                                                <table cellpadding="0" cellspacing="0">
                                                                    <?php if (!empty($arrImages) AND count($arrImages) > 1) { ?>

                                                                    <tr class="maintext">

                                                                        <td width="14%" align="left"><strong>Photos</strong></td>

                                                                        <td width="86%" align="left"><table width="40%"  border="0" cellspacing="1" cellpadding="0" align="left">

                                                                                <tr align="center" bgcolor="#FFFFFF" class="textbox">

                                                                                        <?php foreach ($arrImages as $k => $v) { ?>

                                                                                    <td><a href="#" class="jcls" id="ci_<?php echo $k+1?>" onClick="movepic('pthumb_<?php echo $v['vUrl'] ?>', '<?php echo $v['vUrl'] ?>','<?php echo $k+1?>')"><?php echo $k + 1 ?></a></td>

                                                                                            <?php }//end foreach  ?>

                                                                                </tr>

                                                                            </table></td>

                                                                    </tr>



                                                                        <?php } ?>

                                                                    <!--
                                                                    <tr class="maintext">

                                                                         <td align="left" colspan="2"><a style="color:#3399FF;text-decoration:none;" href="personality_graph.php?id=<?php //echo trim($id) ?>" class="lightbox" rel="lightbox">

                                                                                 <img src="personality_graph_thumb.php" border="0" >

                                                                                 <br>Click here to enlarge the Profile Graph</a></td>

                                                                     </tr>
                                                                    -->


                                                                </table>

                                                            </td>
                                                        </tr>

                                                    </table></td>
                                            </tr>

                                        </table>

                                        <table width="100%"  border="0" cellspacing="0" cellpadding="5">

                                            <tr>

                                                <td valign="top"><table width="100%"  border="0" cellspacing="0" cellpadding="5">

                                                        <tr>

                                                            <td class="headings2">Primary Information</td>

                                                        </tr>

                                                    </table>

                                                    <table width="57%"  border="0" cellspacing="0" cellpadding="5">

                                                        <tr>

                                                            <td valign="top"><table width="100%"  border="0" cellspacing="0" cellpadding="0">

                                                                    <tr>

                                                                        <td ><table width="100%"  border="0" cellspacing="0" cellpadding="0">

                                                                                <tr>

                                                                                    <td width="45%" align="left" class="maintext1">Gender</td>

                                                                                    <td width="55%" align="left" class="maintext1"><?php echo $objU->vGender <> "" ? $objU->vGender : "--" ?></td>

                                                                                </tr>

                                                                                <tr>
                                                                                    <td align="left" class="maintext1">Date of Birth (mm/dd/yyyy)</td>
                                                                                    <td align="left" class="maintext1"><?php echo $objU->dDob <> "" ? date("m/d/Y", strtotime($objU->dDob)) : "--" ?></td>
                                                                                </tr>

                                                                                <tr>

                                                                                    <td align="left" class="maintext1">Country</td>

                                                                                    <td align="left" class="maintext1"><?php echo $objU->vCountry <> "" ? $objU->vCountry : "--" ?></td>

                                                                                </tr>

                                                                                <tr>

                                                                                    <td align="left" class="maintext1">State</td>

                                                                                    <td align="left" class="maintext1"><?php echo $objU->vState <> "" ? $objU->vState : "--" ?></td>

                                                                                </tr>

                                                                            </table></td>


                                                                    </tr>

                                                                </table><table width="100%"  border="0" cellspacing="0" cellpadding="5">

                                                                    <tr>

                                                                        <td align="right"><table width="10%"  border="0" cellspacing="0" cellpadding="0">
                                                                                <tr>
                                                                                    <td colspan="2">&nbsp;</td>
                                                                                </tr>
                                                  <!--<tr>

                                                    <td width="83%" align="center"><a href="my_primaries.php" class="editbutton">Edit</a></td>

                                                    <td width="17%" align="center">&nbsp;</td>

                                                  </tr>-->

                                                                            </table></td>

                                                                    </tr>

                                                                </table>

                                                            </td>

                                                        </tr>

                                                    </table></td>

                                            </tr>

                                        </table>

                                        <?php
                                        //if any value exist

                                        if (is_array($Appearance) && !empty($Appearance)) {
                                            ?>

                                        <table width="100%"  border="0" cellspacing="0" cellpadding="5">

                                            <tr>

                                                <td><table width="100%"  border="0" cellspacing="0" cellpadding="5">

                                                        <tr>

                                                            <td class="headings2">About <?php echo $objU->vLogin ?>'s Appearance</td>

                                                        </tr>

                                                    </table>

                                                    <table width="57%"  border="0" cellspacing="0" cellpadding="5">

                                                        <tr>

                                                            <td><table width="100%"  border="0" cellspacing="0" cellpadding="0">

                                                                    <tr>

                                                                        <td ><table width="100%"  border="0" cellspacing="0" cellpadding="0">

                                                                                    <?php if ($objU->tmy_looks_today <> "") { ?>

                                                                                <tr>

                                                                                    <td width="45%" align="left" class="maintext1"><strong>My looks today</strong><br>

                                                                                                <?php echo $objU->tmy_looks_today <> "" ? nl2br(htmlspecialchars(stripslashes($objU->tmy_looks_today))) : "--" ?></td>

                                                                                </tr>

                                                                                        <?php }//end if ?>

                                                                                    <?php if ($objU->tmy_likes_onanyday <> "") { ?>

                                                                                <tr>

                                                                                    <td align="left" class="maintext1"><strong>My likes on any day</strong><br>

                                                                                                <?php echo $objU->tmy_likes_onanyday <> "" ? nl2br(htmlspecialchars(stripslashes($objU->tmy_likes_onanyday))) : "--" ?></td>

                                                                                </tr>

                                                                                        <?php }//end if?>

                                                                                    <?php if ($objU->tmy_dislikes_onanyday <> "") { ?>

                                                                                <tr>

                                                                                    <td align="left" class="maintext1"><strong>My dislikes on any day</strong><br>

                                                                                                <?php echo $objU->tmy_dislikes_onanyday <> "" ? nl2br(htmlspecialchars(stripslashes($objU->tmy_dislikes_onanyday))) : "--" ?></td>

                                                                                </tr>

                                                                                        <?php }//end if?>

                                                                                    <?php if ($objU->tmy_personality <> "") { ?>

                                                                                <tr>

                                                                                    <td align="left" class="maintext1"><strong>My personality</strong><br>

                                                                                                <?php echo $objU->tmy_personality <> "" ? nl2br(htmlspecialchars(stripslashes($objU->tmy_personality))) : "--" ?></td>

                                                                                </tr>

                                                                                        <?php }//end if?>

                                                                                    <?php if ($objU->tmy_mood_today <> "") { ?>

                                                                                <tr>

                                                                                    <td align="left" class="maintext1"><strong>My mood today</strong><br>

                                                                                                <?php echo $objU->tmy_mood_today <> "" ? nl2br(htmlspecialchars(stripslashes($objU->tmy_mood_today))) : "--" ?></td>

                                                                                </tr>

                                                                                        <?php }//end if?>



                                                                            </table></td>



                                                                    </tr>

                                                                </table>

                                                                <table width="100%"  border="0" cellspacing="0" cellpadding="5">

                                                                    <tr>

                                                                        <td align="right"><table width="10%"  border="0" cellspacing="0" cellpadding="0">
                                                                                <tr>
                                                                                    <td colspan="2">&nbsp;</td>
                                                                                </tr>
                                                  <!--<tr>

                                                    <td width="83%" align="center"><a href="my_appearence.php" class="editbutton">Edit</a></td>

                                                    <td width="17%" align="center">&nbsp;</td>

                                                  </tr>-->

                                                                            </table></td>

                                                                    </tr>

                                                                </table>

                                                            </td>

                                                        </tr>

                                                    </table></td>

                                            </tr>

                                        </table>

                                            <?php }//end array check; ?>

                                        <?php if (is_array($Interest) && !empty($Interest)) { ?>

                                        <table width="100%"  border="0" cellspacing="0" cellpadding="5">

                                            <tr>

                                                <td><table width="100%"  border="0" cellspacing="0" cellpadding="5">

                                                        <tr>

                                                            <td class="headings2"> <img src="../images/icon-red.gif" width="50" height="35"><?php echo $objU->vLogin ?>'s Interests</td>

                                                        </tr>

                                                    </table>

                                                    <table width="57%"  border="0" cellspacing="0" cellpadding="5">

                                                        <tr>

                                                            <td><table width="100%"  border="0" cellspacing="0" cellpadding="0">
                                                                    <tr>
                                                                        <td>
                                                                            <table width="100%"  border="0" cellspacing="0" cellpadding="0">
                                                                            <?php if ($objU->tmy_music <> "") { ?>
                                                                                <tr>
                                                                                    <td width="45%" align="left" class="maintext1"><strong>Music</strong><br>
                                                                                        <?php echo $objU->tmy_music <> "" ? nl2br(htmlspecialchars(stripslashes($objU->tmy_music))) : "--" ?>
                                                                                    </td>
                                                                                </tr>
                                                                            <?php }//end if ?>
                                                                            <?php if ($objU->tmy_movies <> "") { ?>
                                                                                <tr>
                                                                                    <td align="left" class="maintext1"><strong>Movies</strong><br>
                                                                                        <?php echo $objU->tmy_movies <> "" ? nl2br(htmlspecialchars(stripslashes($objU->tmy_movies))) : "--" ?>
                                                                                    </td>
                                                                                </tr>
                                                                            <?php }//end if?>
                                                                            <?php if ($objU->tmy_tv <> "") { ?>
                                                                                <tr>
                                                                                    <td align="left" class="maintext1"><strong>TV Show</strong><br>
                                                                                        <?php echo $objU->tmy_tv <> "" ? nl2br(htmlspecialchars(stripslashes($objU->tmy_tv))) : "--" ?>
                                                                                    </td>
                                                                                </tr>
                                                                            <?php }//end if?>

                                                                            <?php if ($objU->tmy_sports_play <> "") { ?>
                                                                                <tr>
                                                                                    <td align="left" class="maintext1"><strong>The sports I play</strong><br>
                                                                                        <?php echo $objU->tmy_sports_play <> "" ? nl2br(htmlspecialchars(stripslashes($objU->tmy_sports_play))) : "--" ?>
                                                                                    </td>
                                                                                </tr>
                                                                            <?php }//end if?>
                                                                            <?php if ($objU->tmy_sports_watch <> "") { ?>
                                                                                <tr>
                                                                                    <td align="left" class="maintext1"><strong>The sports I watch</strong><br>
                                                                                        <?php echo $objU->tmy_sports_watch <> "" ? nl2br(htmlspecialchars(stripslashes($objU->tmy_sports_watch))) : "--" ?>
                                                                                    </td>
                                                                                </tr>
                                                                            <?php }//end if?>
                                                                            <?php if ($objU->tmy_travel_been <> "") { ?>
                                                                                <tr>
                                                                                    <td align="left" class="maintext1"><strong>The places I have been</strong><br>
                                                                                        <?php echo $objU->tmy_travel_been <> "" ? nl2br(htmlspecialchars(stripslashes($objU->tmy_travel_been))) : "--" ?>
                                                                                    </td>
                                                                                </tr>
                                                                            <?php }//end if?>
                                                                            <?php if ($objU->tmy_travel_going <> "") { ?>
                                                                                <tr>
                                                                                    <td align="left" class="maintext1"><strong>The places I am going</strong><br>
                                                                                        <?php echo $objU->tmy_travel_going <> "" ? nl2br(htmlspecialchars(stripslashes($objU->tmy_travel_going))) : "--" ?>
                                                                                    </td>
                                                                                </tr>
                                                                            <?php }//end if?>

                                                                            <?php if ($objU->tmy_arts_culture_events <> "") { ?>

                                                                            <tr>

                                                                            <td align="left" class="maintext1"><strong>Arts and Cultural Events</strong><br>

                                                                            <?php echo $objU->tmy_arts_culture_events <> "" ? nl2br(htmlspecialchars(stripslashes($objU->tmy_arts_culture_events))) : "--" ?></td>

                                                                            </tr>

                                                                            <?php }//end if?>

                                                                            <?php if ($objU->tmy_poison_place <> "") { ?>

                                                                            <tr>

                                                                            <td align="left" class="maintext1"><strong>Name your poison and your place</strong><br>

                                                                            <?php echo $objU->tmy_poison_place <> "" ? nl2br(htmlspecialchars(stripslashes($objU->tmy_poison_place))) : "--" ?></td>

                                                                            </tr>

                                                                            <?php }//end if?>

                                                                            <?php if ($objU->tmy_politics <> "") { ?>

                                                                            <tr>

                                                                            <td align="left" class="maintext1"><strong>Did someone say &quot;Politics?&quot;</strong><br>

                                                                            <?php echo $objU->tmy_politics <> "" ? nl2br(htmlspecialchars(stripslashes($objU->tmy_politics))) : "--" ?></td>

                                                                            </tr>

                                                                            <?php }//end if?>

                                                                            <?php if ($objU->tmy_major_world_issue <> "") { ?>

                                                                            <tr>

                                                                                <td align="left" class="maintext1"><strong>Of the major issues in the world, which ones are you the most passionate about?</strong><br>
                                                                                    <?php echo $objU->tmy_major_world_issue <> "" ? nl2br(htmlspecialchars(stripslashes($objU->tmy_major_world_issue))) : "--" ?>
                                                                                </td>
                                                                            </tr>

                                                                            <tr>

                                                                            <td align="left" class="maintext1"><strong>What are you doing about it?</strong>

                                                                            <br><?php echo $objU->tmy_doings_on_major_world_issue <> "" ? nl2br(htmlspecialchars(stripslashes($objU->tmy_doings_on_major_world_issue))) : "--" ?>

                                                                            </td>

                                                                            </tr>

                                                                            <?php }//end if ?>

                                                                            <?php if ($objU->tmy_perfect_mate <> "") { ?>

                                                                            <tr>

                                                                            <td align="left" class="maintext1"><strong>If I could build a guy/girl ?</strong><br>

                                                                            <?php echo $objU->tmy_perfect_mate <> "" ? nl2br(htmlspecialchars(stripslashes($objU->tmy_perfect_mate))) : "--" ?></td>

                                                                            </tr>

                                                                            <?php }//end if?>

                                                                            </table>
                                                                        </td>



                                                                    </tr>

                                                                </table>

                                                                <table width="100%"  border="0" cellspacing="0" cellpadding="5">

                                                                    <tr>

                                                                        <td align="right"><table width="10%"  border="0" cellspacing="0" cellpadding="0">
                                                                                <tr>
                                                                                    <td colspan="2">&nbsp;</td>
                                                                                </tr>
                                                  <!--<tr>

                                                    <td width="83%" align="center"><a href="my_interests.php" class="editbutton">Edit</a></td>

                                                    <td width="17%" align="center">&nbsp;</td>

                                                  </tr>-->

                                                                            </table></td>

                                                                    </tr>

                                                                </table>

                                                            </td>

                                                        </tr>

                                                    </table></td>

                                            </tr>

                                        </table>

                                            <?php }//end if array checking ?>

                                        <?php
                                        //checking value exist

                                        if (is_array($Lifestyle) && !empty($Lifestyle)) {
                                            ?>

                                        <table width="100%"  border="0" cellspacing="0" cellpadding="5">
                                            <tr>

                                                <td><table width="100%"  border="0" cellspacing="0" cellpadding="5">

                                                        <tr>

                                                            <td class="headings2"><?php echo $objU->vLogin ?>'s Lifestyle</td>

                                                        </tr>

                                                    </table>

                                                    <table width="57%"  border="0" cellspacing="0" cellpadding="5">

                                                        <tr>

                                                            <td><table width="100%"  border="0" cellspacing="0" cellpadding="0">

                                                                    <tr>

                                                                        <td ><table width="100%"  border="0" cellspacing="0" cellpadding="0">

                                                                                    <?php if ($objU->taday_in_my_life <> "") { ?>

                                                                                <tr>

                                                                                    <td width="45%" align="left" class="maintext1"><strong>A day in my life</strong><br>

                                                                                        <div align="justify"><?php echo $objU->taday_in_my_life <> "" ? nl2br(htmlspecialchars(stripslashes($objU->taday_in_my_life))) : "--" ?></div></td>

                                                                                </tr>

                                                                                        <?php }//end if?>

                                                                                    <?php if ($objU->vmy_night_life_out <> "" AND $objU->vmy_night_life_in <> "") { ?>

                                                                                <tr>

                                                                                    <td align="left" class="maintext1"><strong>Night Life</strong><br>

                                                                                        <table width="100%"  border="0" cellpadding="5" cellspacing="0" class="maintext">

                                                                                            <tr>

                                                                                                <td valign="top"><strong>Out</strong><br><div align="justify"><?php echo $objU->vmy_night_life_out <> "" ? nl2br(htmlspecialchars(stripslashes($objU->vmy_night_life_out))) : "--" ?></div></td>

                                                                                            </tr>

                                                                                            <tr>

                                                                                                <td valign="top"><div align="justify"><strong>In</strong>

                                                                                                        <br><?php echo $objU->vmy_night_life_in <> "" ? nl2br(htmlspecialchars(stripslashes($objU->vmy_night_life_in))) : "--" ?>

                                                                                                    </div></td>

                                                                                            </tr>

                                                                                        </table></td>

                                                                                </tr>

                                                                                        <?php }//end if?>

                                                                                    <?php if ($objU->tmy_food <> "") { ?>

                                                                                <tr>

                                                                                    <td align="left" class="maintext1"><strong>Food</strong><br>

                                                                                                <?php echo $objU->tmy_food <> "" ? nl2br(htmlspecialchars(stripslashes($objU->tmy_food))) : "--" ?></td>

                                                                                </tr>

                                                                                        <?php }//end if?>

                                                                                    <?php if ($objU->tmy_money <> "") { ?>

                                                                                <tr>

                                                                                    <td align="left" class="maintext1"><strong>Money</strong><br>

                                                                                        <div align="justify"><?php echo $objU->tmy_money <> "" ? nl2br(htmlspecialchars(stripslashes($objU->tmy_money))) : "--" ?></div></td>

                                                                                </tr>

                                                                                        <?php }//end if?>

                                                                                    <?php if ($objU->tmy_last_restaurant <> "") { ?>

                                                                                <tr>

                                                                                    <td align="left" class="maintext1"><strong>Name the last restaurant you visited</strong><br>
                                                                                        <?php echo $objU->tmy_last_restaurant <> "" ? nl2br(htmlspecialchars(stripslashes($objU->tmy_last_restaurant))) : "--" ?>
                                                                                    </td>
                                                                                </tr>
                                                                                <tr>
                                                                                    <td align="left" class="maintext1"><strong>Review it</strong>
                                                                                            <br><?php echo $objU->tmy_last_restaurant_review <> "" ? nl2br(htmlspecialchars(stripslashes($objU->tmy_last_restaurant_review))) : "--" ?>
                                                                                        </td>
                                                                                </tr>

                                                                                <?php }//end if?>

                                                                                    <?php if ($objU->tmy_charity <> "") { ?>

                                                                                <tr>

                                                                                    <td align="left" class="maintext1"><strong>What have you done for charity's sake?</strong><br>

                                                                                                <?php echo $objU->tmy_charity <> "" ? nl2br(htmlspecialchars(stripslashes($objU->tmy_charity))) : "--" ?></td>

                                                                                </tr>

                                                                                        <?php }//end if?>

                                                                            </table></td>



                                                                    </tr>

                                                                </table>

                                                                <table width="100%"  border="0" cellspacing="0" cellpadding="5">

                                                                    <tr>

                                                                        <td align="right"><table width="10%"  border="0" cellspacing="0" cellpadding="0">
                                                                                <tr>
                                                                                    <td colspan="2">&nbsp;</td>
                                                                                </tr>
                        <!--<tr>

                            <td width="83%" align="center"><a href="my_lifestyle.php" class="editbutton">Edit</a></td>

                            <td width="17%" align="center">&nbsp;</td>

                        </tr>-->

                                                                            </table></td>

                                                                    </tr>

                                                                </table></td>

                                                        </tr>

                                                    </table></td>

                                            </tr>

                                        </table>
                                            <?php }//end if array checking ?>

                                        <div id="hide"><?php echo $script ?></div>
                                        <table>
                                            <tr>
                                                <td width="0%">
                                                    <form name="frmback" method="post" action="<?php echo $_SERVER['PHP_SELF']?>?page=<?php echo $page?>">
                                                        <input name="BackNow" type="submit" class="signupbutton" value="Back">

                                                    </form>
                                                </td>
                                                <td  width="38%" align="center" class="maintext2"><a class="signupbutton" style="text-decoration:none " href="manage_user.php?id=<?php echo $id?>">Edit</a></td>
                                            </tr>
                                        </table>
                                </td>

                            </tr>

                        </table></td>

      <!--  <td width="28%" valign="top"><?php //include_once ("left.inc.php"); ?></td>-->

                </tr>

            </table>      

        </td>

    </tr>

</table></div>

<?php include_once('bottomhtml.inc.php'); ?>

