<link href="<?php echo base_url(); ?>assets/autocomplete/jquery-ui.css" rel="stylesheet">
    <link href="<?php echo base_url(); ?>assets/autocomplete/ui.theme.css" rel="stylesheet">
    <link href="<?php echo base_url(); ?>assets/autocomplete/autocomplete.css" rel="stylesheet">
	

 

 
<script type="text/javascript">
      $(this).ready( function() {  
            $("#searchterm").autocomplete({  
 
                minLength: 1,  
                source:   
                function(req, add){  
                    $.ajax({  
                        url: "<?php echo base_url(); ?>Systemusers/assetlookup",  
                        dataType: 'json',  
                        type: 'POST',  
                        data: req,  
                        success:      
                        function(data){  
                            if(data.response =="true"){  
                                add(data.message);  
                                console.log(data);
                            }  
                        },  
                    });  
                },  
                     
            });  
        });  
		

	 $(document).on("click", "#managebtndelete", function()
        {
          var itemid = $(this).data('id');
		  $("#itemid1").val(itemid); 
		  
		  
		   
        });
			
		
     $(document).on("click", "#manageorderbtn", function()
        {
          var productid = $(this).data('id');
		  $("#productid2").val(productid); 
		  
		    var name = $(this).data('name');
		   $("#name2").val(name); 
		   
		     var description = $(this).data('description');
		   $("#description2").val(description); 
		 
		     var qty = $(this).data('qty');
		   $("#qty2").val(qty);


		     var code2 = $(this).data('code');
		   $("#code2").val(code2); 	

		     var reorderevel2 = $(this).data('reorderevel');
		   $("#reorderevel2").val(reorderevel2); 			   
        });
		
	
		
     $(document).on("click", "#managestockbtn", function()
        {
          var productid = $(this).data('id');
		  $("#productid3").val(productid); 
		  
		    var name = $(this).data('name');
		   $("#name3").val(name); 
		   
		     var description = $(this).data('description');
		   $("#description3").val(description); 
		 
		     var qty = $(this).data('qty');
		   $("#qty3").val(qty);


		     var code = $(this).data('code');
		   $("#code3").val(code); 	

		     var reorderevel = $(this).data('reorderevel');
		   $("#reorderevel3").val(reorderevel); 			   
        });
		
	
		
     $(document).on("click", "#managebtn", function()
        {
          var productid = $(this).data('id');
		  $("#productid1").val(productid); 
		  
		    var name = $(this).data('name');
		   $("#name1").val(name); 
		   
		     var description = $(this).data('description');
		   $("#description1").val(description); 
		 
		     var qty = $(this).data('qty');
		   $("#qty1").val(qty);


		     var code1 = $(this).data('code');
		   $("#code1").val(code1); 	

		     var reorderevel = $(this).data('reorderevel');
		   $("#reorderevel1").val(reorderevel); 			   
        });
		
	
			
	   $(document).on("click", "#editbtn", function()
        {
          var productid = $(this).data('id');
		  $("#productid").val(productid); 
		     var expdate = $(this).data('expdate');
		   $("#expdate").val(expdate); 
		    var name = $(this).data('name');
		   $("#name").val(name); 
		   
		        var producttype = $(this).data('producttype');
		   $("#producttype").val(producttype); 
		   
		     var description = $(this).data('description');
		   $("#description").val(description); 
		 
		     var qty = $(this).data('qty');
		   $("#qty").val(qty);

 var status = $(this).data('status');
		   $("#productstatus").val(status);

 var uom = $(this).data('uom');
		   $("#uom").val(uom);
		   
		     var code = $(this).data('code');
		   $("#code").val(code); 	

		     var reorderevel = $(this).data('reorderevel');
		   $("#reorderevel").val(reorderevel); 	
 var category2 = $(this).data('category');
		   $("#category2").val(category2); 		
	
		   
 var 	supplier = $(this).data('supplier');
		   $("#supplier").val(supplier); 		
 var buyingprice = $(this).data('buyingprice');
		   $("#buyingprice").val(buyingprice); 		
 var sellingprice = $(this).data('sellingprice');
		   $("#sellingprice").val(sellingprice); 		
 var promoprice = $(this).data('promoprice');
		   $("#promoprice").val(promoprice); 	

 var wholesaleprice = $(this).data('wholesaleprice');
		   $("#wholesaleprice").val(wholesaleprice);
		   
		   
		    var store = $(this).data('store');
		   $("#store").val(store);
		    var tax_included = $(this).data('tax_included');
		   $("#tax_included").val(tax_included);
		   
		       var orderamount = $(this).data('orderamount');
		   $("#orderamount").val(orderamount);
		   
		   
		          var shortname = $(this).data('shortname');
		   $("#shortname").val(shortname);
		   
		   
		   
		       var assetaccount = $(this).data('assetaccount');
		   $("#assetaccount").val(assetaccount);
		   
		   
		       var salesaccount = $(this).data('salesaccount');
		   $("#salesaccount").val(salesaccount);
		   
		       var expenseaccount = $(this).data('expenseaccount');
		   $("#expenseaccount").val(expenseaccount);
		   
		   
		   
		   
		     var maincode = $(this).data('code');
		   $("#maincode").val(maincode); 	
		   
		   
        });
		
		
    </script>
 
 <div class="row">
  <?php
  echo $this->session->flashdata('deletemsg'); 
 
				echo $this->session->flashdata('msg'); 
   $session_data = $this->session->userdata('logged_in');

   
 	$data['id'] = $session_data['id'];
        
		 $userid = $data['id'];
$data['companyid'] = $session_data['companyid'];
	 $companyid = $data['companyid'];
		 $data['usertype'] = $session_data['usertype'];
	 $usertype = $data['usertype'];	
     $addproductaction=$this->usermodel->populatuserpermissionsdataarray('products','add',$userid);
	      $bulkaction=$this->usermodel->populatuserpermissionsdataarray('products','bulk',$userid);
  $removestockaction=$this->usermodel->populatuserpermissionsdataarray('products','removestock',$userid);
  $removeallstockaction=$this->usermodel->populatuserpermissionsdataarray('products','removeallstock',$userid);
  $priceaction=$this->usermodel->populatuserpermissionsdataarray('products','price',$userid);

			 $finalsalesid = $userid.time();

  ?>
   	

   	<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>

												                     <a data-toggle='modal' data-target='#addModal' class="btn btn-default">Post Assessment </a>

																	 

	 


 
  				 <a href="<?php echo base_url();?>user/viewtask" class="btn btn-default"> Go back</a>

  						  <a data-toggle='modal' data-target='#addsupplierModal' class="btn btn-default">Add Campany </a>



						
			<span class="pull-right"> View Assessment</span>
            	</div>
            </div>
			
			<div class="panel-body">
			
	<div class="widget-content nopadding table_holder table-responsive" >				
	<div class="col-md-12">
        <?php 
		
        $attr = array("class" => "form-horizontal", "role" => "form", "id" => "search", "name" => "search");
        echo form_open("user/searchallassets", $attr);?>
            <div class="form-group">
			
                <div class="col-md-5">
                    <input class="form-control" id="searchterm"  autofocus name="searchterm" placeholder="Search for product by name, code,description.." type="text" value="<?php echo set_value('searchterm'); ?>" />
                </div>
                <div class="col-md-4">
                    <input id="btn_search" name="btn_search" type="submit" class="btn btn-default" value="Search" />
                    <a href="<?php echo base_url(). "user/viewassets"; ?>" class="btn btn-default">Refresh</a>
                </div>
				 
            </div>
        <?php echo form_close(); ?>

        </div>
			
						
					<div class="row">
				
						<div class="col-md-12">
							
							<div class="panel-body">
	
									
									
				<table class="tablesorter table table-bordered  table-hover" id="sortable_table">			

             <thead>
         <tr>
     <th>Code</th>
     <th>Instructions by</th>
		<th> Date</th>
				<th>Insured Name</th>

	     <th>Repairer</th>

	 
		   <th>Insurer</th> 
		<th>Policy No</th>
				<th>Assessment Date</th>

