   <div class="row">
  
  
     <div class="col-md-12">
	 <div class="table-responsive">
		
		
	<div class="panel panel-default" data-collapsed="0">
        	
			<div class="panel-body">
		
		
		



    <!-- Modal content-->
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal">&times;</button>
        <h4 class="modal-title">Update  Assessment</h4>
      </div>
	  	  	  				 <a href="<?php echo base_url();?>user/viewtasks" class="btn btn-info"> Back to task </a>

      <div class="modal-body">
      


				<?PHP
//$session_data = $this->session->userdata('logged_in');
$imgid = rand(100, 990000).time();
 $session_data = $this->session->userdata('logged_in');


	$smsconfig = $this->usermodel->populateallarray('smsconfig','id',$companyid);
		  		 	  $display1=$smsconfig[0]['display1'];
					  $mytax=0;
				 if( $display1=="yes"){
					  $mytax=$smsconfig[0]['tax1rate'];
				 }else{
					  $mytax=0;

				 }
					$refno="";
					
					if($main[0]['invoice']!=""){
							$refno=$main[0]['invoice'];
						
					}else{
									 $myfinalsalesid = $userid.time();

					$refno=$myfinalsalesid;

					}
					
   
 	$data['id'] = $session_data['id'];
        
		 $userid = $data['id'];
