header changed and requisition page created

This commit is contained in:
saravanakumar_kandasami 2017-04-01 18:29:25 +05:30
parent f113216790
commit 74aea3790b
5 changed files with 507 additions and 112 deletions

View 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);
}
}
?>

View File

@ -1,5 +1,4 @@
</style>
<div class="content-wrapper">
<!-- Content Header (Page header) -->
@ -7,7 +6,7 @@
<center>
<h1><b>Purchase Order</b> </h1>
</center>
<div align="right">
</section>

View File

@ -20,39 +20,38 @@
color:red;
font-weight: normal;
}
</style>
<!-- jQuery 2.1.4 -->
<script src="<?php echo base_url(); ?>assets/js/jQuery-2.1.4.min.js"></script>
<script type="text/javascript">
var baseURL = "<?php echo base_url(); ?>";
</script>
<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/style.min.css"/>
<!-- Mainly scripts -->
<script href="<?php echo base_url();?>assets/js/plugins/metisMenu/jquery.metisMenu.js"></script>
<script href="<?php echo base_url();?>assets/js/plugins/slimscroll/jquery.slimscroll.min.js"></script>
<script href="<?php echo base_url();?>assets/js/plugins/jeditable/jquery.jeditable.js"></script>
<!-- Data Tables -->
<script href="<?php echo base_url();?>assets/js/plugins/dataTables/jquery.dataTables.js"></script>
<script href="<?php echo base_url();?>assets/js/plugins/dataTables/dataTables.bootstrap.js"></script>
<script href="<?php echo base_url();?>assets/js/plugins/dataTables/dataTables.responsive.js"></script>
<script href="<?php echo base_url();?>assets/js/plugins/dataTables/dataTables.tableTools.min.js"></script>
<link rel="stylesheet" href="//code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css">
<script src="//code.jquery.com/jquery-1.10.2.js"></script>
<script src="//code.jquery.com/ui/1.11.4/jquery-ui.js"></script>
<script src="<?php echo base_url();?>assets/js/underscore.js"></script>
<script src="<?php echo base_url();?>assets/js/jquery.autocomplete.js"></script>
<script src="<?php echo base_url();?>assets/js/jquery.validate.js"></script>
<script src="<?php echo base_url();?>assets/js/jquery.validate-rules.js"></script>
<script src="<?php echo base_url();?>assets/js/jquery.min"></script>
<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/style.min.css"/>
<!-- Mainly scripts -->
<script href="<?php echo base_url();?>assets/js/plugins/metisMenu/jquery.metisMenu.js"></script>
<script href="<?php echo base_url();?>assets/js/plugins/slimscroll/jquery.slimscroll.min.js"></script>
<script href="<?php echo base_url();?>assets/js/plugins/jeditable/jquery.jeditable.js"></script>
<!-- Data Tables -->
<script href="<?php echo base_url();?>assets/js/plugins/dataTables/jquery.dataTables.js"></script>
<script href="<?php echo base_url();?>assets/js/plugins/dataTables/dataTables.bootstrap.js"></script>
<script href="<?php echo base_url();?>assets/js/plugins/dataTables/dataTables.responsive.js"></script>
<script href="<?php echo base_url();?>assets/js/plugins/dataTables/dataTables.tableTools.min.js"></script>
<link rel="stylesheet" href="//code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css">
<script src="//code.jquery.com/jquery-1.10.2.js"></script>
<script src="//code.jquery.com/ui/1.11.4/jquery-ui.js"></script>
<script src="<?php echo base_url();?>assets/js/underscore.js"></script>
<script src="<?php echo base_url();?>assets/js/jquery.autocomplete.js"></script>
<script src="<?php echo base_url();?>assets/js/jquery.validate.js"></script>
<script src="<?php echo base_url();?>assets/js/jquery.validate-rules.js"></script>
<script src="<?php echo base_url();?>assets/js/jquery.min"></script>
<!-- Custom and plugin javascript -->
@ -63,7 +62,7 @@
<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">
<title>Siddharth Industries</title>
<!-- Data Tables-->
<link href="<?php echo base_url();?>assets/css/plugins/dataTables/dataTables.bootstrap.css"/>
@ -87,89 +86,118 @@
<span class="logo-lg"><b>Siddharth Industries</b></span>
</a>
<!-- 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-->
<div class="navbar-custom-menu">
<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>
<div class="navbar-custom-menu collapse navbar-collapse" id="myNavbar">
<ul class="nav navbar-nav">
<!-- User Account: style can be found in dropdown.less -->
<?php
if($role == ROLE_ADMIN)
{
?>
<li class="treeview">
<a href="<?php echo base_url(); ?>purchaseorderListing" >
<i class="fa fa-thumb-tack"></i>
<span>Purchase Order</span>
<li class="treeview">
<a href="<?php echo base_url(); ?>dashboard">
<i class="fa fa-dashboard"></i> <span>Dashboard</span></i>
</a>
</li>
<?php
}
?>
<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
if($role == ROLE_ADMIN)
{
?>
<li class="treeview">
<a href="<?php echo base_url(); ?>purchaseorderListing" >
<i class="fa fa-thumb-tack"></i>
<span>Purchase Order</span>
</a>
</li>
<?php
}
?>
<?php
if($role == ROLE_ADMIN || $role == ROLE_MANAGER || $role == ROLE_SALES)
{
?>
<li class="treeview">
<a href="<?php echo base_url(); ?>supplierListing" >
<i class="fa fa-users"></i>
<span class="nav-label">Supplier Details</span>
</a>
</li>
<li class="treeview">
<a href="<?php echo base_url(); ?>costListing" >
<i class="fa fa-cart-plus"></i>
<span class="nav-label">Cost Details</span>
</a>
</li>
<li class="treeview">
<a href="<?php echo base_url(); ?>assetListing" >
<i class="fa fa-cogs"></i>
<span class="nav-label">Asset Details</span>
</a>
</li>
<?php
if($role == ROLE_ADMIN)
{
?>
<li class="treeview">
<a href="<?php echo base_url(); ?>employeeListing" >
<i class="fa fa-cogs"></i>
<span class="nav-label">Employee Details</span>
</a>
</li>
<?php
}
?>
<!--<li class="treeview">
<a href="#" >
<i class="fa fa-thumb-tack"></i>
<span>Task Status</span>
</a>
</li>-->
<li class="treeview">
<a href="<?php echo base_url();?>rawmaterialListing" >
<i class="fa fa-files-o"></i>
<span>Material Master</span>
</a>
</li>
<?php
}
if($role == ROLE_ADMIN )
{
?>
<li class="treeview">
<a href="<?php echo base_url(); ?>userListing">
<i class="fa fa-users"></i>
<span>Users</span>
</a>
</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>
<?php
if($role == ROLE_ADMIN || $role == ROLE_MANAGER || $role == ROLE_SALES)
{
?>
<li class="treeview">
<a href="<?php echo base_url(); ?>supplierListing" >
<i class="fa fa-users"></i>
<span class="nav-label">Supplier Details</span>
</a>
</li>
<li class="treeview">
<a href="<?php echo base_url(); ?>costListing" >
<i class="fa fa-cart-plus"></i>
<span class="nav-label">Cost Details</span>
</a>
</li>
<li class="treeview">
<a href="<?php echo base_url(); ?>assetListing" >
<i class="fa fa-cogs"></i>
<span class="nav-label">Asset Details</span>
</a>
</li>
<?php
if($role == ROLE_ADMIN)
{
?>
<li class="treeview">
<a href="<?php echo base_url(); ?>employeeListing" >
<i class="fa fa-cogs"></i>
<span class="nav-label">Employee Details</span>
</a>
</li>
<?php
}
?>
<!--<li class="treeview">
<a href="#" >
<i class="fa fa-thumb-tack"></i>
<span>Task Status</span>
</a>
</li>-->
<li class="treeview">
<a href="<?php echo base_url(); ?>rawmaterialListing" >
<i class="fa fa-files-o"></i>
<span>Material Master</span>
</a>
</li>
<?php
}
if($role == ROLE_ADMIN )
{
?>
<li class="treeview">
<a href="<?php echo base_url(); ?>userListing">
<i class="fa fa-users"></i>
<span>Users</span>
</a>
</li>
<!--<li class="treeview">
<a href="#" >
<i class="fa fa-files-o"></i>
@ -208,7 +236,4 @@
</div>
</nav>
</header>
</div>
<!-- Left side column. contains the logo and sidebar -->
</body>
</html>

View 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">&times;</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>

File diff suppressed because one or more lines are too long