reports and ui changes

This commit is contained in:
venbatechnologies@gmail.com 2017-12-19 19:05:21 +05:30
parent b0de744efb
commit a2dc2b63ff
18 changed files with 1828 additions and 105 deletions

View File

@ -388,27 +388,40 @@ class monthlypay extends BaseController
/**
* To store new permission details into DB.
**/
function addper()
{
$EmpID = $this->input->post('emp');
$Date =$this->input->post('date');
$From = $this->input->post('timepicker1');
$To = $this->input->post('timepicker2');
$Shift = $this->input->post('shift');
$Permission = $this->input->post('Pretime');
$Reason= $this->input->post('Reason');
$Createdby = $this->session->userdata('userId');
function addper()
{
$EmpID = $this->input->post('emp');
$Date =$this->input->post('date');
$CUR = date('Y-m-d',strtotime($Date));
$From = $this->input->post('timepicker1');
$To = $this->input->post('timepicker2');
$Shift = $this->input->post('shift');
$Permission = $this->input->post('Pretime');
$Reason= $this->input->post('Reason');
$Createdby = $this->session->userdata('userId');
$dt = new DateTime('now', new DateTimeZone('Asia/Kolkata'));
$Createdtime = $dt->format('Y-m-d H:i:s');
if(!empty($EmpID)){
$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);
if(!empty($result)){
echo "<script type='text/javascript'>alert('Successfully Created Permission Form');
window.location = 'Permissionlist';
</script>";
$dt = new DateTime('now', new DateTimeZone('Asia/Kolkata'));
$Createdtime = $dt->format('Y-m-d H:i:s');
$Permissiondata = array('EmpID'=>$EmpID,'Date'=>$Date,'From'=>$From,'To'=>$To,'Shift'=>$Shift,'Permission'=>$Permission,'Reason'=>$Reason,'Createby'=>$Createdby,'Createdtime'=>$Createdtime);
$result = $this->monthlypay_model->addper($Permissiondata);
redirect('monthlypay/permissionlist');
}
}
else{
echo "<script type='text/javascript'>alert('Not Created Permission Form');
window.location = 'Permission';
</script>";
}
}
/**
* To get permission slip details for listing
*/
@ -424,21 +437,22 @@ class monthlypay extends BaseController
*/
function permissionpdf($SNO){
$data['per'] = $this->monthlypay_model->pdf($SNO);
$this->load->view($this->config->item('admin_folder') .'/permissionpdf',$data);
$data['per'] = $this->monthlypay_model->pdf($SNO);
$this->load->view($this->config->item('admin_folder') .'/permissionpdf',$data);
$mpdf=new mPDF('utf-8','A4-P',10, 10,10, 10, 10, 38, 4, 6);
$mpdf->SetDisplayMode('fullpage');
$mpdf->SetHTMLHeader($HtmlHeading);
$mpdf=new mPDF('utf-8','A4-P',10, 10,10, 10, 10, 38, 4, 6);
$mpdf->SetDisplayMode('fullpage');
$mpdf->SetHTMLHeader($HtmlHeading);
$html = $this->load->view('permissionpdf',$data,true);
$html = $this->load->view('permissionpdf',$data,true);
$mpdf->SetDisplayMode('fullpage');
$mpdf->setAutoTopMargin = 'stretch';
$mpdf->setAutoBottomMargin = 'stretch';
$mpdf->WriteHTML($html);
$mpdf->Output("Permission".$data.'.pdf','I',$php);
$mpdf->SetDisplayMode('fullpage');
$mpdf->setAutoTopMargin = 'stretch';
$mpdf->setAutoBottomMargin = 'stretch';
$mpdf->WriteHTML($html);
$mpdf->Output("Permission".$data.'.pdf','I',$php);
}

View File

@ -337,11 +337,12 @@ class payslip extends BaseController
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->SetHTMLHeader($HtmlHeading);
$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->setAutoTopMargin = 'stretch';
$mpdf->setAutoBottomMargin = 'stretch';

View File

