Master screen issue Fixes
This commit is contained in:
parent
2f2cefcb6a
commit
2b1815ed23
@ -40,19 +40,10 @@ class CostCenter extends BaseController
|
|||||||
function CostListing()
|
function CostListing()
|
||||||
{
|
{
|
||||||
|
|
||||||
//$this->load->model('costcenter_model');
|
|
||||||
|
|
||||||
$searchText = $this->input->post('searchText');
|
$data['userRecords'] = $this->costcenter_model->CostListing();
|
||||||
$data['searchText'] = $searchText;
|
|
||||||
|
|
||||||
|
|
||||||
$count = $this->costcenter_model->CostListingCount($searchText);
|
|
||||||
|
|
||||||
$returns = $this->paginationCompress ( "costListing/", $count, 5 );
|
|
||||||
|
|
||||||
$data['userRecords'] = $this->costcenter_model->CostListing($searchText, $returns["page"], $returns["segment"]);
|
|
||||||
|
|
||||||
//print_r( $data) ;
|
|
||||||
$this->global['pageTitle'] = 'Siddharth : Cost List';
|
$this->global['pageTitle'] = 'Siddharth : Cost List';
|
||||||
|
|
||||||
$this->loadViews("costListing", $this->global, $data, NULL);
|
$this->loadViews("costListing", $this->global, $data, NULL);
|
||||||
|
|||||||
@ -39,16 +39,9 @@ class assetdetails extends BaseController
|
|||||||
|
|
||||||
$this->load->model('assetdetails_model');
|
$this->load->model('assetdetails_model');
|
||||||
|
|
||||||
$searchText = $this->input->post('searchText');
|
|
||||||
$data['searchText'] = $searchText;
|
|
||||||
|
|
||||||
$this->load->library('pagination');
|
|
||||||
|
|
||||||
$count = $this->assetdetails_model->assetListingCount($searchText);
|
$data['userRecords'] = $this->assetdetails_model->assetListing();
|
||||||
|
|
||||||
$returns = $this->paginationCompress ( "assetListing/", $count ,10);
|
|
||||||
|
|
||||||
$data['userRecords'] = $this->assetdetails_model->assetListing($searchText, $returns["page"], $returns["segment"]);
|
|
||||||
|
|
||||||
$this->global['pageTitle'] = 'Siddharth : Asset List';
|
$this->global['pageTitle'] = 'Siddharth : Asset List';
|
||||||
|
|
||||||
|
|||||||
@ -44,17 +44,8 @@ class employeedetails extends BaseController
|
|||||||
|
|
||||||
$this->load->model('employeedetails_model');
|
$this->load->model('employeedetails_model');
|
||||||
|
|
||||||
$searchText = $this->input->post('searchText');
|
|
||||||
$data['searchText'] = $searchText;
|
|
||||||
|
|
||||||
$this->load->library('pagination');
|
$data['userRecords'] = $this->employeedetails_model->employeeListing();
|
||||||
|
|
||||||
$count = $this->employeedetails_model->employeeListingCount($searchText);
|
|
||||||
|
|
||||||
|
|
||||||
$returns = $this->paginationCompress ( "employeeListing/", $count[0]['Count'], 10 );
|
|
||||||
|
|
||||||
$data['userRecords'] = $this->employeedetails_model->employeeListing($searchText, $returns["page"], $returns["segment"]);
|
|
||||||
|
|
||||||
$this->global['pageTitle'] = 'Siddharth : Employee Listing';
|
$this->global['pageTitle'] = 'Siddharth : Employee Listing';
|
||||||
|
|
||||||
|
|||||||
@ -42,14 +42,9 @@ class rawmaterialdetails extends BaseController
|
|||||||
|
|
||||||
$this->load->model('rawmaterialdetails_model');
|
$this->load->model('rawmaterialdetails_model');
|
||||||
|
|
||||||
$searchText = $this->input->post('searchText');
|
|
||||||
$data['searchText'] = $searchText;
|
|
||||||
|
|
||||||
$count = $this->rawmaterialdetails_model->rawmaterialListingCount($searchText);
|
|
||||||
|
|
||||||
$returns = $this->paginationCompress ( "rawmaterialListing/", $count, 10 );
|
$data['userRecords'] = $this->rawmaterialdetails_model->rawmaterialListing();
|
||||||
|
|
||||||
$data['userRecords'] = $this->rawmaterialdetails_model->rawmaterialListing($searchText, $returns["page"], $returns["segment"]);
|
|
||||||
|
|
||||||
$this->global['pageTitle'] = 'Siddharth : RawMaterial Listing';
|
$this->global['pageTitle'] = 'Siddharth : RawMaterial Listing';
|
||||||
|
|
||||||
|
|||||||
@ -41,15 +41,8 @@ class supplier extends BaseController
|
|||||||
|
|
||||||
$this->load->model('supplier_model');
|
$this->load->model('supplier_model');
|
||||||
|
|
||||||
$searchText = $this->input->post('searchText');
|
|
||||||
$data['searchText'] = $searchText;
|
|
||||||
|
|
||||||
|
$data['userRecords'] = $this->supplier_model->supplierListing();
|
||||||
$count = $this->supplier_model->supplierListingCount($searchText);
|
|
||||||
|
|
||||||
$returns = $this->paginationCompress ( "supplierListing/", $count, 10 );
|
|
||||||
|
|
||||||
$data['userRecords'] = $this->supplier_model->supplierListing($searchText, $returns["page"], $returns["segment"]);
|
|
||||||
|
|
||||||
$this->global['pageTitle'] = 'Siddharth Industries : Supplier Listing';
|
$this->global['pageTitle'] = 'Siddharth Industries : Supplier Listing';
|
||||||
|
|
||||||
|
|||||||
@ -33,7 +33,7 @@ class user extends BaseController
|
|||||||
|
|
||||||
$this->load->model('employeedetails_model');
|
$this->load->model('employeedetails_model');
|
||||||
|
|
||||||
$data['EmpCount'] = $this->employeedetails_model->getEmployeeCount();
|
$data['EmpCount'] = $this->employeedetails_model->getEmployeeCount();
|
||||||
|
|
||||||
$this->loadViews("dashboard", $this->global, $data , NULL);
|
$this->loadViews("dashboard", $this->global, $data , NULL);
|
||||||
}
|
}
|
||||||
@ -50,16 +50,7 @@ class user extends BaseController
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
||||||
$searchText = $this->input->post('searchText');
|
$data['userRecords'] = $this->user_model->userListing();
|
||||||
$data['searchText'] = $searchText;
|
|
||||||
|
|
||||||
$this->load->library('pagination');
|
|
||||||
|
|
||||||
$count = $this->user_model->userListingCount($searchText);
|
|
||||||
|
|
||||||
$returns = $this->paginationCompress ( "userListing/", $count, 15 );
|
|
||||||
|
|
||||||
$data['userRecords'] = $this->user_model->userListing($searchText, $returns["page"], $returns["segment"]);
|
|
||||||
|
|
||||||
$this->global['pageTitle'] = 'Siddharth : User Listing';
|
$this->global['pageTitle'] = 'Siddharth : User Listing';
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user