   <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  Valuation</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/addvaluation' , 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/updatemyvaluation?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="inputserialno" class="col-sm-2 control-label">	SERIAL No</label>
    <div class="col-sm-10">
	
		  		<input type="text" name="serialno" value="<?php echo set_value('serialno',$main[0]['serialno']) ?>" class="form-control" required placeholder="Enter serial No">
		 
				
		<span class="text-danger"> <?php echo form_error('serialno') ?>
		
		</span>
	</div>
  </div>

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

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

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

		<span class="text-danger"> <?php echo form_error('contact') ?>
		
		</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="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="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="inputexpirydate" class="col-sm-2 control-label">EXPIRY DATE</label>
    <div class="col-sm-10">

				<input type="text" required name="expirydate" value="<?php echo set_value('expirydate',$main[0]['expirydate']) ?>"  class="form-control"  placeholder="Enter expiry date">
			
		<span class="text-danger"> <?php echo form_error('expirydate') ?>
		
		</span>
	</div>
  </div>
  
  
  
  
  
  
	<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="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="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="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="inputfueltype" class="col-sm-2 control-label">FUEL TYPE:</label>
    <div class="col-sm-10">

				<input type="text" required name="fueltype" value="<?php echo set_value('fueltype',$main[0]['fueltype']) ?>"  class="form-control"  placeholder="Enter fueltype ">
			
		<span class="text-danger"> <?php echo form_error('fueltype') ?>
		
		</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="inputenginerating" class="col-sm-2 control-label">	ENGINE RATING</label>
    <div class="col-sm-10">

				<input type="text" required name="enginerating" value="<?php echo set_value('enginerating',$main[0]['enginerating']) ?>"  class="form-control"  placeholder="Enter ENGINE RATING ">
			
	
	</div>
  </div>
	
	
	
	
  	
		<div class="form-group">
    <label for="inputcountryoforigin" class="col-sm-2 control-label">	COUNTRY OF ORIGIN</label>
    <div class="col-sm-10">

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

	
	
	
		<div class="form-group">
    <label for="inputlocationofinspection" class="col-sm-2 control-label">	LOCATION OF INSPECTION</label>
    <div class="col-sm-10">

				<input type="text" required name="locationofinspection" value="<?php echo set_value('locationofinspection',$main[0]['locationofinspection']) ?>"  class="form-control"  placeholder="Enter LOCATION OF INSPECTION ">
	
	</div>
  </div>
	
	
	
			<div class="form-group">
    <label for="inputcoachwork" class="col-sm-2 control-label">	COACH WORK</label>
    <div class="col-sm-10">

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

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

				<input type="text" required name="electrical" value="<?php echo set_value('electrical',$main[0]['electrical']) ?>"  class="form-control"  placeholder="Enter ELECTRICAL ">
	
	</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="inputgeneralcondition" class="col-sm-2 control-label">	GENERAL CONDITION:</label>
    <div class="col-sm-10">

				<input type="text" required name="generalcondition" value="<?php echo set_value('generalcondition',$main[0]['generalcondition']) ?>"  class="form-control"  placeholder="Enter GENERAL CONDITION: ">
	
	</div>
  </div>
	
	
	
	
			<div class="form-group">
    <label for="inputassessedvalue" class="col-sm-2 control-label">	ASSESSED VALUE</label>
    <div class="col-sm-10">

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

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

	</div>
  </div>
	
	
	
	
			<div class="form-group">
    <label for="inputanittheft" class="col-sm-2 control-label">	ANTI THEFT:</label>
    <div class="col-sm-10">

				<input type="text" required name="anittheft" value="<?php echo set_value('anittheft',$main[0]['anittheft']) ?>"  class="form-control"  placeholder="Enter ANTI THEFT ">
	
	</div>
  </div>
	
	
	
	
			<div class="form-group">
    <label for="inputwindscreenvalue" class="col-sm-2 control-label">	WINDSCREEN VALUE</label>
    <div class="col-sm-10">

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

				<input type="text" required name="radiovalue" value="<?php echo set_value('radiovalue',$main[0]['radiovalue']) ?>"  class="form-control"  placeholder="Enter RADIO VALUE ">
	
	</div>
  </div>
	
	
		
			<div class="form-group">
			    <label for="inputradiovalue" class="col-sm-2 control-label">	REMARKS</label>

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

					<textarea name="remarks"   value=""  class="form-control"  placeholder="Enter features"><?php echo set_value('remarks',$main[0]['remarks']) ?></textarea>
	
	</div>
  </div>
	
	
	
	
			<div class="form-group">
    <label for="inputdate" class="col-sm-2 control-label">	 VALUATION 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 DATE">
	
	</div>
  </div>
	
	
	 <div class="form-group">

    <div class="col-sm-offset-2 col-sm-10">
     
	         <button type="submit"  value="valuation" name="btn_addvaluation" class="btn btn-default"> Update Valuation   </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 Valuation
</center>
</h1>

								
 
 
 
 
 
 
 
 
 
 



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

</div>