<th>Registration No</th>
<th>Make</th>


<th>Print</th>


              

<th>More</th>

			  </tr>

             </thead>
<?php




 if(!is_array($application)) 

 {


   echo "<tr  style='margin-bottom:0px;margin-top:0px;' '>";
      echo "<td colspan='1'>";
    
       echo '<div class="alert alert-warning text-center">There no records found..</div>';
    echo "</td>";
   echo "</tr>";
    }else {
?>
    
             <?php 
  
  	foreach ($application as $c): 

		                                      $myid=$c->id;



             ?>



             <tr>
                
            <?php 
$id=$c->id;
$code=$c->invoice;
$invoice=$c->invoice;


?>

              
  <td><?php echo $c->invoice ; ?></td>
    <td><?php echo $c->instructionsby;?></td>
	    <td><?php echo $c->date ; ?></td>
	    <td><?php echo $c->insuredname ; ?></td>

 
  <td><?php echo $c->repairer ; ?></td>

  <td><?php echo $c->insurer ; ?></td>
      <td><?php echo $c->policyno ; ?></td>  
  
            <td><?php echo $c->assessmentdate ; ?></td> 
            <td><?php echo $c->registrationno ; ?></td> 

	
      <td><?php echo $c->make ; ?></td>  

	    

              <td>
				 	 <a  id="more" class="btn btn-primary" href="<?php echo base_url();?>user/printassessment?randomitemidentifier=<?php   {echo  $code;}  ?>">Print  </a>

			  
	 </td>

         
		 
		 	 <td> 

 
 
					<div class="btn-group">
                                    <button type="button" class="btn btn-default btn-sm dropdown-toggle" data-toggle="dropdown">
                                        More <span class="caret"></span>
                                    </button>
								
                                    <ul class="dropdown-menu dropdown-default pull-right" role="menu">
                                        
                                        <!-- teacher EDITING LINK -->

													 
                                        <li> 
				<a  id="more" class=" btn-info" target="_blank"  href="<?php echo base_url();?>user/updatemyassessment?randomitemidentifier=<?php   {echo   $myid;}  ?> ">
								 
																							 

                                                <i class="glyphicon glyphicon-pencil"></i>
Update  Assessment                                                </a>
																		
										</li>	
													    <li class="divider"></li>
										
												

	 	 <a  id="more" class="btn btn-default" href="<?php echo base_url();?>user/printassessment?randomitemidentifier=<?php   {echo  $code;}  ?>">  


                                                <i class="glyphicon glyphicon-pencil"></i>
																Print/Download
                                                </a>
                                                        </li>
														
																  <li class="divider"></li>
                          										
	<?php
										 if( $usertype=="admin"){
											
											?>
											  <li> 
										 <a class="btn btn-danger managebtn" id="managebtndelete"		 data-id='<?php echo  $c->id;?>'    data-toggle='modal' data-target='#myDelete<?php  $c->id; ?>'>	 


                                                <i class="glyphicon glyphicon-pencil"></i>
																Delete
                                                </a>
                                                        </li>
															<?php
										}
										?>
									
									
                                        <li class="divider"></li>
                                        
                                        <!-- teacher DELETION LINK -->
                                        
                                    </ul>
										
                                </div>
</td>
             </tr>

	<?php endforeach;} ?>

             

        </table>
		
		
  <div class="col-md-12 text-center">    <?php echo $links; ?>
					   		<span style="color:red; font-size:20px"><?php  echo $total_rows. "   Assets in the system. " ;?>    </span>

        
        </div>
									
									
									
					</div>				
							

							
							
							
							
							
							
							