$data['companyid'] = $session_data['companyid'];
	 $companyid = $data['companyid'];
		 $data['usertype'] = $session_data['usertype'];
	 $usertype = $data['usertype'];	

				echo $this->session->flashdata('msg'); 
		
                 echo form_open('user/addAssessment' , 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;?>
				  		<input type="hidden" name="type" value="product"id="type" class="form-control" required placeholder="Enter type">
				<input type="hidden" name="view" value="/user/updatemyassessment?randomitemidentifier=<?php echo$main[0]['id']; ?>"id="view" class="form-control" required placeholder="Enter view">

				 		  		<input readonly type="hidden" name="action" required value="update" class="form-control"  placeholder="Enter invoice or Receip tnumber">
			 		  		<input readonly type="hidden" name="myid" required value="<?php echo set_value('invoice',$main[0]['id']); ?>" class="form-control"  placeholder="Enter invoice or Receip tnumber">
			 		  		<input readonly type="hidden" name="invoice" required value="<?php echo set_value('invoice',$main[0]['invoice']); ?>" class="form-control"  placeholder="Enter invoice or Receip tnumber">




  
  
	<div class="form-group">
    <label for="inputregistrationno" class="col-sm-2 control-label">REGISTRATION No:</label>
    <div class="col-sm-10">

				<input type="text" required name="registrationno" value="<?php echo set_value('registrationno',$main[0]['registrationno']); ?>"  class="form-control"  placeholder="Enter registration no">
			
		<span class="text-danger"> <?php echo form_error('registrationno'); ?>
		
		</span>
	</div>
  </div>
  		<div class="form-group">
    <label for="inputpolicyno" class="col-sm-2 control-label">	 POLICY No</label>
    <div class="col-sm-10">
		
				<input type="text" name="policyno" value="<?php echo set_value('policyno',$main[0]['policyno']) ;?>"  class="form-control" required placeholder="Enter policy no">

		<span class="text-danger"> <?php echo form_error('policyno'); ?>
		
		</span>
	</div>
  </div>
  

  		<div class="form-group">
    <label for="inputclaimno" class="col-sm-2 control-label">	 CLAIM NO</label>
    <div class="col-sm-10">
		
				<input type="text" name="claimno" value="<?php echo set_value('claimno',$main[0]['claimno']) ;?>"  class="form-control" required placeholder="Enter CLAIM NO">

		<span class="text-danger"> <?php echo form_error('claimno'); ?>
		
		</span>
	</div>
  </div>
  

		
	<div class="form-group">
    <label for="inputinsuredname" class="col-sm-2 control-label">	 INSURED NAME</label>
    <div class="col-sm-10">
		
				<input type="text" name="insuredname" value="<?php echo set_value('insuredname',$main[0]['insuredname']) ;?>"  class="form-control" required placeholder="Enter insured name">

		<span class="text-danger"> <?php echo form_error('insuredname'); ?>
		
		</span>
	</div>
  </div>
  

  
  
  
  
  
	
	<div class="form-group">
    <label for="inputinsurer" class="col-sm-2 control-label">	 INSURER</label>
    <div class="col-sm-10">
		
				<input type="text" name="insurer" value="<?php echo set_value('insurer',$main[0]['insurer']) ;?>"  class="form-control" required placeholder="Enter insurer">

		<span class="text-danger"> <?php echo form_error('insurer'); ?>
		
		</span>
	</div>
  </div>
  
  
	
	
	
	
	
	<div class="form-group">
    <label for="inputmake" class="col-sm-2 control-label">MAKE </label>
    <div class="col-sm-10">

				<input type="text" name="make" value="<?php echo set_value('make',$main[0]['make']); ?>"  class="form-control"  placeholder="Enter make ">
			
	
	</div>
  </div>
		
		
		
		<div class="form-group">
    <label for="inputmodel" class="col-sm-2 control-label">MODEL:</label>
    <div class="col-sm-10">

				<input type="text" required name="model" value="<?php echo set_value('model',$main[0]['model']); ?>"  class="form-control"  placeholder="Enter model ">
			
		<span class="text-danger"> <?php echo form_error('model'); ?>
		
		</span>
	</div>
  </div>
  	
	<div class="form-group">
    <label for="inputengineno" class="col-sm-2 control-label">	ENGINE No</label>
    <div class="col-sm-10">
				<input type="text" required name="engineno" value="<?php echo set_value('engineno',$main[0]['engineno']); ?>"  class="form-control"  placeholder="Enter ENGINE NO ">

			
		<span class="text-danger"> <?php echo form_error('engineno'); ?>
		
		</span>
	</div>
  </div>
  
  
  

  		<div class="form-group">
    <label for="inputchassisno" class="col-sm-2 control-label">	CHASSIS NO:</label>
    <div class="col-sm-10">
				<input type="text" required name="chassisno" value="<?php echo set_value('chassisno',$main[0]['chassisno']); ?>"  class="form-control"  placeholder="Enter CHASSIS NO ">

			
		<span class="text-danger"> <?php echo form_error('chassisno'); ?>
		
		</span>
	</div>
  </div>
  		
	<div class="form-group">
    <label for="inputmileage" class="col-sm-2 control-label">MILEAGE</label>
    <div class="col-sm-10">

				<input type="text" required name="mileage" value="<?php echo set_value('mileage',$main[0]['mileage']); ?>"  class="form-control"  placeholder="Enter mileage ">
			
		<span class="text-danger"> <?php echo form_error('mileage'); ?>
		
		</span>
	</div>
  </div>
				<div class="form-group">
    <label for="inputrepairer" class="col-sm-2 control-label">REPAIRER:</label>
    <div class="col-sm-10">

				<input type="text" required name="repairer" value="<?php echo set_value('repairer',$main[0]['repairer']); ?>"  class="form-control"  placeholder="Enter REPAIRER ">
			
		<span class="text-danger"> <?php echo form_error('repairer'); ?>
		
		</span>
	</div>
  </div>
			<div class="form-group">
    <label for="inputyom" class="col-sm-2 control-label">YOM:</label>
    <div class="col-sm-10">

				<input type="text" required name="yom" value="<?php echo set_value('yom',$main[0]['yom']); ?>"  class="form-control"  placeholder="Enter yom">
			
		<span class="text-danger"> <?php echo form_error('yom'); ?>
		
		</span>
	</div>
  </div>
	
			<div class="form-group">
    <label for="inputdeliverymode" class="col-sm-2 control-label">MODE OF DELIVER:</label>
    <div class="col-sm-10">

				<input type="text" required name="deliverymode" value="<?php echo set_value('deliverymode',$main[0]['deliverymode']); ?>"  class="form-control"  placeholder="Enter MODE OF DELIVER ">
			
		<span class="text-danger"> <?php echo form_error('deliverymode'); ?>
		
		</span>
	</div>
  </div>
		
		
		
			<div class="form-group">
    <label for="inputcolour" class="col-sm-2 control-label">COLOUR:</label>
    <div class="col-sm-10">

				<input type="text" required name="colour" value="<?php echo set_value('colour',$main[0]['colour']); ?>"  class="form-control"  placeholder="Enter colour ">
			
		<span class="text-danger"> <?php echo form_error('colour'); ?>
		
		</span>
	</div>
  </div>

	
	

			<div class="form-group">
    <label for="inputdate" class="col-sm-2 control-label">	 INSTRUCTION DATE</label>
    <div class="col-sm-10">

				<input type="date" required name="date" value="<?php echo set_value('date',$main[0]['date']); ?>"  class="form-control"  placeholder="Enter INSTRUCTION DATE">
	
	</div>
  </div>
	
  	
	
			<div class="form-group">
    <label for="inputtyres" class="col-sm-2 control-label">	TYRES</label>
    <div class="col-sm-10">

				<input type="text" required name="tyres" value="<?php echo set_value('tyres',$main[0]['tyres']); ?>"  class="form-control"  placeholder="Enter TYRES ">
	
	</div>
  </div>
	

  	
			<div class="form-group">
    <label for="inputassessmentdate" class="col-sm-2 control-label">	 INSTRUCTION DATE</label>
    <div class="col-sm-10">

				<input type="date" required name="assessmentdate" value="<?php echo set_value('assessmentdate',$main[0]['assessmentdate']); ?>"  class="form-control"  placeholder="Enter assessment date">
	
	</div>
  </div>
	
  	
			<div class="form-group">
    <label for="inputinstructionsby" class="col-sm-2 control-label">	Instructions by</label>
    <div class="col-sm-10">

				<input type="text" required name="instructionsby" value="<?php echo set_value('instructionsby',$main[0]['instructionsby']); ?>"  class="form-control"  placeholder="Enter instructions by ">
	
	</div>
  </div>
		
			<div class="form-group">
    <label for="inputinstructions" class="col-sm-2 control-label">	Instructions Details</label>
    <div class="col-sm-10">

					<textarea name="instructions"   value=""  class="form-control"  placeholder="Enter instructions"><?php echo set_value('instructions',$main[0]['instructions']); ?></textarea>

	</div>
  </div>
	


	

	
	
	
			<div class="form-group">
    <label for="inputpreaccident" class="col-sm-2 control-label">	PRE-ACCIDENT DEFECTS</label>
    <div class="col-sm-10">

					<textarea name="preaccident"   value=""  class="form-control"  placeholder="Enter preaccident"><?php echo set_value('preaccident',$main[0]['preaccident']); ?></textarea>

	</div>
  </div>
	
	
	
			<div class="form-group">
			    <label for="inputgaragedetails" class="col-sm-2 control-label">	GARAGE DETAILS</label>

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

					<textarea name="garagedetails"   value=""  class="form-control"  placeholder="Enter garagedetails"><?php echo set_value('garagedetails',$main[0]['garagedetails']); ?></textarea>
	
	</div>
  </div>
	
	
	
			<div class="form-group">
			    <label for="inputlatentdameges" class="col-sm-2 control-label">	LATENT DAMAGES</label>

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

					<textarea name="latentdameges"   value=""  class="form-control"  placeholder="Enter latentdameges"><?php echo set_value('latentdameges',$main[0]['latentdameges']); ?></textarea>
	
	</div>
  </div>
	
	
	
	
	 <div class="form-group">

    <div class="col-sm-offset-2 col-sm-10">
     
	         <button type="submit"  value="Assessment" name="btn_addAssessment" class="btn btn-default"> Update Assessment   </button>

    </div>
  </div>
  
  	
  

  				
  					<?php echo form_close();?>
			</div>							   
				
									
							
								
			<div class="modal-footer">

    

				</div>

		</div>
	    </div>
    </div>


							
							
						</div>
				</div>

			
			</div>
		</div>
  

			
		
		
		
		
		
		
		
  <div class="col-md-12">
<p class="text-left">






<h1><center>
Update Assessment
</center>
</h1>

								
 
 
 
 
 
 
 
 
 
 



	
	  </div>
 
</div>
</div>
</div>
	
		
</div>
	
		

</div>

