273 lines
7.3 KiB
PHP
273 lines
7.3 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>Siddharth Industries - 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("-1"=>'Select Request Type');
|
|
//print_r( $options);
|
|
|
|
if(!empty($RequestType))
|
|
{
|
|
foreach ($RequestType as $RID):
|
|
|
|
|
|
$options[$RID->ConfigValue] = $RID->ConfigValue;
|
|
|
|
endforeach;
|
|
}
|
|
|
|
echo form_dropdown('RequestType', $options,set_value('ConfigValue'),'id="RequestType"' ,'class = "form-control select2"','required="true"');
|
|
|
|
?>
|
|
|
|
</div>
|
|
</div>
|
|
<div class="col-md-3">
|
|
<label>Requested By</label>
|
|
<div>
|
|
<?php
|
|
$options = array("-1"=>'Select Requested By');
|
|
//print_r( $options);
|
|
|
|
if(!empty($EmpList))
|
|
{
|
|
foreach ($EmpList as $EID):
|
|
|
|
|
|
$options[$EID->EmpID] = $EID->EmpID.' '.' - '.' '.$EID->FirstName.' . '.' '.$EID->LastName;
|
|
|
|
endforeach;
|
|
}
|
|
|
|
echo form_dropdown('EmpID', $options,set_value('EmpID'),'id="EmpID"' ,'class = "form-control select2"','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' ,'readonly' => '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' ,'readonly' => 'true');
|
|
echo form_input($data);
|
|
?>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-12">
|
|
|
|
<div class="col-md-3">
|
|
<label>Cost Center Name</label>
|
|
<div>
|
|
<?php
|
|
$options = array("-1"=>'Select Cost Center Name');
|
|
//print_r( $options);
|
|
|
|
if(!empty($CostCenter))
|
|
{
|
|
foreach ($CostCenter as $CID):
|
|
|
|
|
|
$options[$CID->CostName] = $CID->CostName.' '.' - '.' '.$CID->Description;
|
|
|
|
endforeach;
|
|
}
|
|
|
|
echo form_dropdown('CostCenter', $options,set_value('CostCenter'),'id="CostCenter"' ,'class = "form-control"');
|
|
|
|
?>
|
|
|
|
</div>
|
|
</div>
|
|
<div class="col-md-3">
|
|
<label>Available Budget Amount</label>
|
|
<div class="form-group">
|
|
<?php
|
|
$data = array('name' => 'BudgetAmount','value' => set_value('BudgetAmount'),'id'=>'BudgetAmount', 'class' => 'form-control' ,'readonly' => '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-6">
|
|
<label>Material Code</label>
|
|
<div >
|
|
<?php
|
|
$options = array("0"=>'Material Code');
|
|
//print_r( $options);
|
|
|
|
if(!empty($MaterialList))
|
|
{
|
|
foreach ($MaterialList as $MID):
|
|
|
|
|
|
$options[$MID->MaterialCode] = $MID->MaterialCode.' '.' - '.' '.$MID->MaterialName;
|
|
|
|
endforeach;
|
|
}
|
|
|
|
echo form_dropdown('MaterialCode', $options,set_value('MaterialCode'),'id="MaterialCode"' ,'class="form-control"');
|
|
|
|
?>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-md-6">
|
|
<label>Description</label>
|
|
<div class="form-group">
|
|
<?php
|
|
$data = array('name' => 'Description','value' => set_value('Description'),'id'=>'Description', 'class' => 'form-control','readonly' => 'true' );
|
|
echo form_input($data);
|
|
?>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-6">
|
|
<label>UOM</label>
|
|
<div>
|
|
<?php
|
|
$data = array('name' => 'UOM','value' => set_value('UOM'),'id'=>'UOM', 'class' => 'form-control','readonly' => 'true' );
|
|
echo form_input($data);
|
|
?>
|
|
|
|
</div>
|
|
</div>
|
|
<div class="col-md-6">
|
|
<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>
|
|
<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>
|
|
|
|
|
|
</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>Action</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td>1</td>
|
|
<td>001</td>
|
|
<td>Waste Sand</td>
|
|
<td>Ton</td>
|
|
<td>100</td>
|
|
<td> <a href="#"><i class="fa fa-pencil"></i> </a>
|
|
<a href="#"><i class="fa fa-eye"></i> </a></td>
|
|
</tr>
|
|
<tr>
|
|
<td>2</td>
|
|
<td>002</td>
|
|
<td>Resin</td>
|
|
<td>Litre</td>
|
|
<td>50</td>
|
|
<td> <a href="#"><i class="fa fa-pencil"></i> </a>
|
|
<a href="#"><i class="fa fa-eye"></i> </a></td>
|
|
</tr>
|
|
<tr>
|
|
<td>3</td>
|
|
<td>003</td>
|
|
<td>Resin</td>
|
|
<td>Litre</td>
|
|
<td>100</td>
|
|
<td> <a href="#"><i class="fa fa-pencil"></i> </a>
|
|
<a href="#"><i class="fa fa-eye"></i> </a></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>
|
|
|
|
<script>
|
|
|
|
|
|
$(function() {
|
|
$( ".datePicker" ).datepicker({ dateFormat: 'dd/mm/yy' });
|
|
|
|
//Initialize Select2 Elements
|
|
$(".select2").select2();
|
|
|
|
|
|
|
|
|
|
|
|
});
|
|
</script>
|