ok

Mini Shell

Direktori : /proc/thread-self/root/home2/selectio/public_html/subamangala/admin/
Upload File :
Current File : //proc/thread-self/root/home2/selectio/public_html/subamangala/admin/edit-profile-1.php

<?php include "header.php";
ini_set("memory_limit", "-1");
?>


<script src="croppie.js"></script>
<div class="content-wrapper" style="background:#ecf0f5;">
        <div class="col-lg-12 alerts">
            <div id="custom-alerts" style="display:none;">
                <div class="alert alert-dismissable">
                    <div class="custom-msg"></div>
                </div>
            </div>
            <?php
            if ($error) { ?>
            <div class="alert alert-danger alert-dismissable">
                <button aria-hidden="true" data-dismiss="alert" class="close" type="button">×</button>
                <h4><i class="icon fa fa-ban"></i> Error</h4>
                <?= $error ?>
            </div>
            <?php }
            if ($warning) { ?>
            <div class="alert alert-warning alert-dismissable">
                <button aria-hidden="true" data-dismiss="alert" class="close" type="button">×</button>
                <h4><i class="icon fa fa-warning"></i> Warning</h4>
                <?= $warning ?>
            </div>
            <?php }
            if ($message) { ?>
            <div class="alert alert-success alert-dismissable">
                <button aria-hidden="true" data-dismiss="alert" class="close" type="button">×</button>
                <h4>    <i class="icon fa fa-check"></i> Success</h4>
                <?= $site_name ?>
            </div>
            <?php }
            ?>
        </div> 
        <div class="clearfix"></div>

<style>
    table.dataTable th:nth-child(23),
table.dataTable th:nth-child(25) {
  width: 70px;
  max-width: 70px;
 
}

table.dataTable td:nth-child(23),
table.dataTable td:nth-child(25){
  width: 70px;
  max-width: 70px;
  word-break: break-all;
  white-space: pre-line;
}

/*.icheckbox_square-blue, .iradio_square-blue {*/
/*    width: 22px !important;*/
/*    margin-top: 0px !important;*/
/*    height: 22px !important;*/
/*}*/
.checkbox-inline+.checkbox-inline, .radio-inline+.radio-inline {
    margin-top: 0 !important;
    margin-left: 0px !important;
}
.checkbox-inline, .radio-inline {
    margin-bottom: 5px;
    float: left;
}
/*.icheckbox_square-blue, .iradio_square-blue {*/
/*    width: 22px !important;*/
/*    height: 22px !important;*/
/*    float: left;*/
/*    margin-top: 5px !important;*/
/*    margin-left: 15px !important;*/
/*    margin-right: 15px !important;*/
/*}*/

a.remove {
    border: 1px solid black;
    width: 30px;
    display: inline-block;
    /* margin: 0 !important; */
    /* padding: 0 !important; */
    height: 30px;
    /* float: left; */
    text-align: center;
    border-radius: 50%;
    color: #fff;
    background: brown;
    /* margin-top: 1px; */
    padding-top: 2px;
    /* margin-top: 0px; */
    /* padding-left: 7px; */
}
</style>



<section class="content">
    
  <?php if (!empty($_GET["id"])) {
      $profiles_ids = explode(",", $_GET["id"]);
  } else {
      $profiles_ids = "";
  } ?>  
<?php
$person_profile = $pdo->prepare(
    "SELECT * FROM `profiles` WHERE id =" . $_GET["id"]);
$person_profile->execute();

error_log("SELECT * FROM `profiles` WHERE id =" . $_GET["id"]);

$profile_result = $person_profile->fetchAll(PDO::FETCH_ASSOC);
?>
    
    
    

    
    <!-- Data Tables Starts Here -->
