reports and ui changes
This commit is contained in:
parent
b0de744efb
commit
a2dc2b63ff
@ -392,6 +392,8 @@ class monthlypay extends BaseController
|
|||||||
{
|
{
|
||||||
$EmpID = $this->input->post('emp');
|
$EmpID = $this->input->post('emp');
|
||||||
$Date =$this->input->post('date');
|
$Date =$this->input->post('date');
|
||||||
|
$CUR = date('Y-m-d',strtotime($Date));
|
||||||
|
|
||||||
$From = $this->input->post('timepicker1');
|
$From = $this->input->post('timepicker1');
|
||||||
$To = $this->input->post('timepicker2');
|
$To = $this->input->post('timepicker2');
|
||||||
$Shift = $this->input->post('shift');
|
$Shift = $this->input->post('shift');
|
||||||
@ -399,16 +401,27 @@ class monthlypay extends BaseController
|
|||||||
$Reason= $this->input->post('Reason');
|
$Reason= $this->input->post('Reason');
|
||||||
$Createdby = $this->session->userdata('userId');
|
$Createdby = $this->session->userdata('userId');
|
||||||
|
|
||||||
|
|
||||||
$dt = new DateTime('now', new DateTimeZone('Asia/Kolkata'));
|
$dt = new DateTime('now', new DateTimeZone('Asia/Kolkata'));
|
||||||
$Createdtime = $dt->format('Y-m-d H:i:s');
|
$Createdtime = $dt->format('Y-m-d H:i:s');
|
||||||
|
if(!empty($EmpID)){
|
||||||
$Permissiondata = array('EmpID'=>$EmpID,'Date'=>$Date,'From'=>$From,'To'=>$To,'Shift'=>$Shift,'Permission'=>$Permission,'Reason'=>$Reason,'Createby'=>$Createdby,'Createdtime'=>$Createdtime);
|
$Permissiondata = array('EmpID'=>$EmpID,'Date'=>$CUR,'From'=>$From,'To'=>$To,'Shift'=>$Shift,'Permission'=>$Permission,'Reason'=>$Reason,'Createby'=>$Createdby,'Createdtime'=>$Createdtime);
|
||||||
|
}
|
||||||
$result = $this->monthlypay_model->addper($Permissiondata);
|
$result = $this->monthlypay_model->addper($Permissiondata);
|
||||||
redirect('monthlypay/permissionlist');
|
|
||||||
|
if(!empty($result)){
|
||||||
|
echo "<script type='text/javascript'>alert('Successfully Created Permission Form');
|
||||||
|
window.location = 'Permissionlist';
|
||||||
|
</script>";
|
||||||
|
|
||||||
}
|
}
|
||||||
|
else{
|
||||||
|
echo "<script type='text/javascript'>alert('Not Created Permission Form');
|
||||||
|
window.location = 'Permission';
|
||||||
|
|
||||||
|
</script>";
|
||||||
|
}
|
||||||
|
}
|
||||||
/**
|
/**
|
||||||
* To get permission slip details for listing
|
* To get permission slip details for listing
|
||||||
*/
|
*/
|
||||||
@ -440,6 +453,7 @@ class monthlypay extends BaseController
|
|||||||
$mpdf->WriteHTML($html);
|
$mpdf->WriteHTML($html);
|
||||||
$mpdf->Output("Permission".$data.'.pdf','I',$php);
|
$mpdf->Output("Permission".$data.'.pdf','I',$php);
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -337,11 +337,12 @@ class payslip extends BaseController
|
|||||||
|
|
||||||
if(empty($excel)){
|
if(empty($excel)){
|
||||||
|
|
||||||
$mpdf=new mPDF('utf-8','A4-P',9, 12,12, 10, 82, 38, 4, 6);
|
$mpdf=new mPDF('utf-8','A4-P',10, 12,12, 10, 10, 38, 4, 6);
|
||||||
|
$HTMLFooter = $this->load->view('includes/bankreport_footer',$data, true);
|
||||||
$mpdf->SetDisplayMode('fullpage');
|
$mpdf->SetDisplayMode('fullpage');
|
||||||
$mpdf->SetHTMLHeader($HtmlHeading);
|
$mpdf->SetHTMLHeader($HtmlHeading);
|
||||||
$mpdf->setFooter($HTMLFooter . "Page {PAGENO} of {nb}");
|
$mpdf->setFooter($HTMLFooter . "Page {PAGENO} of {nb}");
|
||||||
$mpdf->setFooter("Page {PAGENO} of {nb}");
|
// $mpdf->setFooter("Page {PAGENO} of {nb}");
|
||||||
$mpdf->list_indent_first_level = 1;
|
$mpdf->list_indent_first_level = 1;
|
||||||
$mpdf->setAutoTopMargin = 'stretch';
|
$mpdf->setAutoTopMargin = 'stretch';
|
||||||
$mpdf->setAutoBottomMargin = 'stretch';
|
$mpdf->setAutoBottomMargin = 'stretch';
|
||||||
|
|||||||
@ -36,7 +36,7 @@ class quality extends BaseController
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* To load the report list
|
* For load the report list
|
||||||
*/
|
*/
|
||||||
public function reportList()
|
public function reportList()
|
||||||
{
|
{
|
||||||
@ -45,6 +45,17 @@ class quality extends BaseController
|
|||||||
$this->loadViews("reportmasterlist", $this->global, $data , NULL);
|
$this->loadViews("reportmasterlist", $this->global, $data , NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* For quality Inward Report list
|
||||||
|
*/
|
||||||
|
public function reportListInward()
|
||||||
|
{
|
||||||
|
$data['records'] = $this->quality_model->getTestMasterforListInward();
|
||||||
|
|
||||||
|
$this->global['pageTitle'] = 'Resico : Report List Inward';
|
||||||
|
$this->loadViews("reportmasterlist_inward", $this->global, $data , NULL);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* To add new Specifications
|
* To add new Specifications
|
||||||
*/
|
*/
|
||||||
|
|||||||
@ -308,10 +308,15 @@ join T_DepartmentDetails as Dep on Dep.DEPCode=Emp.Departmentcode where Emp.IsA
|
|||||||
function addper($Permissiondata)
|
function addper($Permissiondata)
|
||||||
{
|
{
|
||||||
|
|
||||||
//print_r($Permissiondata);die;
|
$this->db->trans_start();
|
||||||
$this->db->insert('T_Permission',$Permissiondata);
|
$this->db->insert('T_Permission', $Permissiondata);
|
||||||
$reuslt = $this->db->insert_id();
|
|
||||||
return $reuslt;
|
$Permission = $this->db->affected_rows();
|
||||||
|
|
||||||
|
$this->db->trans_complete();
|
||||||
|
|
||||||
|
return $Permission;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function perlist()
|
function perlist()
|
||||||
|
|||||||
@ -38,7 +38,7 @@ class supplier_model extends CI_Model
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* To get Payment information
|
* To get Payment information
|
||||||
* @param number $payment : Optional : To get payment value
|
* @param number $payment : Optional : This is payment value
|
||||||
* @return array $result : This is result of the query(payment information)
|
* @return array $result : This is result of the query(payment information)
|
||||||
*/
|
*/
|
||||||
function getPaymentTerms($payment = '')
|
function getPaymentTerms($payment = '')
|
||||||
@ -52,7 +52,7 @@ class supplier_model extends CI_Model
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* To Check PAN number is already exists are not
|
* To Check PAN number is already exists are not
|
||||||
* @param number $SID : Optional : To get Supplier ID
|
* @param number $SID : Optional : This is Supplier ID
|
||||||
* @param number $PAN : To get PAN number from the controller - for check purpose if already exists are not
|
* @param number $PAN : To get PAN number from the controller - for check purpose if already exists are not
|
||||||
* @return $query->result_array() : This is result of the query (PAN Number information based on supplier ID)
|
* @return $query->result_array() : This is result of the query (PAN Number information based on supplier ID)
|
||||||
*/
|
*/
|
||||||
@ -74,8 +74,8 @@ class supplier_model extends CI_Model
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* To Check GST number is already exists are not
|
* To Check GST number is already exists are not
|
||||||
* @param number $SID :Optional: To get Supplier ID
|
* @param number $SID :Optional: This is Supplier ID
|
||||||
* @param number $GST : To get GST number from the controller - for check purpose if already exists are not
|
* @param number $GST : This is GST number from the controller - for check purpose if already exists are not
|
||||||
* @return $query->result_array() : This is result of the query (This is GST Number information based on supplier ID)
|
* @return $query->result_array() : This is result of the query (This is GST Number information based on supplier ID)
|
||||||
*/
|
*/
|
||||||
function checkGST($GST,$SID = '')
|
function checkGST($GST,$SID = '')
|
||||||
@ -96,7 +96,7 @@ class supplier_model extends CI_Model
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* To Store the values
|
* To Store the values
|
||||||
* @param number $supplier : To get all the information of Supplier from the controller
|
* @param number $supplier : This will have all the Supplier information
|
||||||
* @return $SID : This will return how many value are inserted (return as number/count)
|
* @return $SID : This will return how many value are inserted (return as number/count)
|
||||||
*/
|
*/
|
||||||
function addNewsupplier($supplier)
|
function addNewsupplier($supplier)
|
||||||
@ -108,7 +108,7 @@ class supplier_model extends CI_Model
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* To get Supplier information on respective supplier id
|
* To get Supplier information on respective supplier id
|
||||||
* @param number $supplierID : Optional : To get Supplier ID
|
* @param number $supplierID : Optional : This is Supplier ID
|
||||||
* @return $query->result() : This is result of the query
|
* @return $query->result() : This is result of the query
|
||||||
*/
|
*/
|
||||||
function getSupplierInfo($supplierID='')
|
function getSupplierInfo($supplierID='')
|
||||||
@ -123,7 +123,7 @@ class supplier_model extends CI_Model
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* To get the Supplier Address on respective Supplier ID
|
* To get the Supplier Address on respective Supplier ID
|
||||||
* @param number $supplierID : To get Supplier ID from the controller
|
* @param number $supplierID : This is Supplier ID
|
||||||
* @return $query->result_array() : This is result of the query (Supplier's address information)
|
* @return $query->result_array() : This is result of the query (Supplier's address information)
|
||||||
*/
|
*/
|
||||||
function GetSupplierAddress($supplierID)
|
function GetSupplierAddress($supplierID)
|
||||||
@ -137,8 +137,8 @@ class supplier_model extends CI_Model
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* To Update the values of supplier on respective Supplier ID
|
* To Update the values of supplier on respective Supplier ID
|
||||||
* @param number $supplier : To get all the information of Supplier from the controller
|
* @param number $supplier : Thiss will have all theedited Supplier information
|
||||||
* @param number $supplierID : To get Supplier ID from the controller
|
* @param number $supplierID : This is Supplier ID
|
||||||
*/
|
*/
|
||||||
function UpdateSupplier($supplier, $supplierID)
|
function UpdateSupplier($supplier, $supplierID)
|
||||||
{
|
{
|
||||||
@ -149,8 +149,8 @@ class supplier_model extends CI_Model
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* To updated the Supplier information
|
* To updated the Supplier information
|
||||||
* @param number $supplier : To get all the information of Supplier from the controller
|
* @param number $supplier : This will have all the Supplier information
|
||||||
* @param number $supplierID : To get Supplier ID from the controller
|
* @param number $supplierID : This is Supplier ID
|
||||||
*
|
*
|
||||||
* Note : This function Temporary not in use
|
* Note : This function Temporary not in use
|
||||||
*/
|
*/
|
||||||
@ -163,7 +163,7 @@ class supplier_model extends CI_Model
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* To store the Supplier Certificate details
|
* To store the Supplier Certificate details
|
||||||
* @param number $cerificate : To get all the information of cerficate from the controller
|
* @param number $cerificate : This will have all the Supplier information of from the controller
|
||||||
*
|
*
|
||||||
* Note : This function Temporary not in use
|
* Note : This function Temporary not in use
|
||||||
*/
|
*/
|
||||||
|
|||||||
@ -5,11 +5,8 @@ class User_model extends CI_Model
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This function is used to get the user listing count
|
* To get the user list
|
||||||
* @param string $searchText : This is optional search text
|
* @return array $result : result of the query
|
||||||
* @param number $page : This is pagination offset
|
|
||||||
* @param number $segment : This is pagination limit
|
|
||||||
* @return array $result : This is result
|
|
||||||
*/
|
*/
|
||||||
function userListing()
|
function userListing()
|
||||||
{
|
{
|
||||||
@ -29,6 +26,11 @@ class User_model extends CI_Model
|
|||||||
return $result;
|
return $result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* To get user's role name
|
||||||
|
* @param $UserId :
|
||||||
|
* @return array $result : result of the query
|
||||||
|
*/
|
||||||
function GetRoleNameByUserID($UserId)
|
function GetRoleNameByUserID($UserId)
|
||||||
{
|
{
|
||||||
$subQuery = 'select roleId, role from tbl_roles
|
$subQuery = 'select roleId, role from tbl_roles
|
||||||
|
|||||||
@ -638,7 +638,7 @@ $(document).ready(function() {
|
|||||||
table = $('#tab').DataTable( {
|
table = $('#tab').DataTable( {
|
||||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
"<'table-responsive'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||||
buttons: [
|
buttons: [
|
||||||
{
|
{
|
||||||
extend: 'excelHtml5',
|
extend: 'excelHtml5',
|
||||||
|
|||||||
@ -476,7 +476,7 @@ $(document).ready(function() {
|
|||||||
table = $('#cc').DataTable( {
|
table = $('#cc').DataTable( {
|
||||||
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||||
"<'row'<'col-md-6'><'col-md-6'>>" +
|
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||||
"<'row'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
"<'table-responsive'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||||
buttons: [
|
buttons: [
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
4
application/views/includes/bankreport_footer.php
Normal file
4
application/views/includes/bankreport_footer.php
Normal file
File diff suppressed because one or more lines are too long
@ -19,7 +19,9 @@
|
|||||||
<!-- daterange picker -->
|
<!-- daterange picker -->
|
||||||
<link rel="stylesheet" href="<?php echo base_url(); ?>assets/plugins/daterangepicker/daterangepicker.css">
|
<link rel="stylesheet" href="<?php echo base_url(); ?>assets/plugins/daterangepicker/daterangepicker.css">
|
||||||
|
|
||||||
|
<!-- web favicon -->
|
||||||
|
<!-- This is needed for IE -->
|
||||||
|
<link rel="icon" href="<?php echo base_url(); ?>assets/dist/img/RI_favicon.png"/>
|
||||||
|
|
||||||
<script type="text/javascript" src="<?php echo base_url();?>assets/js/jquery-1.12.4.js"></script>
|
<script type="text/javascript" src="<?php echo base_url();?>assets/js/jquery-1.12.4.js"></script>
|
||||||
<!-- jquery-1.12.4.min -->
|
<!-- jquery-1.12.4.min -->
|
||||||
@ -169,7 +171,7 @@ $full_path = $path .$pic;
|
|||||||
<!-- Logo -->
|
<!-- Logo -->
|
||||||
<a href="<?php echo base_url(); ?>dashboard" class="logo">
|
<a href="<?php echo base_url(); ?>dashboard" class="logo">
|
||||||
<!-- mini logo for sidebar mini 50x50 pixels -->
|
<!-- mini logo for sidebar mini 50x50 pixels -->
|
||||||
<span class="logo-mini"><b>SI</b></span>
|
<span class="logo-mini"><b>RI</b></span>
|
||||||
<!-- logo for regular state and mobile devices -->
|
<!-- logo for regular state and mobile devices -->
|
||||||
<span class="logo-lg"><b>RESICO</b></span>
|
<span class="logo-lg"><b>RESICO</b></span>
|
||||||
</a>
|
</a>
|
||||||
@ -549,10 +551,14 @@ $full_path = $path .$pic;
|
|||||||
</a>
|
</a>
|
||||||
<ul class="treeview-menu">
|
<ul class="treeview-menu">
|
||||||
<li><a href="<?php echo base_url(); ?>attendance">
|
<li><a href="<?php echo base_url(); ?>attendance">
|
||||||
<i class="fa fa-refresh fa-spin "></i>
|
<i class="fa fa-refresh"></i>
|
||||||
Monthly Attendance
|
Monthly Attendance
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
<!-- <li> <a href="<?php echo base_url(); ?>permissionlist">
|
||||||
|
<i class="fa fa-user-circle"></i>
|
||||||
|
Permission Slip
|
||||||
|
</a></li>-->
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
@ -640,7 +646,7 @@ $full_path = $path .$pic;
|
|||||||
<i class="fa fa-upload"></i>
|
<i class="fa fa-upload"></i>
|
||||||
<span>View Material Inspection Report</span>
|
<span>View Material Inspection Report</span>
|
||||||
</a></li>
|
</a></li>
|
||||||
<li> <a href="<?php echo base_url(); ?>quality">
|
<!-- <li> <a href="<?php echo base_url(); ?>quality">
|
||||||
<i class="fa fa-list-alt"></i>
|
<i class="fa fa-list-alt"></i>
|
||||||
<span>Product Test Specification Master</span>
|
<span>Product Test Specification Master</span>
|
||||||
</a></li>
|
</a></li>
|
||||||
@ -648,11 +654,10 @@ $full_path = $path .$pic;
|
|||||||
<i class="fa fa-table"></i>
|
<i class="fa fa-table"></i>
|
||||||
<span>Product Test Report</span>
|
<span>Product Test Report</span>
|
||||||
</a></li>
|
</a></li>
|
||||||
|
|
||||||
<li> <a href="<?php echo base_url(); ?>qualityreportlistinward">
|
<li> <a href="<?php echo base_url(); ?>qualityreportlistinward">
|
||||||
<i class="fa fa-hand-o-down"></i>
|
<i class="fa fa-hand-o-down"></i>
|
||||||
<span>Inward Material Test Report</span>
|
<span>Inward Material Test Report</span>
|
||||||
</a></li>
|
</a></li> -->
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -316,4 +316,3 @@
|
|||||||
|
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
1406
application/views/permission.php
Normal file
1406
application/views/permission.php
Normal file
File diff suppressed because it is too large
Load Diff
104
application/views/permissionlist.php
Normal file
104
application/views/permissionlist.php
Normal file
@ -0,0 +1,104 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<style>
|
||||||
|
span.highlight {
|
||||||
|
background-color: yellow;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="content-wrapper">
|
||||||
|
|
||||||
|
<section class="content">
|
||||||
|
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-xs-12">
|
||||||
|
<div class="box">
|
||||||
|
<div class="box-header">
|
||||||
|
<CENTER><h3 class="box-title">Siddharth Industries - Employee Permission Slip Listing</h3></CENTER>
|
||||||
|
|
||||||
|
</div><!-- /.box-header -->
|
||||||
|
<!-- <?php if($DraftCount > 0 ) {?><p>
|
||||||
|
<span class="highlight">S No <b><?php echo $SNo;?></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">
|
||||||
|
|
||||||
|
<a class="btn btn-primary" onclick="Test()" href="<?php echo base_url(); ?>permission">PERMISSION SLIP</a>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<br/>
|
||||||
|
<br/>
|
||||||
|
<table id="Permission" class="table table-bordered table-hover" style="background-color:#fff;font-size:12px;">
|
||||||
|
<thead style="background-color:#ddf">
|
||||||
|
<tr>
|
||||||
|
<th>S No</th>
|
||||||
|
<th>EmpID</th>
|
||||||
|
<th>Permission Time </th>
|
||||||
|
<th>Shift</th>
|
||||||
|
<th>From</th>
|
||||||
|
<th>To</th>
|
||||||
|
<th>Reason</th>
|
||||||
|
<th>Action</th>
|
||||||
|
|
||||||
|
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<?php
|
||||||
|
if(!empty($permissionlist))
|
||||||
|
{
|
||||||
|
foreach($permissionlist as $record)
|
||||||
|
{ //sprint_r($record);
|
||||||
|
?>
|
||||||
|
<tr>
|
||||||
|
<td><?php echo $record->SNO ?></td>
|
||||||
|
<td><?php echo $record->EmpID ?></td>
|
||||||
|
<td><?php echo $record->Permission ?></td>
|
||||||
|
<td><?php echo $record->Shift ?></td>
|
||||||
|
<td><?php echo $record->From ?></td>
|
||||||
|
<td> <?php echo $record->To ?></td>
|
||||||
|
|
||||||
|
|
||||||
|
<td><?php echo $record->Reason?></td>
|
||||||
|
|
||||||
|
<td> <a target="blank" href="<?php echo base_url('monthlypay/permissionpdf').'/'.$record->SNO?>" class="fa fa-file-o"></a></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<?php
|
||||||
|
}
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
</div>
|
||||||
|
<script>
|
||||||
|
$(function () {
|
||||||
|
|
||||||
|
$('#Permission').DataTable({
|
||||||
|
"paging": true,
|
||||||
|
"lengthChange": true,
|
||||||
|
"searching": true,
|
||||||
|
"ordering": true,
|
||||||
|
"aaSorting": [[ 0, "desc" ]],
|
||||||
|
"info": true,
|
||||||
|
"autoWidth": true
|
||||||
|
|
||||||
|
});
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
|
||||||
164
application/views/permissionpdf.php
Normal file
164
application/views/permissionpdf.php
Normal file
@ -0,0 +1,164 @@
|
|||||||
|
<?php
|
||||||
|
//print_r($Permission);
|
||||||
|
$SNO='';
|
||||||
|
$EmpID='';
|
||||||
|
$Permission='';
|
||||||
|
$Shift='';
|
||||||
|
$From='';
|
||||||
|
$To ='';
|
||||||
|
$Reason ='';
|
||||||
|
$firstname = '';
|
||||||
|
$lastname = '';
|
||||||
|
$DepartmentName = '';
|
||||||
|
$Date='';
|
||||||
|
//print_r($per);die;
|
||||||
|
foreach($per as $res => $per)
|
||||||
|
{
|
||||||
|
//print_r($per);
|
||||||
|
$SNO = $per->SNO;
|
||||||
|
$EmpID=$per->EmpID;
|
||||||
|
$Permission=$per->Permission;
|
||||||
|
$Shift=$per->Shift;
|
||||||
|
$From=$per->From;
|
||||||
|
$To =$per->To;
|
||||||
|
$Reason =$per->Reason;
|
||||||
|
$firstname = $per->FirstName;
|
||||||
|
$lastname = $per->LastName;
|
||||||
|
$DepartmentName = $per->DepartmentName;
|
||||||
|
$Date =$per->Date;
|
||||||
|
$Date = date_format(date_create($date),'d-m-Y');
|
||||||
|
}
|
||||||
|
|
||||||
|
?>
|
||||||
|
<br><br><br><br><br>
|
||||||
|
<table style="border-collapse: collapse;font-size:16px;" border="1" width="100%" >
|
||||||
|
<tbody>
|
||||||
|
<tr >
|
||||||
|
<td colspan="4" align="center">
|
||||||
|
<p class="western"><span style="color: #000000; font-family: Calibri, serif;"><h2>SIDDHARTH INDUSTRIES</h2></span> </p>
|
||||||
|
<p class="western"><span style="color: #000000; font-family: Calibri, serif;"><h2>EMPLOYEE PERMISSION / ON DUTY SLIP</h2></span></p>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<p class="western"><span style="color: #000000;"><span style="font-family: Calibri, serif;"><span style="font-size: large;">SNO</span></span></span></p>
|
||||||
|
</td>
|
||||||
|
<td><center><?php echo $SNO?></center></td>
|
||||||
|
<td>
|
||||||
|
<p class="western"><span style="color: #000000;"><span style="font-family: Calibri, serif;"><span style="font-size: large;">DATE</span></span></span></p>
|
||||||
|
</td>
|
||||||
|
<td><center><?php echo $Date?></center></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<p class="western"><span style="color: #000000;"><span style="font-family: Calibri, serif;"><span style="font-size: large;">EMPLOYEE NAME</span></span></span></p>
|
||||||
|
</td>
|
||||||
|
<td ><center><?php echo $firstname.'-'.$lastname.' '.$EmpID; ?></center></td>
|
||||||
|
<td >
|
||||||
|
<p class="western"><span style="color: #000000;"><span style="font-family: Calibri, serif;"><span style="font-size: large;">DEPARTMENT</span></span></span></p>
|
||||||
|
</td>
|
||||||
|
<td><center><?php echo $DepartmentName; ?></center></td>
|
||||||
|
</tr>
|
||||||
|
<tr >
|
||||||
|
<td >
|
||||||
|
<p class="western"><span style="color: #000000;"><span style="font-family: Calibri, serif;"><span style="font-size: large;">FROM </span></span></span></p>
|
||||||
|
</td>
|
||||||
|
<td ><center><?php echo $From; ?></center></td>
|
||||||
|
<td >
|
||||||
|
<p class="western"><span style="color: #000000;"> <span style="font-family: Calibri, serif;"><span style="font-size: large;">TO</span></span></span></p>
|
||||||
|
</td>
|
||||||
|
<td ><center><?php echo $To; ?></center></td>
|
||||||
|
</tr>
|
||||||
|
<tr >
|
||||||
|
<td >
|
||||||
|
<p class="western"><span style="color: #000000;"><span style="font-family: Calibri, serif;"><span style="font-size: large;">PERMISSION TIME </span></span></span></p>
|
||||||
|
</td>
|
||||||
|
<td ><center><?php echo $Permission; ?></center></td>
|
||||||
|
<td >
|
||||||
|
<p class="western"><span style="color: #000000;"><span style="font-family: Calibri, serif;"><span style="font-size: large;">SHIFT</span></span></span></p>
|
||||||
|
</td>
|
||||||
|
<td ><center><?php echo $Shift; ?></center></td>
|
||||||
|
</tr>
|
||||||
|
<tr >
|
||||||
|
<td >
|
||||||
|
<p class="western"><span style="color: #000000;"><span style="font-family: Calibri, serif;"><span style="font-size: large;">REASON</span></span></span></p>
|
||||||
|
</td>
|
||||||
|
<td colspan="3"><?php echo $Reason; ?></td>
|
||||||
|
</tr>
|
||||||
|
<tr >
|
||||||
|
<td colspan="4">
|
||||||
|
<p class="western" style="text-align: left;" align="center"><span style="color: #000000;"><span style="font-family: Calibri, serif;"><span style="font-size: large;"><br><br>REQUESTED </span></span></span><span style="color: #000000;"><span style="font-family: Calibri, serif;"><span style="font-size: large;">APPROVED</span></span></span></p>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
<br/>
|
||||||
|
<br/>
|
||||||
|
<br/>
|
||||||
|
<br/>
|
||||||
|
<br/>
|
||||||
|
<br/>
|
||||||
|
<br/>
|
||||||
|
<br/>
|
||||||
|
<br/>
|
||||||
|
<table style="border-collapse: collapse;font-size:16px;" border="1" width="100%" >
|
||||||
|
<tbody>
|
||||||
|
<tr >
|
||||||
|
<td colspan="4" align="center">
|
||||||
|
<p class="western"><span style="color: #000000; font-family: Calibri, serif;"><h2>SIDDHARTH INDUSTRIES</h2></span> </p>
|
||||||
|
<p class="western"><span style="color: #000000; font-family: Calibri, serif;"><h2>EMPLOYEE PERMISSION / ON DUTY SLIP</h2></span></p>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<p class="western"><span style="color: #000000;"><span style="font-family: Calibri, serif;"><span style="font-size: large;">SNO</span></span></span></p>
|
||||||
|
</td>
|
||||||
|
<td><center><?php echo $SNO?></center></td>
|
||||||
|
<td>
|
||||||
|
<p class="western"><span style="color: #000000;"><span style="font-family: Calibri, serif;"><span style="font-size: large;">DATE</span></span></span></p>
|
||||||
|
</td>
|
||||||
|
<td><center><?php echo $Date?></center></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<p class="western"><span style="color: #000000;"><span style="font-family: Calibri, serif;"><span style="font-size: large;">EMPLOYEE NAME</span></span></span></p>
|
||||||
|
</td>
|
||||||
|
<td ><center><?php echo $firstname.'-'.$lastname.' '.$EmpID; ?></center></td>
|
||||||
|
<td >
|
||||||
|
<p class="western"><span style="color: #000000;"><span style="font-family: Calibri, serif;"><span style="font-size: large;">DEPARTMENT</span></span></span></p>
|
||||||
|
</td>
|
||||||
|
<td><center><?php echo $DepartmentName; ?></center></td>
|
||||||
|
</tr>
|
||||||
|
<tr >
|
||||||
|
<td >
|
||||||
|
<p class="western"><span style="color: #000000;"><span style="font-family: Calibri, serif;"><span style="font-size: large;">FROM </span></span></span></p>
|
||||||
|
</td>
|
||||||
|
<td ><center><?php echo $From; ?></center></td>
|
||||||
|
<td >
|
||||||
|
<p class="western"><span style="color: #000000;"> <span style="font-family: Calibri, serif;"><span style="font-size: large;">TO</span></span></span></p>
|
||||||
|
</td>
|
||||||
|
<td ><center><?php echo $To; ?></center></td>
|
||||||
|
</tr>
|
||||||
|
<tr >
|
||||||
|
<td >
|
||||||
|
<p class="western"><span style="color: #000000;"><span style="font-family: Calibri, serif;"><span style="font-size: large;">PERMISSION TIME </span></span></span></p>
|
||||||
|
</td>
|
||||||
|
<td ><center><?php echo $Permission; ?></center></td>
|
||||||
|
<td >
|
||||||
|
<p class="western"><span style="color: #000000;"><span style="font-family: Calibri, serif;"><span style="font-size: large;">SHIFT</span></span></span></p>
|
||||||
|
</td>
|
||||||
|
<td ><center><?php echo $Shift; ?></center></td>
|
||||||
|
</tr>
|
||||||
|
<tr >
|
||||||
|
<td >
|
||||||
|
<p class="western"><span style="color: #000000;"><span style="font-family: Calibri, serif;"><span style="font-size: large;">REASON</span></span></span></p>
|
||||||
|
</td>
|
||||||
|
<td colspan="3"><?php echo $Reason; ?></td>
|
||||||
|
</tr>
|
||||||
|
<tr >
|
||||||
|
<td colspan="4">
|
||||||
|
<p class="western" style="text-align: left;" align="center"><span style="color: #000000;"><span style="font-family: Calibri, serif;"><span style="font-size: large;"><br><br>REQUESTED </span></span></span><span style="color: #000000;"><span style="font-family: Calibri, serif;"><span style="font-size: large;">APPROVED</span></span></span></p>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
@ -31,7 +31,7 @@ $Adv='';
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="box-body">
|
<div class="box-body">
|
||||||
<table id="example1" class="table table-bordered table-hover editableTable" style="font-size:12px;">
|
<table id="example1" class="table table-bordered table-hover editableTable" style="font-size:11px !important;">
|
||||||
<thead>
|
<thead>
|
||||||
<tr style="background-color:#ddf">
|
<tr style="background-color:#ddf">
|
||||||
<th>SNO#</th>
|
<th>SNO#</th>
|
||||||
|
|||||||
@ -18,7 +18,7 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-xs-12">
|
<div class="col-xs-12">
|
||||||
|
|
||||||
<table class="table table-bordered table-hover" id="datatable" style="background-color:#fff;font-size:12px !important;" >
|
<table class="table table-bordered table-hover" id="tab" style="background-color:#fff;font-size:12px !important;" >
|
||||||
<thead style="background-color:#ddf">
|
<thead style="background-color:#ddf">
|
||||||
<tr>
|
<tr>
|
||||||
<th>Supplier ID</th>
|
<th>Supplier ID</th>
|
||||||
@ -73,17 +73,37 @@
|
|||||||
<script type="text/javascript" src="<?php echo base_url(); ?>assets/js/common.js" charset="utf-8"></script>
|
<script type="text/javascript" src="<?php echo base_url(); ?>assets/js/common.js" charset="utf-8"></script>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
|
|
||||||
$(function () {
|
// $(function () {
|
||||||
|
|
||||||
$('#datatable').DataTable({
|
// $('#datatable').DataTable({
|
||||||
"paging": true,
|
// "paging": true,
|
||||||
"lengthChange": true,
|
// "lengthChange": true,
|
||||||
"searching": true,
|
// "searching": true,
|
||||||
"ordering": true,
|
// "ordering": true,
|
||||||
"info": true,
|
// "info": true,
|
||||||
"autoWidth": true
|
// "autoWidth": true
|
||||||
|
|
||||||
|
// });
|
||||||
|
// });
|
||||||
|
$(document).ready(function() {
|
||||||
|
table = $('#tab').DataTable( {
|
||||||
|
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
|
||||||
|
"<'row'<'col-md-6'><'col-md-6'>>" +
|
||||||
|
"<'table-responsive'<'col-md-12't>><'row'<'col-md-4'i><'col-md-8'p>>",
|
||||||
|
buttons: [
|
||||||
|
{
|
||||||
|
extend: 'excelHtml5',
|
||||||
|
footer: 'true',
|
||||||
|
messageTop: $('h3').text(),
|
||||||
|
title: 'supplier listing',
|
||||||
|
exportOptions: {
|
||||||
|
columns: ':visible'
|
||||||
|
}
|
||||||
|
},
|
||||||
|
'colvis'
|
||||||
|
]
|
||||||
|
} );
|
||||||
|
} );
|
||||||
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@ -34,7 +34,7 @@ $color='';
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
|
|
||||||
<table id="MRIRtable" class="table table-bordered table-hover" style="background-color:#fff;font-size:12px;">
|
<table id="MRIRtable" class="table table-bordered table-hover" style="background-color:#fff;font-size:11px !important;">
|
||||||
<thead style="background-color:#ddf">
|
<thead style="background-color:#ddf">
|
||||||
<tr>
|
<tr>
|
||||||
<th>IGR NO</th>
|
<th>IGR NO</th>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user