<style>
            .table-bordered>thead>tr>th, .table-bordered>tbody>tr>th, .table-bordered>tfoot>tr>th, .table-bordered>thead>tr>td, .table-bordered>tbody>tr>td, .table-bordered>tfoot>tr>td {border: 1px solid #333;}
            </style>
<div class="content-wrapper">
    
 
	 <section class="content">
	  
	 <div style="border:2px solid #333">
         <center><b><h2>Service Purchase Order</h2></b></center>
         <div class="container-fluid">
	 <div class="row">
	   <div class="col-md-12">
	   <div class="col-md-4">
	   	<label>Requistion No</label>
					<div class="form-control">
						 <?php
						$options = array("0"=>'Requistion No');     
						//print_r(  $options);
						
						if(!empty($POType))
						{
						foreach ($SupplierName as $SID):
						  
					   
						  $options[$SID->SupplierID] =  $SID->SupplierID.' '.' - '.' '.$SID->SupplierName;

						endforeach;
						}										
			
						echo form_dropdown('MaterialCode', $options,set_value('MaterialCode'),'id="MaterialCode"' ,'class="form-control required"','required="true"');

						?>						 
					</div>
	   </div>
	   <div class="col-md-4">
	   <label>PO Date</label>
					<div class="form-group">
								<?php
						 $data = array('name' => 'Quantity','value' => set_value('Quantity'),'id'=>'Quantity',  'class' => 'form-control' ,'required' => 'true');
						echo form_input($data);
						?>   
					</div>
	   </div>
	   <div class="col-md-4">
	   <label>Purchase Order Type</label>
					<div class="form-group">
								<?php
						 $data = array('name' => 'Quantity','value' => set_value('Quantity'),'id'=>'Quantity',  'class' => 'form-control' ,'required' => 'true');
						echo form_input($data);
						?>   
					</div>
	   </div>
	   <div class="col-md-4">
	   	<label>Supplier</label>
					<div class="form-control">
						 <?php
						$options = array("0"=>'Supplier');     
						//print_r(  $options);
						
						if(!empty($POType))
						{
						foreach ($SupplierName as $SID):
						  
					   
						  $options[$SID->SupplierID] =  $SID->SupplierID.' '.' - '.' '.$SID->SupplierName;

						endforeach;
						}										
			
						echo form_dropdown('MaterialCode', $options,set_value('MaterialCode'),'id="MaterialCode"' ,'class="form-control required"','required="true"');

						?>						 
					</div>
	   </div>
	   <div class="col-md-4">
	   <label>Address</label>
					<div class="form-group">
								<?php
						 $data = array('name' => 'Quantity','value' => set_value('Quantity'),'id'=>'Quantity',  'class' => 'form-control' ,'required' => 'true');
						echo form_input($data);
						?>   
					</div>
	   </div>
	   <div class="col-md-4">
	   <label>City</label>
					<div class="form-group">
								<?php
						 $data = array('name' => 'Quantity','value' => set_value('Quantity'),'id'=>'Quantity',  'class' => 'form-control' ,'required' => 'true');
						echo form_input($data);
						?>   
					</div>
	   </div>
	 </div>	 
	 </div>
         </div>
	 
          <div class="container-fluid">  
 	 <table class="table table-bordered" style="border:1px solid #333">
  <div align="right" style="padding-right:10px">
<div align="right">
  <a data-toggle="modal" data-target="#myModal1"><button type="button" class="btn btn-primary" data-dismiss="modal" >Add Line Item</button> </a>
  
    <div class="modal fade" id="myModal1" role="dialog">
		<div class="modal-dialog">
	   <!-- Modal content-->
	 <form>
		  <div class="modal-content" style="width:900px;">
			<div class="modal-header" style="background-color: #3c8dbc;color:#fff;">
			  <button type="button" class="close" data-dismiss="modal">&times;</button>
			  <center><h4>Add Item </h4></center>				
			</div>
			<div align="left"> 
			 
			<div class="col-md-12">
						 <div class="col-md-3">
						 <label>Req No</label>
									<div class="form-control">
										 <?php
										$options = array("0"=>'Req No');     
										//print_r(  $options);
										
										if(!empty($POType))
										{
										foreach ($SupplierName as $SID):
										  
									   
										  $options[$SID->SupplierID] =  $SID->SupplierID.' '.' - '.' '.$SID->SupplierName;

										endforeach;
										}										
							
										echo form_dropdown('MaterialCode', $options,set_value('MaterialCode'),'id="MaterialCode"' ,'class="form-control required"','required="true"');

										?>						 
									</div>
								</div>
						 
						  <div class="col-md-3">
						   <label>Department Name</label>
									<div class="form-group">
												<?php
										 $data = array('name' => 'Quantity','value' => set_value('Quantity'),'id'=>'Quantity',  'class' => 'form-control' ,'required' => 'true');
										echo form_input($data);
										?>   
									</div>
						 </div>
						  <div class="col-md-3">
						   <label>Cost Center Name</label>
									<div class="form-group">
												<?php
										 $data = array('name' => 'Quantity','value' => set_value('Quantity'),'id'=>'Quantity',  'class' => 'form-control' ,'required' => 'true');
										echo form_input($data);
										?>   
									</div>
						 </div>
						  <div class="col-md-3">
						   <label>Available Budget Amount</label>
									<div class="form-group">
												<?php
										 $data = array('name' => 'Quantity','value' => set_value('Quantity'),'id'=>'Quantity',  'class' => 'form-control' ,'required' => 'true');
										echo form_input($data);
										?>   
									</div>
						 </div>
		 </div>
		 <div class="col-md-12">
						  <div class="col-md-2">
						  <label>Item Code</label>
									<div class="form-control">
										 <?php
										$options = array("0"=>'Item Code');     
										//print_r(  $options);
										
										if(!empty($POType))
										{
										foreach ($SupplierName as $SID):
										  
									   
										  $options[$SID->SupplierID] =  $SID->SupplierID.' '.' - '.' '.$SID->SupplierName;

										endforeach;
										}										
							
										echo form_dropdown('MaterialCode', $options,set_value('MaterialCode'),'id="MaterialCode"' ,'class="form-control required"','required="true"');

										?>						 
									</div>
					   </div>
						  
						 <div class="col-md-2">
						  <label>Item Name</label>
									<div class="form-group">
												<?php
										 $data = array('name' => 'Quantity','value' => set_value('Quantity'),'id'=>'Quantity',  'class' => 'form-control' ,'required' => 'true');
										echo form_input($data);
										?>   
									</div>
						 </div>
						 <div class="col-md-2">
						  <label>UOM</label>
									<div class="form-group">
												<?php
										 $data = array('name' => 'Quantity','value' => set_value('Quantity'),'id'=>'Quantity',  'class' => 'form-control' ,'required' => 'true');
										echo form_input($data);
										?>   
									</div>
						 </div>
						 <div class="col-md-2">
						  <label>Quantity</label>
									<div class="form-group">
												<?php
										 $data = array('name' => 'Quantity','value' => set_value('Quantity'),'id'=>'Quantity',  'class' => 'form-control' ,'required' => 'true');
										echo form_input($data);
										?>   
									</div>
						 </div>
						 <div class="col-md-2">
						  <label>Rate Per unit</label>
									<div class="form-group">
												<?php
										 $data = array('name' => 'Quantity','value' => set_value('Quantity'),'id'=>'Quantity',  'class' => 'form-control' ,'required' => 'true');
										echo form_input($data);
										?>   
									</div>
						 </div>
						 <div class="col-md-2">
						  <label>Total Amount</label>
									<div class="form-group">
												<?php
										 $data = array('name' => 'Quantity','value' => set_value('Quantity'),'id'=>'Quantity',  'class' => 'form-control' ,'required' => 'true');
										echo form_input($data);
										?>   
									</div>
						 </div>
		 </div>
		 <div class="col-md-12">
				<div class="col-md-12">
					<div class="col-md-4">
							 
			 Service Tax @12% :
					</div>	
					<div class="col-md-4">
							<div class="form-group">
												<?php
										 $data = array('name' => 'Quantity','value' => set_value('Quantity'),'id'=>'Quantity',  'class' => 'form-control' ,'required' => 'true');
										echo form_input($data);
										?>   
									</div> 
			 
					</div>	
					<div class="col-md-4">
							 <div class="form-group">
												<?php
										 $data = array('name' => 'Quantity','value' => set_value('Quantity'),'id'=>'Quantity',  'class' => 'form-control' ,'placeholder' => 'After  Service Tax','required' => 'true');
										echo form_input($data);
										?>   
									</div>
			 
					</div>			 
		 
				</div>		 
		    <div class="col-md-12">
					<div class="col-md-4">
						Edu. cess @2% on service Tax 	 
			 
					</div>	
					<div class="col-md-4">
							<div class="form-group">
												<?php
										 $data = array('name' => 'Quantity','value' => set_value('Quantity'),'id'=>'Quantity',  'class' => 'form-control' ,'required' => 'true');
										echo form_input($data);
										?>   
									</div> 
			 
					</div>	
					<div class="col-md-4">
							 <div class="form-group">
												<?php
										 $data = array('name' => 'Quantity','value' => set_value('Quantity'),'id'=>'Quantity',  'class' => 'form-control' ,'placeholder' => 'After Edu.','required' => 'true');
										echo form_input($data);
										?>   
									</div>
			 
					</div>	 
		 
		 </div>
		 <div class="col-md-12">
						 
		 <div class="col-md-4">
							Sec. & Higher Edu. cess @1 % on service Tax 
			 
					</div>	
					<div class="col-md-4">
							<div class="form-group">
												<?php
										 $data = array('name' => 'Quantity','value' => set_value('Quantity'),'id'=>'Quantity',  'class' => 'form-control' ,'required' => 'true');
										echo form_input($data);
										?>   
									</div> 
			 
					</div>	
					<div class="col-md-4">
							 <div class="form-group">
												<?php
										 $data = array('name' => 'Quantity','value' => set_value('Quantity'),'id'=>'Quantity',  'class' => 'form-control' ,'placeholder' => 'After High Edu.','required' => 'true');
										echo form_input($data);
										?>   
									</div>
			 
					</div>
		 </div>
		 <div class="col-md-12">
					<div class="col-md-4">
							Other Taxes 
			 
					</div>	
					<div class="col-md-4">
							<div class="form-group">
												<?php
										 $data = array('name' => 'Quantity','value' => set_value('Quantity'),'id'=>'Quantity',  'class' => 'form-control' ,'required' => 'true');
										echo form_input($data);
										?>   
									</div> 
			 
					</div>	
					<div class="col-md-4">
							<div class="form-group">
												<?php
										 $data = array('name' => 'Quantity','value' => set_value('Quantity'),'id'=>'Quantity',  'class' => 'form-control' ,'placeholder' => 'After Other Taxes','required' => 'true');
										echo form_input($data);
										?>   
									</div> 
			 
					</div>	 
		 
		 </div>
		 <div class="col-md-6 col-md-offset-6">
							 <label>Total Order value</label>
							 <div class="form-group">
													<?php
											 $data = array('name' => 'Quantity','value' => set_value('Quantity'),'id'=>'Quantity',  'class' => 'form-control' ,'placeholder' => 'Total value','required' => 'true');
											echo form_input($data);
											?>   
										</div>
							 </div>
		 </div>
		 
			</div>
			<div class="modal-footer">
			 <button type="button" class="btn btn-default" value="submit">Add</button>
			 <button type="button" class="btn btn-default" value="submit" data-dismiss="modal">Cancel</button>
			  <button type="reset" class="btn btn-default" value="reset">Reset</button>
			</div>
		  </div>
		 </form>
			 
		  </div>
	</div>		  
  </div>
</div>
   
   
   <br/>
    <thead style="background-color:#fff">
      <tr>
	   <th><input type="checkbox" name="name1" />&nbsp;</th>
        <th>R No</th>
        <th>Item Name</th>
        <th>Quantity</th>
        <th>UOM</th>
		<th>Rate</th>
        <th>Tax %</th>
        <th>Total</th>
      </tr>
    </thead>
    <tbody>
      <tr>
	  <td><input type="checkbox" name="name2" />&nbsp;</td>
        <td>1</td>
        <td>001</td>
        <td>Waste Sand</td>
		<td>Ton</td>
        <td>100</td>
		<td>High</td>
        <td>No Change</td>
      </tr>
      <tr>
	  <td><input type="checkbox" name="name2" />&nbsp;</td>
        <td>2</td>
        <td>002</td>
        <td>Resin</td>
		<td>Litre</td>
        <td>50</td>
		<td>High</td>
        <td>Change</td>
      </tr>
      <tr>
	  <td><input type="checkbox" name="name2" />&nbsp;</td>
        <td>3</td>
        <td>003</td>
        <td>Resin</td>
		<td>Litre</td>
        <td>100</td>
		<td>High</td>
        <td>Change</td>
      </tr>
    </tbody>
	   
  </table>
      <div class="col-md-3 col-md-offset-9">
				
					<div class="form-group">
							<label>Total Order Value :</label>	<?php
						 $data = array('name' => 'Quantity','value' => set_value('Quantity'),'id'=>'Quantity',  'class' => 'form-control' ,'required' => 'true');
						echo form_input($data);
						?>   
					</div>
			</div> 
 <div align="right" style="padding-right:10px">
  <button type="button" class="btn btn-primary">Save</button>
  <button type="button" class="btn btn-primary">Cancel</button>
    
  </div>
         <br/>
	 </div>
         </div>
       
</div>