<script type="text/javascript" src="<?php echo SITE_URL; ?>siteadmin/js/ui.tabs.js"></script>
<script type="text/javascript">
$(document).ready(function(){
		$(".tabs > ul").tabs();
	});
</script>
<script type="text/javascript">
function validate_user(){

	var emailFilter = /^([a-zA-Z0-9_.-])+@(([a-zA-Z0-9-])+.)+([a-zA-Z0-9]{2,4})+$/;
	
	if($("#user_username").val()==''){
		$("#msg_user_error_message").html('Please enter Username');
		$("#user_username").addClass('jquery_err');
		$("#user_username").focus();
		return false;
	}else{
		$("#msg_user_error_message").html('');
		$("#user_username").removeClass('jquery_err');
	}
	
	
	
	if($("#user_password").val()==''){
		$("#msg_user_error_message").html('Please enter Password');
		$("#user_password").addClass('jquery_err');
		$("#user_password").focus();
		return false;
	}else if($("#user_password").val()!='' && $("#user_password").val()!=$("#user_repassword").val()){
		$("#msg_user_error_message").html('Password and Again password do not matched');
		$("#user_password").addClass('jquery_err');
		$("#user_password").focus();
		return false;
	}else{
		$("#msg_user_error_message").html('');
		$("#user_password").removeClass('jquery_err');
	}
	
	if($("#user_name").val()==''){
		$("#msg_user_error_message").html('Please enter name');
		$("#user_name").addClass('jquery_err');
		$("#user_name").focus();
		return false;
	}else{
		$("#msg_user_error_message").html('');
		$("#user_name").removeClass('jquery_err');
	}
	if($("#father_name").val()==''){
		$("#msg_user_error_message").html('Please enter Father Name');
		$("#father_name").addClass('jquery_err');
		$("#father_name").focus();
		return false;
	}else{
		$("#msg_user_error_message").html('');
		$("#father_name").removeClass('jquery_err');
	}
	
	if($("#father_occupation").val()==''){
		$("#msg_user_error_message").html('Please enter Father Occupation');
		$("#father_occupation").addClass('jquery_err');
		$("#father_occupation").focus();
		return false;
	}else{
		$("#msg_user_error_message").html('');
		$("#father_occupation").removeClass('jquery_err');
	}
	
	if($("#mother_name").val()==''){
		$("#msg_user_error_message").html('Please enter Mother Name');
		$("#mother_name").addClass('jquery_err');
		$("#mother_name").focus();
		return false;
	}else{
		$("#msg_user_error_message").html('');
		$("#mother_name").removeClass('jquery_err');
	}
	
	if($("#mother_name").val()==''){
		$("#msg_user_error_message").html('Please enter Mother Name');
		$("#mother_name").addClass('jquery_err');
		$("#mother_name").focus();
		return false;
	}else{
		$("#msg_user_error_message").html('');
		$("#mother_name").removeClass('jquery_err');
	}
	
	if($("#date_of_birth").val()==''){
		$("#msg_user_error_message").html('Please select Date of Birth');
		$("#date_of_birth").addClass('jquery_err');
		$("#date_of_birth").focus();
		return false;
	}else{
		$("#msg_user_error_message").html('');
		$("#date_of_birth").removeClass('jquery_err');
	}
	
	if($("#last_degree").val()==''){
		$("#msg_user_error_message").html('Please select last Education Qualification');
		$("#last_degree").addClass('jquery_err');
		$("#last_degree").focus();
		return false;
	}else{
		$("#msg_user_error_message").html('');
		$("#last_degree").removeClass('jquery_err');
	}
	
	if($("#annual_incom").val()==''){
		$("#msg_user_error_message").html('Please select Annual income');
		$("#annual_incom").addClass('jquery_err');
		$("#annual_incom").focus();
		return false;
	}else{
		$("#msg_user_error_message").html('');
		$("#annual_incom").removeClass('jquery_err');
	}
	
	if($("#address").val()==''){
		$("#msg_user_error_message").html('Please enter address');
		$("#address").addClass('jquery_err');
		$("#address").focus();
		return false;
	}else{
		$("#msg_user_error_message").html('');
		$("#address").removeClass('jquery_err');
	}
	
	if($("#mobile_no").val()==''){
		$("#msg_user_error_message").html('Please enter contact number');
		$("#mobile_no").focus();
		return false;
	}else{
		$("#msg_user_error_message").html('');
		$("#mobile_no").removeClass('jquery_err');
	}

	if($("#mobile_no").val().length > 16){
		$("#msg_user_error_message").html('Please enter proper digit mobile number');
		$("#mobile_no").focus();
		return false;
	}else{
		$("#msg_user_error_message").html('');
		$("#mobile_no").removeClass('jquery_err');
	}

	if(isNaN($("#mobile_no").val())== true){
		$("#msg_user_error_message").html('Please enter valid mobile number');
		$("#mobile_no").focus();
		return false;
	}else{
		$("#msg_user_error_message").html('');
		$("#mobile_no").removeClass('jquery_err');
	}
		
	
}


function validate_username(username,user_id){
	
	$("#loading_username").show();

	$.ajax({
		  url: "adduser.php",
		  data: 'act=validate_username&username='+username.value+'&user_id='+user_id,
		  method: 'POST',
		  success: function(msg){
				$("#loading_username").hide();
		  		if(msg!=''){
					$("#user_username").addClass('jquery_err');
					$("#msg_user_username").html(msg);
		  		}else{
					$("#user_username").removeClass('jquery_err');
					$("#msg_user_username").html('');
		  		}
		  }
		});
}
$(document).ready(function(){
	
	$("#user_password").blur(function (){
		$("#loading_pass").show();

		
		
		if($("#user_password").val()==''){
			$("#msg_user_password").html('Please enter Password');
			$("#user_password").addClass('jquery_err');
			$("#loading_pass").hide();
			$("#user_password").focus();
			return false;
		}else{
			$("#user_password").removeClass('jquery_err');
			$("#loading_pass").hide();
			$("#msg_user_password").html('');
  		}
  		
 	});

	$("#user_repassword").blur(function (){
		$("#loading_repass").show();

		if($("#user_repassword").val()!==$("#user_password").val()){
			$("#user_repassword").addClass('jquery_err');
			$("#msg_user_repassword").html('Password and Again password do not matched');
	  		$("#loading_repass").hide();
	  	}else{
			$("#user_repassword").removeClass('jquery_err');
			$("#msg_user_repassword").html('');
	  		$("#loading_repass").hide();
  		}

	});
});

</script>
<!-- Content (Right Column) -->

