<?php $this->load->view('admin/common/header'); ?>

	
<div class="inber-pages">
<div class="container-fluid">
<div class="row">
<div class="col-md-12" style="text-align:center;">Profile</div>

</div>

</div>

</div>
<?php  if($this->session->flashdata('err')!=''){?>
	<div class="alert alert-danger alert-dismissible">
  <a href="#" class="close" data-dismiss="alert" aria-label="close">&times;</a>
   <?= $this->session->flashdata('err');?>
</div>
<?php }else{ ?>
	<div class="alert alert-success alert-dismissible">
  <a href="#" class="close" data-dismiss="alert" aria-label="close">&times;</a>
   <?= $this->session->flashdata('err');?>
</div>
<?php }?>
<div class="dashborder-content" style="padding-top:20px;">

<div class="container">
<div class="row">

<div class="col-md-12">
<div class="panel panel-bd lobidrag lobipanel lobipanel-sortable" data-inner-id="6lbDiPQUBj" data-index="0">
<form action="<?= base_url('admin/update_profile')?>" method="post">
	<input type="hidden" name="id" value="<?= $profile['id']?>">
<table class="table table-bordered table-hover">
<tbody>
<tr>
<td width="112" style="width: 26% !important;"><strong>Name</strong></td>
<td ondblclick="editfield(this,'name')" width="170"><?= $profile['name']?></td>
</tr>
<tr>
  <td><strong>Mobile no</strong></td>
  <td ondblclick="editfield(this,'phone')"><?= $profile['phone']?></td>
</tr>
<tr>
<td><strong>Email ID</strong></td>
<td><?= $profile['email']?></td>
</tr>
<tr>
<td><strong>Company Name</strong></td>
<td ondblclick="editfield(this,'company_name')"><?= $profile['company_name']?></td>
</tr>
<tr>
<td><strong>Company Network</strong></td>
<td ondblclick="editfield(this,'company_network')"><?= $profile['company_network']?></td>
</tr>
<tr>
  <td>Employee Range</td>
  <td ondblclick="editfield(this,'employee_range')"><?= $profile['employee_range']?></td>
</tr>
<tr>
  <td>Company Location*</td>
  <td ondblclick="editfield(this,'company_location')"><?= $profile['company_location']?></td>
</tr>
<tr>
  <td>Company Corporate Address</td>
  <td ondblclick="editfield(this,'company_address')"><?= $profile['company_address']?></td>
</tr>
<tr>
  <td>About Company</td>
  <td ondblclick="editfield(this,'about_company')"><?= $profile['about_company']?></td>
</tr>
<tr id="btn-sub" style="display: none">
  <td></td>
  <td><input type="submit" name="" class="btn btn-success" value="Update Profile"></td>
</tr>
</tbody>
</table>
</form>
</div>
</div>
</div>
</div>

</div>


<?php $this->load->view('admin/common/footer'); ?>

<script type="text/javascript">
	function editfield(e,n)
	{
			var v=$(e).text();
			$(e).empty();
			$(e).append('<input name="'+n+'" type="text" value="'+v+'" class="form-control">');
			$('#btn-sub').css('display', 'block');
	}
	
	


</script>