<div class="grids">
					<div class="progressbar-heading grids-heading">
						<h2 style="text-align: center;font-weight: 600;">பதிவை நிர்வகி</h2>
                    </div>
					<div class="panel panel-widget forms-panel">
						<div class="forms">
							<div class="form-grids widget-shadow" data-example-id="basic-forms"> 
								<div class="form-title">
									<h3> வரன் பற்றிய தகவல்களை கீழே பதிவிடுக :</h3> 
								</div>
								<?php
					if($flag==1){
						echo "<script>";
						//echo "window.location.href= 'reg_suc.php?id=".$last_id."'";
						echo "window.location.href= login.php";
						echo "</script>";
                     }
                     elseif(isset($_GET['success']))
                     {
                     ?>
                     <div class="progressbar-heading grids-heading">
						<h2>பதிவு வெற்றிகரமாக பதிவேற்றப்பட்டது. புதிய பதிவிற்கு <a href="register.php">இங்கே கிளிக்</a> செய்யவும்.</h2>
						</div>
                     <?php
                    	
                     }
                     ?>
								<div class="form-body">
									<div class="container">
                                        <div class="row">
                                        
                                        <?php
                                        if(isset($_GET['id']) && $_GET['id']!="")

										{	
				// 						    $pdo->prepare(
    // "SELECT * FROM `profiles` WHERE id =" . $_GET["id"]);
										$select_query123 = $pdo->prepare("select * from profiles where id=".$_GET['id']);
									 $select_query123->execute();
                                            $row = $select_query123->fetchAll(PDO::FETCH_ASSOC);
									error_log("Natchathiram Id".$row[0]['natchatram'])
									
										?>
                                        
                                            <form id="regform" action="" method="post" enctype="multipart/form-data" >
                                            <!--<input type="hidden" name="id" value="22551">-->
                                            <input type="hidden" name="id" value="<?php echo $row[0]['id'];?>"/>
                                            	<div class="col-md-5" style="margin-top:45px;">
                                                               <div class="form-group  form-inline">
                                                                   <div class="row">
                                                                       

                                                                <label for="selector1" class="control-la3bel col-md-6">பதிவு முறை : </label>
                                                                <div class=" col-md-6">
                                                                      <select name="regtype" id="regtype" class="form-control english" style="width:200px;float:left;">
                                                                      		<option value=""></option>
                                                                        <option <?php if($row[0]['regtype']=="D") echo "selected";?>>D</option>
                                                                        <option <?php if($row[0]['regtype']=="L") echo "selected";?>>L</option>
                                                                        <option <?php if($row[0]['regtype']=="I") echo "selected";?>>I</option>
                                                                        <option <?php if($row[0]['regtype']=="B") echo "selected";?>>B</option>
                                                                        <option <?php if($row[0]['regtype']=="M") echo "selected";?>>M</option>
                                                                        <option <?php if($row[0]['regtype']=="W") echo "selected";?>>W</option>
                                                                        <option <?php if($row[0]['regtype']=="DI") echo "selected";?>>DI</option>
                                                                        </select>
                                                                    </div> 
                                                                </div> 
                                                                </div>
                                                                 <div class="form-group  form-inline">
                                                                     <div class="row">
                                                                        <label for="selector1" class="control-label col-md-6" style="float:left;">ஜாதகர் : </label>
                                                                        <div class=" col-md-6">
                                                                        <select name="gender" id="gender" class="form-control english" style="width:200px;float:left;">
                                                                        	<option value=""></option>
                                                                    <option <?php if($row[0]['gender']=="ஆண்") echo "selected";?>>ஆண்</option>
                                                                    <option <?php if($row[0]['gender']=="பெண்") echo "selected";?>>பெண்</option>
                                                                    
                                                                        </select>
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                                
                                                                <div class="form-group  form-inline">
                                                                    <div class="row">
                                                                        <label for="selector1" class="control-label pull-left col-md-6" style="float:left;">பதிவு எண்: </label>
                                                                        <div class=" col-md-6">
                                                                        <select name="regnop" id="regnop" class="form-control pull-left english" style="width:200px;float:left;margin-bottom:10px;">
                                                                    <option <?php if($row[0]['regnop']=="A") echo "selected";?>>A</option>
                                                                    <option <?php if($row[0]['regnop']=="B") echo "selected";?>>B</option>
                                                                    <option <?php if($row[0]['regnop']=="C") echo "selected";?>>C</option>
                                                                    <option <?php if($row[0]['regnop']=="D") echo "selected";?>>D</option>
                                                                    <option <?php if($row[0]['regnop']=="E") echo "selected";?>>E</option>
                                                                    <option <?php if($row[0]['regnop']=="F") echo "selected";?>>F</option>
                                                                   
                                                                </select>
                                                                        <input type="text" name="regno" id="regno" value="<?= $_GET['id'];?>" class="form-control pull-left" style="font-weight:bold;width:200px;float:right;">																
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                                <div class="clearfix"></div>
                                             		  			
                                                                <div class="form-group  form-inline" style="margin-top:20px;">
                                                                    
                                                                    <?php
																//echo $row['broker_ids'];
																if($row['broker_ids']!='')
																{
																
																	if( @strpos(",", $row['broker_ids']) !== false ) 
																	{
																		$bro_ids[0] = $row['broker_ids'];
																		
																	}
																	else
																	{
																		$bro_ids = explode(",",$row['broker_ids']);
																	}
																	for($i=0;$i<$row['brokercount'];$i++)
																	{
																		/*$bncl = "brokername".$i;
																		//echo $bncl;
																		$btcl = "brokertype".$i;
																		$ipcl = "is_phone".$i;
																		$picl = "profid".$i;*/
																// 		mysqli_set_charset($con,"utf8");
																	    //echo $bro_ids[$i];
																	
																		$bro_query123 =$pdo->prepare("select * from brokers where id='$bro_ids[$i]'");
																// 		$bro_query = "select * from brokers where id='$bro_ids[$i]'";
																		//echo $bro_query;
																		$bro_res123 = $bro_query123->execute();
																		$bro_row = $bro_res123->fetchAll(PDO::FETCH_ASSOC);
																		
																	//echo $bro_row['profid']	;
																		
																?>
                                                                  <div class="optionBox">  
                                                                     <div class="block">
                                                                         <div class="row">
                                                                   <!-- <label for="selector1" class="control-label pull-left col-md-12">புரோக்கர் பெயர் : </label><br/>-->
                                                                   <!--  <div class="col-md-12" style="padding-top: 15px;padding-bottom: 15px;">-->
                                                                   <!--  <select name="brokertype[]" id="brokertype" class="form-control pull-left english" style="clear:both;width:20%; margin-left:0px; font-weight:bold; ">					<option value=""></option>-->
                                                                     
                                                                   <!--      <option <?php if($bro_row[0]['type']=="N") echo "selected";?>>N</option>-->
                                                                   <!--      <option <?php if($bro_row[0]['type']=="I") echo "selected";?>>I</option>-->
                                                                     
                                                                   <!-- </select>-->
    
                                                     
                                                                   <!--<input type="text" value="<?php echo $bro_row[0]['brokername'];?>" name="brokername[]" id="brokername" charset="utf-8" class="form-control pull-left tamil bn" style="word-wrap:break-word width:80%;;"/>-->
                                                                   
                                                                   <?php
                                                                   if($bro_row[0]['is_phone']=='1')
	{		?>
                                                                    <input type="checkbox" name="is_phone[]" value="1" class="pull-left"  checked="" style= "margin-left:25px;margin-top:15px;" />
                                                                   <?php
                                                                   }
                                                                   else
                                                                   {
                                                                   
                                                                   	?>
                                                                   	<input type="checkbox" name="is_phone[]" value="1" class="pull-left"  style= "margin-left:25px;margin-top:15px;" />
                                                                   	<?php
                                                                   }
                                                                   ?>
                                                                   </div>
                                                                    <label for="selector1" class="control-label pull-left" style="margin-top:10px;">போன் நம்பர்</label>
                                                                     <label for="selector1" class="control-label pull-left"  style=" margin-left:25px;margin-top:10px;">பதிவு எண்</label><input type="text" name="profid[]" class="pull-left" value="<?php echo $bro_row[0]['profid'];?>" style="width:190px; height:40px; word-wrap:break-word; margin-left:15px;margin-top:10px;"/>
                                                                    </div>
                                                                 
                                                                </div>  
                                                                </div>  
                                                                <?php
																	
																	}
																
																}
																else
																{
																?>
                                                                  <div class="optionBox">  
                                                                            <div class="block">
                                                                                <div class="row">
                                                                         
                                                                            <label for="selector1" class="control-label pull-left col-md-12">புரோக்கர் பெயர் : </label><br>
                                                                             <div class="col-md-12" style="padding-top: 15px;padding-bottom: 15px;">
                                                                                 
                                                                                 <select name="brokertype[]" id="brokertype" class="form-control pull-left english" style="clear:both;width:20%; margin-left:0px; font-weight:bold; ">					<option value=""></option>
                                                                         
                                                                             <option>N</option>
                                                                             <option>I</option>
                                                                         
                                                                        </select>
                
                                                                
                                                                                <input type="text" value="<?=$bro_row[0]['brokername'];?>" name="brokername[]" id="brokername" charset="utf-8" class="form-control pull-left tamil bn ui-autocomplete-input" 
                                                                                style="word-wrap:break-word; width:80%;" autocomplete="off">
                                                                            </div>
                                                                            <input type="checkbox" name="is_phone[]" value="1" class="pull-left" style="margin-top:15px;">
                                                                            
                                                                            
                                                                       	    <label for="selector1" class="control-label pull-left col-md-6" style="">போன் நம்பர்</label>
                                                                             <label for="selector1" class="control-label pull-left col-md-6" style=" margin-top:10px;">பதிவு எண்</label>
                                                                             <input type="text" name="profid[]" class="pull-left col-md-4" value="" style="border-color: #ccc; height:40px; word-wrap:break-word; margin-top:10px;">
                                                                            <ul id="ui-id-5" tabindex="0" class="ui-menu ui-widget ui-widget-content ui-autocomplete ui-front col-md-1" style="display: none;"></ul>
                                                                        
                                                                        <div class="block col-md-12">
                                                                            <span class="add"><i class="fa fa-plus-circle" style="color:green; font-size:30px; float:right; vertical-align:middle;padding:15px;"></i></span>
                                                                        </div>         

                                                                    </div>
                                                                            </div>  
                                                                
                                                                    </div>
                                                                <?php
																}
																?>
                                                                    
                                                                    <!--<div class="optionBox">  -->
                                                                    <!--        <div class="block">-->
                                                                    <!--            <div class="row">-->
                                                                         
                                                                    <!--        <label for="selector1" class="control-label pull-left col-md-12">புரோக்கர் பெயர் : </label><br>-->
                                                                    <!--         <div class="col-md-12" style="padding-top: 15px;padding-bottom: 15px;">-->
                                                                                 
                                                                    <!--             <select name="brokertype[]" id="brokertype" class="form-control pull-left english" style="clear:both;width:20%; margin-left:0px; font-weight:bold; ">					<option value=""></option>-->
                                                                         
                                                                    <!--         <option>N</option>-->
                                                                    <!--         <option>I</option>-->
                                                                         
                                                                    <!--    </select>-->
                
                                                                
                                                                    <!--            <input type="text" value="ஆம்பூர் லட்சுமி அண்ணாமலை" name="brokername[]" id="brokername" charset="utf-8" class="form-control pull-left tamil bn ui-autocomplete-input" -->
                                                                    <!--            style="word-wrap:break-word; width:80%;" autocomplete="off">-->
                                                                    <!--        </div>-->
                                                                    <!--        <input type="checkbox" name="is_phone[]" value="1" class="pull-left" style="margin-top:15px;">-->
                                                                            
                                                                            
                                                                    <!--   	    <label for="selector1" class="control-label pull-left col-md-6" style="">போன் நம்பர்</label>-->
                                                                    <!--         <label for="selector1" class="control-label pull-left col-md-6" style=" margin-top:10px;">பதிவு எண்</label>-->
                                                                    <!--         <input type="text" name="profid[]" class="pull-left col-md-4" value="" style="border-color: #ccc; height:40px; word-wrap:break-word; margin-top:10px;">-->
                                                                    <!--        <ul id="ui-id-5" tabindex="0" class="ui-menu ui-widget ui-widget-content ui-autocomplete ui-front col-md-1" style="display: none;"></ul>-->
                                                                        
                                                                    <!--    <div class="block col-md-2">-->
                                                                    <!--        <span class="add"><i class="fa fa-plus-circle" style="color:green; font-size:30px; float:right; vertical-align:middle;padding:15px;"></i></span>-->
                                                                    <!--    </div>         -->

                                                                    <!--</div>-->
                                                                    <!--        </div>  -->
                                                                
                                                                    <!--</div>         -->
                                                               
                                                                     
                                                               
                                                               
                                                                </div>
                                                        		<br>
                                                                <div class="clearfix"></div>
                                                               
                                                                <div class="form-group  form-inline" style="margin-top:20px;">
                                                                    <div class="row">
                                                                        <label for="selector1" class="control-label pull-left col-md-6">பெயர் : </label>
                                                                        <div class="col-md-6" style="margin-bottom:10px;">
                                                                        <input type="text" name="binit" id="binit" maxlength="10" value="<?= $row[0]['binit'];?>" charset="utf-8" class="form-control pull-left english" style="width:200px;">					
                                                                        </div>
                                                                        <div class="col-md-6" style="float:right;" ><input type="text" name="bname" value="<?= $row[0]['bname'];?>" id="bname" autocomplete="off" translate="no" class="form-control pull-left tamil ui-autocomplete-input" 
                                                                        style="width:200px;wont-family:Avvaiyar;">											
                                                                    </div>
                                                                    
                                                                        <ul id="ui-id-1" tabindex="0" class="ui-menu ui-widget ui-widget-content ui-autocomplete ui-front" style="display: none;"></ul></div>
                                                        		</div>
                                                        		<div class="clearfix"></div>
                                                                <br>
                                                                <div class="form-group  form-inline" style="margin-top:10px;">
                                                                    <div class="row">
                                                                            <label for="selector1" class="control-label pull-left col-md-6">தம்பி பெயர் : </label>
                                                                            <div class="col-md-6" style="margin-bottom:10px;">
                                                                                <input type="text" name="dinit" id="dinit" value="<?= $row[0]['dinit'];?>" maxlength="10" charset="utf-8" class="form-control pull-left english" style="width:200px;">
                                                                            </div>
                                                                                <div class="col-md-6" style="float:right;">
                                                                                <input type="text" name="dname" id="dname" value="<?= $row[0]['dname'];?>" class="form-control pull-left tamil ui-autocomplete-input" style="width:200px;" autocomplete="off">

                                                                            </div>
                                                                                                                                                            <ul id="ui-id-2" tabindex="0" class="ui-menu ui-widget ui-widget-content ui-autocomplete ui-front" style="display: none;"></ul></div>
                                                                    </div>
                                                                <div class="clearfix"></div>
                                                        		<div class="form-group  form-inline" style="margin-top:10px;">
                                                        		    <div class="row">
                                                                        <label for="selector1" class="control-label pull-left col-md-6">படிப்பு : </label>
                                                                            <div class="col-md-6" style="margin-bottom:10px;">
                                                                        <input type="text" name="edu" id="edu" value="<?php echo $row[0]['edu'];?>" charset="utf-8" class="form-control pull-left english ui-autocomplete-input" style="width:200px; margin-left:0px;" autocomplete="off">						
                                                                        </div>
                                                                        <div class="col-md-6" style="float:right;">
                                                                        <select name="edu_cat" id="edu_cat" class="form-control pull-left english" style="width:200px;">
                                                                      	
                                                                      	<option value=""></option>
                                                                        <option <?php if($row[0]['edu_cat']=="HSC") echo "selected";?>>HSC</option>
                                                                        <option <?php if($row[0]['edu_cat']=="UG") echo "selected";?>>UG</option>
                                                                        <option <?php if($row[0]['edu_cat']=="PG") echo "selected";?>>PG</option>
                                                                        <option <?php if($row[0]['edu_cat']=="Engineering") echo "selected";?>>Engineering</option>
                                                                        <option <?php if($row[0]['edu_cat']=="Medical") echo "selected";?>>Medical</option>
                                                                  		<option <?php if($row[0]['edu_cat']=="Others") echo "selected";?>>Others</option>
                                                                    
                                                                    
                                                                 </select>
                                                                        <ul id="ui-id-11" tabindex="0" class="ui-menu ui-widget ui-widget-content ui-autocomplete ui-front" style="display: none;"></ul></div>
                                                                        </div>
                                                                    </div>
                                                                <div class="clearfix"></div>
                                                                
                                                        		<div class="form-group  form-inline" style="margin-top:10px;">
                                                        		    <div class="row">
                                                                            <label for="selector1" class="control-label pull-left col-md-6">வேலை : </label>
                                                                            <div class="col-md-6" style="margin-bottom:10px;">
                                                                                <input type="text" name="job" id="job" value="<?php echo $row[0]['job'];?>" charset="utf-8" class="form-control pull-left tamil ui-autocomplete-input" style="width:200px;" autocomplete="off">
                                                                             </div>
                                                                             <div class="col-md-6" style="float:right;">
                                                                             <select name="job_cat" id="job_cat" class="form-control pull-left english" style="width:200px;">
                                                                      	<option value=""></option>
                                                                        <option <?php if($row[0]['job_cat']=="Govt Job") echo "selected";?>>Govt Job</option>
                                                                        <option <?php if($row[0]['job_cat']=="Private Job") echo "selected";?>>Private Job</option>
                                                                        <option <?php if($row[0]['job_cat']=="Doctor") echo "selected";?>>Doctor</option>
                                                                        <option <?php if($row[0]['job_cat']=="Business") echo "selected";?>>Business</option>
                                                                        <option <?php if($row[0]['job_cat']=="Software Professionals") echo "selected";?>>Software Professionals</option>
                                                                  		<option <?php if($row[0]['job_cat']=="Others") echo "selected";?>>Others</option>
                                                                    
                                                                 </select>
                                                                        </div>
                                                                            <ul id="ui-id-12" tabindex="0" class="ui-menu ui-widget ui-widget-content ui-autocomplete ui-front" style="display: none;"></ul></div>
                                                        		            <br>
                                                        		    </div>
                                                                <div class="clearfix"></div>
                                                              <div class="form-group  form-inline" style="margin-top:10px;" id="job_place">
                                                                  <div class="row">
                                                                    <label for="selector1" class="control-label pull-left col-md-6">வேலை செய்யும் ஊர்: </label>
                                                                    
                                                                    <input type="text" name="job_place" id="job_place" value="<?= $row[0]['job_place'];?>" charset="utf-8" class="form-control pull-left tamil place_auto col-md-6" style="width:200px;margin-left: 15px;">
                                                                </div>
                                                           </div>
                                                          
                                                        	<br>
                                                             <div class="clearfix"></div>
                                                            <div class="form-group  form-inline" style="margin-top:20px;">
                                                                    <div class="row">
                                                                        <label for="selector1" class="control-label pull-left col-md-6">வேலை செய்யும் நிறுவனம் : </label>
                                                                        <input type="text" name="job_company" value="<?= $row[0]['job_company'];?>" charset="utf-8" class="form-control pull-left english col-md-6" style="width:200px; margin-left:15px;">
                                                            
                                                                    </div>
                                                                </div>
                                                        		<br>
                                                            <div class="clearfix"></div>    
                                                             
                                                            <div class="form-group  form-inline" style="margin-top:20px;">
                                                                <div class="row">
                                                                    <label for="income" class="control-label pull-left col-md-6">மாத வருமானம் : </label>
                                                                    <div class="input-group pull-left" style="margin-left: 18px !important;">
                                                                        <span class="input-group-addon " id="basic-addon">₹</span>
                                                                          <input type="number" name="income" class="form-control english col-md-6" value="<?= $row[0]['monthly_income'];?>" placeholder="" style="width:165px;" min="0">
                                                            	    </div>
                                                                </div>
                                                            </div>
                                                            <br>
                                                            <div class="clearfix"></div>
                                                             <div class="form-group  form-inline" style="margin-top:20px;">
                                                                <div class="row">
                                                                    <label for="selector1" class="control-label col-md-6">செல்போன் எண் : </label>
                                                                
                                                                     <input type="text" name="cellno" id="cellno" value="<?= $row[0]['cellno'];?>" class="form-control col-md-6" placeholder="" style="width:200px;">
                                                               
                                                                </div>
                                                             </div>
                                                             
                                                              <div class="form-group  form-inline" style="margin-top:10px;">
                                                                  <div class="row">
                                                                    <label for="selector1" class="control-label col-md-6">வாட்ஸஅப் எண் : </label>
                                                                
                                                                    <input type="text" name="whatsapp_no" class="form-control col-md-6" placeholder="" value="<?= $row[0]['whatsapp_no'];?>"  style="width:200px;">
                                                               
                                                                </div>
                                                             </div>
                                                             
                                                              <div class="form-group  form-inline" style="margin-top:10px;">
                                                                  <div class="row">
                                                                    <label for="selector1" class="control-label col-md-6">மின்னஞ்சல் : </label>
                                                                
                                                                     <input type="email" name="email" id="email" class="form-control col-md-6" placeholder="" value="<?= $row[0]['email'];?>" style="width:200px;">
                                                               
                                                                </div>
                                                             </div>
                                                             
                                                             <div class="form-group  form-inline" style="margin-top:10px;">
                                                                 <div class="row">
                                                                    <label for="selector1" class="control-label col-md-6" style="margin-bottom: 15px;">பதிவு தேதி : </label>
                                                         	          
                                                                    
                                                                    <div class="col-md-6" style="float:right;">                                                      
                                                                <!--         <select name="regdate1" id="regdate1" style="height:40px;">-->
                                                                <!--        <option></option>-->
                                                                <!--                                                                                       <option value="1"> 1</option>-->
                                                                <!--                                                                                   <option value="2"> 2</option>-->
                                                                <!--                                                                                   <option value="3"> 3</option>-->
                                                                <!--                                                                                   <option value="4" selected=""> 4</option>-->
                                                                <!--                                                                                   <option value="5"> 5</option>-->
                                                                <!--                                                                                   <option value="6"> 6</option>-->
                                                                <!--                                                                                   <option value="7"> 7</option>-->
                                                                <!--                                                                                   <option value="8"> 8</option>-->
                                                                <!--                                                                                   <option value="9"> 9</option>-->
                                                                <!--                                                                                   <option value="10"> 10</option>-->
                                                                <!--                                                                                   <option value="11"> 11</option>-->
                                                                <!--                                                                                   <option value="12"> 12</option>-->
                                                                <!--                                                                                   <option value="13"> 13</option>-->
                                                                <!--                                                                                   <option value="14"> 14</option>-->
                                                                <!--                                                                                   <option value="15"> 15</option>-->
                                                                <!--                                                                                   <option value="16"> 16</option>-->
                                                                <!--                                                                                   <option value="17"> 17</option>-->
                                                                <!--                                                                                   <option value="18"> 18</option>-->
                                                                <!--                                                                                   <option value="19"> 19</option>-->
                                                                <!--                                                                                   <option value="20"> 20</option>-->
                                                                <!--                                                                                   <option value="21"> 21</option>-->
                                                                <!--                                                                                   <option value="22"> 22</option>-->
                                                                <!--                                                                                   <option value="23"> 23</option>-->
                                                                <!--                                                                                   <option value="24"> 24</option>-->
                                                                <!--                                                                                   <option value="25"> 25</option>-->
                                                                <!--                                                                                   <option value="26"> 26</option>-->
                                                                <!--                                                                                   <option value="27"> 27</option>-->
                                                                <!--                                                                                   <option value="28"> 28</option>-->
                                                                <!--                                                                                   <option value="29"> 29</option>-->
                                                                <!--                                                                                   <option value="30"> 30</option>-->
                                                                <!--                                                                                   <option value="31"> 31</option>-->
                                                                <!--                                                                    </select>-->
                                                                <!--        <select name="regdate2" id="regdate2" style="height:40px;">-->
                                                                <!--    <option></option>-->
                                                                <!--                                                                                    <option value="1" selected=""> 1</option>-->
                                                                <!--                                                                                   <option value="2"> 2</option>-->
                                                                <!--                                                                                   <option value="3"> 3</option>-->
                                                                <!--                                                                                   <option value="4"> 4</option>-->
                                                                <!--                                                                                   <option value="5"> 5</option>-->
                                                                <!--                                                                                   <option value="6"> 6</option>-->
                                                                <!--                                                                                   <option value="7"> 7</option>-->
                                                                <!--                                                                                   <option value="8"> 8</option>-->
                                                                <!--                                                                                   <option value="9"> 9</option>-->
                                                                <!--                                                                                   <option value="10"> 10</option>-->
                                                                <!--                                                                                   <option value="11"> 11</option>-->
                                                                <!--                                                                                   <option value="12"> 12</option>-->
                                                                                                                                       
                                                                <!--</select>-->
                                                                <!--        <select name="regdate3" id="regdate3" style="height:40px;">-->
                                                                <!--    <option></option>-->
                                                                <!--                                                                                   <option value="1950"> 1950</option>-->
                                                                <!--                                                                                   <option value="1951"> 1951</option>-->
                                                                <!--                                                                                   <option value="1952"> 1952</option>-->
                                                                <!--                                                                                   <option value="1953"> 1953</option>-->
                                                                <!--                                                                                   <option value="1954"> 1954</option>-->
                                                                <!--                                                                                   <option value="1955"> 1955</option>-->
                                                                <!--                                                                                   <option value="1956"> 1956</option>-->
                                                                <!--                                                                                   <option value="1957"> 1957</option>-->
                                                                <!--                                                                                   <option value="1958"> 1958</option>-->
                                                                <!--                                                                                   <option value="1959"> 1959</option>-->
                                                                <!--                                                                                   <option value="1960"> 1960</option>-->
                                                                <!--                                                                                   <option value="1961"> 1961</option>-->
                                                                <!--                                                                                   <option value="1962"> 1962</option>-->
                                                                <!--                                                                                   <option value="1963"> 1963</option>-->
                                                                <!--                                                                                   <option value="1964"> 1964</option>-->
                                                                <!--                                                                                   <option value="1965"> 1965</option>-->
                                                                <!--                                                                                   <option value="1966"> 1966</option>-->
                                                                <!--                                                                                   <option value="1967"> 1967</option>-->
                                                                <!--                                                                                   <option value="1968"> 1968</option>-->
                                                                <!--                                                                                   <option value="1969"> 1969</option>-->
                                                                <!--                                                                                   <option value="1970"> 1970</option>-->
                                                                <!--                                                                                   <option value="1971"> 1971</option>-->
                                                                <!--                                                                                   <option value="1972"> 1972</option>-->
                                                                <!--                                                                                   <option value="1973"> 1973</option>-->
                                                                <!--                                                                                   <option value="1974"> 1974</option>-->
                                                                <!--                                                                                   <option value="1975"> 1975</option>-->
                                                                <!--                                                                                   <option value="1976"> 1976</option>-->
                                                                <!--                                                                                   <option value="1977"> 1977</option>-->
                                                                <!--                                                                                   <option value="1978"> 1978</option>-->
                                                                <!--                                                                                   <option value="1979"> 1979</option>-->
                                                                <!--                                                                                   <option value="1980"> 1980</option>-->
                                                                <!--                                                                                   <option value="1981"> 1981</option>-->
                                                                <!--                                                                                   <option value="1982"> 1982</option>-->
                                                                <!--                                                                                   <option value="1983"> 1983</option>-->
                                                                <!--                                                                                   <option value="1984"> 1984</option>-->
                                                                <!--                                                                                   <option value="1985"> 1985</option>-->
                                                                <!--                                                                                   <option value="1986"> 1986</option>-->
                                                                <!--                                                                                   <option value="1987"> 1987</option>-->
                                                                <!--                                                                                   <option value="1988"> 1988</option>-->
                                                                <!--                                                                                   <option value="1989"> 1989</option>-->
                                                                <!--                                                                                   <option value="1990"> 1990</option>-->
                                                                <!--                                                                                   <option value="1991"> 1991</option>-->
                                                                <!--                                                                                   <option value="1992"> 1992</option>-->
                                                                <!--                                                                                   <option value="1993"> 1993</option>-->
                                                                <!--                                                                                   <option value="1994"> 1994</option>-->
                                                                <!--                                                                                   <option value="1995"> 1995</option>-->
                                                                <!--                                                                                   <option value="1996"> 1996</option>-->
                                                                <!--                                                                                   <option value="1997"> 1997</option>-->
                                                                <!--                                                                                   <option value="1998"> 1998</option>-->
                                                                <!--                                                                                   <option value="1999"> 1999</option>-->
                                                                <!--                                                                                   <option value="2000"> 2000</option>-->
                                                                <!--                                                                                   <option value="2001"> 2001</option>-->
                                                                <!--                                                                                   <option value="2002"> 2002</option>-->
                                                                <!--                                                                                   <option value="2003"> 2003</option>-->
                                                                <!--                                                                                   <option value="2004"> 2004</option>-->
                                                                <!--                                                                                   <option value="2005"> 2005</option>-->
                                                                <!--                                                                                   <option value="2006"> 2006</option>-->
                                                                <!--                                                                                   <option value="2007"> 2007</option>-->
                                                                <!--                                                                                   <option value="2008"> 2008</option>-->
                                                                <!--                                                                                   <option value="2009"> 2009</option>-->
                                                                <!--                                                                                   <option value="2010"> 2010</option>-->
                                                                <!--                                                                                   <option value="2011"> 2011</option>-->
                                                                <!--                                                                                   <option value="2012"> 2012</option>-->
                                                                <!--                                                                                   <option value="2013"> 2013</option>-->
                                                                <!--                                                                                   <option value="2014"> 2014</option>-->
                                                                <!--                                                                                   <option value="2015"> 2015</option>-->
                                                                <!--                                                                                   <option value="2016"> 2016</option>-->
                                                                <!--                                                                                   <option value="2017"> 2017</option>-->
                                                                <!--                                                                                   <option value="2018"> 2018</option>-->
                                                                <!--                                                                                   <option value="2019"> 2019</option>-->
                                                                <!--                                                                                   <option value="2020"> 2020</option>-->
                                                                <!--                                                                                   <option value="2021"> 2021</option>-->
                                                                <!--                                                                                   <option value="2022"> 2022</option>-->
                                                                <!--                                                                                   <option value="2023"> 2023</option>-->
                                                                <!--                                                                                   <option value="2024" selected=""> 2024</option>-->
                                                                <!--                                                                                   <option value="2025"> 2025</option>-->
                                                                <!--                                                                                   <option value="2026"> 2026</option>-->
                                                                <!--                                                                                   <option value="2027"> 2027</option>-->
                                                                <!--                                                                                   <option value="2028"> 2028</option>-->
                                                                <!--                                                                                   <option value="2029"> 2029</option>-->
                                                                <!--                                                                    </select>-->
                                                                
                                                                <?php 
															   $rarr =explode("-",$row[0]['regdate']);
															   
															   
															   ?>
                                                               
                                                                 <select name = "regdate1" id = "regdate1" style="height:40px;">
                                                                        <option></option>
                                                                        <?php
                                                                            for($day = 1; $day <= 31; $day++){
																				?>
                                                                               <option value = <?php echo $day;?> <?php if($rarr[0]==$day) echo "selected";?>> <?php echo $day;?></option>
                                                                    <?php
                                                                        }
                                                                    ?>
                                                                </select>
                                                                <select name = "regdate2" id = "regdate2" style="height:40px;">
                                                                    <option></option>
                                                                     <?php
                                                                            for($month = 1; $month <= 12; $month++){
																				?>
                                                                               <option value = <?php echo $month;?> <?php if($rarr[1]==$month) echo "selected";?>> <?php echo $month;?></option>
                                                                    <?php
                                                                        }
                                                                    ?>
                                                                   
                                                                </select>
                                                                <select name = "regdate3" id = "regdate3" style="height:40px;">
                                                                    <option></option>
                                                                    <?php
                                                                        $y = date("Y", strtotime("+8 HOURS"));
                                                                        for($year = 1950; $year <= 2029; $year++){
                                                                           
                                                                    
                                                                    ?>
                                                                               <option value = <?php echo $year;?> <?php if($rarr[2]==$year) echo "selected";?>> <?php echo $year;?></option>
                                                                    <?php
                                                                        }
                                                                    ?>
                                                                </select>
                                                                
                                                                    </div>
                                                                </div>
                                                             </div>
                                                           
                                                            
                                                           
                                                            <div class="form-group  form-inline" style="margin-top:10px;">
                                                                <div class="row">
                                                                <label for="selector1" class="control-label col-md-6">பிறந்த தேதி : </label>
                                                             
                                                                <div class="col-md-6" style="float:right;">
                                                                          <?php 
															   $darr =explode("-",$row[0]['dob']);
															   
															   
															   ?>
                                                               
                                                                 <select name = "dob1" id = "dob1" style="height:40px;">
                                                                        <option></option>
                                                                        <?php
                                                                            for($day = 1; $day <= 31; $day++){
																				?>
                                                                               <option value = <?php echo $day;?> <?php if($darr[0]==$day) echo "selected";?>> <?php echo $day;?></option>
                                                                    <?php
                                                                        }
                                                                    ?>
                                                                </select>
                                                                <select name = "dob2" id = "dob2" style="height:40px;">
                                                                    <option></option>
                                                                     <?php
                                                                            for($month = 1; $month <= 12; $month++){
																				?>
                                                                               <option value = <?php echo $month;?> <?php if($darr[1]==$month) echo "selected";?>> <?php echo $month;?></option>
                                                                    <?php
                                                                        }
                                                                    ?>
                                                                   
                                                                </select>
                                                                <select name = "dob3" id = "dob3" style="height:40px;">
                                                                    <option></option>
                                                                    <?php
                                                                        $y = date("Y", strtotime("+8 HOURS"));
                                                                        for($year = 1950; $year <= 2029; $year++){
                                                                           
                                                                    
                                                                    ?>
                                                                               <option value = <?php echo $year;?> <?php if($darr[2]==$year) echo "selected";?>> <?php echo $year;?></option>
                                                                    <?php
                                                                        }
                                                                    ?>
                                                                </select>
                                                               
                                                                </div>
                                                               </div>
                                                             </div>
                                                            <div class="form-group  form-inline" style="margin-top:10px;">
                                                                   <div class="row">
                                                                         <label for="selector1" class="control-label pull-left col-md-6" style="margin-bottom:10px;">கிழமை : </label>
                                                                         <select name="day" id="day" class="form-control pull-left english col-md-6" style="width:200px; margin-bottom:10px;">
                                                                	<option value=""></option>
                                                                    <option  value="1" <?php if(trim($row[0]['day'])=="1") echo "selected";?>>திங்கள் </option>
                                                                    <option  value="2" <?php if(trim($row[0]['day'])==="2") echo "selected";?>>செவ்வாய் </option>
                                                                    <option  value="3" <?php if(trim($row[0]['day'])=="3") echo "selected";?>>புதன் </option>
                                                                    <option  value="4" <?php if(trim($row[0]['day'])=="4") echo "selected";?>>வியாழன் </option>
                                                                    <option  value="5" <?php if(trim($row[0]['day'])=="5") echo "selected";?>>வெள்ளி </option>
                                                                    <option  value="6" <?php if(trim($row[0]['day'])=="6") echo "selected";?>>சனி</option>
                                                                    <option  value="7" <?php if(trim($row[0]['day'])=="7") echo "selected";?>>ஞாயிறு </option>

                                                                </select>
                                                                
                                                                <label for="selector1" class="control-label pull-left col-md-6" style=""> நேரம் : </label>
                                                         
                                                                      <input type="text" name="time" value="<?php echo $row[0]['time'];?>" id="time" charset="utf-8" class="form-control pull-left english col-md-3" style="width:95px; margin-right:5px">
                                                                
                                                                                                                                    
                                                                <select name="meridian" id="meridian" class="form-control english pull-left col-md-3" style="width:95px;margin-left:5px">
                                                                	<option value=""></option>
                                                                    <option <?php if($row[0]['meridian']=="AM") echo "selected";?>>AM </option>
                                                                    <option <?php if($row[0]['meridian']=="PM") echo "selected";?>>PM </option>
                                                                   
                                                                </select>
                                                            
                                                           <!--      <div class="input-group bootstrap-timepicker timepicker">
                                                                    <input id="timepicker1" name="time" type="text" class="form-control input-small">
                                                                    <span class="input-group-addon"><i class="glyphicon glyphicon-time"></i></span>
                                                                </div>

														<!--<select name="time" id="time" class="form-control pull-left" style="width:100px;margin-left:5px;">-->
															<option value=""></option>
															<!--</select>-->

                                                             </div>
                                                             </div>
                                                        
                                                            <div class="clearfix"></div>
                                                            <br>
                                                             <div class="form-group  form-inline" style="margin-top:10px;"> 
                                                             <div class="row">
                                                              <label for="selector1" class="control-label pull-left col-md-6" style="">தமிழ் வருடம் : </label>
                                                           <!--   <input type="text" name="tyear" id="tyear" class="form-control tamil" placeholder="" value=""
                                                                 style="width:415px;height:40px;" autocomplete="off">-->
                                                                 
                                                                 <select name="tyear" id="tyear" class="form-control pull-left english ui-autocomplete-input col-md-6" style="width:200px;" autocomplete="off">
                                                                	<option value=""></option>
                                                                    <option value="1" <?php if($row[0]['tyear']=="1") echo "selected";?>>பிரபவ</option>
                                                                    <option value="2" <?php if($row[0]['tyear']=="2") echo "selected";?>>விபவ</option>
                                                                    <option value="3" <?php if($row[0]['tyear']=="3") echo "selected";?>> சுக்ல</option>
                                                                    <option value="4" <?php if($row[0]['tyear']=="4") echo "selected";?>> பிரமோதூத</option>
                                                                    <option value="5" <?php if($row[0]['tyear']=="5") echo "selected";?>> பிரசோற்பத்தி</option>
                                                                    <option value="6" <?php if($row[0]['tyear']=="6") echo "selected";?>>  ஆங்கீரச </option>
                                                                    <option value="7" <?php if($row[0]['tyear']=="7") echo "selected";?>>  ஸ்ரீமுக </option>
                                                                    <option value="8" <?php if($row[0]['tyear']=="8") echo "selected";?>>  பவ</option>
                                                                    <option value="9" <?php if($row[0]['tyear']=="9") echo "selected";?>> யுவ </option>
                                                                    <option value="10" <?php if($row[0]['tyear']=="10") echo "selected";?>> தாது</option>
                                                                    <option value="11" <?php if($row[0]['tyear']=="11") echo "selected";?>>ஈஸ்வர</option>
                                                                    <option value="12" <?php if($row[0]['tyear']=="12") echo "selected";?>>வெகுதானிய</option>
                                                                    <option value="13" <?php if($row[0]['tyear']=="13") echo "selected";?>> பிரமாதி </option>
                                                                    <option value="14" <?php if($row[0]['tyear']=="14") echo "selected";?>>விக்கிரம</option>
                                                                    <option value="15" <?php if($row[0]['tyear']=="15") echo "selected";?>>விஷு </option>
                                                                    <option value="16" <?php if($row[0]['tyear']=="16") echo "selected";?>>சித்திரபானு</option>
                                                                    <option value="17" <?php if($row[0]['tyear']=="17") echo "selected";?>>சுபானு</option>
                                                                    <option value="18" <?php if($row[0]['tyear']=="18") echo "selected";?>> தாரண</option>
                                                                    <option value="19" <?php if($row[0]['tyear']=="19") echo "selected";?>> பார்த்திப</option>
                                                                    <option value="20" <?php if($row[0]['tyear']=="20") echo "selected";?>> விய </option>
                                                                    <option value="21" <?php if($row[0]['tyear']=="21") echo "selected";?>> சர்வசித்து</option>
                                                                    <option value="22" <?php if($row[0]['tyear']=="22") echo "selected";?>> சர்வதாரி</option>
                                                                    <option value="23" <?php if($row[0]['tyear']=="23") echo "selected";?>>  விரோதி </option>
                                                                    <option value="24" <?php if($row[0]['tyear']=="24") echo "selected";?>>விக்ருதி</option>
                                                                    <option value="25" <?php if($row[0]['tyear']=="25") echo "selected";?>> கர</option>
                                                                    <option value="26" <?php if($row[0]['tyear']=="26") echo "selected";?>> நந்தன</option>
                                                                    <option value="27" <?php if($row[0]['tyear']=="27") echo "selected";?>>விஜய </option>
                                                                    <option value="28" <?php if($row[0]['tyear']=="28") echo "selected";?>> ஜய</option>
                                                                    <option value="29" <?php if($row[0]['tyear']=="29") echo "selected";?>>மன்மத </option>
                                                                    <option value="30" <?php if($row[0]['tyear']=="30") echo "selected";?>> துன்முகி </option>
                                                                    <option value="31" <?php if($row[0]['tyear']=="31") echo "selected";?>>  ஹேவிளம்பி </option>  
                                                                    <option value="32" <?php if($row[0]['tyear']=="32") echo "selected";?>> விளம்பி </option>  
                                                                    <option value="33" <?php if($row[0]['tyear']=="33") echo "selected";?>> விகாரி </option>  
                                                                    <option value="34" <?php if($row[0]['tyear']=="34") echo "selected";?>>  சார்வரி </option>  
                                                                    <option value="35" <?php if($row[0]['tyear']=="35") echo "selected";?>> பிலவ </option>  
                                                                    <option value="36" <?php if($row[0]['tyear']=="36") echo "selected";?>> சுபகிருது </option>  
                                                                    <option value="37" <?php if($row[0]['tyear']=="37") echo "selected";?>> சோபகிருது </option>  
                                                                    <option value="38" <?php if($row[0]['tyear']=="38") echo "selected";?>>குரோதி</option>  
                                                                    <option value="39" <?php if($row[0]['tyear']=="39") echo "selected";?>> விசுவாசுவ</option>  
                                                                    <option value="40" <?php if($row[0]['tyear']=="40") echo "selected";?>>பரபாவ</option>  
                                                                    <option value="41" <?php if($row[0]['tyear']=="41") echo "selected";?>> பிலவங்க </option>  
                                                                    <option value="42" <?php if($row[0]['tyear']=="42") echo "selected";?>> கீலக </option>  
                                                                    <option value="43" <?php if($row[0]['tyear']=="43") echo "selected";?>> சௌமிய </option>  
                                                                    <option value="44" <?php if($row[0]['tyear']=="44") echo "selected";?>>  சாதாரண </option>  
                                                                    <option value="45" <?php if($row[0]['tyear']=="45") echo "selected";?>>  விரோதகிருது </option>  
                                                                    <option value="46" <?php if($row[0]['tyear']=="46") echo "selected";?>> பரிதாபி </option>  
                                                                    <option value="47" <?php if($row[0]['tyear']=="47") echo "selected";?>>  பிரமாதீச </option>  
                                                                    <option value="48" <?php if($row[0]['tyear']=="48") echo "selected";?>>  ஆனந்த </option>  
                                                                    <option value="49" <?php if($row[0]['tyear']=="49") echo "selected";?>> ராட்சச </option>  
                                                                    <option value="50" <?php if($row[0]['tyear']=="50") echo "selected";?>>நள </option>  
                                                                    <option value="51" <?php if($row[0]['tyear']=="51") echo "selected";?>>  பிங்கள </option>  
                                                                    <option value="52" <?php if($row[0]['tyear']=="52") echo "selected";?>> காளயுக்தி </option>  
                                                                    <option value="53" <?php if($row[0]['tyear']=="53") echo "selected";?>> சித்தார்த்தி </option>  
                                                                    <option value="54" <?php if($row[0]['tyear']=="54") echo "selected";?>>ரௌத்திரி</option>  
                                                                    <option value="55" <?php if($row[0]['tyear']=="55") echo "selected";?>>  துன்மதி </option>  
                                                                    <option value="56" <?php if($row[0]['tyear']=="56") echo "selected";?>> துந்துபி </option>  
                                                                    <option value="57" <?php if($row[0]['tyear']=="57") echo "selected";?>>ருத்ரோத்காரி</option>  
                                                                    <option value="58" <?php if($row[0]['tyear']=="58") echo "selected";?>>ரக்தாட்சி</option>  
                                                                    <option value="59" <?php if($row[0]['tyear']=="59") echo "selected";?>>  குரோதன </option>  
                                                                    <option value="60" <?php if($row[0]['tyear']=="60") echo "selected";?>> அட்சய </option>  

                                                                </select>
                                                             </div>
                                                             <ul id="ui-id-13" tabindex="0" class="ui-menu ui-widget ui-widget-content ui-autocomplete ui-front" style="display: none;"></ul></div>
                                                        
                                                            <div class="clearfix"></div>  
                                                           
                                                             <div class="form-group  form-inline" style="margin-top:10px;">  
                                                             <div class="row">
                                                                 <label for="selector1" class="control-label pull-left col-md-6">மாதம் : </label>
                                                             
                                                                <select name="month" id="month" class="form-control pull-left english col-md-6" style="width:200px; margin-bottom:10px;">
                                                                	<option value=""></option>
                                                                    <option value="1" <?php if($row[0]['month']=="1") echo "selected";?>>சித்திரை</option>
                                                                    <option value="2" <?php if($row[0]['month']=="2") echo "selected";?>>வைகாசி</option>
                                                                    <option value="3" <?php if($row[0]['month']=="3") echo "selected";?>>ஆனி</option>
                                                                    <option value="4" <?php if($row[0]['month']=="4") echo "selected";?>>ஆடி</option>
                                                                    <option value="5" <?php if($row[0]['month']=="5") echo "selected";?>>ஆவணி </option>
                                                                    <option value="6" <?php if($row[0]['month']=="6") echo "selected";?>>புரட்டாசி</option>
                                                                    <option value="7" <?php if($row[0]['month']=="7") echo "selected";?>>ஐப்பசி</option>
                                                                    <option value="8" <?php if($row[0]['month']=="8") echo "selected";?>>கார்த்திகை</option>
                                                                    <option value="9" <?php if($row[0]['month']=="9") echo "selected";?>>மார்கழி</option>
                                                                    <option value="10" <?php if($row[0]['month']=="10") echo "selected";?>>தை</option>
                                                                    <option value="11" <?php if($row[0]['month']=="11") echo "selected";?>>மாசி</option>
                                                                    <option value="12" <?php if($row[0]['month']=="12") echo "selected";?>>பங்குனி</option>
                                                                     
                                                                </select>
                                                      		&nbsp;&nbsp;&nbsp;
                                                     			 <label for="selector1" class="control-label pull-left col-md-6" style="">தேதி : </label>
                                                                <select id="tdate" name="tdate" style="width:200px;" class="form-control pull-left english col-md-6"> 
                                                                <option value=""></option>      
                                                                  <?php
                                                                            for($tday = 1; $tday <= 31; $tday++){
																				?>
                                                                               <option value = <?php echo $tday;?> <?php if($row[0]['tdate']==$tday) echo "selected";?>> <?php echo $tday;?></option>
                                                                    <?php
                                                                        }
                                                                    ?>
                                                                </select>
                                                                                       
                
                                                            </div>
                                                            </div>
                                                            <div class="clearfix"></div>
                                                           <br>
                                             		  		<div class="form-group form-inline" style="margin-top:10px;">
                                                              <div class="row">
                                                                   <label for="selector1" class="control-label pull-left col-md-6"> உயரம்  : </label>
                                                                 <div class="input-group pull-left col-md-6" style="width:200px;">
                                                                     <input name="height" id="height" value="<?php echo $row[0]['height'];?>" type="text" class="form-control pull-left" style="">
                                                                     <span class="input-group-addon" style="">இன்ச்</span>
                                                                </div>
                                                                <div class="col-md-6" style="float:right;padding-left:0px;margin-top:10px;">
                                                                    <select name="height_cat" id="height_cat" class="form-control pull-left english col-md-6" style="width:200px;">
                                                                        <option value=""></option>
                                                                        <option value="1" <?php if($row[0]['height_cat']=="1") echo "selected";?>>உயரம் குறைவானவர்</option>
                                                                        <option value="2" <?php if($row[0]['height_cat']=="2") echo "selected";?>>சரியான உயரம்</option>
                                                                        <option value="3" <?php if($row[0]['height_cat']=="3") echo "selected";?>>மிகவும் உயரமானவர்</option>
                                                                   
                                                                 </select>
                                                                 </div>
                                                             </div>   
                                                             </div>   
                                                              <div class="clearfix"></div>
                                                           <br>
                                                        <div class="form-group  form-inline" style="margin-top:10px;">  
                                                                    <div class="row">
                                                                     <label for="selector1" class="control-label pull-left col-md-6" style="">நிறம்  : </label>
                                                                
                                                                    <select name="color" id="color" class="form-control pull-left english col-md-6" style="width:200px;">
                                                                	<option value=""></option>
                                                                    <option value="1" <?php if($row[0]['color']=="1") echo "selected";?>>மாநிறம் </option>
                                                                    <option value="2" <?php if($row[0]['color']=="2") echo "selected";?>>நிறம் குறைவானவர் </option>
                                                                    <option value="3" <?php if($row[0]['color']=="3") echo "selected";?>>சிகப்பு </option>
                                                                   
                                                                </select>
                                                                    </div>
                                                                    </div>
                                                            <div class="clearfix"></div>
                                                                <br>
                                                     	
                                                             <div class="form-group  form-inline" style="margin-top:10px; margin-bottom:10px;"> 
                                                         <div class="row">
                                                                <label for="selector1" class="control-label pull-left col-md-6"> எடை  : </label>
                                                         
                                                                <div class="input-group pull-left col-md-6" style="width:200px;">
                                                                     <input type="text" name="weight" class="form-control" value="<?php echo $row[0]['weight'];?>" style="width:100px;">
                                                                     <span class="input-group-addon"style="width:100px;">கிலோ </span>
                                                                </div>
                                                          		 <select name="weight_cat" id="weight_cat" class="form-control pull-left english col-md-6" style="width:200px;margin-left: 245px;margin-top: 10px;">
                                                                        <option value=""></option>
                                                                        <option value="1" <?php if($row[0]['weight_cat']=="1") echo "selected";?>>ஒல்லியானவர்</option>
                                                                        <option value="2" <?php if($row[0]['weight_cat']=="2") echo "selected";?>>சரியான எடை உடையவர்</option>
                                                                        <option value="3" <?php if($row[0]['weight_cat']=="3") echo "selected";?>>குண்டானவர்</option>
                                                                   
                                                              		  </select>
                                                          </div>
                                                             </div>
                                                             <br>
                                                             <div class="clearfix"></div>
                                                             <div class="form-group  form-inline" style="margin-top:10px;">
                                                              
                                                                <?php
                                             if($row[0]['marriage']=='first')
                                             {
                                             ?>
                                              <label class="radio-inline">
                                                                <input type="radio" name="marriage" id="mar1" value="first"   style="width:20px; height:20px;" checked="">
                                                             
                                                                முதல் மணம்
                                                             
                                                              </label>
                                            <label class="radio-inline">
                                             
                                                                <input type="radio" name="marriage" id="mar2" value="non-first" style="width:20px; height:20px;">
                                                             
                                                                மறு மணம்
                                                             
                                                              </label>
                                             <?php	
                                             }
                                             elseif($row[0]['marriage']=='non-first'){
                                             ?>
                                              <label class="radio-inline">
                                                                <input type="radio" name="marriage" id="mar1" value="first"   style="width:20px; height:20px;" >
                                                             
                                                                முதல் மணம்
                                                             
                                                              </label>
                                             <label class="radio-inline">
                                             
                                                                <input type="radio" name="marriage" id="mar2" value="non-first" style="width:20px; height:20px;" checked="">
                                                             
                                                                மறு மணம்
                                                             
                                                              </label>
                                             <?php	
                                             }
                                             else{
                                             ?>
                                             <label class="radio-inline">
                                                                <input type="radio" name="marriage" id="mar1" value="first"   style="width:20px; height:20px;" checked="">
                                                             
                                                                முதல் மணம்
                                                             
                                                              </label>
                                             <label class="radio-inline">
                                             
                                                                <input type="radio" name="marriage" id="mar2" value="non-first" style="width:20px; height:20px;" >
                                                             
                                                                மறு மணம்
                                                             
                                                              </label>
                                             <?php	
                                             }
                                             ?>                               
                                                              
                                                         
                                                              
                                                             </div>
                                                             
                                                             
                                                <div class="childdiv" <?php if($row[0]['marriage']=="first"){?>style="display:none;"<?php }?>>
                                                             <div class="form-group form-inline" style="margin-top:10px;">
                                                                <label class="radio-inline">
                                             
                                                                <input type="radio" name="child" id="Radios1" value="yes" <?php if($row[0]['child']=="yes") echo "checked";?>style="width:20px; height:20px;">
                                                             
                                                               குழந்தை உள்ளவர் 
                                                             
                                                              </label>
                                                              
                                                                <label class="radio-inline">
                                             
                                                                <input type="radio" name="child" id="Radios1" value="no" <?php if($row[0]['child']=="no") echo "checked";?>style="width:20px; height:20px;">
                                                             
                                                               குழந்தை இல்லாதவர் 
                                                             
                                                              </label>
                                                         
                                                              
                                                             </div>
                                                             
                                                             <div class="form-group  form-inline childdiv" <?php if($row[0]['marriage']=="first"){?>style="margin-top:10px;display:none;"<?php }?>>
                                                                <label class="radio-inline">
                                             
                                                                <input type="radio" name="mar2status" id="Radios1" value="divorcy" <?php if($row[0]['marstatus2']=="divorcy") echo "checked";?>style="width:20px; height:20px;">
                                                             
                                                             விவாகரத்தானவர்
                                                             
                                                              </label>
                                                              
                                                              <label class="radio-inline">
                                             
                                                                <input type="radio" name="mar2status" id="Radios1" value="widow" <?php if($row[0]['marstatus2']=="widow") echo "checked";?> style="width:20px; height:20px;">
                                                             
                                                              விதவை 
                                                             
                                                              </label>
                                                         
                                                              
                                                             </div>
                                                             </div>

                                                             
                                                             
                                                              <div class="clearfix"></div>
                                                              <br>
                                                      		 <div class="form-group  form-inline" style="margin-top:10px;">   
                                                                 <label for="selector1" class="control-label pull-left">உடல் குறைபாடு உள்ளவரா? : 
                                                                 &nbsp</label>
                                                             
                                                                <select name="physical_hand" id="selector1" class="form-control pull-left english">
                                                                		<option value=""></option>
                                                                        <option value="1" <?php if($row[0]['physical_hand']=="1") echo "selected";?>>ஆம்</option>
                                                                        <option value="2" <?php if($row[0]['physical_hand']=="2") echo "selected";?>>இல்லை</option>
                                                                </select>
                                                      
                                                            </div>
                                                            <div class="clearfix"></div>
                                                            
                                                             <div class="form-group  form-inline" style="margin-top:10px;">   
                                                                 <label for="selector1" class="control-label pull-left">போட்டோ உள்ளதா? : 
                                                                 &nbsp</label>
                                                             
                                                                <select name="photo_ex" id="selector1" class="form-control pull-left english" style="margin-left:71px;">
                                                                		<option value=""></option>
                                                                        <option value="1" <?php if($row[0]['photo_ex']=="1") echo "selected";?>>ஆம்</option>
                                                                        <option value="2" <?php if($row[0]['photo_ex']=="2") echo "selected";?>>இல்லை ்</option>
                                                                </select>
                                                      
                                                            </div>
                                                              <div class="clearfix"></div>
                                                             
                                                             
                                                              <div class="form-group  form-inline" style="margin-top:10px;">   
                                                               
                                                            <input id="father_abs" class="control-label" type="checkbox" name="father_abs" value="yes" style="-webkit-appearance: radio; -moz-appearance: radio;-ms-appearance: radio;margin-right:20px;" <?php if($row[0]['father_abs']=="yes") echo "checked";?>><label for="selector1" class="control-label pull-left">&nbspஅப்பா இல்லாதவர்
                                                            &nbsp</label>
                                                            
                                                            </div>
                                                             <div class="clearfix"></div>
                                                             
                                                             
                                                              <div class="form-group  form-inline" style="margin-top:10px;">   
                                                            <input id="mother_abs" class="control-label" type="checkbox" name="mother_abs" value="yes" style="-webkit-appearance: radio; -moz-appearance: radio;-ms-appearance: radio;margin-right:20px;" <?php if($row[0]['mother_abs']=="yes") echo "checked";?>><label for="selector1" class="control-label pull-left">&nbspஅம்மா இல்லாதவர்
                                                            &nbsp</label>
                                                            
                                                      
                                                            </div>
                                                             <div class="clearfix"></div>
                                                             
                                                             
                                                              <div class="form-group  form-inline" style="margin-top:10px;">   
                                                           <input id="bro_abs" class="control-label" type="checkbox" name="bro_abs" value="yes" style="-webkit-appearance: radio; -moz-appearance: radio;-ms-appearance: radio;margin-right:20px;" <?php if($row[0]['bro_abs']=="yes") echo "checked";?>><label for="selector1" class="control-label pull-left">&nbspஅண்ணண் இல்லாதவர்
                                                           &nbsp</label>
                                                      
                                                            </div>
                                                            <br>
                                                            <br>
                                                            <div class="clearfix"></div>
                                                            
                                                             <div class="form-group  form-inline" style="margin-top:10px;">   
                                                                 <label for="selector1" class="control-label pull-left">பிசினஸ் சம்மதம்? : </label>
                                                             
                                                                <select name="business_opt" id="selector1" class="form-control pull-left english" style="margin-left:88px;">
                                                                		<option value=""></option>
                                                                        <option value="1" <?php if($row[0]['business_opt']=="1") echo "selected";?>>சம்மதம் </option>
                                                                        <option value="2" <?php if($row[0]['business_opt']=="2") echo "selected";?>>வேண்டாம் </option>
                                                                </select>
                                                      
                                                            </div>
                                                             <div class="clearfix"></div>
                                                              
                                                             <div class="form-group  form-inline" style="margin-top:10px;">   
                                                                 <label for="selector1" class="control-label  pull-left">வெளிநாடு சம்மதம்? : </label>
                                                             
                                                                <select name="foreign_opt" id="selector1" class="form-control pull-left english" style="margin-left:68px;">
                                                             		   <option value=""></option>
                                                                        <option value="1" <?php if($row[0]['foreign_opt']=="1") echo "selected";?>>சம்மதம் </option>
                                                                        <option value="2" <?php if($row[0]['foreign_opt']=="2") echo "selected";?>>வேண்டாம் </option>
                                                                </select>
                                                      
                                                            </div>
                                                              <div class="clearfix"></div>
                                                              <br>
                                                      		 <div class="form-group  form-inline" style="margin-top:10px;">   
                                                                 <label for="selector1" class="control-label  pull-left" style="padding-bottom:10px">இருப்பிடம் : </label>
                                                            	 <input type="text" name="native_place" id="native_place" value="<?php echo $row[0]['native_place'];?>"yle="width:410px;" charset="utf-8" class="form-control pull-left tamil place_auto">
                                                               
                                                      
                                                            </div>
                                                      		 <div class="clearfix"></div>
                                                      		 <br>
                                                      		 
                                                      		 <div class="form-group  form-inline" style="margin-top:10px;">   
                                                                 <label for="selector1" class="control-label pull-left" style="padding-bottom:10px">பிறந்த ஊர் : </label>
                                                         		 <input type="text" name="birth_place" id="birth_place" value="<?php echo $row[0]['birth_place'];?>"
                                                         		 style="width:90%;" charset="utf-8" class="form-control pull-left tamil place_auto">   
                                                               
                                                      
                                                            </div>
                                                             <div class="clearfix"></div>
                                                            <br>
                                                      		 <div class="form-group  form-inline" style="margin-top:10px;">   
                                                                 <label for="selector1" class="control-label  pull-left" style="padding-bottom:10px">அப்பாவின் சொந்த ஊர் : </label>
                                                   				 <input type="text" name="father_place" value="<?php echo $row[0]['father_place'];?>" charset="utf-8" style="width:90%;" class="form-control pull-left tamil place_auto">   
                                
                                                               
                                                      
                                                            </div>
                                                      		 <div class="clearfix"></div>
                                                     		 <br>
                                                      		 <div class="form-group  form-inline" style="margin-top:10px;">   
                                                                 <label for="selector1" class="control-label  pull-left" style="padding-bottom:10px">அம்மாவின் சொந்த ஊர் : </label>
                                                            	 <input type="text" name="mother_place" value="<?php echo $row[0]['mother_place'];?>" charset="utf-8" style="width:90%;" class="form-control pull-left tamil place_auto">   
                       
                                                                
                                                      
                                                            </div>
                                                           
                                                              <div class="clearfix"></div>   
                                                             <br>
                                                            <div class="form-group  form-inline" style="margin-top:10px;">
                                                            <label for="selector1" class="control-label  pull-left" style="padding-bottom:10px">அப்பா பெயர் : </label>
                                                            <input type="text" name="father_name" id="father_name" value="<?php echo $row[0]['father_name'];?>" charset="utf-8"
                                                            style="width:90%;" class="form-control pull-left tamil ui-autocomplete-input" autocomplete="off">
                                                        
                                                            </div>
                                                             <div class="clearfix"></div>
                                                             <br>
                                                             <div class="form-group  form-inline" style="margin-top:10px;">
                                                            <label for="selector1" class="control-label  pull-left" style="padding-bottom:10px">அப்பா தம்பி பெயர் : </label>
                                                            <input type="text" name="father_dname" id="father_dname" value="<?php echo $row[0]['father_dname'];?>" charset="utf-8" style="width:90%" class="form-control pull-left tamil ui-autocomplete-input" autocomplete="off">
                                                        
                                                            <ul id="ui-id-7" tabindex="0" class="ui-menu ui-widget ui-widget-content ui-autocomplete ui-front" style="display: none;"></ul></div>
                                                           	 <div class="clearfix"></div> 
                                                        	<br> 
                                                      		 
                                                      		 
                                                      		                                                             
                                                            </div>
                                                           <div class="col-md-6" style="margin-top:20px;">
                                                            <br>
                                                          
                                                              <div class="form-group  form-inline">
                                                                  <div class="row">
                                                            <label for="selector1" class="control-label pull-left col-md-4">போட்டோ : </label>
                                                              
                              
															    
															    <?php if($row[0]['photo']!=""){?> 
                                                             <img class="col-md-9" src='./img-upload/<?php echo $row[0]['photo'];?>' id="photosel"/> 
                                                             <input type="hidden" name="f" value="<?php echo $row[0]['photo'];?>"/>
																  <!--<a href="clear_rasi.php?photo=<?php echo $_GET['id'] ?>" class="remove">X</a>-->
																  <!--
                                                              <input type="button" id="imgrem" class="form-control" onclick="removeimg();" value="Remove"/>-->
															 <?php } else {echo "போட்டோ பதிவேற்றவில்லை";}?>
                                                                                                                       
                                                             <div id="uploaded_image"></div>
                                                             
                                                            <input class="col-md-6" type="file" name="image" id="upload_image" onchange="readURL(this);">
                                                            <!--<a href="clear_rasi.php?photo=22551" class="remove">X</a>-->
                                                            <a href="clear_rasi.php?photo=<?php echo $_GET['id'] ?>" class="remove">X</a>
                                                            </div>
                                                            </div>
                                                           
                                                             <div class="clearfix"></div>
                                                              
                                                             
                                                   		     <div class="form-group  form-inline" style="margin-top:10px;">
                                                   		         <div class="row">
                                                                    <label for="selector1" class="control-label pull-left col-md-6">குடும்ப வசதி வாய்ப்பு :</label>
                                                                    <select name="wealth_class" id="wealth_class" class="form-control pull-left english col-md-6" style="width:200px;">
                                                                     		   <option value=""></option>
                                                                       <option value="1" <?php if($row[0]['wealth_class']=="1") echo "selected";?>>சாதாரண வசதி</option>
                                                                       <option value="2" <?php if($row[0]['wealth_class']=="2") echo "selected";?>>நடுத்தர வசதி</option>
                                                                       <option value="3" <?php if($row[0]['wealth_class']=="3") echo "selected";?>>உயர் வசதி(வி.ஐ.பி)</option>
                                                             </select>
                                                                </div>
                                                            </div>
                                                          
                                                             <div class="clearfix"></div>
                                                        	  
                                                            <div class="form-group  form-inline" style="margin-top:10px;">
                                                                <div class="row">
                                                            <label for="selector1" class="control-label pull-left col-md-6">குடும்ப அடையாளம்&nbsp:</label>
                                                            <input type="text" name="family_idty" value="<?php echo $row[0]['family_idty'];?>" charset="utf-8" style="width:200px;" class="form-control pull-left tamil col-md-6">
                                                        
                                                            </div>
                                                            </div>
                                                             <div class="clearfix"></div>
                                                  			 <br>
                                                             <div class="form-group  form-inline" style="margin-top:10px;">
                                                                 <div class="row">   
                                                                 <label for="selector1" class="control-label pull-left col-md-6">எத்தனையாவது பிறப்பு : </label>
                                                             
                                                                <select name="no_birth" id="selector1" style="width:200px;" class="form-control pull-left english col-md-6">
                                                                	<option value=""></option>
                                                                    <option value="1" <?php if($row[0]['no_birth']=="1") echo "selected";?>>ஜாதகர் மட்டும்</option>
                                                                    <option value="2" <?php if($row[0]['no_birth']=="2") echo "selected";?>>முதலாவது </option>
                                                                    <option value="3" <?php if($row[0]['no_birth']=="3") echo "selected";?>>இரண்டாவது </option>
                                                                    <option value="4" <?php if($row[0]['no_birth']=="4") echo "selected";?>>மூன்றாவது </option>
                                                                    <option value="5" <?php if($row[0]['no_birth']=="5") echo "selected";?>>நான்காவது </option>
                                                                    <option value="6" <?php if($row[0]['no_birth']=="6") echo "selected";?>>ஐந்தாவது </option>
                                                                    <option value="7" <?php if($row[0]['no_birth']=="7") echo "selected";?>>ஆறாவது</option>
                                                                    <option value="8" <?php if($row[0]['no_birth']=="8") echo "selected";?>>ஏழாவது </option>
                                                                    <option value="9" <?php if($row[0]['no_birth']=="9") echo "selected";?>>எட்டாவது </option>
                                                                </select>
                                                      
                                                            </div>
                                                            </div>
                                                             <div class="clearfix"></div>
                                                  			 
                                             		  		<div class="form-group  form-inline" style="margin-top:10px;">
                                                            	<table class="table">
                                                                      <thead>
                                                                        <tr>
                                                                          <td scope="row" style="font-weight:bold;">உடன் பிறப்பு</td>
                                                                          <td scope="row" style="font-weight:bold;"> அண்ணன் </td>
                                                                          <td scope="row" style="font-weight:bold;">அக்கா </td>
                                                                          <td scope="row" style="font-weight:bold;">தங்கை</td>
                                                                          <td scope="row" style="font-weight:bold;">தம்பி</td>
                                                                        </tr>
                                                                      </thead>
                                                                      <tbody>
                                                                        <tr>
                                                                          <td scope="row" style="font-weight:bold;">எண்ணிக்கை 
                                                                          </td><td>
                                                                            <input type="text" name="no_bro" value="<?php echo $row[0]['no_bro'];?>" class="form-control" style="width:80px;" maxlength="2">
                                                                                 
                                                                            </td>
                                                                          <td> 
                                                                           
                                                                             <input type="text" name="no_sis" value="<?php echo $row[0]['no_sis'];?>" class="form-control" style="width:80px;" maxlength="2">
                                                                             
                                                              			  </td>
                                                                          <td><input type="text" name="no_sisy" value="<?php echo $row[0]['no_sisy'];?>" class="form-control" style="width:80px;" maxlength="2"></td>
                                                                           <td> <input type="text" name="no_broy" value="<?php echo $row[0]['no_broy'];?>" class="form-control number" style="width:80px;" maxlength="2"></td>
                                                                        </tr>
                                                                         <tr>
                                                                          <td scope="row" style="font-weight:bold;">மணமானவர்கள் 
                                                                          </td><td>
                                                                            <input type="text" name="no_bro_mar" value="<?php echo $row[0]['no_bro_mar'];?>" class="form-control" style="width:80px;" maxlength="2">
                                                                                 
                                                                            </td>
                                                                          <td> 
                                                                           
                                                                             <input type="text" name="no_sis_mar" value="<?php echo $row[0]['no_sis_mar'];?>" class="form-control" style="width:80px;" maxlength="2">
                                                                             
                                                              			  </td>
                                                                          <td><input type="text" name="no_sisy_mar" value="<?php echo $row[0]['no_sisy_mar'];?>" class="form-control" style="width:80px;" maxlength="2"></td>
                                                                           <td> <input type="text" name="no_broy_mar" value="<?php echo $row[0]['no_broy_mar'];?>" class="form-control number" style="width:80px;" maxlength="2"></td>
                                                                        </tr>
                                                                        
                                                                        <tr>
                                                                        
                                                                        <td colspan="5">
                                                                        	<b>உடன் பிறப்பு மொத்த எண்ணிக்கை : </b><div class="input-group">
                                                                     <input type="text" name="with_birth" id="with_birth" value="<?php echo $row[0]['with_birth'];?>" style="width:150px;" class="form-control">
                                                                     <span class="input-group-addon">பேர் </span>
                                                                </div>
                                                                        
                                                                        </td>
                                                                        
                                                                        </tr>
                                                                        
                                                                         <tr>
                                                                        
                                                                        <td colspan="5">
                                                                        	<b>மணமானவர்கள் மொத்த எண்ணிக்கை : </b><div class="input-group">
                                                                     <input type="text" name="mar_nos" style="width:118px;" value="<?php echo $row[0]['mar_nos'];?>" class="form-control">
                                                                     <span class="input-group-addon">பேர் </span>
                                                                </div>
                                                                        
                                                                        </td>
                                                                        
                                                                        </tr>
                                                                       
                                                                      </tbody>
                                                                    </table>
                                                            
                                                            
                                                             
                                                                
                                                          
                                                             </div>
                                                             <div class="clearfix"></div>
                                                      	
                                                            <div class="form-group  form-inline" style="">   
                                                                 <label for="selector1" class="control-label pull-left">சொத்து இருப்பு : </label>
                                                             
                                                                
    <textarea name="wealth_det" rows="4" columns="8" id="selector1" class="form-control tamil pull-left" style="width: 90%;margin-left:4px;height: 60px;"><?php echo trim($row[0]['wealth_det']);?></textarea>
                                                                  
                                                                 
                                                                
                                                      
                                                            </div>
                                                            <div class="clearfix"></div>
                                                             <br>
                                                            <div class="form-group  form-inline" style="">   
                                                            <div class="row">
                                                                 <label for="selector1" class="control-label pull-left col-md-6">சீர் செய்ய விரும்புவது : </label>
                                                             
                                                                <input type="text" name="tidy" id="tidy" value="<?php echo $row[0]['tidy'];?>" charset="utf-8" class="form-control pull-left tamil col-md-6" style="width:200px;">
                                                            </div>
                                                            </div>
                                                            <div class="clearfix"></div>
                                                            <br>
                                                            <div class="form-group  form-inline" style="margin-top:10px;">  
                                                            <div class="row">
                                                           			<!-- <div class="pull-right" style="margin-bottom:10px;">
                                                                    <a class="btn btn-primary" data-toggle="modal" data-target="#add_caste"><i class="fa fa-plus-circle"style="vertical-align:middle; margin-right:5px;"></i>புதிதாக சேர் </a>
                                                                    </div>-->
                                                                 <label for="casteid" class="control-label pull-left col-md-6">ஜாதி : </label>

<?php
																 
																//  $ja =$pdo->prepare("select * from caste where id=".$row[0]['caste']);
																//  $ja3 = $ja->execute();
																// $ja_result =$ja3-> fetchAll(PDO::FETCH_ASSOC);
																
								
																
								
																//echo $cres["name"];	
																 
																 ?>
                                                                        <input type="hidden" name="casteid" id="casteid" value="" charset="utf-8" class="form-control pull-left tamil">
																<select name="caste" id="caste" style="width:200px;" class="form-control pull-left english ui-autocomplete-input col-md-6 tamil select2" required="required" onKeyPress="javascript:convertThis(event)" onKeyDown="toggleKBMode(event)">

<?php 
                        $statement1 = $pdo->prepare("select * from caste GROUP BY name");
                       
                        $statement1->execute();
                        $location_result1 = $statement1->fetchAll(PDO::FETCH_ASSOC); 
                        foreach ($location_result1 as $result1) {
                        ?>
                           <option value="<?=$result1['id']?>if(){}"><?=$result1['name']?></option>
                      <?php  } ?>
                                                               
                                                                </select>

                                                                </div>
                                                              <ul id="ui-id-3" tabindex="0" class="ui-menu ui-widget ui-widget-content ui-autocomplete ui-front" style="display: none;"></ul></div>                                                              
                                                            <div class="clearfix"></div>
                                                            <br>
                                                             <div class="form-group  form-inline" style="margin-top:10px;"> 
                                                             <div class="row">
                                                                 <label for="selector1" class="control-label pull-left col-md-6">உட்பிரிவு : </label>
                                                                 
                                                                 
                                                                 
                                                                  <input type="hidden" name="subcasteid" id="subcasteid" value="" charset="utf-8" class="form-control pull-left tamil">
                                                                  <select name="subcaste" id="subcaste" style="width:200px;" class="form-control pull-left english ui-autocomplete-input col-md-6 tamil select2" required="required" onKeyPress="javascript:convertThis(event)" onKeyDown="toggleKBMode(event)">
																	
																	 																	 																	 
															    																	
															    
                                                                	<?php $statement1 = $pdo->prepare("select * from subcaste GROUP BY name");
                       
                        $statement1->execute();
                        $location_result1 = $statement1->fetchAll(PDO::FETCH_ASSOC); 
                        foreach ($location_result1 as $result1) {
                        ?>
                           <option value="<?=$result1['id']?>"><?=$result1['name']?></option>
                      <?php  } ?>
                                                                	
                                                                    
                                                               
                                                                </select>
																 <!--
                                                             	<input type="text" name="subcaste" id="subcaste" style="width:430px;margin-left:8px;" id="subcaste" value="" charset="utf-8" class="form-control pull-left tamil"/>-->
                                                             
                                                               <!-- <select name="subcaste" id="selector1" class="form-control pull-left english">
                                                                	<option value=""></option>
                                                                    <option>ஆதி திராவிடர்</option>
                                                                    <option>துளுவவெள்ளாளர்</option>
                                                                     <option>தேவாங்கர்</option>
                                                                    <option>விஸ்வகர்மா</option>
                                                                     <option>வள்ளுவன்்</option>
                                                                    <option>துளவ நாய்க்கர்</option>
                                                    
                                                                </select>-->
                                                      </div>
                                                            <ul id="ui-id-4" tabindex="0" class="ui-menu ui-widget ui-widget-content ui-autocomplete ui-front" style="display: none;"></ul></div>
                                                             <div class="clearfix"></div>
                                                             <br>
                                                             <div class="form-group  form-inline" style="margin-top:10px;">   
                                                             <div class="row">
                                                                 <label for="selector1" class="control-label pull-left col-md-6">கோத்திரம் : </label>
                                                             	
                                                                <input type="text" style="width:200px;" name="ancestry" id="ancestry" value="<?php echo $row[0]['ancestry'];?>" charset="utf-8" class="form-control pull-left tamil ui-autocomplete-input col-md-6" autocomplete="off">
                                                               <!-- <select name="ancestry" id="selector1" style="width:415px;margin-left:8px;" class="form-control pull-left english">
                                                                	<option value=""></option>
                                                                    <option>சிவன் கோத்திரம் </option>
                                                                    <option>விஷ்ணு கோத்திரம் </option>
                                                                    
                                                                </select>
                                                      -->
                                                      </div>
                                                            <ul id="ui-id-10" tabindex="0" class="ui-menu ui-widget ui-widget-content ui-autocomplete ui-front" style="display: none;"></ul></div>
                                                             <div class="clearfix"></div>
                                                             <br>
                                                             <div class="form-group  form-inline" style="margin-top:10px;"> 
                                                             <div class="row">
                                                                 <label for="selector1" class="control-label pull-left col-md-6">குல தெய்வம் : </label>
                                                                 <input type="text" style="width:200px;" name="family_god" id="family_god" value="<?php echo $row[0]['family_god'];?>" charset="utf-8" class="form-control pull-left tamil ui-autocomplete-input col-md-6" autocomplete="off">
                                                             
                                                              </div>
                                                            <ul id="ui-id-14" tabindex="0" class="ui-menu ui-widget ui-widget-content ui-autocomplete ui-front" style="display: none;"></ul></div>
                                                            <div class="clearfix"></div>
                                                             <br>
                                                   		     <div class="form-group  form-inline" style="margin-top:10px;">
                                                   		         <div class="row">
                                                                    <label for="selector1" class="control-label pull-left col-md-6">குல தெய்வ ஊர் : </label>
                                                                
                                                        	        <input type="text" name="fg_place" value="<?php echo $row[0]['fg_place'];?>" style="width:200px;" charset="utf-8" class="form-control pull-left tamil place_auto col-md-6"> 
                                                                </div>
                                                            </div>
                                                            <div class="clearfix"></div>
                                                             <br>
                                                             <div class="form-group  form-inline" style="margin-top:10px;"> 
                                                             <div class="row">
                                                                 <label for="selector1" class="control-label pull-left col-md-6">பட்சம் :  </label>
                                                             
                                                                <select name="batcham" id="selector1" style="width:200px;" class="form-control pull-left english col-md-6">
                                                                	<option value=""></option>
                                                                    <option value="1" <?php if($row[0]['batcham']=="1") echo "selected";?>>கிருஷ்ண பட்சம் </option>
                                                                    <option value="2" <?php if($row[0]['batcham']=="2") echo "selected";?>>சுக்கில பட்சம் </option>
                                                                </select>
                                                      
                                                                </div>
                                                            </div>
                                                            <div class="clearfix"></div>
                                                              <br>
                                                             <div class="form-group  form-inline" style="margin-top:10px;">  
                                                             <div class="row">
                                                                 <label for="selector1" class="control-label pull-left col-md-6">திதி :  </label>
                                                             
                                                                <select name="thithi" id="selector1" style="width:200px;" class="form-control pull-left english col-md-6">
                                                                	<option value=""></option>
                                                                	<option value="1" <?php if($row[0]['thithi']=="1") echo "selected";?>>பிரதமை </option>
                                                                    <option value="2" <?php if($row[0]['thithi']=="2") echo "selected";?>>துவிதியை </option>
                                                                    <option value="3" <?php if($row[0]['thithi']=="3") echo "selected";?>> திருதியை</option>
                                                                    <option value="4" <?php if($row[0]['thithi']=="4") echo "selected";?>>சதுர்த்தி </option>
                                                                    <option value="5" <?php if($row[0]['thithi']=="5") echo "selected";?>> பஞ்சமி</option>
                                                                    <option value="6" <?php if($row[0]['thithi']=="6") echo "selected";?>>சஷ்டி </option>
                                                                    <option value="7" <?php if($row[0]['thithi']=="7") echo "selected";?>> சப்தமி</option>
                                                                    <option value="8" <?php if($row[0]['thithi']=="8") echo "selected";?>>அஷ்டமி </option>
                                                                    <option value="9" <?php if($row[0]['thithi']=="9") echo "selected";?>> நவமி</option>
                                                                    <option value="10" <?php if($row[0]['thithi']=="10") echo "selected";?>>தசமி </option>
                                                                    <option value="11" <?php if($row[0]['thithi']=="11") echo "selected";?>>ஏகாதசி</option>
                                                                    <option value="12" <?php if($row[0]['thithi']=="12") echo "selected";?>>துவாதசி</option>
                                                                    <option value="13" <?php if($row[0]['thithi']=="13") echo "selected";?>>திரயோதசி</option>
                                                                    <option value="14" <?php if($row[0]['thithi']=="14") echo "selected";?>>சதுர்த்தசி</option>
                                                                    <option value="15" <?php if($row[0]['thithi']=="15") echo "selected";?>>அமாவாசை</option>
																	<option value="16" <?php if($row[0]['thithi']=="16") echo "selected";?>>பௌர்ணமி</option>
                                                                </select>
                                                      
                                                            </div>
                                                            </div>
                                                            <div class="clearfix"></div>
                                                              <br>
                                                             <div class="form-group  form-inline" style="margin-top:10px;">   
                                                             <div class="row">
                                                                 <label for="selector1" class="control-label pull-left col-md-6">நட்சத்திரம் :  </label>
                                                             
                                                                <select name="natchatram" id="natchatram" style="width:200px;" class="form-control pull-left english col-md-6">
                                                                <option value=""></option>
                                                                <option value="1" <?php if($row[0]['natchatram']=="1") echo "selected";?>>அஸ்வினி</option>
                                                                <option value="2" <?php if($row[0]['natchatram']=="2") echo "selected";?>>பரணி</option>
                                                                <option value="3" <?php if($row[0]['natchatram']=="3") echo "selected";?>>கார்த்திகை</option>
                                                                <option value="4" <?php if($row[0]['natchatram']=="4") echo "selected";?>>ரோகிணி</option>
                                                                <option value="5" <?php if($row[0]['natchatram']=="5") echo "selected";?>>மிருகசீரிடம்</option>
                                                                <option value="6" <?php if($row[0]['natchatram']=="6") echo "selected";?>>திருவாதிரை</option>
                                                                <option value="7" <?php if($row[0]['natchatram']=="7") echo "selected";?>>புனர்பூசம்</option>
                                                                <option value="8" <?php if($row[0]['natchatram']=="8") echo "selected";?>>பூசம்</option>
                                                                <option value="9" <?php if($row[0]['natchatram']=="9") echo "selected";?>>ஆயில்யம்</option>
                                                                <option value="10" <?php if($row[0]['natchatram']=="10") echo "selected";?>>மகம்</option>
                                                                <option value="11" <?php if($row[0]['natchatram']=="11") echo "selected";?>>பூரம்</option>
                                                                <option value="12" <?php if($row[0]['natchatram']=="12") echo "selected";?>>உத்தரம்</option>
                                                                <option value="13" <?php if($row[0]['natchatram']=="13") echo "selected";?>>அஸ்தம்</option>
                                                                <option value="14" <?php if($row[0]['natchatram']=="14") echo "selected";?>>சித்திரை</option>
                                                                <option value="15" <?php if($row[0]['natchatram']=="15") echo "selected";?>>சுவாதி</option>
                                                                <option value="16" <?php if($row[0]['natchatram']=="16") echo "selected";?>>விசாகம்</option>
                                                                <option value="17" <?php if($row[0]['natchatram']=="17") echo "selected";?>>அனுஷம்</option>
                                                                <option value="18" <?php if($row[0]['natchatram']=="18") echo "selected";?>>கேட்டை</option>
                                                                <option value="19" <?php if($row[0]['natchatram']=="19") echo "selected";?>>மூலம்</option>
                                                                <option value="20" <?php if($row[0]['natchatram']=="20") echo "selected";?>>பூராடம்</option>
                                                                <option value="21" <?php if($row[0]['natchatram']=="21") echo "selected";?>>உத்திராடம்</option>
                                                                <option value="22" <?php if($row[0]['natchatram']=="22") echo "selected";?>>திருவோணம்</option>
                                                                <option value="23" <?php if($row[0]['natchatram']=='23') echo "checked";?>>அவிட்டம்</option>
                                                                <option value="24" <?php if($row[0]['natchatram']=="24") echo "selected";?>>சதயம்</option>
                                                                <option value="25" <?php if($row[0]['natchatram']=="25") echo "selected";?>>பூரட்டாதி</option>
                                                                <option value="26" <?php if($row[0]['natchatram']=="26") echo "selected";?>>உத்திரட்டாதி</option>
                                                                <option value="27" <?php if($row[0]['natchatram']=="27") echo "selected";?>>ரேவதி</option>


                                                                </select>
                                                      
                                                            </div>
                                                            </div>
                                                            <div class="clearfix"></div>
                                                              <br>
                                                             <div class="form-group  form-inline" style="margin-top:10px;">  
                                                             <div class="row">
                                                                 <label for="selector1" class="control-label pull-left col-md-6">பாதம் :  </label>
                                                             
                                                                <select name="padham" id="padham" style="width:200px;" class="form-control pull-left english colmd-6">
                                                                <option value=""></option>
                                                                <option value="1" <?php if($row[0]['padham']=="1") echo "selected";?>>1 ஆம் பாதம்</option>
                                                                <option value="2" <?php if($row[0]['padham']=="2") echo "selected";?>>2 ஆம் பாதம்</option>
                                                                <option value="3" <?php if($row[0]['padham']=="3") echo "selected";?>>3  ஆம் பாதம்</option>
                                                                <option value="4" <?php if($row[0]['padham']=="4") echo "selected";?>>4 ஆம் பாதம்</option>

                                                                </select>
                                                      
                                                            </div>
                                                            </div>
                                                            <div class="clearfix"></div>
                                                              <br>
                                                             <div class="form-group  form-inline" style="margin-top:10px;">  
                                                             <div class="row">
                                                                 <label for="selector1" class="control-label pull-left col-md-6">லக்னம் :  </label>
                                                              <select name="laknam" id="laknam" style="width:200px;" class="form-control pull-left english col-md-6">
                                                              
                                                                <option value=""></option>
                                                                <option value="1" <?php if($row[0]['laknam']=="1") echo "selected";?>>மேஷம்</option>
                                                                <option value="2" <?php if($row[0]['laknam']=="2") echo "selected";?>>ரிஷபம்</option>
                                                                <option value="3" <?php if($row[0]['laknam']=="3") echo "selected";?>>மிதுனம்</option>
                                                                <option value="4" <?php if($row[0]['laknam']=="4") echo "selected";?>>கடகம்</option>
                                                                <option value="5" <?php if($row[0]['laknam']=="5") echo "selected";?>>சிம்மம்</option>
                                                                <option value="6" <?php if($row[0]['laknam']=="6") echo "selected";?>>கன்னி</option>
                                                                <option value="7" <?php if($row[0]['laknam']=="7") echo "selected";?>>துலாம்</option>
                                                                <option value="8" <?php if($row[0]['laknam']=="8") echo "selected";?>>விருச்சிகம்</option>
                                                                <option value="9" <?php if($row[0]['laknam']=="9") echo "selected";?>>தனுசு</option>
                                                                <option value="10" <?php if($row[0]['laknam']=="10") echo "selected";?>>மகரம்</option>
                                                                <option value="11" <?php if($row[0]['laknam']=="11") echo "selected";?>>கும்பம்</option>
                                                                <option value="12" <?php if($row[0]['laknam']=="12") echo "selected";?>>மீனம்</option>


                                                                </select>
                                                      
                                                            </div>
                                                            </div>
                                                            <div class="clearfix"></div>
                                                               <br>
                                                             <div class="form-group  form-inline" style="margin-top:10px;"> 
                                                             <div class="row">
                                                                 <label for="selector1" class="control-label pull-left col-md-6">ராசி : </label>
                                                              <select name="rasi" id="rasi" style="width:200px;" class="form-control pull-left english col-md-6">
                                                              
                                                              <option value=""></option>
                                                                <option value="1" <?php if($row[0]['rasi']=="1") echo "selected";?>>மேஷம்</option>
                                                                <option value="2" <?php if($row[0]['rasi']=="2") echo "selected";?>>ரிஷபம்</option>
                                                                <option value="3" <?php if($row[0]['rasi']=="3") echo "selected";?>>மிதுனம்</option>
                                                                <option value="4" <?php if($row[0]['rasi']=="4") echo "selected";?>>கடகம்</option>
                                                                <option value="5" <?php if($row[0]['rasi']=="5") echo "selected";?>>சிம்மம்</option>
                                                                <option value="6" <?php if($row[0]['rasi']=="6") echo "selected";?>>கன்னி</option>
                                                                <option value="7" <?php if($row[0]['rasi']=="7") echo "selected";?>>துலாம்</option>
                                                                <option value="8" <?php if($row[0]['rasi']=="8") echo "selected";?>>விருச்சிகம்</option>
                                                                <option value="9" <?php if($row[0]['rasi']=="9") echo "selected";?>>தனுசு</option>
                                                                <option value="10" <?php if($row[0]['rasi']=="10") echo "selected";?>>மகரம்</option>
                                                                <option value="11" <?php if($row[0]['rasi']=="11") echo "selected";?>>கும்பம்</option>
                                                                <option value="12" <?php if($row[0]['rasi']=="12") echo "selected";?>>மீனம்</option>


                                                                </select>
                                                      
                                                            </div>
                                                            </div>
                                                            <div class="clearfix"></div>
                                                            <br>
                                                            
                                                            <div class="form-group form-inline" style="margin-top:10px;">
                                                            <div class="row">
                                                            	 <label for="selector1" class="control-label pull-left col-md-6">திசை இருப்பு : </label>
                                                         
                                                   
                                                                <select name="dhisa" id="dhisa" class="form-control pull-left english" style="width:200px;">
                                                                	<option value=""></option>
                                                                    <option value="1" <?php if($row[0]['dhisa']=="1") echo "selected";?>>சூரியன்</option>
                                                                    <option value="2" <?php if($row[0]['dhisa']=="2") echo "selected";?>>சந்திரன்</option>
                                                                    <option value="3" <?php if($row[0]['dhisa']=="3") echo "selected";?>>செவ்வாய்</option>
                                                                    <option value="4" <?php if($row[0]['dhisa']=="4") echo "selected";?>>புதன்</option>
                                                                    <option value="5" <?php if($row[0]['dhisa']=="5") echo "selected";?>>குரு</option>
                                                                    <option value="6" <?php if($row[0]['dhisa']=="6") echo "selected";?>>சுக்கிரன்</option>
                                                                    <option value="7" <?php if($row[0]['dhisa']=="7") echo "selected";?>>சனி</option>
                                                                    <option value="8" <?php if($row[0]['dhisa']=="8") echo "selected";?>>ராகு</option>
                                                                    <option value="9" <?php if($row[0]['dhisa']=="9") echo "selected";?>>கேது</option>
                                                                </select>
                                                                    
                                                             </div>
                                                             </div>
                                                             <div class="clearfix"></div>
                                                            <br>
                                                            <div class="form-group form-inline" style="margin-top:10px; margin-left:0px;">       
                                                                <label for="selector1" class="control-label">வருடம் : </label>
                                                         
                                                              <input type="text" name="dyears" id="dyears" value="<?php echo $row[0]['dyears'];?>" class="form-control" style="width:100px;" maxlength="2">
                                                           
                                                              
                                                           
                                                                <label for="selector1" class="control-label">மாதம் :  </label>
                                                         
                                                                 <input type="text" name="dmonth" id="dmonth" value="<?php echo $row[0]['dmonth'];?>" class="form-control" style="width:100px;" maxlength="2">
                                                
                                                                <label for="selector1" class="control-label">நாள் : </label>
                                                         
                                                                   <input type="text" name="ddays" id="ddays" value="<?php echo $row[0]['ddays'];?>" class="form-control number" style="width:100px;" maxlength="2">
                                                                   
        
                                                                    
                                                             </div>
                                                             <div class="clearfix"></div>
                                                             <div class="form-group  form-inline" style="margin-top:10px;">   
                                                                 <label for="selector1" class="control-label pull-left">குடும்ப குறிப்பு :  </label>
                                                             
                                                                <textarea name="family_hint" rows="4" columns="8" id="selector1" class="form-control tamil pull-left" style="width:400px;"><?php echo trim($row[0]['family_hint']);?></textarea>   
                                                                
                                                                 
                                                               
                                                      
                                                            </div>
                                                             <div class="clearfix"></div>
                                                              <div class="form-group  form-inline" style="margin-top:20px;">
                                                                <label for="selector1" class="control-label pull-left">ஜாதகம் : </label>
                                                                 <select name="astrotype" id="astrotype" class="form-control pull-left english" style="width:150px; margin-left:21px; font-weight:bold; font-size:20px; height:40px;">					<option value=""></option>
                                                                 
                                                                   	<option <?php if($row[0]['astrotype']=="N") echo "selected";?>>N</option>
                                                                    <option  <?php if($row[0]['astrotype']=="I") echo "selected";?>>I</option>
                                                                 
                                                                 
                                                                </select>
                                                             
                                                            
                                                                </div>
                                                            <div class="clearfix"></div>
                                                            <br>
                                                             <div class="clearfix"></div><br>
                                                              <div class="form-group  form-inline" style="margin-top:10px;">   
                                                               <input id="caste_restrict" class="control-label pull-left" type="checkbox" name="caste_restrict" value="yes" style="-webkit-appearance: radio; -moz-appearance: radio;-ms-appearance: radio;margin-right:20px;" <?php if($row[0]['caste_restrict']=="yes") echo "checked";?>><label for="selector1" class="control-label pull-left">ஜாதி தடையில்லை &nbsp</label>
                                                            
                                                                
                                                            </div>
                                                             <div class="clearfix"></div>
                                                             <br>
                                                             
                                                              <div class="form-group  form-inline" style="margin-top:10px;">   
                                                                  <input id="astro_option" class="control-label pull-left" type="checkbox" name="astro_option" value="yes" style="-webkit-appearance: radio; -moz-appearance: radio;-ms-appearance: radio;margin-right:20px;" <?php if($row[0]['astro_option']=="yes") echo "checked";?>><label for="selector1" class="control-label pull-left">ஜாதகம் பார்க்காமல் &nbsp</label>
                                                            
                                                                
                                                              
                                                            </div>
                                                           
                                                             <div class="clearfix"></div>  <br>
                                                             <div class="form-group  form-inline" style="margin-top:10px;">   
                                                                 <label for="selector1" class="control-label pull-left">முகவரி :  </label>
                                                             
                                                                <textarea name="address" id="address" rows="8" columns="8" class="form-control pull-left tamil" style="width:400px;height:150px; margin-left:65px;"><?php echo trim($row[0]['addr1']);?></textarea>   
                                                                  
                                                                 
                                                               
                                                      
                                                            </div>
                                                            
                                                            
                                                              
                                                            <div class="form-group  form-inline" style="margin-top:10px;">
                                                            <label for="selector1" class="control-label pull-left" style="padding-bottom:10px">அப்பா வேலை : </label>
                                                            <input type="text" name="father_job" value="<?php echo $row[0]['father_job'];?>"rset="utf-8" 
                                                            style="width:90%;" class="form-control pull-left tamil">
                                                        
                                                            </div>
                                                            <div class="clearfix"></div>
                                                           <br>
                                                   		     <div class="form-group  form-inline" style="margin-top:10px;">
                                                            <label for="selector1" class="control-label pull-left" style="padding-bottom:10px">அம்மா பெயர் : </label>
                                                            <input type="text" name="mother_name" id="mother_name" value="<?php echo $row[0]['mother_name'];?>" charset="utf-8" 
                                                            style="width:90%;" 
                                                            class="form-control pull-left tamil ui-autocomplete-input" autocomplete="off">
                                                        
                                                            <ul id="ui-id-8" tabindex="0" class="ui-menu ui-widget ui-widget-content ui-autocomplete ui-front" style="display: none;"></ul></div>
                                                           
                                                           
                                                            <div class="clearfix"></div>
                                                             <br>
                                                   		     <div class="form-group  form-inline" style="margin-top:10px;">
                                                            <label for="selector1" class="control-label pull-left" style="padding-bottom:10px">அம்மா தம்பி பெயர் : </label>
                                                            <input type="text" name="mother_dname" id="mother_dname" value="<?php echo $row[0]['mother_dname'];?>" charset="utf-8" style="width:90%" class="form-control pull-left tamil ui-autocomplete-input" autocomplete="off">
                                                        
                                                            <ul id="ui-id-9" tabindex="0" class="ui-menu ui-widget ui-widget-content ui-autocomplete ui-front" style="display: none;"></ul></div>
                                                             <div class="clearfix"></div>
                                                        	<br>   
                                                            <div class="form-group  form-inline" style="margin-top:10px;">
                                                            <label for="selector1" class="control-label pull-left" style="padding-bottom:10px">அம்மா வேலை : </label>
                                                            <input type="text" name="mother_job" value="<?php echo $row[0]['mother_job'];?>" charset="utf-8" style="width:90%;" class="form-control pull-left english">
                                                        
                                                            </div>
                                                             <div class="clearfix"></div>

                                                            
                                                            
                                                 			</div>
                                                            </div>
                                        <div class="clearfix"></div>
                                                                <div class="row">
                                                                    <div class="col-md-5">
                                                                    <div class="form-group" style="margin-top:10px;">   
                                                                         <label for="selector1" class="control-label"><b>ராசி கட்டம் :</b></label>
                                                                        <?php
																// 		 mysqli_set_charset($con,"utf8");
																$rasi_cut =$pdo->prepare("select * from rasi where id=".$row[0]['rasi_kattam']);
																// error_log("rasi kattam".$row[0][rasi_kattam]);
																
																$rasi_cut->execute();
																$rres =$rasi_cut->fetchAll(PDO::FETCH_ASSOC);
																
																?>
																
                                                                        <input type="hidden" name="rasi_kattam" id="rasi_kattam" value="<?php echo $row[0]["rasi_kattam"];?>">
                                                                        <input type="hidden" name="test1" id="rasi_kattam" value="<?php echo $rres[0]['rasi1'];?>">
                                                                        <input type="hidden" name="test2" id="rasi_kattam" value="<?php echo $rres[0]['rasi2'];?>">
                                                                        <input type="hidden" name="test3" id="rasi_kattam" value="<?php echo $rres[0]['rasi3'];?>">
                                                                        <input type="hidden" name="test4" id="rasi_kattam" value="<?php echo $rres[0]['rasi4'];?>">
                                                                     
                                                                        <table class="table" border="1" cellpadding="0" cellspacing="0" style="border-right:2px solid red;">
                                                                          <thead class="thead-dark">
                                                                            <tr>
                                                           <td cellpadding="0" cellspacing="0" style="padding:0px;width:100px; height:60px; border:1px solid #000; background-color:#ffdc19;">
                                                               <textarea name="rasi1" class="form-control tamil" rows="5" style="padding:0px; border:0px!important; height:60px; font-size:16px;text-align:center; resize:none; " auto-complete="off"><?php echo $rres[0]['rasi1'];?></textarea><!--<input type="text" name="rasi1" class="form-control tamil" value=" " style="padding:0px;width:150px; height:70px; margin-left:60px;margin-top:15px; font-size:30px;">-->

<div class="radio" style="margin-left:65px;">
  <label style="vertical-align:middle;"><input type="radio" name="rasi_laknam" value="1" style="padding:0px;width:25px; height:25px; padding-right:8px; vertical-align:middle;" <?php if($rres[0]['laknam']=="1") echo "checked";?>>&nbsp;&nbsp;&nbsp;<span>ல</span></label>
</div>
</td>
                                                                               <td scope="col" style="padding:0px;width:100px; height:60px; background-color:#ffdc19;">
                                                                               <textarea name="rasi2" class="form-control tamil" rows="5" style="padding:0px; border:0px!important; height:60px; font-size:16px;text-align:center; resize:none; " auto-complete="off"><?php echo $rres[0]['rasi2'];?></textarea><!--<input type="text"class="form-control tamil" name="rasi2" value="" style="padding:0px;width:150px; height:70px; margin-left:60px;margin-top:15px; font-size:30px;">-->
                                                                               <div class="radio" style="margin-left:65px;">
  <label style="vertical-align:middle;"><input type="radio" name="rasi_laknam" value="2" style="padding:0px;width:25px; height:25px; padding-right:8px; vertical-align:middle;" <?php if($rres[0]['laknam']=="2") echo "checked";?>>&nbsp;&nbsp;&nbsp;<span>ல</span></label>
</div></td>
                                                                               <td scope="col" style="padding:0px;width:100px; height:60px; background-color:#ffdc19;">
                                                                               <textarea name="rasi3" class="form-control tamil" rows="5" style="padding:0px; border:0px!important; height:60px; font-size:16px;text-align:center; resize:none; " auto-complete="off"><?php echo $rres[0]['rasi3'];?></textarea><!--<input type="text"class="form-control tamil" name="rasi3" value="" style="padding:0px;width:150px; height:70px; margin-left:60px;margin-top:15px; font-size:30px;">--><div class="radio" style="margin-left:65px;">
  <label style="vertical-align:middle;"><input type="radio" name="rasi_laknam" value="3" style="padding:0px;width:25px; height:25px; padding-right:8px; vertical-align:middle;" <?php if($rres[0]['laknam']=="3") echo "checked";?>>&nbsp;&nbsp;&nbsp;<span>ல</span></label>
</div></td>
                                                                               <td scope="col" style="padding:0px;width:100px; height:60px; background-color:#ffdc19;"><textarea name="rasi4" class="form-control tamil" rows="5" style="padding:0px; border:0px!important; height:60px; font-size:16px;text-align:center; resize:none; " auto-complete="off"><?php echo $rres[0]['rasi4'];?></textarea><!--<input type="text"class="form-control tamil" name="rasi4" value="" style="padding:0px;width:150px; height:70px; margin-left:60px;margin-top:15px; font-size:30px;">--><div class="radio" style="margin-left:65px;">
  <label style="vertical-align:middle;"><input type="radio" name="rasi_laknam" value="4" style="padding:0px;width:25px; height:25px; padding-right:8px; vertical-align:middle;" <?php if($rres[0]['laknam']=="4") echo "checked";?>>&nbsp;&nbsp;&nbsp;<span>ல</span></label>
</div></td>
                                                                            </tr>
                                                                          </thead>
                                                                          <tbody>
                                                                            <tr>
                                                                              <td cellpadding="0" cellspacing="0" style="padding:0px;width:100px; height:60px;border:1px solid #000; background-color:#ffdc19;">
                                                                                  <textarea name="rasi5" class="form-control tamil" rows="5" style="padding:0px; border:0px!important; height:60px; font-size:16px;text-align:center; resize:none; " auto-complete="off"><?php echo $rres[0]['rasi5'];?></textarea><!--<input type="text" name="rasi5" class="form-control tamil" value="<br />
<b>Warning</b>:  Use of undefined constant php - assumed 'php' (this will throw an Error in a future version of PHP) in <b>/home12/fmsbilli/public_html/matrimony/admin_matri/editprofile.php</b> on line <b>2415</b><br />
 " style="padding:0px;width:150px; height:70px; margin-left:60px;margin-top:15px; font-size:30px;">--><div class="radio" style="margin-left:65px;">
  <label style="vertical-align:middle;"><input type="radio" name="rasi_laknam" value="5" style="padding:0px;width:25px; height:25px; padding-right:8px; vertical-align:middle;" <?php if($rres[0]['laknam']=="5") echo "checked";?>>&nbsp;&nbsp;&nbsp;<span>ல</span></label>
</div></td>
                                                                               <td scope="col" colspan="2" style="padding:0px;width:200px; height:60px; border:1px solid #000;border-bottom:0px;"><h3 class="text-center" style="padding-top:73px;">இராசி</h3></td>
                                                                             
                                                                               <td scope="col" style="padding:0px;width:100px; height:60px;border:1px solid #000; background-color:#ffdc19;"><textarea name="rasi6" class="form-control tamil" rows="5" style="padding:0px; border:0px!important; height:60px; font-size:16px;text-align:center; resize:none; " auto-complete="off"><?php echo $rres[0]['rasi6'];?></textarea><!--<input type="text" name="rasi6" class="form-control tamil" value="<br />
<b>Warning</b>:  Use of undefined constant php - assumed 'php' (this will throw an Error in a future version of PHP) in <b>/home12/fmsbilli/public_html/matrimony/admin_matri/editprofile.php</b> on line <b>2420</b><br />
" style="padding:0px;width:150px; height:70px; margin-left:60px;margin-top:15px; font-size:30px; ">--><div class="radio" style="margin-left:65px;">
  <label style="vertical-align:middle;"><input type="radio" name="rasi_laknam" value="6" style="padding:0px;width:25px; height:25px; padding-right:8px; vertical-align:middle;"<?php if($rres[0]['laknam']=="6") echo "checked";?> >&nbsp;&nbsp;&nbsp;<span>ல</span></label>
</div></td>
                                                                            </tr>
                                                                             <tr>
                                                                              <td cellpadding="0" cellspacing="0" style="padding:0px;width:100px; height:60px;border:1px solid #000; background-color:#ffdc19;"><textarea name="rasi7" class="form-control tamil" rows="5" style="padding:0px; border:0px!important; height:60px; font-size:16px;text-align:center; resize:none; " auto-complete="off"><?php echo $rres[0]['rasi7'];?></textarea><!--<input type="text" name="rasi7" class="form-control tamil" value="" style="padding:0px;width:150px; height:70px; margin-left:60px;margin-top:15px; font-size:30px; ">--><div class="radio" style="margin-left:65px;">
  <label style="vertical-align:middle;"><input type="radio" name="rasi_laknam" value="7" style="padding:0px;width:25px; height:25px; padding-right:8px; vertical-align:middle;"<?php if($rres[0]['laknam']=="7") echo "checked";?>>&nbsp;&nbsp;&nbsp;<span>ல</span></label>
</div></td>
                                                                               <td scope="col" colspan="2" style="padding:0px;width:200px; height:60px; border:1px solid #000; border-top:0px;">&nbsp;</td>
                                                                             
                                                                               <td scope="col" style="padding:0px;width:100px; height:60px;border:1px solid #000; background-color:#ffdc19;"><textarea name="rasi8" class="form-control tamil" rows="5" style="padding:0px; border:0px!important; height:60px; font-size:16px;text-align:center; resize:none; " auto-complete="off"><?php echo $rres[0]['rasi8'];?></textarea><!--<input type="text" class="form-control tamil" name="rasi8" value="" style="padding:0px;width:150px; height:70px; margin-left:60px;margin-top:15px; font-size:30px;">--><div class="radio" style="margin-left:65px;">
  <label style="vertical-align:middle;"><input type="radio" name="rasi_laknam" value="8" style="padding:0px;width:25px; height:25px; padding-right:8px; vertical-align:middle;"<?php if($rres[0]['laknam']=="8") echo "checked";?>>&nbsp;&nbsp;&nbsp;<span>ல</span></label>
</div></td>
                                                                            </tr>
                                                                            <tr>
                                                                             </tr><tr>
                                                                              <td cellpadding="0" cellspacing="0" style="padding:0px;width:100px; height:75px; border:1px solid #000; background-color:#ffdc19;"><textarea name="rasi9" class="form-control tamil" rows="5" style="padding:0px; border:0px!important; height:75px; font-size:16px;text-align:center; resize:none; " auto-complete="off"><?php echo $rres[0]['rasi9'];?></textarea><!--<input type="text" class="form-control tamil" name="rasi9" value="" style="padding:0px;width:150px; height:70px; margin-left:60px;margin-top:15px; font-size:30px;">--><div class="radio" style="margin-left:65px;">
  <label style="vertical-align:middle;"><input type="radio" name="rasi_laknam" value="9" style="padding:0px;width:25px; height:25px; padding-right:8px; vertical-align:middle;"<?php if($rres[0]['laknam']=="9") echo "checked";?>>&nbsp;&nbsp;&nbsp;<span>ல</span></label>
</div></td>
                                                                               <td scope="col" style="padding:0px;width:100px; height:75px; background-color:#ffdc19;">
                                                                               <textarea name="rasi10" class="form-control tamil" rows="5" style="padding:0px; border:0px!important;border-top: 1px solid #000 !important; height:75px; font-size:16px;text-align:center; resize:none; " auto-complete="off"><?php echo $rres[0]['rasi10'];?></textarea><!--<input type="text"class="form-control tamil" value="" name="rasi10" style="padding:0px;width:150px; height:70px; margin-left:60px;margin-top:15px; font-size:30px;">--><div class="radio" style="margin-left:65px;">
  <label style="vertical-align:middle;"><input type="radio" name="rasi_laknam" value="10" style="padding:0px;width:25px; height:25px; padding-right:8px; vertical-align:middle;"<?php if($rres[0]['laknam']=="10") echo "checked";?>>&nbsp;&nbsp;&nbsp;<span>ல</span></label>
</div></td>
                                                                               <td scope="col" style="padding:0px;width:100px; height:75px; background-color:#ffdc19;"><textarea name="rasi11" class="form-control tamil" rows="5" style="padding:0px; border:0px!important;border-top: 1px solid #000 !important; height:75px; font-size:16px;text-align:center; resize:none; " auto-complete="off"><?php echo $rres[0]['rasi11'];?></textarea><!--<input type="text" class="form-control tamil" value="" name="rasi11" style="padding:0px;width:150px; height:70px; margin-left:60px;margin-top:15px; font-size:30px;">--><div class="radio" style="margin-left:65px;">
  <label style="vertical-align:middle;"><input type="radio" name="rasi_laknam" value="11" style="padding:0px;width:25px; height:25px; padding-right:8px; vertical-align:middle;"<?php if($rres[0]['laknam']=="11") echo "checked";?>>&nbsp;&nbsp;&nbsp;<span>ல</span></label>
</div></td>
                                                                               <td scope="col" style="padding:0px;width:100px; height:75px; background-color:#ffdc19;" cellpadding="5" cellspacing="5"><textarea name="rasi12" class="form-control tamil" rows="5" style="padding:0px; border:0px!important; height:75px; font-size:16px;text-align:center; resize:none; " auto-complete="off"><?php echo $rres[0]['rasi12'];?></textarea><!--<input type="text" name="rasi12" class="form-control tamil" value="" style="padding:0px;width:150px; height:70px; margin-left:60px;margin-top:15px; font-size:30px;text-align:center;">--><div class="radio" style="margin-left:65px;">
  <label style="vertical-align:middle;"><input type="radio" name="rasi_laknam" value="12" style="padding:0px;width:25px; height:25px; padding-right:8px; vertical-align:middle;"<?php if($rres[0]['laknam']=="12") echo "checked";?>>&nbsp;&nbsp;&nbsp;<span>ல</span></label>
</div></td>
                                                                            </tr>
                                                                            
                                                                           
                                                                          </tbody>
                                                                        </table>
                                                              <!--<a href="clear_rasi.php?rasi=12510&amp;id=22551" style="font-size:20px;">Rasi Clear</a>-->
                                    <a href="clear_rasi.php?rasi=<?php echo $row[0]['rasi_kattam'] ?>&id=<? echo $_GET['id'] ?>" style="font-size:20px;">Rasi Clear</a>
                                                                    </div>
                                                                    </div>
                                                                    <div class="col-md-5">
                                                                    <div class="form-group" style="margin-top:10px;">   
                                                                         <label for="selector1" class="control-label"><b>நவாம்சம் கட்டம் :</b></label>
                                                                            <?php
															
																$nq =$pdo->prepare("select * from nav where id=".$row[0]['nav_kattam']);

																$nq->execute();
																$nres =$nq->fetchAll(PDO::FETCH_ASSOC);
																
																?>
                                                                <input type="hidden" name="nav_kattam" id="nav_kattam" value="<?php echo $row[0]["nav_kattam"];?>"/>
                                                                                                                                     
                                                                        <table class="table" border="1" cellpadding="0" cellspacing="0">
                                                                          <thead class="thead-dark">
                                                                            <tr>
                                                                              <td cellpadding="0" cellspacing="0" style="padding:0px;width:100px; height:60px; border:1px solid #000; background-color:#ffdc19;"><textarea name="nav1" class="form-control tamil" rows="5" style="padding:0px; border:0px!important; height:60px; font-size:16px;text-align:center; resize:none; " auto-complete="off"><?php echo $nres[0]['nav1'];?></textarea><!--<input type="text" name="nav1" class="form-control tamil" value="" style="padding:0px;width:150px; height:70px; margin-left:60px;margin-top:15px; font-size:30px;">--><div class="radio" style="margin-left:65px;">
  <label style="vertical-align:middle;"><input type="radio" name="nav_laknam" value="1" style="padding:0px;width:25px; height:25px; padding-right:8px; vertical-align:middle;"<?php if($nres[0]['laknam']=="1") echo "checked";?>>&nbsp;&nbsp;&nbsp;<span>ல</span></label>
</div></td>
                                                                               <td scope="col" style="padding:0px;width:100px; height:60px; background-color:#ffdc19;"><textarea name="nav2" class="form-control tamil" rows="5" style="padding:0px; border:0px!important; height:60px; font-size:16px;text-align:center; resize:none; " auto-complete="off"><?php echo $nres[0]['nav2'];?></textarea><!--<input type="text"class="form-control tamil" name="nav2" value="" style="padding:0px;width:150px; height:70px; margin-left:60px;margin-top:15px; font-size:30px;">--><div class="radio" style="margin-left:65px;">
  <label style="vertical-align:middle;"><input type="radio" name="nav_laknam" value="2" style="padding:0px;width:25px; height:25px; padding-right:8px; vertical-align:middle;"<?php if($nres[0]['laknam']=="2") echo "checked";?>>&nbsp;&nbsp;&nbsp;<span>ல</span></label>
</div></td>
                                                                               <td scope="col" style="padding:0px;width:100px; height:60px; background-color:#ffdc19;"><textarea name="nav3" class="form-control tamil" rows="5" style="padding:0px; border:0px!important; height:60px; font-size:16px;text-align:center; resize:none; " auto-complete="off"><?php echo $nres[0]['nav3'];?></textarea><!--<input type="text"class="form-control tamil" name="nav3" value="" style="padding:0px;width:150px; height:70px; margin-left:60px;margin-top:15px; font-size:30px;">--><div class="radio" style="margin-left:65px;">
  <label style="vertical-align:middle;"><input type="radio" name="nav_laknam" value="3" style="padding:0px;width:25px; height:25px; padding-right:8px; vertical-align:middle;"<?php if($nres[0]['laknam']=="3") echo "checked";?>>&nbsp;&nbsp;&nbsp;<span>ல</span></label>
</div></td>
                                                                               <td scope="col" style="padding:0px;width:100px; height:60px; background-color:#ffdc19;"><textarea name="nav4" class="form-control tamil" rows="5" style="padding:0px; border:0px!important; height:60px; font-size:16px;text-align:center; resize:none; " auto-complete="off"><?php echo $nres[0]['nav4'];?></textarea><!--<input type="text"class="form-control tamil" name="nav4" value="" style="padding:0px;width:150px; height:70px; margin-left:60px;margin-top:15px; font-size:30px;">--><div class="radio" style="margin-left:65px;">
  <label style="vertical-align:middle;"><input type="radio" name="nav_laknam" value="4" style="padding:0px;width:25px; height:25px; padding-right:8px; vertical-align:middle;"<?php if($nres[0]['laknam']=="4") echo "checked";?>>&nbsp;&nbsp;&nbsp;<span>ல</span></label>
</div></td>
                                                                            </tr>
                                                                          </thead>
                                                                          <tbody>
                                                                            <tr>
                                                                              <td cellpadding="0" cellspacing="0" style="padding:0px;width:60px; height:60px;border:1px solid #000; background-color:#ffdc19;"><textarea name="nav5" class="form-control tamil" rows="5" style="padding:0px; border:0px!important; height:60px; font-size:16px;text-align:center; resize:none; " auto-complete="off"><?php echo $nres[0]['nav5'];?></textarea><!--<input type="text" name="nav5" class="form-control tamil" value="" style="padding:0px;width:150px; height:70px; margin-left:60px;margin-top:15px; font-size:30px;">--><div class="radio" style="margin-left:65px;">
  <label style="vertical-align:middle;"><input type="radio" name="nav_laknam" value="5" style="padding:0px;width:25px; height:25px; padding-right:8px; vertical-align:middle;"<?php if($nres[0]['laknam']=="5") echo "checked";?>>&nbsp;&nbsp;&nbsp;<span>ல</span></label>
</div></td>
                                                                               <td scope="col" colspan="2" style="padding:0px;width:200px; height:60px; border:1px solid #000;border-bottom:0px;"><h3 class="text-center" style="padding-top:73px;">நவாம்சம் </h3></td>
                                                                             
                                                                               <td scope="col" style="padding:0px;width:100px; height:60px;border:1px solid #000; background-color:#ffdc19;"><textarea name="nav6" class="form-control tamil" rows="5" style="padding:0px; border:0px!important; height:60px; font-size:16px;text-align:center; resize:none; " auto-complete="off"><?php echo $nres[0]['nav6'];?></textarea><!--<input type="ext" name="nav6" class="form-control tamil" value="<br />
<b>Warning</b>:  Use of undefined constant php - assumed 'php' (this will throw an Error in a future version of PHP) in <b>/home12/fmsbilli/public_html/matrimony/admin_matri/editprofile.php</b> on line <b>2494</b><br />
" style="padding:0px;width:150px; height:70px; margin-left:60px;margin-top:15px; font-size:30px; ">--><div class="radio" style="margin-left:65px;">
  <label style="vertical-align:middle;"><input type="radio" name="nav_laknam" value="6" style="padding:0px;width:25px; height:25px; padding-right:8px; vertical-align:middle;"<?php if($nres[0]['laknam']=="6") echo "checked";?>>&nbsp;&nbsp;&nbsp;<span>ல</span></label>
</div></td>
                                                                            </tr>
                                                                             <tr>
                                                                              <td cellpadding="0" cellspacing="0" style="padding:0px;width:100px; height:60px;border:1px solid #000; background-color:#ffdc19;"><textarea name="nav7" class="form-control tamil" rows="5" style="padding:0px; border:0px!important; height:60px; font-size:16px;text-align:center; resize:none; " auto-complete="off"><?php echo $nres[0]['nav7'];?></textarea><!--<input type="text" name="nav7" class="form-control tamil" value="" style="padding:0px;width:150px; height:70px; margin-left:60px;margin-top:15px; font-size:30px; ">--><div class="radio" style="margin-left:65px;">
  <label style="vertical-align:middle;"><input type="radio" name="nav_laknam" value="7" style="padding:0px;width:25px; height:25px; padding-right:8px; vertical-align:middle;"<?php if($nres[0]['laknam']=="7") echo "checked";?>>&nbsp;&nbsp;&nbsp;<span>ல</span></label>
</div></td>
                                                                               <td scope="col" colspan="2" style="padding:0px;width:200px; height:60px; border:1px solid #000; border-top:0px;">&nbsp;</td>
                                                                             
                                                                               <td scope="col" style="padding:0px;width:100px; height:60px;border:1px solid #000; background-color:#ffdc19;"><textarea name="nav8" class="form-control tamil" rows="5" style="padding:0px; border:0px!important; height:60px; font-size:16px;text-align:center; resize:none; " auto-complete="off"><?php echo $nres[0]['nav8'];?></textarea><!--<input type="text" name="nav8" class="form-control tamil" value="" style="padding:0px;width:150px; height:70px; margin-left:60px;margin-top:15px; font-size:30px;">--><div class="radio" style="margin-left:65px;">
  <label style="vertical-align:middle;"><input type="radio" name="nav_laknam" value="8" style="padding:0px;width:25px; height:25px; padding-right:8px; vertical-align:middle;"<?php if($nres[0]['laknam']=="8") echo "checked";?> >&nbsp;&nbsp;&nbsp;<span>ல</span></label>
</div></td>
                                                                            </tr>
                                                                            <tr>
                                                                             </tr><tr>
                                                                              <td cellpadding="0" cellspacing="0" style="padding:0px;width:100px; height:75px; border:1px solid #000; background-color:#ffdc19;"><textarea name="nav9" class="form-control tamil" rows="5" style="padding:0px; border:0px!important; height:75px; font-size:16px;text-align:center; resize:none; " auto-complete="off"><?php echo $nres[0]['nav9'];?></textarea><!--<input type="text" name="nav9" class="form-control tamil " value="" style="padding:0px;width:150px; height:70px; margin-left:60px;margin-top:15px; font-size:30px;">--><div class="radio" style="margin-left:65px;">
  <label style="vertical-align:middle;"><input type="radio" name="nav_laknam" value="9" style="padding:0px;width:25px; height:25px; padding-right:8px; vertical-align:middle;"<?php if($nres[0]['laknam']=="9") echo "checked";?>>&nbsp;&nbsp;&nbsp;<span>ல</span></label>
</div></td>
                                                                               <td scope="col" style="padding:0px;width:100px; height:75px; background-color:#ffdc19;"><textarea name="nav10" class="form-control tamil" rows="5" style="padding:0px; border:0px!important;border-top: 1px solid #000 !important; height:75px; font-size:16px;text-align:center; resize:none; " auto-complete="off"><?php echo $nres[0]['nav10'];?></textarea><!--<input type="text" class="form-control tamil" name="nav10" value="" style="padding:0px;width:150px; height:70px; margin-left:60px;margin-top:15px; font-size:30px;">--><div class="radio" style="margin-left:65px;">
  <label style="vertical-align:middle;"><input type="radio" name="nav_laknam" value="10" style="padding:0px;width:25px; height:25px; padding-right:8px; vertical-align:middle;"<?php if($nres[0]['laknam']=="10") echo "checked";?>>&nbsp;&nbsp;&nbsp;<span>ல</span></label>
</div></td>
                                                                               <td scope="col" style="padding:0px;width:100px; height:75px; background-color:#ffdc19;"><textarea name="nav11" class="form-control tamil" rows="5" style="padding:0px; border:0px!important;border-top: 1px solid #000 !important; height:75px; font-size:16px;text-align:center; resize:none; " auto-complete="off"><?php echo $nres[0]['nav11'];?></textarea><!--<input type="text" class="form-control tamil" name="nav11" value="" style="padding:0px;width:150px; height:70px; margin-left:60px;margin-top:15px; font-size:30px;">--><div class="radio" style="margin-left:65px;">
  <label style="vertical-align:middle;"><input type="radio" name="nav_laknam" value="11" style="padding:0px;width:25px; height:25px; padding-right:8px; vertical-align:middle;"<?php if($nres[0]['laknam']=="11") echo "checked";?>>&nbsp;&nbsp;&nbsp;<span>ல</span></label>
</div></td>
                                                                               <td scope="col" style="padding:0px;width:100px; height:75px; background-color:#ffdc19;" cellpadding="5" cellspacing="5"><textarea name="nav12" class="form-control tamil" rows="5" style="padding:0px; border:0px!important;border-top: 1px solid #000 !important; height:75px; font-size:16px;text-align:center; resize:none; " auto-complete="off"><?php echo $nres[0]['nav12'];?></textarea><!--<input type="text" name="nav12" class="form-control tamil" value="" style="padding:0px;width:150px; height:70px; margin-left:60px;margin-top:15px; font-size:30px;text-align:center;">--><div class="radio" style="margin-left:65px;">
  <label style="vertical-align:middle;"><input type="radio" name="nav_laknam" value="12" style="padding:0px;width:25px; height:25px; padding-right:8px; vertical-align:middle;"<?php if($nres[0]['laknam']=="12") echo "checked";?>>&nbsp;&nbsp;&nbsp;<span>ல</span></label>
</div></td>
                                                                            </tr>
                                                                            
                                                                           
                                                                          </tbody>
                                                                        </table>
                                                               <!--<a href="clear_rasi.php?nav=12511&amp;id=22551" style="font-size:20px;">Nav Clear</a>-->
                                                               <a href="clear_rasi.php?nav=<?php echo $row[0]['nav_kattam'] ?>&id=<? echo $_GET['id'] ?>" style="font-size:20px;">Nav Clear</a>
                                                                    </div>
                                                                    </div>
                                                                   </div>
                                               
                                               
                                        <div class="row">
                                                                        <div class="col-md-6">
                                                                         <div class="form-group  form-inline" style="margin-top:10px;">   
                                                                             <label for="selector1" class="control-label pull-left" style="font-weight:bold;">எதிர்பார்ப்பு : </label>
                                                                         
                                                                            <textarea name="expectation" rows="4" columns="8" id="selector1" style="width:400px;margin-left:5px;" class="form-control tamil"><?php echo $row[0]['expectation'];?></textarea> 
                                                                             
                                                                             
                                                                            
                                                                  
                                                                        </div>
                                                                        
                                                                        <br>
                                                                         <div class="form-group   form-inline" style="margin-top:10px;">   
                                                                             <label for="selector1" class="control-label pull-left" style="font-weight:bold;">உட்பிரிவு சம்மதம்? : </label>
                                                                         
                                                                            <select name="caste_wish" id="selector1" style=" width:340px; margin-left:4px;" class="form-control pull-left english">
                                                                            		<option value=""></option>
                                                                                    <option value="1" <?php if($row[0]['caste_wish']=="1") echo "selected";?>>சம்மதம் </option>
                                                                                    <option value="2" <?php if($row[0]['caste_wish']=="2") echo "selected";?>>வேண்டாம் </option>
                                                                            </select>
                                                                  
                                                                        </div>
                                                                        
                                                                       </div>  
                                                            			
                                                                        
                                                                        <div class="col-md-6">
                                                                         <div class="form-group  form-inline" style="margin-top:10px;">   
                                                                             <label for="selector1" class="control-label pull-left" style="font-weight:bold;">தேவைப்படும் ராசி, நட்சத்திரம் : </label>
                                                                         
                                                                           <!-- <textarea name="expect_rasi" rows="8" columns="8" style=" width:272px;" id="selector1" class="form-control pull-left tamil">-->
                                                                                                                                                           
                                                                        <!--    </textarea>-->
                                                                        <?php $ras = explode(",", $row[0]['expect_rasi']);?>
                                                                            <br>
                                                                              <div class="row">
                                                                        	<div class="col-md-6">
                                                                            <input type="checkbox" name="expect_rasi[]" value="1" <?php if(in_array("1",$ras)) echo "checked";?>/>&nbspஅஸ்வினி <br/>
                                                                            <input type="checkbox" name="expect_rasi[]" value="2" <?php if(in_array("2",$ras)) echo "checked";?>>&nbspபரணி   <br/>
                                                                            <input type="checkbox" name="expect_rasi[]" value="3" <?php if(in_array("3",$ras)) echo "checked";?>>&nbspகார்த்திகை   <br/>
                                                                            <input type="checkbox" name="expect_rasi[]" value="4" <?php if(in_array("4",$ras)) echo "checked";?>>&nbspரோகிணி  <br/>
                                                                            <input type="checkbox" name="expect_rasi[]" value="5" <?php if(in_array("5",$ras)) echo "checked";?>>&nbspமிருகசீரிடம்   <br/>
                                                                            <input type="checkbox" name="expect_rasi[]" value="6" <?php if(in_array("6",$ras)) echo "checked";?>>&nbspதிருவாதிரை   <br/>
                                                                            <input type="checkbox" name="expect_rasi[]" value="7" <?php if(in_array("7",$ras)) echo "checked";?>>&nbspபுனர்பூசம்   <br/>
                                                                            <input type="checkbox" name="expect_rasi[]" value="8" <?php if(in_array("8",$ras)) echo "checked";?>>&nbspபூசம்  <br/>
                                                                            <input type="checkbox" name="expect_rasi[]" value="9" <?php if(in_array("9",$ras)) echo "checked";?>>&nbspஆயில்யம்   <br/>
                                                                            <input type="checkbox" name="expect_rasi[]" value="10" <?php if(in_array("10",$ras)) echo "checked";?>>&nbspமகம்   <br/>
                                                                            <input type="checkbox" name="expect_rasi[]" value="11" <?php if(in_array("11",$ras)) echo "checked";?>>&nbspபூரம்   <br/>
                                                                            <input type="checkbox" name="expect_rasi[]" value="12" <?php if(in_array("12",$ras)) echo "checked";?>>&nbspஉத்தரம்   <br/>
                                                                            <input type="checkbox" name="expect_rasi[]" value="13" <?php if(in_array("13",$ras)) echo "checked";?>>&nbspஅஸ்தம்  <br/>
                                                                            <input type="checkbox" name="expect_rasi[]" value="14" <?php if(in_array("14",$ras)) echo "checked";?>>&nbspசித்திரை
                                                                            </div>
                                                                            
                                                                            <div class="col-md-6">
                                                                            <input type="checkbox" name="expect_rasi[]" value="15" <?php if(in_array("15",$ras)) echo "checked";?>>&nbspசுவாதி   <br/>
                                                                            <input type="checkbox" name="expect_rasi[]" value="16" <?php if(in_array("16",$ras)) echo "checked";?>>&nbspவிசாகம்   <br/>
                                                                            <input type="checkbox" name="expect_rasi[]" value="17" <?php if(in_array("17",$ras)) echo "checked";?>>&nbspஅனுஷம்   <br/>
                                                                            <input type="checkbox" name="expect_rasi[]" value="18" <?php if(in_array("18",$ras)) echo "checked";?>>&nbspகேட்டை   <br/>
                                                                            <input type="checkbox" name="expect_rasi[]" value="19" <?php if(in_array("19",$ras)) echo "checked";?>>&nbspமூலம்   <br/>
                                                                            <input type="checkbox" name="expect_rasi[]" value="20" <?php if(in_array("20",$ras)) echo "checked";?>>&nbspபூராடம்   <br/>
                                                                            <input type="checkbox" name="expect_rasi[]" value="21" <?php if(in_array("21",$ras)) echo "checked";?>>&nbspஉத்திராடம்   <br/>
                                                                            <input type="checkbox" name="expect_rasi[]" value="22" <?php if(in_array("22",$ras)) echo "checked";?>>&nbspதிருவோணம்  <br/>
                                                                            <input type="checkbox" name="expect_rasi[]" value="23" <?php if(in_array("23",$ras)) echo "checked";?>>&nbspஅவிட்டம்   <br/>
                                                                            <input type="checkbox" name="expect_rasi[]" value="24" <?php if(in_array("24",$ras)) echo "checked";?>>&nbspசதயம்   <br/>
                                                                            <input type="checkbox" name="expect_rasi[]" value="25" <?php if(in_array("25",$ras)) echo "checked";?>>&nbspபூரட்டாதி   <br/>
                                                                            <input type="checkbox" name="expect_rasi[]" value="26" <?php if(in_array("26",$ras)) echo "checked";?>>&nbspஉத்திரட்டாதி  <br/>
                                                                            <input type="checkbox" name="expect_rasi[]" value="27" <?php if(in_array("27",$ras)) echo "checked";?>>&nbspரேவதி
                                                                            </div>
                                                                            
                                                                        
                                                                        </div>
                                                                           
                                                                           
                                                                  
                                                                        </div>
                                                                        
                                                                       </div>
                                                                       </div>
                                                   
                                         <div class="row">
                                            <div class="col-md-4">
                                              <div class="form-group   form-inline" style="margin-top:10px;">
                                                <label for="selector1" class="control-label pull-left">Business to Business :</label>
                                                <select name="business" id="business_id" style="width:340px; margin-left:4px;" class="form-control pull-left english select2">
                                                    <option value=""></option>
                                                    <option value="" <?php if($row[0]['business']=="1") echo "selected";?>>Matrimony to Matrimony</option>
                                                    <option value="2" <?php if($row[0]['business']=="2") echo "selected";?>>Direct to Direct</option>
                                                    <option value="3" <?php if($row[0]['business']=="3") echo "selected";?>>Direct to Matrimony</option>
                                                </select>
                                              </div>
                                            </div>
                                            
                                            <!--<input id="pro_id" type="hidden" value="<?= $_GET['id'] ?>" name="pro_id"> -->
                                            <input id="pro_id2" type="hidden" value="<?= $_GET['id'] ?>" name="pro_id2"> 
                                            <div id="append_account_name"></div>
                                            <div class="col-md-4">
                                                    <div class="form-group   form-inline" style="margin-top:10px;">
                                                            <label for="selector1" class="control-label pull-left">Profile Id : </label>

                                                           
                                                    
                                                        
                                                              <?php
                                                            $condition = "";
                                                            $condition.= " AND id != ".$_GET["id"];
                                                    
                                                    
                                                    
                                                    error_log("hard to find".$profiles_ids);
                                                            if ($profile_result[0][gender] == "பெண்") {
                                                                            $condition.= " AND gender = 'ஆண்'";
                                                            } else {
                                                                $condition.= " AND gender = 'பெண்'";
                                                            }
                                                            
                                                                error_log("SELECT * FROM profiles WHERE 1=1".$condition);
                                                                $statement1 = $pdo->prepare("SELECT * FROM profiles WHERE 1=1".$condition);
                                                                $statement1->execute();
                                                                $profile_data = $statement1->fetchAll(PDO::FETCH_ASSOC);
                                                                $totalData1 = $statement1->rowCount();
                                                            ?>
                                                            
                                                            <select name="profiles_id[]" class="form-control pull-left english select2" style=" width:340px;" id="profiles_id"  multiple>
                                                                    <?php                             
                                                             
                                                                 foreach ($profile_data as $profile_datas) { ?>
                                                                 
                                                                    <option value="<?= $profile_datas['id'] ?>"><?= $profile_datas['id'] ?></option>;
                                                            <?php  
                                                             }   
                                                             ?>
                                                             
                                                            </select>
                                                </div>
                                            </div>
                                        </div>
                                                                       
                                                                    
                                    </div>
                                </div>
                                   
                                            <div class="row">
                                                        
                                                        	<div class="col-md-12 text-center col-md-offset-3" style="width:650px; margin-top:50px; margin-bottom:50px;">
                                                      	 <div class="form-group form-inline" style="margin-top:10px;">   
                                                               <button type="submit" class="btn btn-primary btn-block">பதிவேற்று </button>
                                                          	   <button type="reset" class="btn btn-primary btn-block">ரத்து செய் </button>
                                                      
                                               			</div>
                                              		
                                                    	</div>
                                                    </div>
                                             <div class="clearfix">
                                          </div>
                                        </div>
                                    </div>
								</div>
</div></form>
<?php } ?>
    <!-- Data Tables Endsss Here -->