<div id="content" class="box">
  <h1> Member &raquo; Add User</h1>
  <?php if(isset($successMsg) && $successMsg!=''){ ?>
  <p class="msg done"><?php echo $successMsg; ?></p>
  <?php } ?>
  <?php if(isset($failedMsg) && $failedMsg!=''){ ?>
  <p class="msg error"><?php echo $failedMsg; ?></p>
  <?php } ?>
  <form action="" method="post" id="userFrm" name="userFrm" onsubmit="return validate_user();" enctype="multipart/form-data">
    <?php if(isset($_REQUEST['user_id']) && $_REQUEST['user_id']!=''){ ?>
    <input type="hidden" id="user_id" name="user_id" value="<?php echo $userDetail->user_id ?>" >
    <?php } ?>
    <!-- Login -->
    <div class="tabs box">
      <ul>
        <li><a href="#tab01"><span>Basic</span></a></li>
        <li><a href="#tab02"><span>Religion and Culture</span></a></li>
        <li><a href="#tab03"><span>Education and Career</span></a></li>
        <li><a href="#tab04"><span>Location</span></a></li>
        <li><a href="#tab05"><span>Contact</span></a></li>
        <li><a href="#tab06"><span>Personal</span></a></li>
        <li><a href="#tab07"><span>Family</span></a></li>
        <li><a href="#tab08"><span>Publish</span></a></li>
      </ul>
    </div>
    <p class="nomt"> <span class="smaller low message" id="msg_user_error_message" style="font-weight:bold;">&nbsp;</span> </p>
    <div id="tab01" class="eng_tab">
      <fieldset>
      <legend>Basic Details</legend>
      <p class="nomt">
        <label for="inp-01" class="req">Profile Created By :</label>
        <br />
        <select name="user_profile_created_by" id="user_profile_created_by"  class="input-text-02">
          <option value="Self"  <?php if ($userDetail->user_profile_created_by == 'Self') { echo 'selected="selected"';}?> >Self</option>
          <option value="Parent" <?php if ($userDetail->user_profile_created_by == 'Parent') { echo 'selected="selected"';}?>>Parent</option>
          <option value="Family" <?php if ($userDetail->user_profile_created_by == 'Family') { echo 'selected="selected"';}?>>Family</option>
          <option value="Friend" <?php if ($userDetail->user_profile_created_by == 'Friend') { echo 'selected="selected"';}?>>Friend</option>
        </select>
        <br/>
        <span class="smaller low message" id="msg_user_profile_created_by">&nbsp;</span> </p>
      <p class="nomt">
        <label for="inp-01" class="req">Username*:</label>
        <br />
        <input type="text" size="50" name="user_username" id="user_username" value="<?php echo $userDetail->user_username; ?>" class="input-text-02"  onblur="validate_username(this,'<?php echo $userDetail->user_id ?>');"/>
        <span id="loading_username" class="aloader" style="display:none"><img src="images/ajaxLoader.gif"></span><br/>
        <span class="smaller low message" id="msg_user_username">&nbsp;</span> </p>
      <?php if(!isset($userDetail->user_password) || $userDetail->user_password ==''){ ?>
      <p>
        <label for="inp-02" class="req">Password*:</label>
        <br />
        <input type="password" size="50" name="user_password" id="user_password" value="" class="input-text-02"/>
        <span id="loading_pass" class="aloader" style="display:none"><img src="images/ajaxLoader.gif"></span><br/>
        <span class="smaller low message" id="msg_user_password">&nbsp;</span> </p>
      <p class="nomb">
        <label for="inp-03" class="req">Password again:</label>
        <br />
        <input type="password" size="50" name="user_repassword" id="user_repassword" value="" class="input-text-02"  />
        <span id="loading_repass" class="aloader" style="display:none"><img src="images/ajaxLoader.gif"></span><br/>
        <span class="smaller low message" id="msg_user_repassword">&nbsp;</span> </p>
      <?php } ?>
      <p class="nomt">
        <label for="inp-01" class="req">Full Name*:</label>
        <br />
        <input type="text" size="50" name="user_name" id="user_name" value="<?php echo $userDetail->user_name; ?>" class="input-text-02" />
        <br/>
        <span class="smaller low message" id="msg_user_name">&nbsp;</span> </p>
      <p class="nomt">
        <label for="inp-01" class="req">Cast:</label>
        <br />
        <select id="user_cast" name="user_cast" class="input-text-02">
          <option value="">Select</option>
          <?php if($allSubCast && count($allSubCast) > 0){ foreach ($allSubCast as $cast){ ?>
          <option value="<?php echo $cast->name ?>" <?php if ($userDetail->user_cast == $cast->name) { echo 'selected="selected"';}?>  ><?php echo $cast->name ?></option>
          <?php } } ?>
        </select>
        <br/>
        <span class="smaller low message" id="msg_user_name">&nbsp;</span> </p>
      <p class="nomt">
        <label for="inp-01" class="req">Sub Cast:</label>
        <br />
        <input type="text" size="50" name="user_sub_cast" id="user_sub_cast" value="<?php echo $userDetail->user_sub_cast; ?>" class="input-text-02" />
        <br/>
        <span class="smaller low message" id="msg_user_sub_cast">&nbsp;</span> </p>
      <p class="nomt">
        <label for="inp-01" class="req">Gotra:</label>
        <br />
        <input type="text" size="50" name="user_gotra" id="user_gotra" value="<?php echo $userDetail->user_gotra; ?>" class="input-text-02" />
        <br/>
        <span class="smaller low message" id="msg_user_gotra">&nbsp;</span> </p>
        
        <p class="nomt">
        <label for="inp-01" class="req">Native Place:</label>
        <br />
        <input type="text" size="50" name="user_native_place" id="user_native_place" value="<?php echo $userDetail->user_native_place; ?>" class="input-text-02" />
        <br/>
        <span class="smaller low message" id="msg_user_native_place">&nbsp;</span> </p>
      <p class="nomt">
        <label for="inp-01" class="req">Interested In Outer  Cast:</label>
        <br />
        <input type="radio" name="outercast_interest" id="outercast_interest" value="Yes" checked="checked" />
        Yes
        <input type="radio" name="outercast_interest" id="outercast_interest" value="No" <?php if ($userDetail->outercast_interest == 'No') { echo 'checked="checked"';}?>/>
        No <br/>
        <span class="smaller low message" id="msg_user_gotra">&nbsp;</span> </p>
      <p class="nomt">
        <label for="inp-01" class="req">If Yes Then Please Enter:</label>
        <br />
        <input type="text" size="50" name="interested_cast" id="interested_cast" value="<?php echo $userDetail->interested_cast; ?>" class="input-text-02" />
        <br/>
        <span class="smaller low message" id="msg_interested_cast">&nbsp;</span> </p>
      <p class="nomt">
        
        <label for="inp-01" class="req">Profile Image* :</label>
        <br />
        <input type="file" size="50"  name="user_profile_image" id="user_profile_image" class="input-text-02"   />
        <?php if($userDetail->user_profile_image!='' && file_exists(DIR_UPLOAD_MEMBER.$userDetail->user_profile_image)) {?>
      <div class="gallery" style="width: 100px;">
        <p> <a href="#mydiv"> <img src="<?php echo DIR_UPLOAD_MEMBER_SHOW.$userDetail->user_profile_image ?>" class="gallery-img"  width="100" height="100" /> </a> </p>
        <div id="mydiv" style="display:none"> <img src="<?php echo DIR_UPLOAD_MEMBER_SHOW.$userDetail->user_profile_image ?>" /></div>
      </div>
      <input type="hidden" id="uploaded_file" name="uploaded_file" value="<?php echo $userDetail->user_profile_image;  ?>" />
      <br />
      <br />
      <br />
      <br />
      <br />
      <?php } ?>
      <br/>
      <span class="smaller low message" id="msg_user_profile_image">&nbsp;</span>
      </p>
      <p class="nomt">
        <label for="inp-01" class="req">Father's Name*:</label>
        <br />
        <input type="text" size="50" name="father_name" id="father_name" value="<?php echo $userDetail->father_name; ?>" class="input-text-02" />
        <br/>
        <span class="smaller low message" id="msg_father_name">&nbsp;</span> </p>
      <p class="nomt">
        <label for="inp-01" class="req">Father's Occupation*:</label>
        <br />
        <input type="text" size="50" name="father_occupation" id="father_occupation" value="<?php echo $userDetail->father_occupation; ?>" class="input-text-02" />
        <br/>
        <span class="smaller low message" id="msg_father_occupation">&nbsp;</span> </p>
      <p class="nomt">
        <label for="inp-01" class="req">Mother's Name*:</label>
        <br />
        <input type="text" size="50" name="mother_name" id="mother_name" value="<?php echo $userDetail->mother_name; ?>" class="input-text-02" />
        <br/>
        <span class="smaller low message" id="msg_mother_name">&nbsp;</span> </p>
      <p class="nomt">
        <label for="inp-01" class="req">Mother's Occupation:</label>
        <br />
        <input type="text" size="50" name="mother_occupation" id="mother_occupation" value="<?php echo $userDetail->mother_occupation; ?>" class="input-text-02" />
        <br/>
        <span class="smaller low message" id="msg_mother_occupation">&nbsp;</span> </p>
      <p class="nomt">
        <label for="inp-01" class="req">Screen Display Name:</label>
        <br />
        <input type="text" size="50" name="screen_name" id="screen_name" value="<?php echo $userDetail->screen_name; ?>" class="input-text-02" />
        <br/>
        <span class="smaller low message" id="msg_screen_name">&nbsp;</span> </p>
      <p class="nomt">
        <label for="inp-01" class="req">would like to get married :</label>
        <br />
        <input type="radio" name="marriage_time" id="marriage_time" value="Soon" <?php if ($userDetail->marriage_time == 'Soon') { echo 'checked="checked"';}?>/>
        Soon
        <input type="radio" name="marriage_time" id="marriage_time" value="Within 12 Months" <?php if ($userDetail->marriage_time == 'Within 12 Months') { echo 'checked="checked"';}?>/>
        Within 12 Months
        <input type="radio" name="marriage_time" id="marriage_time" value="No Fixed Time" <?php if ($userDetail->marriage_time == 'No Fixed Time') { echo 'checked="checked"';}?>/>
        No Fixed Time <br/>
        <span class="smaller low message" id="msg_marriage_time">&nbsp;</span> </p>
      <p class="nomt">
        <label for="inp-01" class="req">Gender:</label>
        <br />
        <input type="radio" name="gender" id="gender" value="Male" checked="checked" />
        Male
        <input type="radio" name="gender" id="gender" value="Female" <?php if ($userDetail->gender == 'Female') { echo 'checked="checked"';}?>/>
        Female <br/>
        <span class="smaller low message" id="msg_gender">&nbsp;</span> </p>
      <p class="nomb">
        <script type="text/javascript" src="<?php echo SITE_URL; ?>js/calander.js"></script>
        <link type="text/css" href="<?php echo SITE_URL; ?>css/calander.css" rel="stylesheet" />
        <script type="text/javascript">
