 <div class="modal-body">
      
	  	

				<?PHP
//$session_data = $this->session->userdata('logged_in');




				echo $this->session->flashdata('msg'); 
		
                 echo form_open('user/adddocuments' , 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="inputname" class="col-sm-2 control-label">	Shujaa Name </label>
    <div class="col-sm-10">
	
		  		<input type="text" name="name" value="<?php echo set_value('name'); ?>" class="form-control"  placeholder="Enter name of the shujaa">
		 
				
		<span class="text-danger"> <?php echo form_error('name'); ?>
		
		</span>
	</div>
  </div>

  
  	
  	<div class="form-group">
    <label for="inputphoto" class="col-sm-2 control-label">	Image </label>
    <div class="col-sm-10">
	
  <input type="hidden" name="id" value="<?php echo ($id) ;?>" > 
		<input type="file" name="photo" width="400"  value="" placeholder="Select Image"  class="form-control"  >
		 
				
		<span class="text-danger"> <?php echo form_error('photo'); ?>
		
		</span>
	</div>
  </div>
	<div class="form-group">
    <label for="inputdescription" class="col-sm-2 control-label">	Description</label>
    <div class="col-sm-10">

				<textarea name="description" value="<?php echo set_value('description'); ?>"  class="form-control"  placeholder="Enter description"></textarea>
			
		<span class="text-danger"> <?php echo form_error('description'); ?>
		
		</span>
	</div>
  </div>
		

	

	
	 <div class="form-group">

    <div class="col-sm-offset-2 col-sm-10">

	         <button type="submit"  value="post" name="btn_upload2" class="btn btn-primary"> POST   </button>

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