header changed and requisition page created
This commit is contained in:
parent
f113216790
commit
74aea3790b
58
application/controllers/requisitionform.php
Normal file
58
application/controllers/requisitionform.php
Normal file
@ -0,0 +1,58 @@
|
|||||||
|
<?php if(!defined('BASEPATH')) exit('No direct script access allowed');
|
||||||
|
|
||||||
|
require APPPATH . '/libraries/BaseController.php';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Class : purchaseorder (PurchaseorderController)
|
||||||
|
* User Class to control all user related operations.
|
||||||
|
* @author : VenbaMail Mali
|
||||||
|
* @version : 1.1
|
||||||
|
* @since : 15 Feb 2016
|
||||||
|
*/
|
||||||
|
class requisitionform extends BaseController
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* This is default constructor of the class
|
||||||
|
*/
|
||||||
|
public function __construct()
|
||||||
|
{
|
||||||
|
parent::__construct();
|
||||||
|
$this->load->model('purchaseorder_model');
|
||||||
|
|
||||||
|
$this->load->library('session');
|
||||||
|
$this->load->library('form_validation');
|
||||||
|
|
||||||
|
$this->isLoggedIn();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* This function used to load the first screen of the user
|
||||||
|
*/
|
||||||
|
public function index()
|
||||||
|
{
|
||||||
|
$this->global['pageTitle'] = 'Siddharth : Requisition';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
$this->loadViews("addPO", $this->global, NULL , NULL);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
function requisition()
|
||||||
|
{
|
||||||
|
$this->global['pageTitle'] = 'Siddharth : Requisition';
|
||||||
|
|
||||||
|
$this->loadViews("requisitionform", $this->global, NULL);
|
||||||
|
}
|
||||||
|
|
||||||
|
function pageNotFound()
|
||||||
|
{
|
||||||
|
$this->global['pageTitle'] = 'CodeInsect : 404 - Page Not Found';
|
||||||
|
|
||||||
|
$this->loadViews("404", $this->global, NULL, NULL);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
?>
|
||||||
@ -1,5 +1,4 @@
|
|||||||
|
|
||||||
</style>
|
|
||||||
|
|
||||||
<div class="content-wrapper">
|
<div class="content-wrapper">
|
||||||
<!-- Content Header (Page header) -->
|
<!-- Content Header (Page header) -->
|
||||||
@ -7,7 +6,7 @@
|
|||||||
<center>
|
<center>
|
||||||
<h1><b>Purchase Order</b> </h1>
|
<h1><b>Purchase Order</b> </h1>
|
||||||
</center>
|
</center>
|
||||||
<div align="right">
|
|
||||||
|
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
|||||||
@ -20,6 +20,7 @@
|
|||||||
color:red;
|
color:red;
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
}
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
<!-- jQuery 2.1.4 -->
|
<!-- jQuery 2.1.4 -->
|
||||||
<script src="<?php echo base_url(); ?>assets/js/jQuery-2.1.4.min.js"></script>
|
<script src="<?php echo base_url(); ?>assets/js/jQuery-2.1.4.min.js"></script>
|
||||||
@ -27,8 +28,6 @@
|
|||||||
var baseURL = "<?php echo base_url(); ?>";
|
var baseURL = "<?php echo base_url(); ?>";
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<link href="<?php echo base_url();?>assets/css/style.css"/>
|
<link href="<?php echo base_url();?>assets/css/style.css"/>
|
||||||
<link href="<?php echo base_url();?>assets/css/animate.css"/>
|
<link href="<?php echo base_url();?>assets/css/animate.css"/>
|
||||||
<link href="<?php echo base_url();?>assets/css/style.min.css"/>
|
<link href="<?php echo base_url();?>assets/css/style.min.css"/>
|
||||||
@ -63,7 +62,7 @@
|
|||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
|
||||||
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" crossorigin="anonymous">
|
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" crossorigin="anonymous">
|
||||||
<title>Siddharth Industries</title>
|
|
||||||
|
|
||||||
<!-- Data Tables-->
|
<!-- Data Tables-->
|
||||||
<link href="<?php echo base_url();?>assets/css/plugins/dataTables/dataTables.bootstrap.css"/>
|
<link href="<?php echo base_url();?>assets/css/plugins/dataTables/dataTables.bootstrap.css"/>
|
||||||
@ -89,10 +88,23 @@
|
|||||||
<!-- Header Navbar: style can be found in header.less -->
|
<!-- Header Navbar: style can be found in header.less -->
|
||||||
<nav class="navbar navbar-static-top" role="navigation" >
|
<nav class="navbar navbar-static-top" role="navigation" >
|
||||||
<!-- Sidebar toggle button-->
|
<!-- Sidebar toggle button-->
|
||||||
|
<div class="navbar-header">
|
||||||
|
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#myNavbar">
|
||||||
|
<i class="fa fa-bars fa-2x" aria-hidden="true"></i>
|
||||||
|
</button>
|
||||||
|
|
||||||
<div class="navbar-custom-menu">
|
</div>
|
||||||
|
<div class="navbar-custom-menu collapse navbar-collapse" id="myNavbar">
|
||||||
<ul class="nav navbar-nav">
|
<ul class="nav navbar-nav">
|
||||||
<!-- User Account: style can be found in dropdown.less -->
|
<!-- User Account: style can be found in dropdown.less -->
|
||||||
|
<li class="treeview">
|
||||||
|
<a href="<?php echo base_url(); ?>dashboard">
|
||||||
|
<i class="fa fa-dashboard"></i> <span>Dashboard</span></i>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<li class="treeview">
|
||||||
|
<span id="menu1" data-toggle="dropdown" style="color: #fff;line-height: 20px;position: relative;display: block; padding: 15px 15px;background-color: transparent;"><i class="fa fa-database" aria-hidden="true"></i>Master Details<span class="caret"></span></span>
|
||||||
|
<ul class="dropdown-menu" role="menu" aria-labelledby="menu1">
|
||||||
<?php
|
<?php
|
||||||
if($role == ROLE_ADMIN)
|
if($role == ROLE_ADMIN)
|
||||||
{
|
{
|
||||||
@ -106,10 +118,6 @@
|
|||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
if($role == ROLE_ADMIN || $role == ROLE_MANAGER || $role == ROLE_SALES)
|
if($role == ROLE_ADMIN || $role == ROLE_MANAGER || $role == ROLE_SALES)
|
||||||
{
|
{
|
||||||
@ -170,6 +178,26 @@
|
|||||||
<span>Users</span>
|
<span>Users</span>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
<li class="treeview">
|
||||||
|
<span id="menu2" data-toggle="dropdown" style="color: #fff;line-height: 20px;position: relative;display: block; padding: 15px 15px;background-color: transparent;">Requisition form <span class="caret"></span></span>
|
||||||
|
<ul class="dropdown-menu" role="menu" aria-labelledby="menu2">
|
||||||
|
<li class="treeview">
|
||||||
|
<a href="<?php echo base_url(); ?>requisitionform/requisition">
|
||||||
|
<i class="fa fa-users"></i>
|
||||||
|
<span>Requisition Form</span>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<li class="treeview">
|
||||||
|
<a href="<?php echo base_url(); ?>userListing">
|
||||||
|
<i class="fa fa-users"></i>
|
||||||
|
<span>Requisition List</span>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</li>
|
||||||
|
|
||||||
<!--<li class="treeview">
|
<!--<li class="treeview">
|
||||||
<a href="#" >
|
<a href="#" >
|
||||||
<i class="fa fa-files-o"></i>
|
<i class="fa fa-files-o"></i>
|
||||||
@ -208,7 +236,4 @@
|
|||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
</header>
|
</header>
|
||||||
</div>
|
|
||||||
<!-- Left side column. contains the logo and sidebar -->
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
310
application/views/requisitionform.php
Normal file
310
application/views/requisitionform.php
Normal file
@ -0,0 +1,310 @@
|
|||||||
|
<div class="content-wrapper">
|
||||||
|
<!-- Content Header (Page header) -->
|
||||||
|
<section class="content-header">
|
||||||
|
<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>
|
||||||
|
|
||||||
|
|
||||||
|
<h3><b>SIA - Phase 1</b> </h3>
|
||||||
|
|
||||||
|
<p style=" border-bottom: 6px solid #333;"></p>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<section class="content">
|
||||||
|
Exported at :<?php echo date('l jS \of F Y h:i:s A'); ?>
|
||||||
|
<br/><h3><b>Requisition Form</b></h3>
|
||||||
|
<div style="border:2px solid #333">
|
||||||
|
<center><b><h2 style="color:#e63900">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 class="form-control">
|
||||||
|
<?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 class="form-control">
|
||||||
|
<?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 class="form-control">
|
||||||
|
<?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 style=" color: #e63900;">Add Line Item </h4></center>
|
||||||
|
</div>
|
||||||
|
<div align="left">
|
||||||
|
|
||||||
|
<div class="col-md-12">
|
||||||
|
<label>Material Code</label>
|
||||||
|
<div class="form-control">
|
||||||
|
<?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 class="form-control">
|
||||||
|
<?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 class="form-control">
|
||||||
|
<?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>
|
||||||
5
assets/dist/css/skins/_all-skins.min.css
vendored
5
assets/dist/css/skins/_all-skins.min.css
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user