<div id="dispatchModal" class="modal fade" role="dialog">
  <div class="modal-dialog">

    <!-- Modal content-->
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal">&times;</button>
        <h4 class="modal-title">Start a new batch stock transfer</h4>
         				 <a href="<?php echo base_url();?>user/viewbulkdispatch" class="btn btn-default"> View previous bulk  dispatch </a>


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

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

				echo $this->session->flashdata('deletemsg'); 


				echo $this->session->flashdata('msg'); 
		
                 echo form_open('user/startdispatch' , 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="view" value="user/viewproducts"id="view" class="form-control" required placeholder="Enter status">
		 		  		<input readonly type="hidden" name="invoice" required value="<?php echo set_value('invoice',$finalsalesid); ?>" class="form-control"  placeholder="Enter invoice or Receip tnumber">



			  		
	<div class="form-group">
    <label for="inputstartdate" class="col-sm-2 control-label">	Transfer Date </label>
    <div class="col-sm-10">
	
		  		<input type="date" name="startdate" value="<?php echo set_value('startdate'); ?>" class="form-control" required placeholder="Enter start date">
		 
				
		<span class="text-danger"> <?php echo form_error('startdate'); ?>
		
		</span>
	</div>
  </div>

				  		
	<div class="form-group">
    <label for="inputname" class="col-sm-2 control-label">	Approver of dispatch </label>
    <div class="col-sm-10">
	
		  		<input type="text" name="name" value="<?php echo set_value('name'); ?>" class="form-control" required placeholder="Enter name">
		 
				
		<span class="text-danger"> <?php echo form_error('name'); ?>
		
		</span>
	</div>
  </div>

  
  <div class="form-group">
    <label for="inputfrombranch" class="col-sm-2 control-label">From?</label>
    <div class="col-sm-10">
	<select class="form-control" name="frombranch"  required>
		<option value=""  >---Select where to dispatch from---</option>


		 	<option value="Main" selected="selected" >Main Store</option>

	
	<?php 
					 

								 $mybranch= $this->usermodel->populateall('branch','companyid',$companyid);
		 


if(is_array($mybranch)) {

   foreach($mybranch as $branchrow){

   //echo $courserow->coursename;
    ?>
					<option value="<?=  $branchrow->id;   ?>"><?=  $branchrow->name; ?></option>



	<?php

}} else {
    echo 'No branch available.';
}
	
?>
</select>
		
						<span class="text-danger"><?php echo form_error('frombranch'); ?>

	</div>
  </div>
  
  
  <div class="form-group">
    <label for="inputtobranch" class="col-sm-2 control-label">To?</label>
    <div class="col-sm-10">
	<select class="form-control" name="tobranch"  required>
		<option value=""  >---Select where to dispatch from---</option>


		 	<option value="Main"  >Main Store</option>

	
	<?php 
					 

								 $mybranch= $this->usermodel->populateall('branch','companyid',$companyid);
		 


if(is_array($mybranch)) {

   foreach($mybranch as $branchrow){

   //echo $courserow->coursename;
    ?>
					<option selected="selected" value="<?=  $branchrow->id;   ?>"><?=  $branchrow->name; ?></option>



	<?php

}} else {
    echo 'No branch available.';
}
	
?>
</select>
		
						<span class="text-danger"><?php echo form_error('tobranch'); ?>

	</div>
  </div>
	<div class="form-group">
    <label for="inputdescription" class="col-sm-2 control-label">	Remarks</label>
    <div class="col-sm-10">
		  		<input type="text" name="description" value="<?php echo set_value('description'); ?>" class="form-control"  placeholder="Enter any remarks">

			
		<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="start" name="btn_addstartdispatch" class="btn btn-default"> Start Bulk Dispatch   </button>

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

    

				</div>

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

							
							
							
							
							
							
							
							
							
							
							
				
 
							
							
							
							
							
					
			<div id="subcategoryModal" class="modal fade" role="dialog">
  <div class="modal-dialog">

    <!-- Modal content-->
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal">&times;</button>
        <h4 class="modal-title">Low products  per sub category</h4>
      </div>
      <div class="modal-body">
      
	  	

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



				echo $this->session->flashdata('msg'); 
		
                 echo form_open('user/viewallproductbycategory' , 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="inputcategory" class="col-sm-2 control-label">	Sub category?</label>
    <div class="col-sm-10">
	<select class="form-control" name="category"  id="category" required>
	
	<option selected="selected" value="all"  >---All/Any Category--</option>

	
	<?php 

					 		$productcategory = $this->usermodel->populatealldatawhere('productcategory','name','ASC','companyid',$companyid);

					 		//$productcategory = $this->usermodel->populateall('productcategory','companyid',$companyid);


							


if(is_array($productcategory)) {

   foreach($productcategory as $productcategoryrow){

   //echo $courserow->coursename;
    ?>
					<option value="<?=  $productcategoryrow->id;   ?>"><?=  $productcategoryrow->name; ?></option>



	<?php

}} else {
    echo 'No  category available.';
}
	
?>
</select>
		
						<span class="text-danger"><?php echo form_error('category'); ?>

	</div>
  </div>

	
	
	
  
  
  
  
  
  
  
  
	
	
	
	 <div class="form-group">

    <div class="col-sm-offset-2 col-sm-10">
     
	         <button type="submit"  value="supplier" name="btn_addproductsupplier" class="btn btn-default"> View products  </button>

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

    

				</div>

		</div>
	    </div>
    </div>
	
	
			
							
							
							
							
							
							
							
							
							
							
							
							
						
			<div id="userModal" class="modal fade" role="dialog">
  <div class="modal-dialog">

    <!-- Modal content-->
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal">&times;</button>
        <h4 class="modal-title">Low products  per supplier</h4>
      </div>
      <div class="modal-body">
      
	  	

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



				echo $this->session->flashdata('msg'); 
		
                 echo form_open('user/viewallproductbysupplier' , 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="inputsupplier" class="col-sm-2 control-label">supplier?</label>
    <div class="col-sm-10">
	<select class="form-control" name="supplier" required>
	
	<option value=""  >---Select supplier---</option>
<option value="all"  >---Select all/any supplier---</option>
	
	<?php 
					 
			$mysuppliers =  $this->usermodel->populatemysupplier($companyid);
	

	
if(is_array($mysuppliers)) {

   foreach($mysuppliers as $suppliersrow){

   //echo $courserow->coursename;
    ?>
					<option value="<?=  $suppliersrow->id;   ?>"><?=  $suppliersrow->company ."(". $suppliersrow->firstname ."- ".$suppliersrow->phone.")"; ?></option>



	<?php

}} else {
    echo 'No supplier available.';
}
	
?>
</select>
		
						<span class="text-danger"><?php echo form_error('supplier'); ?>

	</div>
  </div>
  
  
  
  
  
  
  
  
  
	
	
	
	 <div class="form-group">

    <div class="col-sm-offset-2 col-sm-10">
     
	         <button type="submit"  value="supplier" name="btn_addproductsupplier" class="btn btn-default"> View products  </button>

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

    

				</div>

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

			<div id="myDelete" class="modal fade" role="dialog">
  <div class="modal-dialog">

    <!-- Modal content-->
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal">&times;</button>
        <h4 class="modal-title">Delete</h4>
      </div>
      <div class="modal-body">
        <h3>Are you sure you want to delete this item? </h3>
      </div>
      <div class="modal-footer">
	  	

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

		
                 echo form_open('user/deletebyid' , array('class' => 'form-horizontal ', 'enctype' => 'multipart/form-data'));
				 if(validation_errors()):?>
<div class='alert alert-danger text-center'><?php echo validation_errors(); ?></div>
<?php endif;?>
 <input type="hidden" id="table"name="table" class="table" placeholder="view" value="assets">

<input type="hidden" name="type" value="product"id="type" class="form-control" required placeholder="Enter type">
				<input type="hidden" name="view" value="user/viewassets" id="view" class="form-control" required placeholder="Enter view">

 <input type="hidden" id="itemid1"name="itemid" class="itemid" placeholder="itemid" value=""><br>
 <button type="button" class="btn btn-default" data-dismiss="modal">No</button>
 		  	         <button type="submit" name="btn_delete" value="deletebyid" class="btn btn-danger"> Delete  </button>

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

  </div>

  </div>	





	<div id="addsupplierModal" class="modal fade" role="dialog">
  <div class="modal-dialog">

    <!-- Modal content-->
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal">&times;</button>
        <h4 class="modal-title">Add new  Campany/Customer</h4>
      </div>
      <div class="modal-body">
      
	  	

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



				echo $this->session->flashdata('msg'); 
		
                 echo form_open('user/addmember' , 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="status" value="1"id="status" class="form-control" required placeholder="Enter status">

<input type="hidden" name="view" value="user/viewproducts"id="view" class="form-control" required placeholder="Enter status">


	
		  		<input type="hidden" name="category" readonly     value="<?php echo set_value('category','supplier'); ?>" class="form-control"  placeholder="Enter ocategory">
		 
				
				
						
						
					<div class="form-group">
    <label for="inputcompany" class="col-sm-2 control-label">	Company Name </label>
    <div class="col-sm-10">
	
		  		<input type="text" name="company" required value="<?php echo set_value('company'); ?>" class="form-control"  placeholder="Enter company name if any">
		 
				
		<span class="text-danger"> <?php echo form_error('company'); ?>
		
		</span>
	</div>
  </div>	
						
						
						
						
						
						
						
	<div class="form-group">
    <label for="inputfirstname" class="col-sm-2 control-label"> Contact	Names<span style="color:red;">*</span></label>
    <div class="col-sm-10">
	
		  		<input type="text" name="firstname" value="<?php echo set_value('firstname'); ?>" class="form-control" required placeholder="Enter first and last name">
		 
				
		<span class="text-danger"> <?php echo form_error('firstname'); ?>
		
		</span>
	</div>
  </div>

  
  	<div class="form-group">
    <label for="inputphone" class="col-sm-2 control-label">	Phone <span style="color:red;">*</span></label>
    <div class="col-sm-10">
	
		  		<input type="text" name="phone" value="<?php echo set_value('phone'); ?>" class="form-control" required placeholder="Enter phone e.g 254712345678">
		 
				
		<span class="text-danger"> e.g 254712345678 <?php echo form_error('phone'); ?>
		
		</span>
	</div>
  </div>
  
   	<div class="form-group">
    <label for="inputphoneaddress_1" class="col-sm-2 control-label">Phone 2	 </label>
    <div class="col-sm-10">
	
		  		<input type="text" name="address_1" value="<?php echo set_value('address_1'); ?>" class="form-control"  placeholder="Enter other line e.g 254712345678">
		 
				
		<span class="text-danger">Other Number e.g 254712345678 <?php echo form_error('address_1'); ?>
		
		</span>
	</div>
  </div>
  
   	<div class="form-group">
    <label for="inputphonegender" class="col-sm-2 control-label">Contact	Gender	 </label>
    <div class="col-sm-10">
	
	<select class="form-control" name="gender" >
	
	<option value=""  >---Select Gender---</option>
	<option value="female"  >female</option>
		<option value="male"  >male</option>
	</select>		 
				
		<span class="text-danger"> <?php echo form_error('gender'); ?>
		
		</span>
	</div>
  </div>
   <div class="form-group">
    <label for="inputcountry" class="col-sm-2 control-label">Country?</label>
    <div class="col-sm-10">
	<select class="form-control" name="country" >
	


	
	<?php 
					 
			$mycountry = $this->nationmodel->populatenation();
	


if(is_array($mycountry)) {

   foreach($mycountry as $mycountryrow){

   //echo $courserow->coursename;
    ?>
					<option value="<?=  $mycountryrow->id;   ?>"><?=  $mycountryrow->name; ?></option>



	<?php

}} else {
    echo 'No country available.';
}
	
?>
	<option value=""  >---Select country---</option>
</select>
		
						<span class="text-danger"><?php echo form_error('country'); ?>

	</div>
  </div>
  
  
  
  
    	<div class="form-group">
    <label for="inputemail" class="col-sm-2 control-label">	Email </label>
    <div class="col-sm-10">
	
		  		<input type="email" name="email" value="<?php echo set_value('email'); ?>" class="form-control"  placeholder="Enter Your email">
		 
				
		<span class="text-danger"> <?php echo form_error('email'); ?>
		
		</span>
	</div>
  </div>
  
  	
  	<div class="form-group">
    <label for="inputidno" class="col-sm-2 control-label">		ID Number	 </label>
    <div class="col-sm-10">
	
		  		<input type="text" name="idno" value="<?php echo set_value('idno'); ?>" class="form-control"  placeholder="Enter idno if any or Campany Pin">
		 
				
		<span class="text-danger"> <?php echo form_error('idno'); ?>
		
		</span>
	</div>
  </div>
  
  
  
     
  
  
  
  
    
  	<div class="form-group">
    <label for="inputcity" class="col-sm-2 control-label">	City 	 </label>
    <div class="col-sm-10">
	
		  		<input type="text" name="city" value="<?php echo set_value('city'); ?>" class="form-control"  placeholder="Enter City or town">
		 
				
		<span class="text-danger"> <?php echo form_error('city'); ?>
		
		</span>
	</div>
  </div>
  
  
  
  	<div class="form-group">
    <label for="inputzip" class="col-sm-2 control-label">	Zip Code 	 </label>
    <div class="col-sm-10">
	
		  		<input type="text" name="zip" value="<?php echo set_value('zip'); ?>" class="form-control"  placeholder="Enter Zip Code">
		 
				
		<span class="text-danger"> <?php echo form_error('zip'); ?>
		
		</span>
	</div>
  </div>
  
  
  
 
  
  	
 
  
    	<div class="form-group">
    <label for="inputwebsite" class="col-sm-2 control-label">		Website/Link 	 </label>
    <div class="col-sm-10">
	
		  		<input type="text" name="website" value="<?php echo set_value('website'); ?>" class="form-control"  placeholder="Enter website if any">
		 
				
		<span class="text-danger"> <?php echo form_error('website'); ?>
		
		</span>
	</div>
  </div>
  
  	<div class="form-group">
    <label for="inputentrydate" class="col-sm-2 control-label">	Entry date  	 </label>
    <div class="col-sm-10">
	
		  		<input type="text" name="entrydate" value="<?php echo set_value('entrydate'); ?>" class="form-control"  placeholder="Enter Entry date">
		 
				
		<span class="text-danger"> <?php echo form_error('entrydate'); ?>
		
		</span>
	</div>
  </div>
  
  
  
  
	<div class="form-group">
    <label for="inputcomments" class="col-sm-2 control-label">	Description</label>
    <div class="col-sm-10">

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

	

	
	 <div class="form-group">

    <div class="col-sm-offset-2 col-sm-10">
     
	         <button type="submit"  value="member" name="btn_addmember" class="btn btn-default"> Add Campany   </button>

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

    

				</div>

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














  
<div id="addModal" class="modal fade" role="dialog">
  <div class="modal-dialog">

    <!-- Modal content-->
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal">&times;</button>
        <h4 class="modal-title">Add new Assessment</h4>
      </div>
      <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;

				 }
					
   
 	$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/viewmoreassessment?randomitemidentifier=<?php echo $itemid; ?>"id="view" class="form-control" required placeholder="Enter view">
			 		  		<input readonly type="hidden" name="invoice" required value="<?php echo set_value('invoice',$itemid); ?>" class="form-control"  placeholder="Enter invoice or Receip tnumber">
			 		  		<input readonly type="hidden" name="action" required value="insert" class="form-control"  placeholder="action">
			 		  		<input readonly type="hidden" name="myid" required value="" 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'); ?>"  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') ;?>"  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') ;?>"  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') ;?>"  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') ;?>"  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'); ?>"  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'); ?>"  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'); ?>"  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'); ?>"  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'); ?>"  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'); ?>"  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'); ?>"  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'); ?>"  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'); ?>"  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'); ?>"  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'); ?>"  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'); ?>"  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'); ?>"  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="<?php echo set_value('instructions'); ?>"  class="form-control"  placeholder="Enter 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="<?php echo set_value('preaccident'); ?>"  class="form-control"  placeholder="Enter 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="<?php echo set_value('garagedetails'); ?>"  class="form-control"  placeholder="Enter 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="<?php echo set_value('latentdameges'); ?>"  class="form-control"  placeholder="Enter 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"> Add Assessment   </button>

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

    

				</div>

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

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

			
			</div>
		</div>
  
  </div>
			
			
			
 <div id="editProductModel" class="modal fade" role="dialog">
  <div class="modal-dialog">

    <!-- 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 Asset</h4>
      </div>
      <div class="modal-body">
      
	  	

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


				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/viewassets"id="view" class="form-control" required placeholder="Enter view">