</section>
<script>
      $(document).ready(function() {  
    
  $('#checkAll').click(function () { 
        var d=$('#d').text();
        if(d==''){
            $('#d').text('checked');
            $('.s').prop('checked',true);
        }else{
            $('#d').text('');
            console.log('un checked');
             $('.s').prop('checked',false);
        }
 });
 
    $('.checkboxs').on('click',function(){
        console.log('clicked');
    });
    
     $('#print_lable').on('click',function(){
    var checkValues = $('input[name=assign_ids]:checked').map(function(){
                return $(this).val();
            }).get();

    if(checkValues != '' ){
       
       var result = confirm("Conform Do You Want Print This id");
if (result) {
    window.open('profile-print.php?id='+checkValues, '_blank');
   // window.location.href ="profile-print.php?id="+checkValues;
    //Logic to delete the item
     //console.log(checkValues);
           /* var ids=[];
            ids = checkValues;
            $.ajax({
                    type: 'POST',
                    url: 'story-details-soft-delete.php',
                    data: {ids:ids},                  
                    success: function(response) {
                       
                        window.location.href ="story-details.php";
                    }
                });*/
}

	   
    }else{
        alert("Please Select Minimum One Product Lable");
    }
    }); 
    
    
    
	$image_crop = $('#image_demo').croppie({
    enableExif: true,
    viewport: {
      width:500,
      height:600,
      type:'square' //circle
    },
    boundary:{
      width:500,
      height:600
    }
  });

  $('#upload_image').on('change', function(){
    var reader = new FileReader();
    reader.onload = function (event) {
      $image_crop.croppie('bind', {
        url: event.target.result
      }).then(function(){
        console.log('jQuery bind complete');
      });
    }
    reader.readAsDataURL(this.files[0]);
    $('#uploadimageModal').modal('show');
  });

  $('.crop_image').click(function(event){
    $image_crop.croppie('result', {
      type: 'canvas',
      size: 'viewport'
    }).then(function(response){
      $.ajax({
        url:"img-upload/upload.php",
        type: "POST",
        data:{"image": response},
        success:function(data)
        {
          $('#uploadimageModal').modal('hide');
          $('#uploaded_image').html(data);
        }
      });
    })
  });
  
});  
</script>

