300 lines
8.1 KiB
PHP
300 lines
8.1 KiB
PHP
<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>
|
|
<center><b><h2>Requisition Form</h2></b></center>
|
|
<div class="container-fluid">
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<div class="col-md-3">
|
|
<label>Request Type</label>
|
|
<div>
|
|
<?php
|
|
$options = array("0"=>'Select Request Type');
|
|
//print_r( $options);
|
|
|
|
if(!empty($POType))
|
|
{
|
|
foreach ($SupplierName as $SID):
|
|
|
|
|
|
$options[$SID->SupplierID] = $SID->SupplierID.' '.' - '.' '.$SID->SupplierName;
|
|
|
|
endforeach;
|
|
}
|
|
|
|
echo form_dropdown('SupplierID', $options,set_value('SupplierID'),'id="SupplierID"' ,'class = "form-control required"','required="true"');
|
|
|
|
?>
|
|
|
|
</div>
|
|
</div>
|
|
<div class="col-md-3">
|
|
<label>Requested By</label>
|
|
<div>
|
|
<?php
|
|
$options = array("0"=>'Select Request By');
|
|
//print_r( $options);
|
|
|
|
if(!empty($POType))
|
|
{
|
|
foreach ($SupplierName as $SID):
|
|
|
|
|
|
$options[$SID->SupplierID] = $SID->SupplierID.' '.' - '.' '.$SID->SupplierName;
|
|
|
|
endforeach;
|
|
}
|
|
|
|
echo form_dropdown('SupplierID', $options,set_value('SupplierID'),'id="SupplierID"' ,'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' => 'SupplierAddress','value' => set_value('SupplierAddress'),'id'=>'SupplierAddress', 'class' => 'form-control' ,'required' => 'true');
|
|
echo form_input($data);
|
|
?>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-3">
|
|
<label>Designation</label>
|
|
<div class="form-group">
|
|
<?php
|
|
$data = array('name' => 'SupplierAddress','value' => set_value('SupplierAddress'),'id'=>'SupplierAddress', 'class' => 'form-control' ,'required' => 'true');
|
|
echo form_input($data);
|
|
?>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-12">
|
|
<div class="col-md-3">
|
|
<label for="Departure_Date"> Requisition Date</label>
|
|
<div class="form-group">
|
|
<?php
|
|
$data = array('name' => 'PO_Date', 'value' => set_value('PO_Date'),'id'=>'PO_Date', 'class' => 'form-control datePicker','required'=>'true');
|
|
echo form_input($data);
|
|
?>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-3">
|
|
<label>Cost Center Name</label>
|
|
<div>
|
|
<?php
|
|
$options = array("0"=>'Cost Center Name');
|
|
//print_r( $options);
|
|
|
|
if(!empty($POType))
|
|
{
|
|
foreach ($SupplierName as $SID):
|
|
|
|
|
|
$options[$SID->SupplierID] = $SID->SupplierID.' '.' - '.' '.$SID->SupplierName;
|
|
|
|
endforeach;
|
|
}
|
|
|
|
echo form_dropdown('SupplierID', $options,set_value('SupplierID'),'id="SupplierID"' ,'class = "form-control required"','required="true"');
|
|
|
|
?>
|
|
|
|
</div>
|
|
</div>
|
|
<div class="col-md-3">
|
|
<label>Available Budget Amount</label>
|
|
<div class="form-group">
|
|
<?php
|
|
$data = array('name' => 'SupplierAddress','value' => set_value('SupplierAddress'),'id'=>'SupplierAddress', '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-->
|
|
<div class="modal-content">
|
|
<div class="modal-header">
|
|
<button type="button" class="close" data-dismiss="modal">×</button>
|
|
<center><h4>Add Line Item </h4></center>
|
|
</div>
|
|
<div align="left">
|
|
|
|
<div class="col-md-12">
|
|
<label>Material Code</label>
|
|
<div >
|
|
<?php
|
|
$options = array("0"=>'Material 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-12">
|
|
<label>Description</label>
|
|
<div class="form-group">
|
|
<?php
|
|
$data = array('name' => 'Description','value' => set_value('Description'),'id'=>'Description', 'class' => 'form-control' ,'required' => 'true');
|
|
echo form_input($data);
|
|
?>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-12">
|
|
<label>UOM</label>
|
|
<div>
|
|
<?php
|
|
$options = array("0"=>'UOM');
|
|
//print_r( $options);
|
|
|
|
if(!empty($POType))
|
|
{
|
|
foreach ($SupplierName as $SID):
|
|
|
|
|
|
$options[$SID->SupplierID] = $SID->SupplierID.' '.' - '.' '.$SID->SupplierName;
|
|
|
|
endforeach;
|
|
}
|
|
|
|
echo form_dropdown('UOM', $options,set_value('UOM'),'id="UOM"' ,'class = "form-control required"','required="true"');
|
|
|
|
?>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-12">
|
|
<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-12">
|
|
<label>Priority</label>
|
|
<div>
|
|
<?php
|
|
$options = array("0"=>'Low / High / Medium');
|
|
//print_r( $options);
|
|
|
|
if(!empty($POType))
|
|
{
|
|
foreach ($SupplierName as $SID):
|
|
|
|
|
|
$options[$SID->SupplierID] = $SID->SupplierID.' '.' - '.' '.$SID->SupplierName;
|
|
|
|
endforeach;
|
|
}
|
|
|
|
echo form_dropdown('Priority', $options,set_value('Priority'),'id="Priority"' ,'class = "form-control required"','required="true"');
|
|
|
|
?>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
<div class="modal-footer">
|
|
<button type="button" class="btn btn-default" value="submit">save</button>
|
|
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
<button type="button" class="btn btn-primary">Edit</button>
|
|
<button type="button" class="btn btn-primary">Delete</button>
|
|
</div><br/>
|
|
<thead style="background-color:#fff">
|
|
<tr>
|
|
<th>SNo</th>
|
|
<th>Material Code</th>
|
|
<th>Material Name</th>
|
|
<th>Uom</th>
|
|
<th>Quantity</th>
|
|
<th>Priority</th>
|
|
<th>Modify</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<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>2</td>
|
|
<td>002</td>
|
|
<td>Resin</td>
|
|
<td>Litre</td>
|
|
<td>50</td>
|
|
<td>High</td>
|
|
<td>Change</td>
|
|
</tr>
|
|
<tr>
|
|
<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 align="right" style="padding-right:10px">
|
|
<button type="button" class="btn btn-primary">Save</button>
|
|
<button type="button" class="btn btn-primary">Submit</button>
|
|
<button type="button" class="btn btn-primary">Reset</button>
|
|
<button type="button" class="btn btn-primary">Cancel</button>
|
|
|
|
</div>
|
|
<br>
|
|
</div>
|
|
</div>
|
|
|
|
</section>
|
|
</div>
|