	
 <div class="row">

   <div class="col-md-12">
  
		<div class="panel panel-default" data-collapsed="0">
        	<div class="panel-heading">
            	<div class="panel-title" id="redcolor" >
            		<i class="entypo-plus-circled"></i>
				Profile Details
				
					

            	</div>
            </div>
			<div class="panel-body">

			
				    
			<ul class="nav nav-tabs bordered">
			<li class="active">
            	<a href="#add" data-toggle="tab"><i class="entypo-menu"></i> 
						Your photo
                    	</a></li>
			
			</ul>
    	<!------CONTROL TABS END------>
        
		<div class="tab-content">
            <!----TABLE LISTING STARTS-->
			
	
            <div class="tab-pane box active" id="add">


	<div class="row">
						<div class="col-md-12">
							
							<div class="panel-body">

				<?PHP
								$session_data = $this->session->userdata('logged_in');
$data['surname'] = $session_data['surname'];
$data['id'] = $session_data['id'];



		
		 echo $this->session->flashdata('msg'); 
		
                 echo form_open('user/updateprofile' , array('class' => 'form-horizontal form-groups-bordered validate', 'enctype' => 'multipart/form-data'));
				 if(validation_errors()):?>
<div class='alert alert-danger text-center'><?php echo validation_errors(); ?></div>
<?php endif;?>
					
  
       <div class="form-group">
    <label for="inputcollage" class="col-sm-2 control-label">	</label>
    <div class="col-sm-10">
	
	<img src="<?php echo base_url(); ?>images/img/photo.jpg"    align="middle">
  
	</div>
  </div>
  
  
    
    <div class="form-group">
    <label for="inputcollage" class="col-sm-2 control-label">	Select your photo </label>
    <div class="col-sm-10">
		<input type="file" name="photo" width="400" required value="<?php echo set_value('photo') ;?>" placeholder="Select Image"  class="form-control"  >

						<span class="text-danger">Kindly upload clear image here..<?php echo form_error('surname'); ?>

	</div>
  </div>
  <input type="hidden" name="surname"  value="<?php echo set_value('surname'); ?>" id="surname"   class="form-field">
		

  

		<input type="hidden" name="id" value="<?php echo ($id) ;?>" > 

  
  
  

	<div class="form-group">

    <div class="col-sm-offset-2 col-sm-10">
     
	         <button type="submit"name="btn_upload" class="btn btn-primary" value="upload"> Upload Image   </button>

    </div>
  </div>
									   
									<?php echo form_close();?>
								
							</div>
						</div>
					</div>


				</div>


		<!----CREATION FORM STARTS---->
	
			
		
  
		
  </div>
  
  </div>
  
  

