<!--<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.1/jquery.js"></script>-->
<script>
$(document).ready(function(){
          $("#business_id").change(function(){
              var val = $(this).val();
              var section=`<div class="col-md-4">
                                <div class="form-group">
                                    <label class="required" for="location">Select Account</label>
                                      <select name="account_name" class="form-control tip select2" id="account_name" required="required" multiple>
                                        <?php $statement_bro = $pdo->prepare("SELECT * FROM brokers");
                                            $statement_bro->execute();
                                            $location_result_bro = $statement_bro->fetchAll(PDO::FETCH_ASSOC); 
                                            foreach ($location_result_bro as $result_bro) {
                                                echo "<option value=".$result_bro['id'].">".$result_bro['brokername']."&nbsp;&nbsp;-&nbsp;&nbsp;</option>";
                                            }?>
                                    </select>                                                                  
                                </div>
                            </div>`;
                console.log('BUSINESS CHANGE VALUE'+val);
                if(val=='0') {
                     $('#append_account_name').empty();
                }else if(val==''){
                    $('#append_account_name').empty();
                }else if(val=='1'){
                    $('#append_account_name').empty();
                    $("#append_account_name").append(section);
                    $('.select2').select2();
                }else if(val=='2'){
                    $('#append_account_name').empty();
                     $("#append_account_name").append(section);
                     $('.select2').select2();
                }
                
          });
      });