<input type="hidden" name="productid" value=""id="productid" class="form-control" required placeholder="Enter productid">
		<!--<input type="hidden" name="page" value="<?php echo $page ?>"id="page" class="form-control" required placeholder="Enter bookid">
-->


				 		  		<input readonly type="hidden" name="action" required value="insert" class="form-control"  placeholder="Enter invoice or Receip tnumber">
			 		  		<input readonly type="hidden" name="myid" required value="" class="form-control"  placeholder="Enter invoice or Receip tnumber">

	<div class="form-group">
    <label for="inputcode" class="col-sm-2 control-label">	 Code</label>
    <div class="col-sm-10">
			  		<input type="hidden" name="maincode" id="maincode" value="<?php echo set_value('code'); ?>" class="form-control" required placeholder="Enter Product Code">

		  		<input type="text" name="code" id="code" value="<?php echo set_value('code'); ?>" class="form-control" required placeholder="Enter Product Code">
		 
				
		<span class="text-danger"> <?php echo form_error('code'); ?>
		
		</span>
	</div>
  </div>

	<div class="form-group">
    <label for="inputname" class="col-sm-2 control-label">	 Name</label>
    <div class="col-sm-10">
		
				<input type="text" name="name"   id="name" value="<?php echo set_value('name') ;?>"  class="form-control" required placeholder="Enter  product name">

		<span class="text-danger"> <?php echo form_error('name'); ?>
		
		</span>
	</div>
  </div>
  
  
  
  
  
  
  
  
  
  	<div class="form-group">
    <label for="inputshortname" class="col-sm-2 control-label">	Short Name</label>
    <div class="col-sm-10">
		
				<input type="hi" name="shortname" value="<?php echo set_value('shortname') ;?>"  id="shortname" class="form-control"  placeholder="Enter  Short  name">

		<span class="text-danger"> <?php echo form_error('shortname'); ?>
		
		</span>
	</div>
  </div>
  
  <div class="form-group">
    <label for="inputstatus" class="col-sm-2 control-label">Status?</label>
    <div class="col-sm-10">
	<select class="form-control" name="status" id="productstatus"required>
	
	<option value="" selected></option>
		<option value=""  >---Select Status---</option>
		<option value="active"  >Active</option>
		<option value="inactive"  >Inactive</option>
		<option value="global"  >Global</option>

	

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

	</div>
  </div>
  	

   <div class="form-group">
    <label for="inputproducttype" class="col-sm-2 control-label">Inventory Type?</label>
    <div class="col-sm-10">
	<select class="form-control" name="producttype"  id="producttype" required>
	
		<option value="" selected="selected"  ></option>
		<option value="Inventory"  >Inventory</option>
		<option value="None Inventory"  >None Inventory </option>
		<option value="Service"  >Service</option>

	

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

	</div>
  </div>
  
  
  
  
  
  
   <div class="form-group">
    <label for="inputorderamount" class="col-sm-2 control-label">Product Type</label>
    <div class="col-sm-10">
	<select class="form-control" name="orderamount" id="orderamount" >
	
		<option value="" selected="selected" ></option>
			<option value=""  >---Select Product Type---</option>
		<option value="mainitem"   >Main-item</option>
		<option value="production"  >Production-item</option>
		<option value="subitem"  >Sub-item</option>
			<option value="accompaniment"  >Accompaniment</option>


	

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

	</div>
  </div>
  

  
  

     <div class="form-group">
    <label for="inputcategory" class="col-sm-2 control-label">Category?</label>
    <div class="col-sm-10">
	<select class="form-control" name="category" id="category2"required>
	
	<option value="" selected></option>
		<option value=""  >---Select Category---</option>

	<?php 
					//	$mycategory = $this->usermodel->populateproductcategorybyid($companyid);
		 
							 		$mycategory = $this->usermodel->populatealldatawhere('productcategory','name','ASC','companyid',$companyid);



