mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-10-20 07:14:33 -04:00
Added comments to some controller functions and improved spacing to improve readibility of code (#120)
This commit is contained in:
1 parent
d1a973564f
commit
9dcbef988a
8 files changed
+41
-25
No files matched your search
@@ -1,5 +1,6 @@
|
||||
<?php
|
||||
require_once ("Person_controller.php");
|
||||
|
||||
class Employees extends Person_controller
|
||||
{
|
||||
function __construct()
|
||||
@@ -9,12 +10,12 @@ class Employees extends Person_controller
|
||||
|
||||
function index($limit_from=0)
|
||||
{
|
||||
$data['controller_name']=$this->get_controller_name();
|
||||
$data['form_width']=$this->get_form_width();
|
||||
$data['controller_name'] = $this->get_controller_name();
|
||||
$data['form_width'] = $this->get_form_width();
|
||||
$lines_per_page = $this->Appconfig->get('lines_per_page');
|
||||
$suppliers = $this->Employee->get_all($lines_per_page,$limit_from);
|
||||
$data['links'] = $this->_initialize_pagination($this->Employee,$lines_per_page,$limit_from);
|
||||
$data['manage_table']=get_people_manage_table($suppliers,$this);
|
||||
$suppliers = $this->Employee->get_all($lines_per_page, $limit_from);
|
||||
$data['links'] = $this->_initialize_pagination($this->Employee, $lines_per_page, $limit_from);
|
||||
$data['manage_table'] = get_people_manage_table($suppliers, $this);
|
||||
$this->load->view('suppliers/manage',$data);
|
||||
}
|
||||
|
||||
@@ -29,7 +30,7 @@ class Employees extends Person_controller
|
||||
$employees = $this->Employee->search($search, $limit_from, $lines_per_page);
|
||||
$total_rows = $this->Employee->get_found_rows($search);
|
||||
$links = $this->_initialize_pagination($this->Employee, $lines_per_page, $limit_from, $total_rows);
|
||||
$data_rows=get_people_manage_table_data_rows($employees,$this);
|
||||
$data_rows = get_people_manage_table_data_rows($employees, $this);
|
||||
echo json_encode(array('rows' => $data_rows, 'pagination' => $links));
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user