</script>

<script>
    $('#regform').on('submit', function(e){
        alert("Click And Form Working");
                e.preventDefault();
                var formData = new FormData(this);
                formData.append('type', 'create_register_profiles');
                            $.ajax({
                            url: 'data-tables/profiles-admin-data-table2.php',
                            type: 'post',
                            dataType: 'json',
                            data: formData,
                            cache: false,
                            contentType: false,
                            processData: false,
                            enctype: 'multipart/form-data',
                            success: function (response) {
                                if(response['status']==200){
                                     alert(response['message']);
                                    // window.location.href="bills.php";
                                     $('#regform').trigger("reset");
                                    
                                }else{
                                    alert(response['message']);
                                   
                                }
                                
                               
                            }
                        });
                
    });
</script>
<script>
			$(document).ready(function(){
				$('input,textarea,.select2-input').on('keydown',function(event){
					if(event.which==121){
						$(this).toggleClass('tamil');
						return false;
					}
					if($(this).hasClass('tamil')){
						toggleKBMode(event);
					}else{
						return true;
					}
				});
				$('input,textarea,.select2-input').on('keypress',function(event){
					if($(this).hasClass('tamil')){
						convertThis(event);
					}
				});
			});
		</script>
<?php include "footer.php"; ?>




<script>
    $(document).ready(function(){
        $('#filter_section').hide();
        $('#show_filter').click(function(){
            $("#filter_section").slideToggle();
            return false;
        });
        $('#filter_search').show();
        $('#show_search').click(function(){
            $("#filter_search").slideToggle();
            return false;
        });
    });
