listing screens UI

This commit is contained in:
saravanakumar_kandasami 2017-07-27 10:37:45 +05:30
parent e1e93c875b
commit 702f01d718
8 changed files with 109 additions and 176 deletions

View File

@ -0,0 +1,4 @@
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); ?>
ERROR - 2017-07-27 06:56:41 --> Severity: Warning --> mysqli_num_rows() expects parameter 1 to be mysqli_result, boolean given C:\xampp\htdocs\siddharth_application\system\database\drivers\mysqli\mysqli_result.php 38
ERROR - 2017-07-27 06:57:51 --> Severity: Warning --> mysqli_num_rows() expects parameter 1 to be mysqli_result, boolean given C:\xampp\htdocs\siddharth_application\system\database\drivers\mysqli\mysqli_result.php 38

View File

@ -1,4 +1,3 @@
<!-- In this purchase order listing , datatable is used for sorting , pagination and etc.. , new design is used for table fro the theme-->
<style> <style>
.pagination { .pagination {

View File

@ -8,19 +8,17 @@
<section class="content"> <section class="content">
<div> <div class="box">
<center><b><h2>Store Requisition Approval List </h2></b></center> <div class="box-header">
<center><h3 class="box-title">Siddharth Industries - Store Requisition Approval List</h3></center>
</div>
<?php <?php
$attributes = array('class' => 'form-label-left Approve ','name' => 'Approve','id' => 'Approve'); $attributes = array('class' => 'form-label-left Approve ','name' => 'Approve','id' => 'Approve');
echo form_open($this->config->base_url().'storerequisitionlist/SearchRequistLists',$attributes); ?> echo form_open($this->config->base_url().'storerequisitionlist/SearchRequistLists',$attributes); ?>
<div class="container-fluid"> <div class="container-fluid">
<br/>
<!-- popup for view store requisition detail --> <!-- popup for view store requisition detail -->
<div class="modal fade" id="myModal" role="dialog"> <div class="modal fade" id="myModal" role="dialog">
<div class="modal-dialog"> <div class="modal-dialog">

View File

@ -3,8 +3,6 @@
</script> </script>
<style> <style>
#ImportPOCheck { #ImportPOCheck {
margin-top:200px; margin-top:200px;
z-index: 1080 !important; z-index: 1080 !important;
@ -15,10 +13,6 @@
padding-right:30% ! important; padding-right:30% ! important;
} }
</style>
<style>
.dataTables_paginate .dataTables_paginate
{ {
margin-top: -5%; margin-top: -5%;
@ -41,27 +35,16 @@
<section class="content"> <section class="content">
<div> <div class="box">
<center><b><h2> Siddharth Industries - Create Purchase Order from Requistion </h2></b></center><br/><br/>
<div class="box-header">
<center><h3 class="box-title">Siddharth Industries - Create Purchase Order from Requistion</h3></center>
</div>
<div class="container-fluid"> <div class="container-fluid">
<div id="content"></div> <div id="content"></div>
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-md-12">
<div class="col-md-3"> <div class="col-md-3 col-md-offset-9" >
</div>
<div class="col-md-3">
</div>
<div class="col-md-3">
<!-- Date range -->
</div>
<div class="col-md-3" >
<br/>
<p> <p>
<div align="right" style="padding-right:10px"> <div align="right" style="padding-right:10px">
<!--<a href="<?php echo base_url(); ?>purchaseorderform/purchaseorder"> <!--<a href="<?php echo base_url(); ?>purchaseorderform/purchaseorder">
@ -190,7 +173,7 @@
</div> </div>
</div> </div>
</div> </div>
</form>
</div> </div>
</div> </div>

View File

@ -9,7 +9,7 @@ if(empty($Status))
?> ?>
<style> <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;}
.modal-content { .modal-content {
width:1000px ! important; width:1000px ! important;
} }
@ -20,36 +20,25 @@ if(empty($Status))
} }
</style> </style>
<div class="content-wrapper"> <div class="content-wrapper">
<section class="content"> <section class="content">
<div class="box">
<div class="box-header">
<CENTER><h3 class="box-title">Siddharth Industries - Purchase Order Approval List</h3></CENTER>
</div>
<div>
<center><b><h2>Purchase Order Approval List </h2></b></center>
<table id="Requisition" class="table table-bordered table-hover" style="background-color:#fff;font-size:12px;"> <table id="Requisition" class="table table-bordered table-hover" style="background-color:#fff;font-size:12px;">
<div align="right" style="padding-right:10px"> <div align="right" style="padding-right:10px">
<div id="content" > </div> <div id="content" > </div>
<div class="modal fade" role="dialog"> <div class="modal fade" role="dialog">
<thead style="background-color:#ddf"> <thead style="background-color:#ddf">
<tr> <tr>
<th>Purchase Order Number</th> <th>Purchase Order Number</th>
<th>Purchase Order Type</th> <th>Purchase Order Type</th>
<th>Cost Center Name</th> <th>Cost Center Name</th>
<th>Cost Center Code</th>
<th>Created By</th>
<th>Department</th>
<th>Created Date</th>
<th>Available Budget Amount</th> <th>Available Budget Amount</th>
<th>Total Order Value</th> <th>Total Order Value</th>
<th>Created By</th>
<th>Created Date</th>
<th>Status</th> <th>Status</th>
<th>Action</th> <th>Action</th>
<th>Remarks</th> <th>Remarks</th>
@ -65,33 +54,27 @@ if(empty($Status))
{ {
$index = $index +1; $index = $index +1;
//echo $index; //echo $index;
?> ?>
<tr id="<?php echo $index ?>" > <tr id="<?php echo $index ?>" >
<td><a target="_blank" href="<?php echo base_url() ?>purchaseorder/CreatePOPrint?PONO=<?php echo $record->PONO ?>&ReqType=<?php echo $record->ReqType ?>" data-id="<%=index%>" data-userid="<?php echo $record->PONO ?>" ><u><?php echo $record->PONO ?> </td> <td><a target="_blank" href="<?php echo base_url() ?>purchaseorder/CreatePOPrint?PONO=<?php echo $record->PONO ?>&ReqType=<?php echo $record->ReqType ?>" data-id="<%=index%>" data-userid="<?php echo $record->PONO ?>" ><u><?php echo $record->PONO ?> </td>
<td><?php echo $record->ReqType ?> </td> <td><?php echo $record->ReqType ?> </td>
<td><?php echo $record->CostCenterName ?> </td> <td><?php echo $record->CostCenterName ?> </td>
<td><?php echo $record->CostCenterCode?></td> <td align="right"><?php echo $record->BudgetAmount ?> </td>
<td align="right"><?php echo $record->TotalOrderValue ?></td>
<td><?php echo $record->FirstName ?></td> <td><?php echo $record->FirstName ?></td>
<td><?php echo $record->DepartmentName?></td>
<td align="right"><?php $Cdt = new DateTime($record->CreatedDate); <td align="right"><?php $Cdt = new DateTime($record->CreatedDate);
$CreatedDate = $Cdt->format('d-m-Y'); $CreatedDate = $Cdt->format('d-m-Y');
echo $CreatedDate; echo $CreatedDate;
?></td> ?></td>
<td align="right"><?php echo $record->BudgetAmount ?> </td>
<td align="right"><?php echo $record->TotalOrderValue ?></td>
<td><?php echo $record->StatusName ?></td> <td><?php echo $record->StatusName ?></td>
<td><?php if($record->StatusCode ==PO_CREATED or $record->StatusCode == PO_ONHOLD or $record->StatusCode == REQITEM_Emergency_PO_CREATED ){ ?> <td><?php if($record->StatusCode == PO_ONHOLD or $record->StatusCode == PO_CREATED or $record->StatusCode == REQITEM_Emergency_PO_CREATED ){ ?>
<select name="selectId" id="selectId" title="Select Your Option" onchange="showvalue('<?php echo $record->PONO ?>','<?php echo $index ; ?>',this.options[this.selectedIndex].value,'<?php echo $record->Remarks ?>');"> <select name="selectId" id="selectId" title="Select Your Option" onchange="showvalue('<?php echo $record->PONO ?>','<?php echo $index ; ?>',this.options[this.selectedIndex].value,'<?php echo $record->Remarks ?>');">
<option value="-1" >Select Option</option> <option value="-1" >Select Option</option>
@ -105,7 +88,7 @@ if(empty($Status))
{ {
?> ?>
-
<?php } ?> <?php } ?>
</td> </td>
@ -130,7 +113,8 @@ if(empty($Status))
</tbody> </tbody>
</div>
</div>
</table> </table>
<script> <script>
function showvalue(PONO,value,Status,Remark) function showvalue(PONO,value,Status,Remark)
@ -225,10 +209,10 @@ alert('please Select Status!');
</script> </script>
<br>
</div>
</div> </div>
</section> </section>
</div> </div>
@ -375,24 +359,14 @@ function(start, end, label) {
}); });
$(function () { $(function () {
$('#Items').DataTable({
"paging": false,
"lengthChange": true,
"searching": false,
"ordering": false,
"info": false,
"autoWidth": false
});
$('#Requisition').DataTable({ $('#Requisition').DataTable({
"paging": true, "paging": true,
"lengthChange": true, "lengthChange": true,
"searching": true, "searching": true,
"ordering": false, "ordering": true,
"info": true, "info": true,
"autoWidth": true, "autoWidth": true
//"data-sort-name":Status
}); });
}); });

View File

@ -1,19 +1,16 @@
<?php
//print_r($AppList);
?>
<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"> <div class="content-wrapper">
<section class="content"> <section class="content">
<div> <div class="box">
<center><b><h2>Requisition Approval List </h2></b></center>
<div class="box-header">
<CENTER><h3 class="box-title">Siddharth Industries - Requisition Approval List</h3></CENTER>
</div>
<?php <?php
$attributes = array('class' => 'form-label-left Approve ','name' => 'Approve','id' => 'Approve'); $attributes = array('class' => 'form-label-left Approve ','name' => 'Approve','id' => 'Approve');
@ -278,7 +275,8 @@
</div> </div>
</div> </div>
</section> </div>
</div> </section>
</div> </div>
<script> <script>

View File

@ -55,16 +55,21 @@ span.highlight {
} }
</style> </style>
<div class="content-wrapper"> <div class="content-wrapper">
<!-- Content Header (Page header) -->
<section class="content-header">
<h1>
<CENTER>Siddharth Industries Requisition Listing</CENTER>
</h1>
</section>
<section class="content"> <section class="content">
<div class="row"> <div class="row">
<div class="col-xs-12 text-right"> <div class="col-xs-12">
<div class="box">
<div class="box-header">
<CENTER><h3 class="box-title">Siddharth Industries - Requisition Listing</h3></CENTER>
</div><!-- /.box-header -->
<?php if($DraftCount > 0 ) {?><p>
<span class="highlight">The Requisition No <b><?php echo $ReqNo;?></b> is in Draft status.</span> Please act on the requisition.<span class="highlight">Then only you can raise New Requisition. </span>
</p> <?php } ?>
<div class="row">
<div class="col-md-12 text-right" style="margin-bottom:-3%;">
<div class="form-group"> <div class="form-group">
<?php if($DraftCount == 0) <?php if($DraftCount == 0)
{ ?> { ?>
@ -73,20 +78,6 @@ span.highlight {
</div> </div>
</div> </div>
</div> </div>
<div class="row">
<div class="col-xs-12">
<div class="box">
<div class="box-header">
<CENTER><h3 class="box-title"></h3></CENTER>
<div class="box-tools">
</form>
</div>
</div><!-- /.box-header -->
<?php if($DraftCount > 0 ) {?><p>
<span class="highlight">The Requisition No <b><?php echo $ReqNo;?></b> is in Draft status.</span> Please act on the requisition.<span class="highlight">Then only you can raise New Requisition. </span>
</p> <?php } ?>
<table id="Requisition" class="table table-bordered table-hover" style="background-color:#fff;font-size:12px;"> <table id="Requisition" class="table table-bordered table-hover" style="background-color:#fff;font-size:12px;">
<thead style="background-color:#ddf"> <thead style="background-color:#ddf">
<tr> <tr>

View File

@ -26,43 +26,29 @@ span.highlight {
} }
</style> </style>
<div class="content-wrapper"> <div class="content-wrapper">
<section class="content-header">
<h1>
<CENTER>Siddharth Industries - Requisition Listing</CENTER>
</h1>
</section>
<section class="content"> <section class="content">
<div class="row">
<div class="col-xs-12 text-right">
<div class="form-group">
<?php if($DraftCount == 0)
{ ?>
<a class="btn btn-primary" href="<?php echo base_url(); ?>storerequisitionlist/addstores"/>Raise Store Requisition</a><?php
}?>
</div>
</div>
</div>
<div class="row"> <div class="row">
<div class="col-xs-12"> <div class="col-xs-12">
<div class="box"> <div class="box">
<div class="box-header"> <div class="box-header">
<CENTER><h3 class="box-title"></h3></CENTER> <CENTER><h3 class="box-title">Siddharth Industries - Requisition Listing</h3></CENTER>
<div class="box-tools"></div>
</div> </div>
<?php if($DraftCount > 0 ) {?><p> <?php if($DraftCount > 0 ) {?><p>
<span class="highlight">The Store Requisition No <b><?php echo $StoreReqNo;?></b> is in Draft status.</span> Please act on the requisition.<span class="highlight">Then only you can raise New StoreRequisition. </span> <span class="highlight">The Store Requisition No <b><?php echo $StoreReqNo;?></b> is in Draft status.</span> Please act on the requisition.<span class="highlight">Then only you can raise New StoreRequisition. </span>
</p> <?php } ?> </p> <?php } ?>
<div class="row">
<div class="col-xs-12 text-right" style="margin-bottom:-3%;">
<div class="form-group">
<?php if($DraftCount == 0)
{ ?>
<a class="btn btn-primary" href="<?php echo base_url(); ?>storerequisitionlist/addstores"/>Raise Store Requisition</a><?php
}?>
</div>
</div>
</div>
<table id="Requisition" class="table table-bordered table-hover" style="background-color:#fff;font-size:12px;"> <table id="Requisition" class="table table-bordered table-hover" style="background-color:#fff;font-size:12px;">
<thead style="background-color:#ddf"> <thead style="background-color:#ddf">
<tr> <tr>