if(is_array($mycategory)) {

   foreach($mycategory as $mycategoryrow){

   //echo $courserow->coursename;
    ?>
					<option value="<?=  $mycategoryrow->id;   ?>"><?=  $mycategoryrow->name; ?></option>



	<?php

}} else {
    echo 'No category available.';
}
	
?>
</select>
		
						<span class="text-danger"><?php echo form_error('category'); ?>

	</div>
  </div>
  	


  

  
     <div class="form-group">
    <label for="inputsupplier" class="col-sm-2 control-label">supplier?</label>
    <div class="col-sm-10">
	<select class="form-control" name="supplier" id="supplier" required>
	
	<option value=""  >---Select supplier---</option>

	
	<?php 
					 
				$suppliers =  $this->usermodel->populatemysupplier($companyid);



if(is_array($suppliers)) {

   foreach($suppliers as $suppliersrow){

   //echo $courserow->coursename;
    ?>
					<option value="<?=  $suppliersrow->id;   ?>"><?=  $suppliersrow->company ."(". $suppliersrow->firstname ." ".$suppliersrow->lastname.")"; ?></option>



	<?php

}} else {
    echo 'No supplier available.';
}
	
?>
</select>
		
						<span class="text-danger"><?php echo form_error('supplier'); ?>

	</div>
  </div>
  
  
  
  
  
  
  
  
  
  
	<div class="form-group">
    <label for="inputbuyingprice" class="col-sm-2 control-label">	Unit (B.) Price</label>
    <div class="col-sm-10">

				<input type="text" id="buyingprice" required name="buyingprice" value="<?php echo set_value('buyingprice'); ?>"  class="form-control"  placeholder="Enter buying price">
			
		<span class="text-danger"> <?php echo form_error('buyingprice'); ?>
		
		</span>
	</div>
  </div>
	
		<div class="form-group">
    <label for="inputmode" class="col-sm-2 control-label">	Mode</label>
    <div class="col-sm-10">

				<input type="text"  name="mode" value="<?php echo set_value('mode'); ?>"  id="mode" class="form-control"  placeholder="Enter mode">
			
		<span class="text-danger"> <?php echo form_error('mode'); ?>
		
		</span>
	</div>
  </div>
	
	
			<div class="form-group">
    <label for="inputassetvalue" class="col-sm-2 control-label">	asset value</label>
    <div class="col-sm-10">

				<input type="text" id="assetvalue" name="assetvalue" value="<?php echo set_value('assetvalue'); ?>"  class="form-control"  placeholder="Enter assetvalue">
			
		<span class="text-danger"> <?php echo form_error('assetvalue'); ?>
		
		</span>
	</div>
  </div>
	
	
  <div class="form-group">
    <label for="inputuom" class="col-sm-2 control-label">Default UOM</label>
    <div class="col-sm-10">
	<select class="form-control" name="uom"  id="uom" required>
	
	<option value=""  >---Select UOM-</option>

	
	<?php 
					 
					 		$uom = $this->usermodel->populateall('uom','companyid',$companyid);


							


if(is_array($uom)) {

   foreach($uom as $uomrow){

   //echo $courserow->coursename;
    ?>
					<option  value="<?=  $uomrow->code;   ?>"><?=  $uomrow->name; ?></option>



	<?php

}} else {
    echo 'No uom.';
}
	