</script>
<script>
$(document).ready(function(){
//     $("#business_id").change(function () {
//     alert("Changed!");
//     $business_change=$("business_id").val();
    
// });

 

});

</script>

<script>

// $(document).ready(function(){
//      profileIds();
// })

// function profileIds() {
//     $("#profiles_id").empty();
//     var business_change = $("#business_id").val();
//     var profile_id = $("#pro_id").val();
//     $.ajax({
//         type: 'POST',
//         url: 'apis/select_profile.php',
//         data: { type: 'businees', business_id: business_change,profile_id:profile_id}, 
//         success: function(response) {
//             $("#profiles_id").append(response);
//         },
//     });
// }
</script>

<script>

  
  $(function() {
   $('.datetimepicker').datetimepicker({format:'d-m-Y', timepicker:false});
  });
  
  $('#datetimepicker1').datetimepicker({
				datepicker:false,
				
				format:'H:i'
});
$(function() {
 $('#timepicker1').timepicker({
                minuteStep: 1,
                template: 'modal',
                appendWidgetTo: 'body',
                showSeconds: true,
                showMeridian: true,
                defaultTime: false
            });
 
 
 
 });
 

  
  
$(function() {
  // Initialize form validation on the registration form.
  // It has the name attribute "registration"
  $("#regform").validate({
    // Specify validation rules
    rules: {
      // The key name on the left side is the name attribute
      // of an input field. Validation rules are defined
      // on the right side
	   regtype: "required",
      //gender: "required",
	 regnop: "required",
	  binit: "required",
	 bname: "required",
	 brokername:"required",
	  //dinit: "required",
	  //dname: "required",
	 // cellno: "required",
	  //regdate: "required",
	 dob: "required",
	/* day: "required",
	 time: "required",
	 meridian: "required",*/
	  
	 // tyear: "required",
	 // tdate: "required",
	 // month: "required",
	 /* height: "required",
	  color: "required",
	  marriage: "required",*/
	 native_place: "required",
	  /*birth_place: "required",*/
	  
	 father_name: "required",
	 /* father_dname: "required",*/
	  mother_name: "required",
	 /* mother_dname: "required",
	  wealth_class: "required",
	  with_birth: "required",*/
	 caste: "required",
	 edu:"required",
	  
	 /* subcaste: "required",
	  ancestry: "required",
	  family_god: "required",*/
	 natchatram: "required",
	 /* padham: "required",
	  laknam: "required",
	  rasi: "required",
	  dhisa: "required",
	  dyears: "required",
	  dmonth: "required",
	  ddays: "required",
	  address: "required",
      email: {
        required: true,
        // Specify that email should be validated
        // by the built-in "email" rule
        email: true
      },*/
     
     
     
    },
    // Specify validation error messages
    messages: {
    
	  
	 regtype: "* தேவையான தகவலை உள்ளிடவும்.",
     
	  regnop: "* தேவையான தகவலை உள்ளிடவும்.",
	  binit: "* தேவையான தகவலை உள்ளிடவும்.",
	  bname: "* தேவையான தகவலை உள்ளிடவும்.",
	  brokername:"* தேவையான தகவலை உள்ளிடவும்.",
	 
	//  cellno: "* தேவையான தகவலை உள்ளிடவும்.",
	
	  dob: "* தேவையான தகவலை உள்ளிடவும்.",
	/*  day: "* தேவையான தகவலை உள்ளிடவும்.",
	  time: "* தேவையான தகவலை உள்ளிடவும்.",
	  meridian: "* தேவையான தகவலை உள்ளிடவும்.",*/
	  edu: "* தேவையான தகவலை உள்ளிடவும்.",
	 
	  native_place: "* தேவையான தகவலை உள்ளிடவும்.",
	 
	  father_name: "* தேவையான தகவலை உள்ளிடவும்.",
	  mother_name: "* தேவையான தகவலை உள்ளிடவும்.",	 
	  caste: "* தேவையான தகவலை உள்ளிடவும்.",
	  
	 
	  natchatram: "* தேவையான தகவலை உள்ளிடவும்.",
	  
	  
    },
    // Make sure the form is submitted to the destination defined
    // in the "action" attribute of the form when valid
    submitHandler: function(form) {
      form.submit();
    }
  });
});

	


  /*$(document).ready(function() {
    $('#casteform').bootstrapValidator({
        feedbackIcons: {
            valid: 'glyphicon glyphicon-ok',
            invalid: 'glyphicon glyphicon-remove',
            validating: 'glyphicon glyphicon-refresh'
        },
        fields: {
            caste_name: {
                validators: {
                    notEmpty: {
                        message: 'The username is required'
                    }
                }
            }
           
        }
    });
});
  
  
  $(document).ready(function() {
    $('#casteform').bootstrapValidator({excluded: [':disabled']});
});
  */
  

 