@ -36,14 +36,25 @@ class quality extends BaseController
}
/**
* To load the report list
* For load the report list
*/
public function reportList()
{
$data['records'] = $this->quality_model->getTestMasterforList();
$this->global['pageTitle'] = 'Resico : Prodcut Report List ';
$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

View File

@ -308,10 +308,15 @@ join T_DepartmentDetails as Dep on Dep.DEPCode=Emp.Departmentcode where Emp.IsA
function addper($Permissiondata)
{
//print_r($Permissiondata);die;
$this->db->insert('T_Permission',$Permissiondata);
$reuslt = $this->db->insert_id();
return $reuslt;
$this->db->trans_start();
$this->db->insert('T_Permission', $Permissiondata);
$Permission = $this->db->affected_rows();
$this->db->trans_complete();
return $Permission;
}
function perlist()
@ -326,13 +331,13 @@ join T_DepartmentDetails as Dep on Dep.DEPCode=Emp.Departmentcode where Emp.IsA
function pdf($SNO)
{
$this->db->select('per.*,emp.FirstName,LastName,dep.DepartmentName');
$this->db->from('T_Permission per');
$this->db->join('T_Employee_Details emp','emp.EmpID = per.EmpID');
$this->db->join('T_DepartmentDetails dep','dep.DEPCode = emp.Departmentcode');
$this->db->where('per.SNO',$SNO );
$query =$this->db->get();
return $query->result();
$this->db->select('per.*,emp.FirstName,LastName,dep.DepartmentName');
$this->db->from('T_Permission per');
$this->db->join('T_Employee_Details emp','emp.EmpID = per.EmpID');
$this->db->join('T_DepartmentDetails dep','dep.DEPCode = emp.Departmentcode');
$this->db->where('per.SNO',$SNO );
$query =$this->db->get();
return $query->result();
}

View File

@ -38,7 +38,7 @@ class supplier_model extends CI_Model
/**
* 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)
*/
function getPaymentTerms($payment = '')
@ -52,7 +52,7 @@ class supplier_model extends CI_Model
/**
* 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
* @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
* @param number $SID :Optional: To get Supplier ID
* @param number $GST : To get GST number from the controller - for check purpose if already exists are not
* @param number $SID :Optional: This is Supplier ID
* @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)
*/
function checkGST($GST,$SID = '')
@ -96,7 +96,7 @@ class supplier_model extends CI_Model
/**
* 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)
*/
function addNewsupplier($supplier)
@ -108,7 +108,7 @@ class supplier_model extends CI_Model
/**
* 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
*/
function getSupplierInfo($supplierID='')
@ -123,7 +123,7 @@ class supplier_model extends CI_Model
/**
* 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)
*/
function GetSupplierAddress($supplierID)
@ -137,8 +137,8 @@ class supplier_model extends CI_Model
/**
* 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 $supplierID : To get Supplier ID from the controller
* @param number $supplier : Thiss will have all theedited Supplier information
* @param number $supplierID : This is Supplier ID
*/
function UpdateSupplier($supplier, $supplierID)
{
@ -149,8 +149,8 @@ class supplier_model extends CI_Model
/**
* To updated the Supplier information
* @param number $supplier : To get all the information of Supplier from the controller
* @param number $supplierID : To get Supplier ID from the controller
* @param number $supplier : This will have all the Supplier information
* @param number $supplierID : This is Supplier ID
*
* Note : This function Temporary not in use
*/
@ -163,7 +163,7 @@ class supplier_model extends CI_Model
/**
* 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
*/

View File

@ -5,11 +5,8 @@ class User_model extends CI_Model
/**
* This function is used to get the user listing count
* @param string $searchText : This is optional search text
* @param number $page : This is pagination offset
* @param number $segment : This is pagination limit
* @return array $result : This is result
* To get the user list
* @return array $result : result of the query
*/
function userListing()
{
@ -28,7 +25,12 @@ class User_model extends CI_Model
$result = $query->result();
return $result;
}
/**
* To get user's role name
* @param $UserId :
* @return array $result : result of the query
*/
function GetRoleNameByUserID($UserId)
{
$subQuery = 'select roleId, role from tbl_roles

View File

@ -638,7 +638,7 @@ $(document).ready(function() {
table = $('#tab').DataTable( {
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
"<'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: [
{
extend: 'excelHtml5',

View File

@ -476,7 +476,7 @@ $(document).ready(function() {
table = $('#cc').DataTable( {
"dom": "<'row'<'col-md-6'l><'col-md-6'Bf>>" +
"<'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: [
{

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -19,7 +19,9 @@
<!-- daterange picker -->
<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>
<!-- jquery-1.12.4.min -->
@ -169,7 +171,7 @@ $full_path = $path .$pic;
<!-- Logo -->
<a href="<?php echo base_url(); ?>dashboard" class="logo">
<!-- 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 -->
<span class="logo-lg"><b>RESICO</b></span>
</a>
@ -549,10 +551,14 @@ $full_path = $path .$pic;
</a>
<ul class="treeview-menu">
<li><a href="<?php echo base_url(); ?>attendance">
<i class="fa fa-refresh fa-spin "></i>
Monthly Attendance
<i class="fa fa-refresh"></i>
Monthly Attendance
</a>
</li>
<!-- <li> <a href="<?php echo base_url(); ?>permissionlist">
<i class="fa fa-user-circle"></i>
Permission Slip
</a></li>-->
</ul>
</li>
@ -640,7 +646,7 @@ $full_path = $path .$pic;
<i class="fa fa-upload"></i>
<span>View Material Inspection Report</span>
</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>
<span>Product Test Specification Master</span>
</a></li>
@ -648,11 +654,10 @@ $full_path = $path .$pic;
<i class="fa fa-table"></i>
<span>Product Test Report</span>
</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>
<span>Inward Material Test Report</span>
</a></li>
</a></li> -->

View File

@ -1,4 +1,4 @@
<?php
@ -315,5 +315,4 @@
</tr>
</table>
</div>
</div>

File diff suppressed because it is too large Load Diff

View 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>

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

View File

@ -31,7 +31,7 @@ $Adv='';
</div>
<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>
<tr style="background-color:#ddf">
<th>SNO#</th>

View File

@ -18,7 +18,7 @@
<div class="row">
<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">
<tr>
<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">
$(function () {
// $(function () {
$('#datatable').DataTable({
"paging": true,
"lengthChange": true,
"searching": true,
"ordering": true,
"info": true,
"autoWidth": true
// $('#datatable').DataTable({
// "paging": true,
// "lengthChange": true,
// "searching": true,
// "ordering": true,
// "info": 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>

View File

@ -34,7 +34,7 @@ $color='';
<div class="row">
<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">
<tr>
<th>IGR NO</th>