$(document).ready(function(){
	 $("#date_of_birth").date_input();
}); </script>
        <label for="inp-03" class="req">Date Of Birth*:</label>
        <br />
        <input type="text" name="date_of_birth" id="date_of_birth" class="input-text-02" value="<?php echo date('d M Y',strtotime($userDetail->date_of_birth))?>" size="50" />
        <br/>
        <span class="smaller low message" id="msg_date_of_birth">&nbsp;</span> </p>
        <p class="nomb">
        <label for="inp-03" class="req">About Me:</label>
        <br />
        <textarea name="about_me" id="about_me" class="input-text-02" cols="48" ><?php echo $userDetail->about_me; ?></textarea>
        <br/>
        <span class="smaller low message" id="msg_about_me">&nbsp;</span> </p>
      <p class="nomt">
        <label for="inp-01" class="req">Marital Status :</label>
        <br />
        <input type="radio" name="marital_status" id="marital_status" value="Single" <?php if ($userDetail->marital_status == 'Single') { echo 'checked="checked"';}?>/>
        Single
        <input type="radio" name="marital_status" id="marital_status" value="Divorced" <?php if ($userDetail->marital_status == 'Divorced') { echo 'checked="checked"';}?>/>
        Divorced
        <input type="radio" name="marital_status" id="marital_status" value="Widowed" <?php if ($userDetail->marital_status == 'Widowed') { echo 'checked="checked"';}?>/>
        Widowed
        <input type="radio" name="marital_status" id="marital_status" value="Separated" <?php if ($userDetail->marital_status == 'Separated') { echo 'checked="checked"';}?>/>
        Separated <br/>
        <span class="smaller low message" id="msg_marital_status">&nbsp;</span> </p>
      <p class="nomt">
        <label for="inp-01" class="req">Have Children:</label>
        <br />
        <input type="radio" name="have_children" id="have_children" value="Yes" checked="checked" />
        Yes
        <input type="radio" name="have_children" id="have_children" value="No" <?php if ($userDetail->have_children == 'No') { echo 'checked="checked"';}?>/>
        No <br/>
        <span class="smaller low message" id="msg_have_children">&nbsp;</span> </p>
      <p class="nomt">
        <label for="inp-01" class="req">Children Live with :</label>
        <br />
        <select name="chiledren_live_with" id="chiledren_live_with"  class="input-text-02">
          <option value="" >Please Select</option>
          <option value="No Children"  <?php if ($userDetail->chiledren_live_with == 'No Children') { echo 'selected="selected"';}?> >No Children</option>
          <option value="Living With Me" <?php if ($userDetail->chiledren_live_with == 'Living With Me') { echo 'selected="selected"';}?>>Living With Me</option>
          <option value="Not Living With Me" <?php if ($userDetail->chiledren_live_with == 'Not Living With Me') { echo 'selected="selected"';}?>>Not Living With Me</option>
          <option value="Visit Me Sometimes" <?php if ($userDetail->chiledren_live_with == 'Visit Me Sometimes') { echo 'selected="selected"';}?>>Visit Me Sometimes</option>
        </select>
        <br/>
        <span class="smaller low message" id="msg_chiledren_live_with">&nbsp;</span> </p>
      <p class="nomt">
        <label for="inp-01" class="req">Number of Son  :</label>
        <br />
        <select name="num_of_son" id="num_of_son"  class="input-text-02">
          <option value="" >Please Select</option>
          <option value="Not Applicable"  <?php if ($userDetail->num_of_son == 'Not Applicable') { echo 'selected="selected"';}?> >Not Applicable</option>
          <option value="1" <?php if ($userDetail->num_of_son == '1') { echo 'selected="selected"';}?>>1</option>
          <option value="2" <?php if ($userDetail->num_of_son == '2') { echo 'selected="selected"';}?>>2</option>
          <option value="3" <?php if ($userDetail->num_of_son == '3') { echo 'selected="selected"';}?>>3</option>
          <option value="6" <?php if ($userDetail->num_of_son == '4') { echo 'selected="selected"';}?>>4</option>
          <option value="5" <?php if ($userDetail->num_of_son == '5') { echo 'selected="selected"';}?>>5</option>
        </select>
        <br/>
        <span class="smaller low message" id="msg_user_name">&nbsp;</span> </p>
      <p class="nomt">
        <label for="inp-01" class="req">Number of Daughter  :</label>
        <br />
        <select name="num_of_doughter" id="num_of_doughter"  class="input-text-02">
          <option value="" >Please Select</option>
          <option value="Not Applicable"  <?php if ($userDetail->num_of_doughter == 'Not Applicable') { echo 'selected="selected"';}?> >Not Applicable</option>
          <option value="1" <?php if ($userDetail->num_of_doughter == '1') { echo 'selected="selected"';}?>>1</option>
          <option value="2" <?php if ($userDetail->num_of_doughter == '2') { echo 'selected="selected"';}?>>2</option>
          <option value="3" <?php if ($userDetail->num_of_doughter == '3') { echo 'selected="selected"';}?>>3</option>
          <option value="6" <?php if ($userDetail->num_of_doughter == '4') { echo 'selected="selected"';}?>>4</option>
          <option value="5" <?php if ($userDetail->num_of_doughter == '5') { echo 'selected="selected"';}?>>5</option>
        </select>
        <br/>
        <span class="smaller low message" id="msg_user_name">&nbsp;</span> </p>
      </fieldset>
    </div>
    <div id="tab02" class="eng_tab">
      <fieldset>
      <legend>Religion and Culture Details</legend>
      <p class="nomt">
        <label for="inp-01" class="req">Religion:</label>
        <br />
        <select name="religion" id="religion" class="input-text-02">
          <option value="">Please Select</option>
          <option value="Not Applicable" <?php if ($userDetail->religion == 'Not Applicable') { echo 'selected="selected"';}?>>Not Applicable</option>
          <option value="Other"<?php if ($userDetail->religion == 'Other') { echo 'selected="selected"';}?>>Other</option>
          <option value="Buddhist"<?php if ($userDetail->religion == 'Buddhist') { echo 'selected="selected"';}?>>Buddhist</option>
          <option value="Christian"<?php if ($userDetail->religion == 'Christian') { echo 'selected="selected"';}?>>Christian</option>
          <option value="Christian - Catholic"<?php if ($userDetail->religion == 'Christian - Catholic') { echo 'selected="selected"';}?>>Christian - Catholic</option>
          <option value="Christian - Orthodox"<?php if ($userDetail->religion == 'Christian - Orthodox') { echo 'selected="selected"';}?>>Christian - Orthodox</option>
          <option value="Christian - Protestan"<?php if ($userDetail->religion == 'Christian - Protestan') { echo 'selected="selected"';}?>>Christian - Protestan</option>
          <option value="Hindu"<?php if ($userDetail->religion == 'Hindu') { echo 'selected="selected"';}?>>Hindu</option>
          <option value="Jain"<?php if ($userDetail->religion == 'Jain') { echo 'selected="selected"';}?>>Jain</option>
          <option value="Jain - Digambar"<?php if ($userDetail->religion == 'Jain - Digambar') { echo 'selected="selected"';}?>>Jain - Digambar</option>
          <option value="Jain - Shwetambar"<?php if ($userDetail->religion == 'Jain - Shwetambar') { echo 'selected="selected"';}?>>Jain - Shwetambar</option>
          <option value="Muslim"<?php if ($userDetail->religion == 'Muslim') { echo 'selected="selected"';}?>>Muslim</option>
          <option value="Muslim - Shia"<?php if ($userDetail->religion == 'Muslim - Shia') { echo 'selected="selected"';}?>>Muslim - Shia</option>
          <option value="Muslim - Sunni"<?php if ($userDetail->religion == 'Muslim - Sunni') { echo 'selected="selected"';}?>>Muslim - Sunni</option>
          <option value="Parsi"<?php if ($userDetail->religion == 'Parsi') { echo 'selected="selected"';}?>>Parsi</option>
          <option value="Sikh"<?php if ($userDetail->religion == 'Sikh') { echo 'selected="selected"';}?>>Sikh</option>
          <option value="Inter - Religion"<?php if ($userDetail->religion == 'Inter - Religion') { echo 'selected="selected"';}?>>Inter - Religion</option>
        </select>
        <br/>
        <span class="smaller low message" id="msg_religion">&nbsp;</span> </p>
      <p class="nomt">
        <label for="inp-01" class="req">Community / Culture:</label>
        <br />
        <select name="community" id="community" class="input-text-02">
          <option value="">Please Select</option>
          <option value="Other" <?php if ($userDetail->community == 'Other') { echo 'selected="selected"';}?>>Other</option>
          <option value="Bengali" <?php if ($userDetail->community == 'Bengali') { echo 'selected="selected"';}?>>Bengali</option>
          <option value="Bhori" <?php if ($userDetail->community == 'Bhori') { echo 'selected="selected"';}?>>Bhori</option>
          <option value="Christian" <?php if ($userDetail->community == 'Christian') { echo 'selected="selected"';}?>>Christian</option>
          <option value="East Indian" <?php if ($userDetail->community == 'East Indian') { echo 'selected="selected"';}?>>East Indian</option>
          <option value="Gujarati" <?php if ($userDetail->community == 'Gujarati') { echo 'selected="selected"';}?>>Gujarati</option>
          <option value="Hindu" <?php if ($userDetail->community == 'Hindu') { echo 'selected="selected"';}?>>Hindu</option>
          <option value="Hyderabadi" <?php if ($userDetail->community == 'Hyderabadi') { echo 'selected="selected"';}?>>Hyderabadi</option>
          <option value="Kashmiri" <?php if ($userDetail->community == 'Kashmiri') { echo 'selected="selected"';}?>>Kashmiri</option>
          <option value="Lakhnowi" <?php if ($userDetail->community == 'Lakhnowi') { echo 'selected="selected"';}?>>Lakhnowi</option>
          <option value="Mamun" <?php if ($userDetail->community == 'Mamun') { echo 'selected="selected"';}?>>Mamun</option>
          <option value="Muslim" <?php if ($userDetail->community == 'Muslim') { echo 'selected="selected"';}?>>Muslim</option>
          <option value="North Indian" <?php if ($userDetail->community == 'North Indian') { echo 'selected="selected"';}?>>North Indian</option>
          <option value="Parsi" <?php if ($userDetail->community == 'Parsi') { echo 'selected="selected"';}?>>Parsi</option>
          <option value="Sikh" <?php if ($userDetail->community == 'Sikh') { echo 'selected="selected"';}?>>Sikh</option>
          <option value="Sindhi" <?php if ($userDetail->community == 'Sindhi') { echo 'selected="selected"';}?>>Sindhi</option>
          <option value="South Indian"<?php if ($userDetail->community == 'South Indian') { echo 'selected="selected"';}?>>South Indian</option>
        </select>
        <br/>
        <span class="smaller low message" id="msg_community">&nbsp;</span> </p>
      <p class="nomt">
        <label for="inp-01" class="req">Mother Toungue:</label>
        <br />
        <select name="mother_toungue" id="mother_toungue" class="input-text-02">
          <option value="">Select</option>
          <?php if($allLanguages && count($allLanguages) > 0){ foreach ($allLanguages as $languages){ ?>
          <option value="<?php echo $languages->name ?>" <?php if ($userDetail->mother_toungue == $languages->name) { echo 'selected="selected"';}?>  ><?php echo $languages->name ?></option>
          <?php } } ?>
        </select>
        <br/>
        <span class="smaller low message" id="msg_mother_toungue">&nbsp;</span> </p>
      <p class="nomt">
        <label for="inp-01" class="req">Lifestyle :</label>
        <br />
        <input type="radio" name="lifestyle" id="lifestyle" value="Liberal" <?php if ($userDetail->lifestyle == 'Liberal') { echo 'checked="checked"';}?>/>
        Liberal
        <input type="radio" name="lifestyle" id="lifestyle" value="Modern" <?php if ($userDetail->lifestyle == 'Modern') { echo 'checked="checked"';}?>/>
        Modern
        <input type="radio" name="lifestyle" id="lifestyle" value="Traditional" <?php if ($userDetail->lifestyle == 'Traditional') { echo 'checked="checked"';}?>/>
        Traditional <br/>
        <span class="smaller low message" id="msg_lifestyle">&nbsp;</span> </p>
      </fieldset>
    </div>
    <div id="tab03" class="eng_tab">
      <fieldset>
      <legend>Education and Career</legend>
      <p class="nomt">
        <label for="inp-01" class="req">Last Degree*:</label>
        <br />
        <select name="last_degree" id="last_degree" class="input-text-02">
          <option value="">Please Select</option>
          <?php if($allDegree && count($allDegree) > 0){ foreach ($allDegree as $degree){ ?>
          <option value="<?php echo $degree->name ?>" <?php if ($userDetail->last_degree == $degree->name) { echo 'selected="selected"';}?>  ><?php echo $degree->name ?></option>
          <?php } } ?>
        </select>
        <br/>
        <span class="smaller low message" id="msg_last_degree">&nbsp;</span> </p>
      <p class="nomb">
        <label for="inp-03" class="req">Degree in Detail :</label>
        <br />
        <input type="text" size="50" name="degree_detail" id="degree_detail" value="<?php echo $userDetail->degree_detail; ?>" class="input-text-02" />
        <br/>
        <span class="smaller low message" id="msg_degree_detail">&nbsp;</span> </p>
      <p class="nomb">
        <label for="inp-03" class="req">Proffesion*:</label>
        <br />
        <input type="text" size="50" name="proffession" id="proffession" value="<?php echo $userDetail->proffession; ?>" class="input-text-02" />
        <br/>
        <span class="smaller low message" id="msg_proffession">&nbsp;</span> </p>
      <p class="nomt">
        <label for="inp-01" class="req">Annual Income :</label>
        <br />
        <select name="annual_incom" id="annual_incom" class="input-text-02">
          <option value="">Please Select</option>
          <option value="Not Applicable" <?php if ($userDetail->annual_incom == 'Not Applicable') { echo 'selected="selected"';}?>>Not Applicable</option>
          <option value="Income in Indian Rupees" disabled="disabled">Income in Indian Rupees</option>
          <option value="Under Rs. 50,000" <?php if ($userDetail->annual_incom == 'Under Rs. 50,000') { echo 'selected="selected"';}?>>Under Rs. 50,000</option>
          <option value="Rs. 50,001 - 1,00,000" <?php if ($userDetail->annual_incom == 'Rs. 50,001 - 1,00,000') { echo 'selected="selected"';}?>>Rs. 50,001 - 1,00,000</option>
          <option value="Rs. 1,00,001 - 2,00,000" <?php if ($userDetail->annual_incom == 'Rs. 1,00,001 - 2,00,000') { echo 'selected="selected"';}?>>Rs. 1,00,001 - 2,00,000</option>
          <option value="Rs. 2,00,001 - 3,00,000" <?php if ($userDetail->annual_incom == 'Rs. 2,00,001 - 3,00,000') { echo 'selected="selected"';}?>>Rs. 2,00,001 - 3,00,000</option>
          <option value="Rs. 3,00,001 - 4,00,000" <?php if ($userDetail->annual_incom == 'Rs. 3,00,001 - 4,00,000') { echo 'selected="selected"';}?>>Rs. 3,00,001 - 4,00,000</option>
          <option value="Rs. 4,00,001 - 5,00,000" <?php if ($userDetail->annual_incom == 'Rs. 4,00,001 - 5,00,000') { echo 'selected="selected"';}?>>Rs. 4,00,001 - 5,00,000</option>
          <option value="Rs. 5,00,001 - 6,00,000" <?php if ($userDetail->annual_incom == 'Rs. 5,00,001 - 6,00,000') { echo 'selected="selected"';}?>>Rs. 5,00,001 - 6,00,000</option>
          <option value="Rs. 6,00,001 - 7,00,000" <?php if ($userDetail->annual_incom == 'Rs. 6,00,001 - 7,00,000') { echo 'selected="selected"';}?>>Rs. 6,00,001 - 7,00,000</option>
          <option value="Rs. 7,00,001 - 8,00,000" <?php if ($userDetail->annual_incom == 'Rs. 7,00,001 - 8,00,000') { echo 'selected="selected"';}?>>Rs. 7,00,001 - 8,00,000</option>
          <option value="Rs. 8,00,001 - 9,00,000" <?php if ($userDetail->annual_incom == 'Rs. 9,00,001 - 10,00,000') { echo 'selected="selected"';}?>>Rs. 8,00,001 - 9,00,000</option>
          <option value="Rs. 9,00,001 - 10,00,000" <?php if ($userDetail->annual_incom == 'Rs. 9,00,001 - 10,00,000') { echo 'selected="selected"';}?>>Rs. 9,00,001 - 10,00,000</option>
          <option value="Above Rs. 10,00,001" <?php if ($userDetail->annual_incom == 'Above Rs. 10,00,001') { echo 'selected="selected"';}?>>Above Rs. 10,00,001</option>
          <option value="Income in US Dollars" disabled="disabled">Income in US Dollars</option>
          <option value="Under $ 25,000" <?php if ($userDetail->annual_incom == 'Under $ 25,000') { echo 'selected="selected"';}?>>Under $ 25,000</option>
          <option value="$ 25,001 - 50,000" <?php if ($userDetail->annual_incom == '$ 25,001 - 50,000') { echo 'selected="selected"';}?>>$ 25,001 - 50,000</option>
          <option value="$ 50,001 - 75,000" <?php if ($userDetail->annual_incom == '$ 50,001 - 75,000') { echo 'selected="selected"';}?>>$ 50,001 - 75,000</option>
          <option value="$ 75,001 - 100,000" <?php if ($userDetail->annual_incom == '$ 75,001 - 100,000') { echo 'selected="selected"';}?>>$ 75,001 - 100,000</option>
          <option value="$ 100,001 - 150,000" <?php if ($userDetail->annual_incom == '$ 100,001 - 150,000') { echo 'selected="selected"';}?>>$ 100,001 - 150,000</option>
          <option value="$ 150,001 - 175,000" <?php if ($userDetail->annual_incom == '$ 150,001 - 175,000') { echo 'selected="selected"';}?>>$ 150,001 - 175,000</option>
          <option value="$ 175,001 - 200,000" <?php if ($userDetail->annual_incom == '$ 175,001 - 200,000') { echo 'selected="selected"';}?>>$ 175,001 - 200,000</option>
          <option value="Above $ 200,001" <?php if ($userDetail->annual_incom == 'Above $ 200,001') { echo 'selected="selected"';}?>>Above $ 200,001</option>
        </select>
        <br/>
        <span class="smaller low message" id="msg_annual_incom">&nbsp;</span> </p>
      <p class="nomt">
        <label for="inp-01" class="req">Family Status :</label>
        <br />
        <input type="radio" name="family_status" id="family_status" value="Rich / Affluent" <?php if ($userDetail->family_status == 'Rich / Affluent') { echo 'checked="checked"';}?>/>
        Rich / Affluent
        <input type="radio" name="family_status" id="family_status" value="Upper Middle Class" <?php if ($userDetail->family_status == 'Upper Middle Class') { echo 'checked="checked"';}?>/>
        Upper Middle Class
        <input type="radio" name="family_status" id="family_status" value="Middle Class" <?php if ($userDetail->family_status == 'Middle Class') { echo 'checked="checked"';}?>/>
        Middle Class <br/>
        <span class="smaller low message" id="msg_family_status">&nbsp;</span> </p>
      </fieldset>
    </div>
    <div id="tab04" class="eng_tab">
      <fieldset>
      <legend>Location</legend>
      <p class="nomt">
        <label for="inp-01" class="req">I / We live in:</label>
        <br />
        <select id="country" name="country"  class="input-text-02">
          <option value="">Select</option>
          <?php if($allCountries && count($allCountries) > 0){ foreach ($allCountries as $country){ ?>
          <option value="<?php echo $country->name ?>" <?php if ($userDetail->country == $country->name) { echo 'selected="selected"';}?>  ><?php echo $country->name ?></option>
          <?php } } ?>
        </select>
        <br/>
        <span class="smaller low message" id="msg_country">&nbsp;</span> </p>
      <p class="nomb">
        <label for="inp-03" class="req">State :</label>
        <br />
        <input type="text" size="50" name="state" id="state" value="<?php echo $userDetail->state; ?>" class="input-text-02" />
        <br/>
        <span class="smaller low message" id="msg_state">&nbsp;</span> </p>
      <p class="nomb">
        <label for="inp-03" class="req">City :</label>
        <br />
        <input type="text" name="city" id="city" class="input-text-02" value="<?php echo $userDetail->city; ?>" size="50" />
        <br/>
        <span class="smaller low message" id="msg_city">&nbsp;</span> </p>
      <p class="nomb">
        <label for="inp-03" class="req">Zip Code :</label>
        <br />
        <input name="post_code" id="post_code" class="input-text-02" value="<?php echo $userDetail->post_code; ?>" size="50" />
        <br/>
        <span class="smaller low message" id="msg_post_code">&nbsp;</span> </p>
      <p class="nomb">
        <label for="inp-03" class="req">Address*:</label>
        <br />
        <textarea name="address" id="address" class="input-text-02" cols="48" ><?php echo $userDetail->address; ?></textarea>
        <br/>
        <span class="smaller low message" id="msg_address">&nbsp;</span> </p>
      <p class="nomb">
        <label for="inp-03" class="req">Nationality:</label>
        <br />
        <select id="nationality" name="nationality" class="input-text-02">
          <option value="">Please select</option>
          <option value="Not Applicable" <?php if ($userDetail->nationality == 'Not Applicable') { echo 'selected="selected"';}?>>Not Applicable</option>
          <option value="Other"  <?php if ($userDetail->nationality == 'Other') { echo 'selected="selected"';}?>>Other</option>
          <option value="American"  <?php if ($userDetail->nationality == 'American') { echo 'selected="selected"';}?>>American</option>
          <option value="Australian"  <?php if ($userDetail->nationality == 'Australian') { echo 'selected="selected"';}?>>Australian</option>
          <option value="Bahraini"  <?php if ($userDetail->nationality == 'Bahraini') { echo 'selected="selected"';}?>>Bahraini</option>
          <option value="Bangladeshi" <?php if ($userDetail->nationality == 'Bangladeshi') { echo 'selected="selected"';}?>>Bangladeshi</option>
          <option value="British"  <?php if ($userDetail->nationality == 'British') { echo 'selected="selected"';}?>>British</option>
          <option value="Canadian"  <?php if ($userDetail->nationality == 'Canadian') { echo 'selected="selected"';}?>>Canadian</option>
          <option value="Danish"  <?php if ($userDetail->nationality == 'Danish') { echo 'selected="selected"';}?>>Danish</option>
          <option value="Emarati"  <?php if ($userDetail->nationality == 'Emarati') { echo 'selected="selected"';}?>>Emarati</option>
          <option value="French"  <?php if ($userDetail->nationality == 'French') { echo 'selected="selected"';}?>>French</option>
          <option value="German"  <?php if ($userDetail->nationality == 'German') { echo 'selected="selected"';}?>>German</option>
          <option value="Indian"  <?php if ($userDetail->nationality == 'Indian') { echo 'selected="selected"';}?>>Indian</option>
          <option value="Jamaican"  <?php if ($userDetail->nationality == 'Jamaican') { echo 'selected="selected"';}?>>Jamaican</option>
          <option value="Kenyan"  <?php if ($userDetail->nationality == 'Kenyan') { echo 'selected="selected"';}?>>Kenyan</option>
          <option value="Kwaiti" <?php if ($userDetail->nationality == 'Kwaiti') { echo 'selected="selected"';}?>>Kwaiti</option>
          <option value="Malaysian" <?php if ($userDetail->nationality == 'Malaysian') { echo 'selected="selected"';}?>>Malaysian</option>
          <option value="Mauritian" <?php if ($userDetail->nationality == 'Mauritian') { echo 'selected="selected"';}?>>Mauritian</option>
          <option value="Moroccan" <?php if ($userDetail->nationality == 'Moroccan') { echo 'selected="selected"';}?>>Moroccan</option>
          <option value="Nepali" <?php if ($userDetail->nationality == 'Nepali') { echo 'selected="selected"';}?>>Nepali</option>
          <option value="Netherland" <?php if ($userDetail->nationality == 'Netherland') { echo 'selected="selected"';}?>>Netherland</option>
          <option value="New Zealand" <?php if ($userDetail->nationality == 'New Zealand') { echo 'selected="selected"';}?>>New Zealand</option>
          <option value="Norwegian" <?php if ($userDetail->nationality == 'Norwegian') { echo 'selected="selected"';}?>>Norwegian</option>
          <option value="Omain" <?php if ($userDetail->nationality == 'Omain') { echo 'selected="selected"';}?>>Omain</option>
          <option value="Pakistani" <?php if ($userDetail->nationality == 'Pakistani') { echo 'selected="selected"';}?>>Pakistani</option>
          <option value="Portuguese" <?php if ($userDetail->nationality == 'Portuguese') { echo 'selected="selected"';}?>>Portuguese</option>
          <option value="Russian" <?php if ($userDetail->nationality == 'Russian') { echo 'selected="selected"';}?>>Russian</option>
          <option value="Saudi" <?php if ($userDetail->nationality == 'Saudi') { echo 'selected="selected"';}?>>Saudi</option>
          <option value="Singaporean" <?php if ($userDetail->nationality == 'Singaporean') { echo 'selected="selected"';}?>>Singaporean</option>
          <option value="South Africian" <?php if ($userDetail->nationality == 'South Africian') { echo 'selected="selected"';}?>>South Africian</option>
          <option value="Spanish" <?php if ($userDetail->nationality == 'Spanish') { echo 'selected="selected"';}?>>Spanish</option>
          <option value="Sri Lankan" <?php if ($userDetail->nationality == 'Sri Lankan') { echo 'selected="selected"';}?>>Sri Lankan</option>
          <option value="Swiss" <?php if ($userDetail->nationality == 'Swiss') { echo 'selected="selected"';}?>>Swiss</option>
          <option value="Thai" <?php if ($userDetail->nationality == 'Thai') { echo 'selected="selected"';}?>>Thai</option>
          <option value="Turkish" <?php if ($userDetail->nationality == 'Turkish') { echo 'selected="selected"';}?>>Turkish</option>
          <option value="United Arab Emirates" <?php if ($userDetail->nationality == 'United Arab Emirates') { echo 'selected="selected"';}?>>United Arab Emirates</option>
          <option value="Zambian" <?php if ($userDetail->nationality == 'Zambian') { echo 'selected="selected"';}?>>Zambian</option>
        </select>
        <br/>
        <span class="smaller low message" id="msg_nationality">&nbsp;</span> </p>
      </fieldset>
    </div>
    <div id="tab05" class="eng_tab">
      <fieldset>
      <legend>Contact Details</legend>
      <p class="nomt">
        <label for="inp-01" class="req">Cell / Mobile No*:</label>
        <br />
        <input type="text" name="mobile_no" id="mobile_no" class="input-text-02" value="<?php echo $userDetail->mobile_no; ?>" size="50" />
        <br/>
        <span class="smaller low message" id="msg_mobile_no">&nbsp;</span> </p>
      <p class="nomt">
        <label for="inp-01" class="req">Phone No:</label>
        <br />
        <input type="text" name="phone_no" id="phone_no" class="input-text-02" value="<?php echo $userDetail->phone_no; ?>" size="50" />
        <br/>
        <span class="smaller low message" id="msg_phone_no">&nbsp;</span> </p>
      <p class="nomt">
        <label for="inp-01" class="req">Suitable time to contact :</label>
        <br />
        <input type="radio" name="suitable_time" id="suitable_time" value="Morning" <?php if ($userDetail->suitable_time == 'Morning') { echo 'checked="checked"';}?>/>
        Morning
        <input type="radio" name="suitable_time" id="suitable_time" value="Afternoon" <?php if ($userDetail->suitable_time == 'Afternoon') { echo 'checked="checked"';}?>/>
        Afternoon
        <input type="radio" name="suitable_time" id="suitable_time" value="Evening" <?php if ($userDetail->suitable_time == 'Evening') { echo 'checked="checked"';}?>/>
        Evening
        <input type="radio" name="suitable_time" id="suitable_time" value="Night" <?php if ($userDetail->suitable_time == 'Night') { echo 'checked="checked"';}?>/>
        Night <br/>
        <span class="smaller low message" id="msg_suitable_time">&nbsp;</span> </p>
      <p class="nomt">
        <label for="inp-01" class="req">Email Address:</label>
        <br />
        <input type="text" size="50" name="email_address" id="email_address" value="<?php echo $userDetail->email_address ?>" class="input-text-02" />
        <span id="loading_email" class="aloader" style="display:none"><img src="images/ajaxLoader.gif"></span><br/>
        <span class="smaller low message" id="msg_email_address">&nbsp;</span> </p>
      <p class="nomt">
        <label for="inp-01" class="req">Contact Person:</label>
        <br />
        <input type="text" name="person_contact" id="person_contact" class="input-text-02" value="<?php echo $userDetail->person_contact; ?>" size="50" />
        <br/>
        <span class="smaller low message" id="msg_person_contact">&nbsp;</span> </p>
      </fieldset>
    </div>
    <div id="tab06" class="eng_tab">
      <fieldset>
      <legend>Personal Details</legend>
      <p class="nomt">
        <label for="inp-01" class="req">Height:</label>
        <br />
        <select id="height" name="height"  class="input-text-02">
          <option value="">Please select</option>
          <option value="4ft 5in - 135cms" <?php if ($userDetail->height == '4ft 5in - 135cms') { echo 'selected="selected"';}?>>4ft 5in - 135cms</option>
          <option value="4ft 6in - 137cms" <?php if ($userDetail->height == '4ft 6in - 137cms') { echo 'selected="selected"';}?>>4ft 6in - 137cms</option>
          <option value="4ft 7in - 139cms" <?php if ($userDetail->height == '4ft 7in - 139cms') { echo 'selected="selected"';}?>>4ft 7in - 139cms</option>
          <option value="4ft 8in - 142cms" <?php if ($userDetail->height == '4ft 8in - 142cms') { echo 'selected="selected"';}?>>4ft 8in - 142cms</option>
          <option value="4ft 9in - 144cms" <?php if ($userDetail->height == '4ft 9in - 144cms') { echo 'selected="selected"';}?>>4ft 9in - 144cms</option>
          <option value="4ft 10in - 147cms" <?php if ($userDetail->height == '4ft 10in - 147cms') { echo 'selected="selected"';}?>>4ft 10in - 147cms</option>
          <option value="4ft 11in - 149cms" <?php if ($userDetail->height == '4ft 11in - 149cms') { echo 'selected="selected"';}?>>4ft 11in - 149cms</option>
          <option value="5ft - 152cms" <?php if ($userDetail->height == '5ft - 152cms') { echo 'selected="selected"';}?>>5ft - 152cms</option>
          <option value="5ft 1in - 154cms" <?php if ($userDetail->height == '5ft 1in - 154cms') { echo 'selected="selected"';}?>>5ft 1in - 154cms</option>
          <option value="5ft 2in - 157cms" <?php if ($userDetail->height == '5ft 2in - 157cms') { echo 'selected="selected"';}?>>5ft 2in - 157cms</option>
          <option value="5ft 3in - 160cms" <?php if ($userDetail->height == '5ft 3in - 160cms') { echo 'selected="selected"';}?>>5ft 3in - 160cms</option>
          <option value="5ft 4in - 162cms" <?php if ($userDetail->height == '5ft 4in - 162cms') { echo 'selected="selected"';}?>>5ft 4in - 162cms</option>
          <option value="5ft 5in - 165cms" <?php if ($userDetail->height == '5ft 5in - 165cms') { echo 'selected="selected"';}?>>5ft 5in - 165cms</option>
          <option value="5ft 6in - 167cms" <?php if ($userDetail->height == '5ft 6in - 167cms') { echo 'selected="selected"';}?>>5ft 6in - 167cms</option>
          <option value="5ft 7in - 170cms" <?php if ($userDetail->height == '5ft 7in - 170cms') { echo 'selected="selected"';}?>>5ft 7in - 170cms</option>
          <option value="5ft 8in - 172cms" <?php if ($userDetail->height == '5ft 8in - 172cms') { echo 'selected="selected"';}?>>5ft 8in - 172cms</option>
          <option value="5ft 9in - 175cms" <?php if ($userDetail->height == '5ft 9in - 175cms') { echo 'selected="selected"';}?>>5ft 9in - 175cms</option>
          <option value="5ft 10in - 177cms" <?php if ($userDetail->height == '5ft 10in - 177cms') { echo 'selected="selected"';}?>>5ft 10in - 177cms</option>
          <option value="5ft 11in - 180cms" <?php if ($userDetail->height == '5ft 11in - 180cms') { echo 'selected="selected"';}?>>5ft 11in - 180cms</option>
          <option value="6ft - 182cms" <?php if ($userDetail->height == '6ft - 182cms') { echo 'selected="selected"';}?>>6ft - 182cms</option>
          <option value="6ft 1in - 185cms" <?php if ($userDetail->height == '6ft 1in - 185cms') { echo 'selected="selected"';}?>>6ft 1in - 185cms</option>
          <option value="6ft 2in - 187cms" <?php if ($userDetail->height == '6ft 2in - 187cms') { echo 'selected="selected"';}?>>6ft 2in - 187cms</option>
          <option value="6ft 3in - 190cms" <?php if ($userDetail->height == '6ft 3in - 190cms') { echo 'selected="selected"';}?>>6ft 3in - 190cms</option>
          <option value="6ft 4in - 193cms" <?php if ($userDetail->height == '6ft 4in - 193cms') { echo 'selected="selected"';}?>>6ft 4in - 193cms</option>
          <option value="6ft 5in - 195cms" <?php if ($userDetail->height == '6ft 5in - 195cms') { echo 'selected="selected"';}?>>6ft 5in - 195cms</option>
          <option value="6ft 6in - 198cms" <?php if ($userDetail->height == '6ft 6in - 198cms') { echo 'selected="selected"';}?>>6ft 6in - 198cms</option>
          <option value="6ft 7in - 200cms" <?php if ($userDetail->height == '6ft 7in - 200cms') { echo 'selected="selected"';}?>>6ft 7in - 200cms</option>
          <option value="6ft 8in - 203cms" <?php if ($userDetail->height == '6ft 8in - 203cms') { echo 'selected="selected"';}?>>6ft 8in - 203cms</option>
          <option value="6ft 9in - 205cms" <?php if ($userDetail->height == '6ft 9in - 205cms') { echo 'selected="selected"';}?>>6ft 9in - 205cms</option>
          <option value="6ft 10in - 208cms" <?php if ($userDetail->height == '6ft 10in - 208cms') { echo 'selected="selected"';}?>>6ft 10in - 208cms</option>
          <option value="6ft 11in - 210cms" <?php if ($userDetail->height == '6ft 11in - 210cms') { echo 'selected="selected"';}?>>6ft 11in - 210cms</option>
          <option value="7ft - 213cms" <?php if ($userDetail->height == '7ft - 213cms') { echo 'selected="selected"';}?>>7ft - 213cms</option>
        </select>
        <br/>
        <span class="smaller low message" id="msg_height">&nbsp;</span> </p>
      <p class="nomt">
        <label for="inp-01" class="req">Weight:</label>
        <br />
        <select id="weight" name="weight"  class="input-text-02">
          <option value="">Please select</option>
          <option value="30kg - 66lbs" <?php if ($userDetail->weight == '30kg - 66lbs') { echo 'selected="selected"';}?>>30kg - 66lbs</option>
          <option value="31kg - 68lbs" <?php if ($userDetail->weight == '31kg - 68lbs') { echo 'selected="selected"';}?>>31kg - 68lbs</option>
          <option value="32kg - 71lbs" <?php if ($userDetail->weight == '32kg - 71lbs') { echo 'selected="selected"';}?>>32kg - 71lbs</option>
          <option value="33kg - 73lbs" <?php if ($userDetail->weight == '33kg - 73lbs') { echo 'selected="selected"';}?>>33kg - 73lbs</option>
          <option value="34kg - 75lbs" <?php if ($userDetail->weight == '34kg - 75lbs') { echo 'selected="selected"';}?>>34kg - 75lbs</option>
          <option value="35kg - 77lbs" <?php if ($userDetail->weight == '35kg - 77lbs') { echo 'selected="selected"';}?>>35kg - 77lbs</option>
          <option value="36kg - 79lbs" <?php if ($userDetail->weight == '36kg - 79lbs') { echo 'selected="selected"';}?>>36kg - 79lbs</option>
          <option value="37kg - 82lbs" <?php if ($userDetail->weight == '37kg - 82lbs') { echo 'selected="selected"';}?>>37kg - 82lbs</option>
          <option value="38kg - 84lbs" <?php if ($userDetail->weight == '38kg - 84lbs') { echo 'selected="selected"';}?>>38kg - 84lbs</option>
          <option value="39kg - 86lbs" <?php if ($userDetail->weight == '39kg - 86lbs') { echo 'selected="selected"';}?>>39kg - 86lbs</option>
          <option value="40kg - 88lbs" <?php if ($userDetail->weight == '40kg - 88lbs') { echo 'selected="selected"';}?>>40kg - 88lbs</option>
          <option value="41kg - 90lbs" <?php if ($userDetail->weight == '41kg - 90lbs') { echo 'selected="selected"';}?>>41kg - 90lbs</option>
          <option value="42kg - 93lbs" <?php if ($userDetail->weight == '42kg - 93lbs') { echo 'selected="selected"';}?>>42kg - 93lbs</option>
          <option value="43kg - 95lbs" <?php if ($userDetail->weight == '43kg - 95lbs') { echo 'selected="selected"';}?>>43kg - 95lbs</option>
          <option value="44kg - 97lbs" <?php if ($userDetail->weight == '44kg - 97lbs') { echo 'selected="selected"';}?>>44kg - 97lbs</option>
          <option value="45kg - 99lbs" <?php if ($userDetail->weight == '45kg - 99lbs') { echo 'selected="selected"';}?>>45kg - 99lbs</option>
          <option value="46kg - 101lbs" <?php if ($userDetail->weight == '46kg - 101lbs') { echo 'selected="selected"';}?>>46kg - 101lbs</option>
          <option value="47kg - 104lbs" <?php if ($userDetail->weight == '47kg - 104lbs') { echo 'selected="selected"';}?>>47kg - 104lbs</option>
          <option value="48kg - 106lbs" <?php if ($userDetail->weight == '48kg - 106lbs') { echo 'selected="selected"';}?>>48kg - 106lbs</option>
          <option value="49kg - 108lbs" <?php if ($userDetail->weight == '49kg - 108lbs') { echo 'selected="selected"';}?>>49kg - 108lbs</option>
          <option value="50kg - 110lbs" <?php if ($userDetail->weight == '50kg - 110lbs') { echo 'selected="selected"';}?>>50kg - 110lbs</option>
          <option value="51kg - 112lbs" <?php if ($userDetail->weight == '51kg - 112lbs') { echo 'selected="selected"';}?>>51kg - 112lbs</option>
          <option value="52kg - 115lbs" <?php if ($userDetail->weight == '52kg - 115lbs') { echo 'selected="selected"';}?>>52kg - 115lbs</option>
          <option value="53kg - 117lbs" <?php if ($userDetail->weight == '53kg - 117lbs') { echo 'selected="selected"';}?>>53kg - 117lbs</option>
          <option value="54kg - 119lbs" <?php if ($userDetail->weight == '54kg - 119lbs') { echo 'selected="selected"';}?>>54kg - 119lbs</option>
          <option value="55kg - 121lbs" <?php if ($userDetail->weight == '55kg - 121lbs') { echo 'selected="selected"';}?>>55kg - 121lbs</option>
          <option value="56kg - 123lbs" <?php if ($userDetail->weight == '56kg - 123lbs') { echo 'selected="selected"';}?>>56kg - 123lbs</option>
          <option value="57kg - 126lbs" <?php if ($userDetail->weight == '57kg - 126lbs') { echo 'selected="selected"';}?>>57kg - 126lbs</option>
          <option value="58kg - 128lbs" <?php if ($userDetail->weight == '58kg - 128lbs') { echo 'selected="selected"';}?>>58kg - 128lbs</option>
          <option value="59kg - 130lbs" <?php if ($userDetail->weight == '59kg - 130lbs') { echo 'selected="selected"';}?>>59kg - 130lbs</option>
          <option value="60kg - 132lbs" <?php if ($userDetail->weight == '60kg - 132lbs') { echo 'selected="selected"';}?>>60kg - 132lbs</option>
          <option value="61kg - 134lbs" <?php if ($userDetail->weight == '61kg - 134lbs') { echo 'selected="selected"';}?>>61kg - 134lbs</option>
          <option value="62kg - 137lbs" <?php if ($userDetail->weight == '62kg - 137lbs') { echo 'selected="selected"';}?>>62kg - 137lbs</option>
          <option value="63kg - 139lbs" <?php if ($userDetail->weight == '63kg - 139lbs') { echo 'selected="selected"';}?>>63kg - 139lbs</option>
          <option value="64kg - 141lbs" <?php if ($userDetail->weight == '64kg - 141lbs') { echo 'selected="selected"';}?>>64kg - 141lbs</option>
          <option value="65kg - 143lbs" <?php if ($userDetail->weight == '65kg - 143lbs') { echo 'selected="selected"';}?>>65kg - 143lbs</option>
          <option value="66kg - 146lbs" <?php if ($userDetail->weight == '66kg - 146lbs') { echo 'selected="selected"';}?>>66kg - 146lbs</option>
          <option value="67kg - 148lbs" <?php if ($userDetail->weight == '67kg - 148lbs') { echo 'selected="selected"';}?>>67kg - 148lbs</option>
          <option value="68kg - 150lbs" <?php if ($userDetail->weight == '68kg - 150lbs') { echo 'selected="selected"';}?>>68kg - 150lbs</option>
          <option value="69kg - 152lbs" <?php if ($userDetail->weight == '69kg - 152lbs') { echo 'selected="selected"';}?>>69kg - 152lbs</option>
          <option value="70kg - 154lbs" <?php if ($userDetail->weight == '70kg - 154lbs') { echo 'selected="selected"';}?>>70kg - 154lbs</option>
          <option value="71kg - 157lbs" <?php if ($userDetail->weight == '71kg - 157lbs') { echo 'selected="selected"';}?>>71kg - 157lbs</option>
          <option value="72kg - 159lbs" <?php if ($userDetail->weight == '72kg - 159lbs') { echo 'selected="selected"';}?>>72kg - 159lbs</option>
          <option value="73kg - 161lbs" <?php if ($userDetail->weight == '73kg - 161lbs') { echo 'selected="selected"';}?>>73kg - 161lbs</option>
          <option value="74kg - 163lbs" <?php if ($userDetail->weight == '74kg - 163lbs') { echo 'selected="selected"';}?>>74kg - 163lbs</option>
          <option value="75kg - 165lbs" <?php if ($userDetail->weight == '75kg - 165lbs') { echo 'selected="selected"';}?>>75kg - 165lbs</option>
          <option value="76kg - 168lbs" <?php if ($userDetail->weight == '76kg - 168lbs') { echo 'selected="selected"';}?>>76kg - 168lbs</option>
          <option value="77kg - 170lbs" <?php if ($userDetail->weight == '77kg - 170lbs') { echo 'selected="selected"';}?>>77kg - 170lbs</option>
          <option value="78kg - 172lbs" <?php if ($userDetail->weight == '78kg - 172lbs') { echo 'selected="selected"';}?>>78kg - 172lbs</option>
          <option value="79kg - 174lbs" <?php if ($userDetail->weight == '79kg - 174lbs') { echo 'selected="selected"';}?>>79kg - 174lbs</option>
          <option value="80kg - 176lbs" <?php if ($userDetail->weight == '80kg - 176lbs') { echo 'selected="selected"';}?>>80kg - 176lbs</option>
          <option value="81kg - 179lbs" <?php if ($userDetail->weight == '81kg - 179lbs') { echo 'selected="selected"';}?>>81kg - 179lbs</option>
          <option value="82kg - 181lbs" <?php if ($userDetail->weight == '82kg - 181lbs') { echo 'selected="selected"';}?>>82kg - 181lbs</option>
          <option value="83kg - 183lbs" <?php if ($userDetail->weight == '83kg - 183lbs') { echo 'selected="selected"';}?>>83kg - 183lbs</option>
          <option value="84kg - 185lbs" <?php if ($userDetail->weight == '84kg - 185lbs') { echo 'selected="selected"';}?>>84kg - 185lbs</option>
          <option value="85kg - 187lbs" <?php if ($userDetail->weight == '85kg - 187lbs') { echo 'selected="selected"';}?>>85kg - 187lbs</option>
          <option value="86kg - 190lbs" <?php if ($userDetail->weight == '86kg - 190lbs') { echo 'selected="selected"';}?>>86kg - 190lbs</option>
          <option value="87kg - 192lbs" <?php if ($userDetail->weight == '87kg - 192lbs') { echo 'selected="selected"';}?>>87kg - 192lbs</option>
          <option value="88kg - 194lbs" <?php if ($userDetail->weight == '88kg - 194lbs') { echo 'selected="selected"';}?>>88kg - 194lbs</option>
          <option value="89kg - 196lbs" <?php if ($userDetail->weight == '89kg - 196lbs') { echo 'selected="selected"';}?>>89kg - 196lbs</option>
          <option value="90kg - 198lbs" <?php if ($userDetail->weight == '90kg - 198lbs') { echo 'selected="selected"';}?>>90kg - 198lbs</option>
          <option value="91kg - 201lbs" <?php if ($userDetail->weight == '91kg - 201lbs') { echo 'selected="selected"';}?>>91kg - 201lbs</option>
          <option value="92kg - 203lbs" <?php if ($userDetail->weight == '92kg - 203lbs') { echo 'selected="selected"';}?>>92kg - 203lbs</option>
          <option value="93kg - 205lbs" <?php if ($userDetail->weight == '93kg - 205lbs') { echo 'selected="selected"';}?>>93kg - 205lbs</option>
          <option value="94kg - 207lbs" <?php if ($userDetail->weight == '94kg - 207lbs') { echo 'selected="selected"';}?>>94kg - 207lbs</option>
          <option value="95kg - 209lbs" <?php if ($userDetail->weight == '95kg - 209lbs') { echo 'selected="selected"';}?>>95kg - 209lbs</option>
          <option value="96kg - 212lbs" <?php if ($userDetail->weight == '96kg - 212lbs') { echo 'selected="selected"';}?>>96kg - 212lbs</option>
          <option value="97kg - 214lbs" <?php if ($userDetail->weight == '97kg - 214lbs') { echo 'selected="selected"';}?>>97kg - 214lbs</option>
          <option value="98kg - 216lbs" <?php if ($userDetail->weight == '98kg - 216lbs') { echo 'selected="selected"';}?>>98kg - 216lbs</option>
          <option value="99kg - 218lbs" <?php if ($userDetail->weight == '99kg - 218lbs') { echo 'selected="selected"';}?>>99kg - 218lbs</option>
          <option value="100kg - 220lbs" <?php if ($userDetail->weight == '100kg - 220lbs') { echo 'selected="selected"';}?>>100kg - 220lbs</option>
        </select>
        <br/>
        <span class="smaller low message" id="msg_weight">&nbsp;</span> </p>
      <p class="nomt">
        <label for="inp-01" class="req">Spectacles:</label>
        <br />
        <input type="radio" name="spects" id="spects" value="Yes" checked="checked" />
        Yes
        <input type="radio" name="spects" id="spects" value="No" <?php if ($userDetail->spects == 'No') { echo 'checked="checked"';}?>/>
        No <br/>
        <span class="smaller low message" id="msg_spects">&nbsp;</span> </p>
      <p class="nomt">
        <label for="inp-01" class="req">Star:</label>
        <br />
        <select id="star" name="star"  class="input-text-02">
          <option value="">Please select</option>
          <option value="Not Applicable" <?php if ($userDetail->star == 'Not Applicable') { echo 'selected="selected"';}?>>Not Applicable</option>
          <option value="Anuradha / Anusham / Anizh" <?php if ($userDetail->star == 'Anuradha / Anusham / Anizh') { echo 'selected="selected"';}?>>Anuradha / Anusham / Anizh</option>
          <option value="Ardra / Thiruvathira" <?php if ($userDetail->star == 'Ardra / Thiruvathira') { echo 'selected="selected"';}?>>Ardra / Thiruvathira</option>
          <option value="Ashlesha / Ayilyam" <?php if ($userDetail->star == 'Ashlesha / Ayilyam') { echo 'selected="selected"';}?>>Ashlesha / Ayilyam</option>
          <option value="Bharani" <?php if ($userDetail->star == 'Bharani') { echo 'selected="selected"';}?>>Bharani</option>
          <option value="Chitra / Chitha" <?php if ($userDetail->star == 'Chitra / Chitha') { echo 'selected="selected"';}?>>Chitra / Chitha</option>
          <option value="Dhanista / Avittam" <?php if ($userDetail->star == 'Dhanista / Avittam') { echo 'selected="selected"';}?>>Dhanista / Avittam</option>
          <option value="Hastha / Atham" <?php if ($userDetail->star == 'Hastha / Atham') { echo 'selected="selected"';}?>>Hastha / Atham</option>
          <option value="Jyesta / Kettai" <?php if ($userDetail->star == 'Jyesta / Kettai') { echo 'selected="selected"';}?>>Jyesta / Kettai</option>
          <option value="Krithika / Karthika" <?php if ($userDetail->star == 'Krithika / Karthika') { echo 'selected="selected"';}?>>Krithika / Karthika</option>
          <option value="Makha / Magam" <?php if ($userDetail->star == 'Makha / Magam') { echo 'selected="selected"';}?>>Makha / Magam</option>
          <option value="Moolam / Moola" <?php if ($userDetail->star == 'Moolam / Moola') { echo 'selected="selected"';}?>>Moolam / Moola</option>
          <option value="Mrigasira / Makayiram" <?php if ($userDetail->star == 'Mrigasira / Makayiram') { echo 'selected="selected"';}?>>Mrigasira / Makayiram</option>
          <option value="Poorvabadrapada / Puratathi" <?php if ($userDetail->star == 'Poorvabadrapada / Puratathi') { echo 'selected="selected"';}?>>Poorvabadrapada / Puratathi</option>
          <option value="Poorvapalguni / Puram / Pubbhe" <?php if ($userDetail->star == 'Poorvapalguni / Puram / Pubbhe') { echo 'selected="selected"';}?>>Poorvapalguni / Puram / Pubbhe</option>
          <option value="Poorvashada / Pooradam" <?php if ($userDetail->star == 'Poorvashada / Pooradam') { echo 'selected="selected"';}?>>Poorvashada / Pooradam</option>
          <option value="Punarvasu / Punarpusam" <?php if ($userDetail->star == 'Punarvasu / Punarpusam') { echo 'selected="selected"';}?>>Punarvasu / Punarpusam</option>
          <option value="Phshya / Poosam / Pooyam" <?php if ($userDetail->star == 'Phshya / Poosam / Pooyam') { echo 'selected="selected"';}?>>Phshya / Poosam / Pooyam</option>
          <option value="Revathi" <?php if ($userDetail->star == 'Revathi') { echo 'selected="selected"';}?>>Revathi</option>
          <option value="Rohini" <?php if ($userDetail->star == 'Rohini') { echo 'selected="selected"';}?>>Rohini</option>
          <option value="Shatataraka / Sadayam / Satabish" <?php if ($userDetail->star == 'Shatataraka / Sadayam / Satabish') { echo 'selected="selected"';}?>>Shatataraka / Sadayam / Satabish</option>
          <option value="Shravan / Thiruvonam" <?php if ($userDetail->star == 'Shravan / Thiruvonam') { echo 'selected="selected"';}?>>Shravan / Thiruvonam</option>
          <option value="Swati / Chothi" <?php if ($userDetail->star == 'Swati / Chothi') { echo 'selected="selected"';}?>>Swati / Chothi</option>
          <option value="Uttarabadrapada / Uthratadhi" <?php if ($userDetail->star == 'Uttarabadrapada / Uthratadhi') { echo 'selected="selected"';}?>>Uttarabadrapada / Uthratadhi</option>
          <option value="Uttarapalguni / Uthram" <?php if ($userDetail->star == 'Uttarapalguni / Uthram') { echo 'selected="selected"';}?>>Uttarapalguni / Uthram</option>
          <option value="Uttarashada / Uthradam" <?php if ($userDetail->star == 'Uttarashada / Uthradam') { echo 'selected="selected"';}?>>Uttarashada / Uthradam</option>
          <option value="Vishaka / Vishakam" <?php if ($userDetail->star == 'Vishaka / Vishakam') { echo 'selected="selected"';}?>>Vishaka / Vishakam</option>
        </select>
        <br/>
        <span class="smaller low message" id="msg_star">&nbsp;</span> </p>
      <p class="nomt">
        <label for="inp-01" class="req">Mangal/Shani:</label>
        <br />
        <select id="mangal" name="mangal"  class="input-text-02">
          <option value="">Please select</option>
          <option value="None" <?php if ($userDetail->mangal == 'None') { echo 'selected="selected"';}?>>None</option>
          <option value="Not Applicable" <?php if ($userDetail->mangal == 'Not Applicable') { echo 'selected="selected"';}?>>Not Applicable</option>
          <option value="Both" <?php if ($userDetail->mangal == 'Both') { echo 'selected="selected"';}?>>Both</option>
          <option value="Mangal" <?php if ($userDetail->mangal == 'Mangal') { echo 'selected="selected"';}?>>Mangal</option>
          <option value="Simple Mangal" <?php if ($userDetail->mangal == 'Simple Mangal') { echo 'selected="selected"';}?>>Simple Mangal</option>
          <option value="Shani" <?php if ($userDetail->mangal == 'Shani') { echo 'selected="selected"';}?>>Shani</option>
          <option value="Simple Shani" <?php if ($userDetail->mangal == 'Simple Shani') { echo 'selected="selected"';}?>>Simple Shani</option>
        </select>
        <br/>
        <span class="smaller low message" id="msg_mangal">&nbsp;</span> </p>
      <p class="nomt">
        <label for="inp-01" class="req">Believe in Horoscope:</label>
        <br />
        <input type="radio" name="horpscope_belive" id="horpscope_belive" value="Yes" checked="checked" />
        Yes
        <input type="radio" name="horpscope_belive" id="horpscope_belive" value="No" <?php if ($userDetail->horpscope_belive == 'No') { echo 'checked="checked"';}?>/>
        No <br/>
        <span class="smaller low message" id="msg_horpscope_belive">&nbsp;</span> </p>
      <p class="nomt">
        <label for="inp-01" class="req">Blood Group:</label>
        <br />
        <select id="blood_group" name="blood_group"  class="input-text-02">
          <option value="">Please select</option>
          <option value="None" <?php if ($userDetail->blood_group == 'None') { echo 'selected="selected"';}?>>None</option>
          <option value="Not Applicable" <?php if ($userDetail->blood_group == 'Not Applicable') { echo 'selected="selected"';}?>>Not Applicable</option>
          <option value="A -" <?php if ($userDetail->blood_group == 'A -') { echo 'selected="selected"';}?>>A -</option>
          <option value="A +" <?php if ($userDetail->blood_group == 'A +') { echo 'selected="selected"';}?>>A +</option>
          <option value="A1 -" <?php if ($userDetail->blood_group == 'A1 -') { echo 'selected="selected"';}?>>A1 -</option>
          <option value="A1 +" <?php if ($userDetail->blood_group == 'A1 +') { echo 'selected="selected"';}?>>A1 +</option>
          <option value="A1B -" <?php if ($userDetail->blood_group == 'A1B -') { echo 'selected="selected"';}?>>A1B -</option>
          <option value="A1B +" <?php if ($userDetail->blood_group == 'A1B +') { echo 'selected="selected"';}?>>A1B +</option>
          <option value="A2 -" <?php if ($userDetail->blood_group == 'A2 -') { echo 'selected="selected"';}?>>A2 -</option>
          <option value="A2 +" <?php if ($userDetail->blood_group == 'A2 +') { echo 'selected="selected"';}?>>A2 +</option>
          <option value="A2B -" <?php if ($userDetail->blood_group == 'A2B -') { echo 'selected="selected"';}?>>A2B -</option>
          <option value="A2B +" <?php if ($userDetail->blood_group == 'A2B +') { echo 'selected="selected"';}?>>A2B +</option>
          <option value="AB -" <?php if ($userDetail->blood_group == 'AB -') { echo 'selected="selected"';}?>>AB -</option>
          <option value="AB +" <?php if ($userDetail->blood_group == 'AB +') { echo 'selected="selected"';}?>>AB +</option>
          <option value="B -" <?php if ($userDetail->blood_group == 'B -') { echo 'selected="selected"';}?>>B -</option>
          <option value="B +" <?php if ($userDetail->blood_group == 'B +') { echo 'selected="selected"';}?>>B +</option>
          <option value="O -" <?php if ($userDetail->blood_group == 'O -') { echo 'selected="selected"';}?>>O -</option>
          <option value="O +" <?php if ($userDetail->blood_group == 'O +') { echo 'selected="selected"';}?>>O +</option>
        </select>
        <br/>
        <span class="smaller low message" id="msg_blood_group">&nbsp;</span> </p>
      <p class="nomt">
        <label for="inp-01" class="req">Complexion  :</label>
        <br />
        <input type="radio" name="complexion" id="complexion" value="Fair" <?php if ($userDetail->complexion == 'Fair') { echo 'checked="checked"';}?>/>
        Fair
        <input type="radio" name="complexion" id="complexion" value="Medium" <?php if ($userDetail->complexion == 'Medium') { echo 'checked="checked"';}?>/>
        Medium
        <input type="radio" name="complexion" id="complexion" value="Dark" <?php if ($userDetail->complexion == 'Dark') { echo 'checked="checked"';}?>/>
        Dark
        <input type="radio" name="complexion" id="complexion" value="Wheatish" <?php if ($userDetail->complexion == 'Wheatish') { echo 'checked="checked"';}?>/>
        Wheatish <br/>
        <span class="smaller low message" id="msg_complexion">&nbsp;</span> </p>
      <p class="nomt">
        <label for="inp-01" class="req">Eye color :</label>
        <br />
        <input type="radio" name="eye_color" id="eye_color" value="Black" <?php if ($userDetail->eye_color == 'Black') { echo 'checked="checked"';}?>/>
        Black
        <input type="radio" name="eye_color" id="eye_color" value="Brown" <?php if ($userDetail->eye_color == 'Brown') { echo 'checked="checked"';}?>/>
        Brown
        <input type="radio" name="eye_color" id="eye_color" value="Light Brown" <?php if ($userDetail->eye_color == 'Light Brown') { echo 'checked="checked"';}?>/>
        Light Brown
        <input type="radio" name="eye_color" id="eye_color" value="Blue" <?php if ($userDetail->eye_color == 'Blue') { echo 'checked="checked"';}?>/>
        Blue
        <input type="radio" name="eye_color" id="eye_color" value="Green" <?php if ($userDetail->eye_color == 'Green') { echo 'checked="checked"';}?>/>
        Green
        <input type="radio" name="eye_color" id="eye_color" value="Hazel" <?php if ($userDetail->eye_color == 'Hazel') { echo 'checked="checked"';}?>/>
        Hazel <br/>
        <span class="smaller low message" id="msg_eye_color">&nbsp;</span> </p>
      <p class="nomt">
        <label for="inp-01" class="req">Hair color :</label>
        <br />
        <input type="radio" name="hair_color" id="hair_color" value="Black" <?php if ($userDetail->hair_color == 'Black') { echo 'checked="checked"';}?>/>
        Black
        <input type="radio" name="hair_color" id="hair_color" value="Brown" <?php if ($userDetail->hair_color == 'Brown') { echo 'checked="checked"';}?>/>
        Brown
        <input type="radio" name="hair_color" id="hair_color" value="Blonde" <?php if ($userDetail->hair_color == 'Blonde') { echo 'checked="checked"';}?>/>
        Blonde
        <input type="radio" name="hair_color" id="hair_color" value="Silver" <?php if ($userDetail->hair_color == 'Silver') { echo 'checked="checked"';}?>/>
        Silver <br/>
        <span class="smaller low message" id="msg_hair_color">&nbsp;</span> </p>
      <p class="nomt">
        <label for="inp-01" class="req">Eating Habit :</label>
        <br />
        <input type="radio" name="eating_habit" id="eating_habit" value="Veg" <?php if ($userDetail->eating_habit == 'Veg') { echo 'checked="checked"';}?>/>
        Veg
        <input type="radio" name="eating_habit" id="eating_habit" value="Non-Veg" <?php if ($userDetail->eating_habit == 'Non-Veg') { echo 'checked="checked"';}?>/>
        Non-Veg
        <input type="radio" name="eating_habit" id="eating_habit" value="Jain Food" <?php if ($userDetail->eating_habit == 'Jain Food') { echo 'checked="checked"';}?>/>
        Jain Food <br/>
        <span class="smaller low message" id="msg_eating_habit">&nbsp;</span> </p>
      <p class="nomt">
        <label for="inp-01" class="req">Drinking  Habit :</label>
        <br />
        <input type="radio" name="drinking_habit" id="drinking_habit" value="Do not drink" <?php if ($userDetail->drinking_habit == 'Do not drink') { echo 'checked="checked"';}?>/>
        Do not drink
        <input type="radio" name="drinking_habit" id="drinking_habit" value="Socially / Occasionally" <?php if ($userDetail->drinking_habit == 'Socially / Occasionally') { echo 'checked="checked"';}?>/>
        Socially / Occasionally
        <input type="radio" name="drinking_habit" id="drinking_habit" value="Regularly" <?php if ($userDetail->drinking_habit == 'Regularly') { echo 'checked="checked"';}?>/>
        Regularly <br/>
        <span class="smaller low message" id="msg_drinking_habit">&nbsp;</span> </p>
      <p class="nomt">
        <label for="inp-01" class="req">Smoking Habit :</label>
        <br />
        <input type="radio" name="smoking_habit" id="smoking_habit" value="Do not smoke" <?php if ($userDetail->smoking_habit == 'Do not smoke') { echo 'checked="checked"';}?>/>
        Do not smoke
        <input type="radio" name="smoking_habit" id="smoking_habit" value="Socially / Occasionally" <?php if ($userDetail->smoking_habit == 'Socially / Occasionally') { echo 'checked="checked"';}?>/>
        Socially / Occasionally
        <input type="radio" name="smoking_habit" id="smoking_habit" value="Regularly" <?php if ($userDetail->smoking_habit == 'Regularly') { echo 'checked="checked"';}?>/>
        Regularly <br/>
        <span class="smaller low message" id="msg_smoking_habit">&nbsp;</span> </p>
      <p class="nomt">
        <label for="inp-01" class="req">Special Cases:</label>
        <br />
        <input type="text" name="special_case" id="special_case" class="input-text-02" value="<?php echo $userDetail->special_case; ?>" size="50" />
        <br/>
        <span class="smaller low message" id="msg_special_case">&nbsp;</span> </p>
      </fieldset>
    </div>
    <div id="tab07" class="eng_tab">
      <fieldset>
      <legend>Family Details</legend>
      <p class="nomt">
        <label for="inp-01" class="req">Father Alive?:</label>
        <br />
        <input type="radio" name="father_alive" id="father_alive" value="Yes" checked="checked" />
        Yes
        <input type="radio" name="father_alive" id="father_alive" value="No" <?php if ($userDetail->father_alive == 'No') { echo 'checked="checked"';}?>/>
        No <br/>
        <span class="smaller low message" id="msg_father_alive">&nbsp;</span> </p>
      <p class="nomt">
        <label for="inp-01" class="req">Mother Alive?:</label>
        <br />
        <input type="radio" name="mother_alive" id="mother_alive" value="Yes" checked="checked" />
        Yes
        <input type="radio" name="mother_alive" id="mother_alive" value="No" <?php if ($userDetail->mother_alive == 'No') { echo 'checked="checked"';}?>/>
        No <br/>
        <span class="smaller low message" id="msg_mother_alive">&nbsp;</span> </p>
      <p class="nomt">
        <label for="inp-01" class="req">Total Brothres:</label>
        <br />
        <select id="total_brothers" name="total_brothers"  class="input-text-02">
          <option value="">Please select</option>
          <option value="None" <?php if ($userDetail->total_brothers == 'None') { echo 'selected="selected"';}?>>None</option>
          <option value="1" <?php if ($userDetail->total_brothers == '1') { echo 'selected="selected"';}?>>1</option>
          <option value="2" <?php if ($userDetail->total_brothers == '2') { echo 'selected="selected"';}?>>2</option>
          <option value="3" <?php if ($userDetail->total_brothers == '3') { echo 'selected="selected"';}?>>3</option>
          <option value="4" <?php if ($userDetail->total_brothers == '4') { echo 'selected="selected"';}?>>4</option>
          <option value="5" <?php if ($userDetail->total_brothers == '5') { echo 'selected="selected"';}?>>5</option>
          <option value="6" <?php if ($userDetail->total_brothers == '6') { echo 'selected="selected"';}?>>6</option>
          <option value="7" <?php if ($userDetail->total_brothers == '7') { echo 'selected="selected"';}?>>7</option>
          <option value="8" <?php if ($userDetail->total_brothers == '8') { echo 'selected="selected"';}?>>8</option>
          <option value="9" <?php if ($userDetail->total_brothers == '9') { echo 'selected="selected"';}?>>9</option>
        </select>
        <br/>
        <span class="smaller low message" id="msg_total_brothers">&nbsp;</span> </p>
      <p class="nomt">
        <label for="inp-01" class="req">Total Sisters:</label>
        <br />
        <select id="total_sisters" name="total_sisters"  class="input-text-02">
          <option value="">Please select</option>
          <option value="None" <?php if ($userDetail->total_sisters == 'None') { echo 'selected="selected"';}?>>None</option>
          <option value="1" <?php if ($userDetail->total_sisters == '1') { echo 'selected="selected"';}?>>1</option>
          <option value="2" <?php if ($userDetail->total_sisters == '2') { echo 'selected="selected"';}?>>2</option>
          <option value="3" <?php if ($userDetail->total_sisters == '3') { echo 'selected="selected"';}?>>3</option>
          <option value="4" <?php if ($userDetail->total_sisters == '4') { echo 'selected="selected"';}?>>4</option>
          <option value="5" <?php if ($userDetail->total_sisters == '5') { echo 'selected="selected"';}?>>5</option>
          <option value="6" <?php if ($userDetail->total_sisters == '6') { echo 'selected="selected"';}?>>6</option>
          <option value="7" <?php if ($userDetail->total_sisters == '7') { echo 'selected="selected"';}?>>7</option>
          <option value="8" <?php if ($userDetail->total_sisters == '8') { echo 'selected="selected"';}?>>8</option>
          <option value="9" <?php if ($userDetail->total_sisters == '9') { echo 'selected="selected"';}?>>9</option>
        </select>
        <br/>
        <span class="smaller low message" id="msg_total_sisters">&nbsp;</span> </p>
      <p class="nomt">
        <label for="inp-01" class="req">Married Brothers:</label>
        <br />
        <select id="married_brother" name="married_brother"  class="input-text-02">
          <option value="">Please select</option>
          <option value="None" <?php if ($userDetail->married_brother == 'None') { echo 'selected="selected"';}?>>None</option>
          <option value="1" <?php if ($userDetail->married_brother == '1') { echo 'selected="selected"';}?>>1</option>
          <option value="2" <?php if ($userDetail->married_brother == '2') { echo 'selected="selected"';}?>>2</option>
          <option value="3" <?php if ($userDetail->married_brother == '3') { echo 'selected="selected"';}?>>3</option>
          <option value="4" <?php if ($userDetail->married_brother == '4') { echo 'selected="selected"';}?>>4</option>
          <option value="5" <?php if ($userDetail->married_brother == '5') { echo 'selected="selected"';}?>>5</option>
          <option value="6" <?php if ($userDetail->married_brother == '6') { echo 'selected="selected"';}?>>6</option>
          <option value="7" <?php if ($userDetail->married_brother == '7') { echo 'selected="selected"';}?>>7</option>
          <option value="8" <?php if ($userDetail->married_brother == '8') { echo 'selected="selected"';}?>>8</option>
          <option value="9" <?php if ($userDetail->married_brother == '9') { echo 'selected="selected"';}?>>9</option>
        </select>
        <br/>
        <span class="smaller low message" id="msg_married_brother">&nbsp;</span> </p>
      <p class="nomt">
        <label for="inp-01" class="req">Married Sisters:</label>
        <br />
        <select id="married_sister" name="married_sister"  class="input-text-02">
          <option value="">Please select</option>
          <option value="None" <?php if ($userDetail->married_sister == 'None') { echo 'selected="selected"';}?>>None</option>
          <option value="1" <?php if ($userDetail->married_sister == '1') { echo 'selected="selected"';}?>>1</option>
          <option value="2" <?php if ($userDetail->married_sister == '2') { echo 'selected="selected"';}?>>2</option>
          <option value="3" <?php if ($userDetail->married_sister == '3') { echo 'selected="selected"';}?>>3</option>
          <option value="4" <?php if ($userDetail->married_sister == '4') { echo 'selected="selected"';}?>>4</option>
          <option value="5" <?php if ($userDetail->married_sister == '5') { echo 'selected="selected"';}?>>5</option>
          <option value="6" <?php if ($userDetail->married_sister == '6') { echo 'selected="selected"';}?>>6</option>
          <option value="7" <?php if ($userDetail->married_sister == '7') { echo 'selected="selected"';}?>>7</option>
          <option value="8" <?php if ($userDetail->married_sister == '8') { echo 'selected="selected"';}?>>8</option>
          <option value="9" <?php if ($userDetail->married_sister == '9') { echo 'selected="selected"';}?>>9</option>
        </select>
        <br/>
        <span class="smaller low message" id="msg_married_sister">&nbsp;</span> </p>
      </fieldset>
    </div>
    <div id="tab08" class="eng_tab">
      <fieldset>
      <legend>Publish Status</legend>
      <p class="nomb">
        <label for="inp-03" class="req">Status :</label>
        <br />
        <select id="user_status" name="user_status" class="input-text-02">
          <option value="0" <?php echo ($userDetail->user_status==0) ? "selected='selected'" : "" ?>>Inactive</option>
          <option value="1" <?php echo (!isset($userDetail->user_status) || $userDetail->user_status==1) ? "selected='selected'" : "" ?>>Active</option>
        </select>
        <br/>
        <span class="smaller low message" id="msg_user_status">&nbsp;</span> </p>
      </fieldset>
    </div>
    <?php if(isset($userDetail->user_id) && $userDetail->user_id!=''){ ?>
    <p>
      <input type="submit" value="Edit Member" id="submit" name="submit" class="input-submit" />
    </p>
    <?php }else{ ?>
    <p>
      <input type="submit" value="Add Member" id="submit" name="submit" class="input-submit" />
    </p>
    <?php } ?>
     <input type="button" value="Cancel" id="cancel" name="cancel" class="input-submit" onclick="javascript:window.location='userlist.php'" />
  </form>
</div>
<!-- /content -->