$(function() {
    $("#bname").autocomplete({
        source: "search.php?field=bname",
		appendTo: $("#bname").parent(),
        select: function( event, ui ) {
            event.preventDefault();
			
            $("#bname").val(ui.item.value);
			
        }
    });
	
	 $("#dname").autocomplete({
        source: "search.php?field=dname",
		appendTo: $("#dname").parent(),
        select: function( event, ui ) {
            event.preventDefault();
			
            $("#dname").val(ui.item.value);
			
        }
    });
	
	$("#caste").autocomplete({
        source: "search.php?field=caste",
		appendTo: $("#caste").parent(),
        select: function( event, ui ) {
            event.preventDefault();
			$("#caste").val(ui.item.value);
            $("#casteid").val(ui.item.id);
			//alert($("#casteid").val());
			
        }
    });
	
	if($("#caste").val()=="")
	{
		
		var mcaste = $("#casteid").val();
		//alert(mcaste);
		
	}
	
	
	//$("#caste").change(resetAutocomplete);
	
	
	/*function resetAutocomplete() {
		alert("lkdasf");
    $("#subcaste").autocomplete("destroy");
    $("#subcaste").autocomplete({
        source: "search.php?field=subcaste&c=" + $("#casteid").val(),
		appendTo: $("#subcaste").parent(),
        select: function( event, ui ) {
            event.preventDefault();
			$("#subcaste").val(ui.item.value);
            $("#subcasteid").val(ui.item.id);
			
			//alert(ui.item.value);
			
			//alert(ui.item.id);
			
        }
    });
}*/
	
/* $("#subcaste").autocomplete({
        source: "search.php?field=subcaste&cid=" + $("#casteid").val(),
		appendTo: $("#subcaste").parent(),
        select: function( event, ui ) {
            event.preventDefault();
			$("#subcaste").val(ui.item.value);
            $("#subcasteid").val(ui.item.id);
			
			//alert(ui.item.value);
			
			//alert(ui.item.id);
			
        }
    });	*/
	/*$("#subcaste").autocomplete({
    source: function(request, response) {
        $.ajax({
            url: "search.php?field=subcaste",
            dataType: "json",
            data: {
                term : request.term,
                cid : $("#casteid").val()
            },
            success: function(data) {
                response(data);
            }
        });
    },
	appendTo: $("#subcaste").parent(),
    min_length: 3,
    delay: 300
});*/

$( "#subcaste" ).autocomplete({
        source: function(request, response) {
        $.ajax({
            url: "search.php?field=subcaste",
            dataType: "json",
            data: {
                term : request.term,
                cid : $("#casteid").val()
            },
            success: function(data) {
				//alert(data);
                response(data);
            }
        });
    },
	appendTo: $("#subcaste").parent(),
        minLength:0
    }).bind('focus', function(){ $(this).autocomplete("search"); } );


/*$("#brokername").autocomplete({
    source: function(request, response) {
        $.ajax({
            url: "search.php?field=broker",
            dataType: "json",
            data: {
                term : request.term,
                cid : $("#casteid").val()
            },
            success: function(data) {
                response(data);
            }
        });
    },
	appendTo: $("#subcaste").parent(),
    min_length: 3,
    delay: 300
});
*/
 $("#brokername").autocomplete({
        source: "search.php?field=brokername",
		appendTo: $("#brokername").parent(),
        select: function( event, ui ) {
            event.preventDefault();
			
            $("#brokername").val(ui.item.value);
			
        }
    });


/*$("#brokername").autocomplete({
	
       // source: "search.php?field=brokername",
		
       /* select: function( event, ui ) {
            event.preventDefault();
			//alert(ui.item.value);
            $("#brokername").val(ui.item.value);
			
        },
		
		source: function( request, response ) {
					// delegate back to autocomplete, but extract the last term
					$.ajax({
						url: "search.php?field=brokername",
						dataType: "json",
						data: {
							term : extractLast(request.term),
							//cid : $("#casteid").val()
						},
						success: function(data) {
							//alert(data);
							response(data);
						}
					});
				},
	appendTo: $("#brokername").parent(),
	
				focus: function() {
					// prevent value inserted on focus
					return false;
				},
				select: function( event, ui ) {
					
					var terms = split( this.value );
					//alert(ui.item.value);
					// remove the current input
					terms.pop();
					// add the selected item
					terms.push( ui.item.value );
					// add placeholder to get the comma-and-space at the end
					terms.push( "" );
					 $("#brokername").val(terms.join( ", " ));
					return false;
				}
		
		
    });*/

/*$("input[name*='brokername']").autocomplete({
	
        source: "search.php?field=brokername",
		appendTo: $(this).parent(),
       select: function( event, ui ) {
		   //alert("");
            event.preventDefault();
			//alert(ui.item.value);
            $(this).val(ui.item.value);
			
        },
*/		
		/*source: function( request, response ) {
					// delegate back to autocomplete, but extract the last term
					$.ajax({
						url: "search.php?field=brokername",
						dataType: "json",
						data: {
							term : extractLast(request.term),
							//cid : $("#casteid").val()
						},
						success: function(data) {
							//alert(data);
							response(data);
						}
					});
				},
	appendTo: $("#brokername").parent(),
	
				focus: function() {
					// prevent value inserted on focus
					return false;
				},
				select: function( event, ui ) {
					
					var terms = split( this.value );
					//alert(ui.item.value);
					// remove the current input
					terms.pop();
					// add the selected item
					terms.push( ui.item.value );
					// add placeholder to get the comma-and-space at the end
					terms.push( "" );
					 $("#brokername").val(terms.join( ", " ));
					return false;
				}
		
		
    });*/


var options = {
    source: "search.php?field=brokername",
	appendTo: $(this).parent(),
       select: function( event, ui ) {
		   
            event.preventDefault();
			//alert(ui.item.value);
            $(this).val(ui.item.value);
			
        }
};
var selector = 'input.bn';
$(document).on('keyup focus', selector, function() {
    $(this).autocomplete(options);
});

 $("#father_name").autocomplete({
        source: "search.php?field=father_name",
		appendTo: $("#fathername").parent(),
        select: function( event, ui ) {
            event.preventDefault();
			
            $("#father_name").val(ui.item.value);
			
        }
    });
	
	
	
	 $("#father_dname").autocomplete({
        source: "search.php?field=father_dname",
		appendTo: $("#father_dname").parent(),
        select: function( event, ui ) {
            event.preventDefault();
			
            $("#father_dname").val(ui.item.value);
			
        }
    });




$("#mother_name").autocomplete({
        source: "search.php?field=mother_name",
		appendTo: $("#mother_name").parent(),
        select: function( event, ui ) {
            event.preventDefault();
			
            $("#mother_name").val(ui.item.value);
			
        }
    });


$("#mother_dname").autocomplete({
        source: "search.php?field=mother_dname",
		appendTo: $("#mother_dname").parent(),
        select: function( event, ui ) {
            event.preventDefault();
			
            $("#mother_dname").val(ui.item.value);
			
        }
    });


$("#ancestry").autocomplete({
        source: "search.php?field=ancestry",
		appendTo: $("#ancestry").parent(),
        select: function( event, ui ) {
            event.preventDefault();
			
            $("#ancestry").val(ui.item.value);
			
        }
    });
	
	
	
	
	
	$("#edu").autocomplete({
        source: "search.php?field=edu",
		appendTo: $("#edu").parent(),
        select: function( event, ui ) {
            event.preventDefault();
			
            $("#edu").val(ui.item.value);
			
        }
    });


$("#job").autocomplete({
        source: "search.php?field=job",
		appendTo: $("#job").parent(),
        select: function( event, ui ) {
            event.preventDefault();
			
            $("#job").val(ui.item.value);
			
        }
    });



$("#tyear").autocomplete({
        source: "search.php?field=tyear",
		appendTo: $("#tyear").parent(),
        select: function( event, ui ) {
            event.preventDefault();
			
            $("#tyear").val(ui.item.value);
			
        }
    });


$("#family_god").autocomplete({
        source: "search.php?field=family_god",
		appendTo: $("#family_god").parent(),
        select: function( event, ui ) {
            event.preventDefault();
			
            $("#family_god").val(ui.item.value);
			
        }
    });



});
	



	
	
	