?>
</select>
		

		
	</div>
  </div>
  
	
	
	<div class="form-group">
    <label for="inputqty" class="col-sm-2 control-label">	Quantity</label>
    <div class="col-sm-10">

				<input type="text" name="qty" id="qty" value="<?php echo set_value('qty'); ?>"  class="form-control" required  placeholder="Enter quantity in stock">
			
		<span class="text-danger"> <?php echo form_error('qty'); ?>
		
		</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"  id="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">
    <label for="inputstart_date" class="col-sm-2 control-label">	start date</label>
    <div class="col-sm-10">

				<input type="text" required  id="start_date"  name="start_date" value="<?php echo set_value('start_date'); ?>"  class="form-control"  placeholder="Enter start date">
			
		<span class="text-danger"> <?php echo form_error('start_date'); ?>
		
		</span>
	</div>
  </div>
	
		
   
	

	<div class="form-group">
    <label for="inputtax_included" class="col-sm-2 control-label">	Tax included (%)</label>
    <div class="col-sm-10">

				<input type="text"   id="tax_included" name="tax_included" value="<?php echo set_value('tax_included'); ?>"  class="form-control"   placeholder="Enter tax if any">
			
		<span class="text-danger"> Enter tax to be included if any<?php echo form_error('tax_included'); ?>
		
		</span>
	</div>
  </div>
  	
		<div class="form-group">
    <label for="inputstore" class="col-sm-2 control-label">	Rack /Store Name</label>
    <div class="col-sm-10">

				<input type="text"  id="store" name="store" value="<?php echo set_value('store'); ?>"  class="form-control"   placeholder="Enter store / rack name">
			
		<span class="text-danger"> Enter the name where the product is stored<?php echo form_error('store'); ?>
		
		</span>
	</div>
  </div>
	
	<div class="form-group">
    <label for="inputexpdate" class="col-sm-2 control-label">	Expiry date(YYYY-MM-DD)</label>
    <div class="col-sm-10">

				<input type="text"   id="expdate" name="expdate" value="<?php echo set_value('expdate'); ?>"  class="form-control"   placeholder="Enter expiry date">
			
		<span class="text-danger"> Enter expiry date  if any<?php echo form_error('expdate'); ?>
		
		</span>
	</div>
  </div>
  
  
  
	<div class="form-group">
    <label for="inputassetaccount" class="col-sm-2 control-label">Asset / Purchase Acount?</label>
    <div class="col-sm-10">
	<select class="form-control"  name="assetaccount" id="assetaccount">
	
			<option value=""   selected="selected"></option>

	
			<option value=""  >---Select asset Account---</option>

	<?php
  //  echo 'No GL Account.';

	

								$glaccounts = $this->usermodel->populateall('glaccounts','companyid',$companyid);
		


if(is_array($glaccounts)) {

   foreach($glaccounts as $glaccounts){

    ?>
					<option  value="<?=  $glaccounts->number;   ?>"><?=  $glaccounts->accountname; ?></option>



	<?php

}} else {
    echo 'No GL Account.';
}
	
?>


</select>
		
	

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

	</div>
  </div>
	
	<div class="form-group">
    <label for="inputsalesaccount" class="col-sm-2 control-label">Income Account?</label>
    <div class="col-sm-10">
	<select class="form-control" name="salesaccount" id="salesaccount">
	
<?php 

$assetaccount=$configuration[0]['salesaccount'];

								$glaccounts = $this->usermodel->populateall('glaccounts','number',$assetaccount);
if(is_array($glaccounts)) {

   foreach($glaccounts as $glaccounts){

    ?>
					<option  selected="selected"  value="<?=  $glaccounts->number;   ?>"><?=  $glaccounts->accountname; ?></option>



	<?php

}} else {
	?>
			<option value=""   selected="selected">---Select Income Account---</option>

	<?php
  //  echo 'No GL Account.';
}
	

								$glaccounts = $this->usermodel->populateall('glaccounts','companyid',$companyid);
		


if(is_array($glaccounts)) {

   foreach($glaccounts as $glaccounts){

    ?>
					<option  value="<?=  $glaccounts->number;   ?>"><?=  $glaccounts->accountname; ?></option>



	<?php

}} else {
    echo 'No GL Account.';
}
	
?>
		

	

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

	</div>
  </div>
	
	<div class="form-group">
    <label for="inputexpenseaccount" class="col-sm-2 control-label">Expense Acount?</label>
    <div class="col-sm-10">
	<select class="form-control" name="expenseaccount" id="expenseaccount" >
	
		<option value="Asset" selected="Purchases"  >Purchases</option>
			
<?php 
					 
$assetaccount=$configuration[0]['expenseaccount'];

								$glaccounts = $this->usermodel->populateall('glaccounts','number',$assetaccount);
if(is_array($glaccounts)) {

   foreach($glaccounts as $glaccounts){

    ?>
					<option  selected="selected"  value="<?=  $glaccounts->number;   ?>"><?=  $glaccounts->accountname; ?></option>



	<?php

}} else {
	?>
			<option value=""   selected="selected">---Select Expense Account---</option>

	<?php
  //  echo 'No GL Account.';
}
	

								$glaccounts = $this->usermodel->populateall('glaccounts','companyid',$companyid);
		


if(is_array($glaccounts)) {

   foreach($glaccounts as $glaccounts){

    ?>
					<option  value="<?=  $glaccounts->number;   ?>"><?=  $glaccounts->accountname; ?></option>



	<?php

}} else {
    echo 'No GL Account.';
}
	