// Add Record 
function addRecord() {
    // get values

    var caste_name = $("#caste_name").val();
   
  

    // Add record
    $.post("addRecord.php", {
        caste_name: caste_name,
        
    }, function (data, status) {
        // close the popup
        $("#add_caste").modal("hide");

        // read records again
       // readRecords();

        // clear fields from the popup
       $("#caste_name").val("");
       
    });
}

 

function insertData() {
    var caste_name=$("#caste_name").val();
  
 
 
// AJAX code to send data to php file.
        $.ajax({
            type: "POST",
            url: "addRecord.php",
            data: {caste_name:caste_name},
            dataType: "JSON",
            success: function(data) {
             $("#message").html(data);
            $("p").addClass("alert alert-success");
            },
            error: function(err) {
            alert(err);
            }
        });
 
}
   


// READ records
function readRecords() {
    $.get("ajax/readRecord.php", {}, function (data, status) {
        $(".records_content").html(data);
    });
}


$("#mar1").click(function(){
    $(".childdiv").css({"display":"none"});
});

$("#mar2").click(function(){
    $(".childdiv").css({"display":"block"});
});


function readURL(input) {
        if (input.files && input.files[0]) {
            var reader = new FileReader();

            reader.onload = function (e) {
                $('#uploaded_image')
                    .attr('src', e.target.result)
                    .width(205)
                    .height(515);
            };

            reader.readAsDataURL(input.files[0]);
        }
    }


function split( val ) {
			return val.split( /,\s*/ );
		}
function extractLast( term ) {
	return split( term ).pop();
}


$('.add').click(function() {
    $('.block:last').before('<div class="block"><label for="selector1" class="control-label pull-left">புரோக்கர் பெயர் : </label><select name="brokertype[]" id="brokertype" class="form-control pull-left english" style="clear:both;width:60px; margin-left:0px; font-weight:bold; font-size:20px; height:40px;margin-top:0px;"><option value=""></option><option>N</option><option>I</option></select><input type="text" name="brokername[]" id="brokername" charset="utf-8" class="form-control pull-left tamil bn" style="margin-left: 10px;width: 400px;height:40px; word-wrap:break-word;" onKeyPress="javascript:convertThis(event)" onKeyDown="toggleKBMode(event)"/><input type="checkbox" name="is_phone[]" value="1" class="pull-left" style=" margin-left:25px;margin-top:15px;"/> <label for="selector1" class="control-label pull-left" style="width: 70%;margin-top:10px;">போன் நம்பர்</label><label for="selector1" class="control-label pull-left"  style=" margin-left:25px;margin-top:10px;">பதிவு எண்</label><input type="text" name="profid[]" class="pull-left" style="width:230px; height:40px; word-wrap:break-word; margin-left:15px;margin-top:10px;"/><span class="remove"><i class="fa fa-times-circle-o" style="color:green; font-size:30px; float:left; padding-left:10px;vertical-align:middle;padding-top:15px;"></i></span></div>');
});
$('body').on('click', '.remove', function () { // use event delegation because you're adding to the DOM
    $(this).parent('.block').remove();
});


function removeimg()
{
 $("#photosel").removeAttr('src');
// $("#photosel").removeAttr('src');
//$(this).remove();   	
	
	
	
}

  </script>

Zerion Mini Shell 1.0