?>
		


	

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

	</div>
  </div>
	
  
  
  
  
  
	<div class="form-group">
    <label for="inputphoto" class="col-sm-2 control-label">	Upload Image</label>
    <div class="col-sm-10">

	

	<input type="file" name="photo" value="<?php echo set_value('photo'); ?>"id="photo" class="form-control"  placeholder="Please upload image if any">
			<span class="text-danger"> <?php echo form_error('photo'); ?>
		
		</span>
	</div>
	
	 <div class="form-group">

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

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

    

				</div>

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


	
	
					<div id="editorderModal" class="modal fade" role="dialog">
  <div class="modal-dialog">

    <!-- Modal content-->
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal">&times;</button>
        <h4 class="modal-title">Order products (<?PHP

 $postedtime = date('Y-m-d');
		$currenttime = date('h:i sa');
 		echo$dateposted =  ($postedtime)." ".$currenttime ;?>)</h4>
      </div>
      <div class="modal-body">
      
	  	

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



				echo $this->session->flashdata('msg'); 
		
                 echo form_open('user/removestock' , 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="mytype" value="store"id="mytype" class="form-control" required placeholder="Enter type">

<input type="hidden" name="type" value="store"id="type" class="form-control" required placeholder="Enter type">
				<input type="hidden" name="view" value="user/viewproducts"id="view" class="form-control" required placeholder="Enter view">
		<input type="hidden" name="productid" value=""id="productid2" class="form-control" required placeholder="Enter productid">
		<input type="hidden" name="page" value="<?php echo $page ?>"id="page" class="form-control" required placeholder="Enter bookid">

		
		
		
		<div class="form-group">
    <label for="inputtotal" class="col-sm-2 control-label">	Total items to Remove </label>
    <div class="col-sm-10">
	
		  		<input type="text"   name="total" value="<?php echo set_value('total'); ?>"id="total2" class="form-control" required placeholder="Enter total">
		 
				
		<span class="text-danger"> 	How many items do you want to remove?<?php echo form_error('total'); ?>
		
		</span>
	</div>
  </div>
  
  
  
	
  
  

  
  <div class="form-group">
    <label for="inputcomments" class="col-sm-2 control-label">	 Comments</label>
    <div class="col-sm-10">

<textarea name="comments"  id="comments"class="form-control" placeholder="Enter description/comments if any "><?php echo set_value('comments'); ?></textarea>		
		<span class="text-danger"> Enter description/comments if any<?php echo form_error('comments'); ?>
		
		</span>
	</div>
  </div>
		
  
  
  
  
  
  
    <div class="form-group">
    <label for="inputfrom" class="col-sm-2 control-label">From?</label>
    <div class="col-sm-10">
	<select class="form-control" name="from" required>
	
	<option value=""  >--Where are you adding product from?---</option>

	
	<option value="store to kitchen" selected > from store to kitchen</option>


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

	</div>
  </div>
  
		
		
		
		
		
		
	<div class="form-group">
    <label for="inputcode" class="col-sm-2 control-label">	Product code</label>
    <div class="col-sm-10">
	
		  		<input type="text" readonly name="code" value="<?php echo set_value('code'); ?>"id="code2" class="form-control" required placeholder="Enter  code">
		 
				
		<span class="text-danger"> <?php echo form_error('name'); ?>
		
		</span>
	</div>
  </div>	

		<div class="form-group">
    <label for="inputname" class="col-sm-2 control-label">	Product Name</label>
    <div class="col-sm-10">
	
		  		<input type="text" name="name" value="<?php echo set_value('name'); ?>"id="name2" class="form-control" readonly required placeholder="Enter  Product name">
		 
				
		<span class="text-danger"> <?php echo form_error('name'); ?>
		
		</span>
	</div>
  </div>
	
		<div class="form-group">
    <label for="inputqty" class="col-sm-2 control-label">	Total Remaining items </label>
    <div class="col-sm-10">
	
		  		<input type="text"  readonly name="qty" value="<?php echo set_value('qty'); ?>"id="qty2" class="form-control" required placeholder="Enter qty">
		 
				
		<span class="text-danger"> <?php echo form_error('qty'); ?>
		
		</span>
	</div>
  </div>
	
	
	
	
	
		<div class="form-group">
    <label for="inputreorderevel" class="col-sm-2 control-label">	Reorder level</label>
    <div class="col-sm-10">
	
		  		<input type="text"  readonly  name="reorderevel" value="<?php echo set_value('reorderevel'); ?>"id="reorderevel2" class="form-control" required placeholder="Enter reorder level">
		 
				
		<span class="text-danger"> <?php echo form_error('reorderevel'); ?>
		
		</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" readonly id="description2"class="form-control"><?php echo set_value('description'); ?></textarea>		
		<span class="text-danger"> Enter description if any<?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="stock" name="btn_uaddstock" class="btn btn-default">Move Stock   </button>

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

    

				</div>

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






	
<div id="viewModal" class="modal fade" role="dialog">
  <div class="modal-dialog">

    <!-- Modal content-->
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal">&times;</button>
        <h4 class="modal-title">Stock  Report</h4>
      </div>
      <div class="modal-body">
      
	  	

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



				echo $this->session->flashdata('msg'); 
		
                 echo form_open('user/viewmainstockreport' , 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="inputtype" class="col-sm-2 control-label">Action type</label>
    <div class="col-sm-10">
	<select class="form-control" name="type" required>
	<option  value=""  >---Select option--</option>
	<option value="view" selected="selected" >I want to view stocks</option>
<option value="download">I want to download stocks</option>

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

	</div>
  </div>
   
  
<div class="form-group">
    <label for="inputorderamount" class="col-sm-2 control-label">Product Type</label>
    <div class="col-sm-10">
	<select class="form-control" name="orderamount" id="orderamount" >
	
			<option value="all" selected="selected" >---Select all Products---</option>
		<option value="mainitem"   >Main-item</option>
		<option value="production"  >Production-item</option>
		<option value="subitem"  >Sub-item</option>
			<option value="accompaniment"  >Accompaniment</option>


	

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

	</div>
  </div>
    
  
	
	 <div class="form-group">

    <div class="col-sm-offset-2 col-sm-10">
     
	         <button type="submit"  value="stock" name="btn_stock" class="btn btn-default"> View /Download Stock  </button>

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

    

				</div>

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






						<div id="uploadModal" class="modal fade" role="dialog">
  <div class="modal-dialog">

    <!-- Modal content-->
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal">&times;</button>
        <h4 class="modal-title">Please Upload  asset in (CSV)</h4>
		
      </div>
      <div class="modal-body">
      
	  	

				<?PHP
//$session_data = $this->session->userdata('logged_in');
		  $new_date=date("Y-m-d H:i:00");		



				echo $this->session->flashdata('msg'); 
		
                 echo form_open('user/uploadassets' , 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/viewproducts"id="view" class="form-control" required placeholder="Enter view">
	
	
	<div class="form-group">
    <label for="inputsurname" class="col-sm-2 control-label">	CSV LIST</label>
    <div class="col-sm-10">
		
			<input type="file" name="file" width="400"  value="<?php echo set_value('file') ;?>" placeholder="Select EXCELL" class="form-control" required placeholder="Enter Surname"  >

		  		
				
		<span class="text-danger"> Upload correct format of CSV File  here..<?php echo form_error('file'); ?>
		
		</span>
	</div>
  </div>	
  
	  
  <div class="form-group">
    <label for="inputstatus" class="col-sm-2 control-label">Asset Status?</label>
    <div class="col-sm-10">
	<select class="form-control" name="status" id="status"required>
	
		<option value="" selected  >---Select Asset Status---</option>
		<option value="new"  >New Assets(Current acquired)</option>
		<option value="old"  >Existing asset(Balance B/F)</option>

	

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

	</div>
  </div>

	 <div class="form-group">
    <label for="inputfromdate" class="col-sm-2 control-label">Balance Date </label>
    <div class="col-sm-10">
	
		  		<input type="text" name="fromdate" value="<?php echo set_value('fromdate',$new_date); ?>" class="form-control" required placeholder="Enter start date">
		 
				
		<span class="text-danger"> <?php echo form_error('fromdate'); ?>
		
		</span>
	</div>
  </div>
  

  
  
  
  
  
  
	 <div class="form-group">

    <div class="col-sm-offset-2 col-sm-10">
     
	         <button type="submit"  value="assets" name="btn_uploadassets" class="btn btn-default">Upload Assets  </button>

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

    

				</div>

		</div>
	    </div>
    </div>
	
		<div id="updatetockModal" class="modal fade" role="dialog">
  <div class="modal-dialog">

    <!-- 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 stock (<?PHP

 $postedtime = date('Y-m-d');
		$currenttime = date('h:i sa');
 		echo$dateposted =  ($postedtime)." ".$currenttime ;?>)</h4>
      </div>
      <div class="modal-body">
      
	  	

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



				echo $this->session->flashdata('msg'); 
		
                 echo form_open('user/updatestock' , 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/viewproducts"id="view" class="form-control" required placeholder="Enter view">
		<input type="hidden" name="productid" value=""id="productid3" class="form-control" required placeholder="Enter productid">
		<input type="hidden" name="page" value="<?php echo $page ?>"id="page" class="form-control" required placeholder="Enter bookid">
<input type="hidden" name="mytype" value="shop"id="mytype" class="form-control" required placeholder="Enter type">

    <div class="form-group">
    <label for="inputfrom" class="col-sm-2 control-label">From?</label>
    <div class="col-sm-10">
	<select class="form-control" name="from" required>
	
	<option value="" >--Where are you adding product from?---</option>


	
	<option value="supplier"  > from supplier</option>
	<option value="internal"  > from within</option>

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

	</div>
  </div>
  

	
		<div class="form-group">
    <label for="inputtotal" class="col-sm-2 control-label">	Total items to Add </label>
    <div class="col-sm-10">
	
		  		<input type="text"   name="total" value="<?php echo set_value('total'); ?>"id="total3" class="form-control" required placeholder="Enter total">
		 
				
		<span class="text-danger"> 	How many items do you want to add?<?php echo form_error('total'); ?>
		
		</span>
	</div>
  </div>
  
  














	<div class="form-group">
    <label for="inputcode" class="col-sm-2 control-label">	Product code</label>
    <div class="col-sm-10">
	
		  		<input type="text" readonly name="code" value="<?php echo set_value('code'); ?>"id="code3" class="form-control" required placeholder="Enter  code">
		 
				
		<span class="text-danger"> <?php echo form_error('code'); ?>
		
		</span>
	</div>
  </div>	

		<div class="form-group">
    <label for="inputname" class="col-sm-2 control-label">	Product Name</label>
    <div class="col-sm-10">
	
		  		<input type="text" name="name" value="<?php echo set_value('name'); ?>"id="name3" class="form-control" readonly required placeholder="Enter  Product name">
		 
				
		<span class="text-danger"> <?php echo form_error('name'); ?>
		
		</span>
	</div>
  </div>
	
		<div class="form-group">
    <label for="inputqty" class="col-sm-2 control-label">	Total Remaining items </label>
    <div class="col-sm-10">
	
		  		<input type="text"  readonly name="qty" value="<?php echo set_value('qty'); ?>"id="qty3" class="form-control" required placeholder="Enter qty">
		 
				
		<span class="text-danger"> <?php echo form_error('qty'); ?>
		
		</span>
	</div>
  </div>
	
	
	
	
	
		<div class="form-group">
    <label for="inputreorderevel" class="col-sm-2 control-label">	Reorder level</label>
    <div class="col-sm-10">
	
		  		<input type="text"  readonly  name="reorderevel" value="<?php echo set_value('reorderevel'); ?>"id="reorderevel3" class="form-control" required placeholder="Enter reorder level">
		 
				
		<span class="text-danger"> <?php echo form_error('reorderevel'); ?>
		
		</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"  class="form-control"><?php echo set_value('description'); ?></textarea>		
		<span class="text-danger"> Enter description if any<?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="stock" name="btn_addstock" class="btn btn-default"> Update Stock   </button>

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

    

				</div>

		</div>
	    </div>
    </div>
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
					<div id="editModal" class="modal fade" role="dialog">
  <div class="modal-dialog">

    <!-- Modal content-->
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal">&times;</button>
        <h4 class="modal-title">Dispatch stock (<?PHP

 $postedtime = date('Y-m-d');
		$currenttime = date('h:i sa');
 		echo$dateposted =  ($postedtime)." ".$currenttime ;?>)</h4>
      </div>
      <div class="modal-body">
      
	  	

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



				echo $this->session->flashdata('msg'); 
		
                 echo form_open('user/addstock' , 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/viewproducts"id="view" class="form-control" required placeholder="Enter view">
		<input type="hidden" name="productid" value=""id="productid1" class="form-control" required placeholder="Enter productid">
		<input type="hidden" name="page" value="<?php echo $page ?>"id="page" class="form-control" required placeholder="Enter bookid">
<input type="hidden" name="mytype" value="shop"id="mytype" class="form-control" required placeholder="Enter type">
		 		  		<input readonly type="hidden" name="invoice" required value="<?php echo set_value('invoice',$finalsalesid); ?>" class="form-control"  placeholder="Enter invoice or Receip tnumber">


<div class ="form-inline">
<?php	

					 

					 $branchlevel= $this->usermodel->populateall('branch','companyid',$companyid);



if(is_array($branchlevel)) {

   foreach($branchlevel as $branchlevelrow){
    ?>

<p>

     <div class="form-group">
	     <label for="inputfrom" class="col-sm-1 control-label">	TO?</label>

    <div class="col-sm-6">
	<select class="form-control" name="from[]" required>
	
	<option value=""  >---Moving products to which branch?---</option>

	
	<?php 
					 

					 $branch= $this->usermodel->populateall('branch','id',$branchlevelrow->id);



if(is_array($branch)) {

   foreach($branch as $branchrow){

   //echo $courserow->coursename;
    ?>
					<option selected="selected" value="<?=  $branchrow->id;   ?>"><?=  $branchrow->name; ?></option>



	<?php

}} else {
    echo 'No branch available.';
}
	
?>
</select>


	</div>
		 <div class="col-sm-3">		<input type="text" autofocus  name="total[]" value="0"  id="total1" class="form-control" required placeholder="Enter total"></div>


  </div>


		 
</p>
  	<?php

}} else {
    echo 'No branch available.';
}
	
?>

	  </div>
	

  
  <div class="form-group">
    <label for="inputdeduction" class="col-sm-2 control-label">Deduct?</label>
    <div class="col-sm-10">
	<select class="form-control" name="deduction" required>
	
		<option value=""  >---Do you want to deduct stock from main store to adjust stocklist?--</option>
		<option value="Yes" selected="selected"  >Yes</option>
		<option value="No"  >No -Just add stock to stocklist directly</option>

	

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

	</div>
  </div>
  	







	<div class="form-group">
    <label for="inputcode" class="col-sm-2 control-label">	Product code</label>
    <div class="col-sm-10">
	
		  		<input type="text" readonly name="code" value="<?php echo set_value('code'); ?>"id="code1" class="form-control" required placeholder="Enter  code">
		 
				
		<span class="text-danger"> <?php echo form_error('code'); ?>
		
		</span>
	</div>
  </div>	

		<div class="form-group">
    <label for="inputname" class="col-sm-2 control-label">	Product Name</label>
    <div class="col-sm-10">
	
		  		<input type="text" name="name" value="<?php echo set_value('name'); ?>"id="name1" class="form-control" readonly required placeholder="Enter  Product name">
		 
				
		<span class="text-danger"> <?php echo form_error('name'); ?>
		
		</span>
	</div>
  </div>
	
		<div class="form-group">
    <label for="inputqty" class="col-sm-2 control-label">	Total Remaining items </label>
    <div class="col-sm-10">
	
		  		<input type="text"  readonly name="qty" value="<?php echo set_value('qty'); ?>"id="qty1" class="form-control" required placeholder="Enter qty">
		 
				
		<span class="text-danger"> <?php echo form_error('qty'); ?>
		
		</span>
	</div>
  </div>
	
	
	
	
	
		<div class="form-group">
    <label for="inputreorderevel" class="col-sm-2 control-label">	Reorder level</label>
    <div class="col-sm-10">
	
		  		<input type="text"  readonly  name="reorderevel" value="<?php echo set_value('reorderevel'); ?>"id="reorderevel1" class="form-control" required placeholder="Enter reorder level">
		 
				
		<span class="text-danger"> <?php echo form_error('reorderevel'); ?>
		
		</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"  class="form-control"><?php echo set_value('description'); ?></textarea>		
		<span class="text-danger"> Enter description if any<?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="stock" name="btn_uaddstock" class="btn btn-default"> Update Stock   </button>

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

    

				</div>

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

 
</div>


</div>


</div>


</div>


</div>


</div>
</div>


</div>
</div>


</div>
</div>


</div>
</div>


</div>
</div>


</div>
</div>


</div>
</div>


</div>
</div>


</div>


</div>







