mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-05-24 16:28:40 -04:00
Pagination in the items area works now.
Tom git-svn-id: svn+ssh://jekkos@svn.code.sf.net/p/opensourcepos/code/@42 c3eb156b-1dc0-44e1-88ae-e38439141b53
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
|
|
||||
|
|
||||
*/
|
||||
$config['application_version'] = '2.0_RC2';
|
||||
$config['application_version'] = '2.0_RC3';
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
|
||||
@@ -10,14 +10,15 @@ class Items extends Secure_area implements iData_controller
|
||||
|
||||
function index()
|
||||
{
|
||||
$config['base_url'] = site_url('?c=items&m=index');
|
||||
$config['base_url'] = site_url('/items/index');
|
||||
$config['total_rows'] = $this->Item->count_all();
|
||||
$config['per_page'] = '20';
|
||||
$config['per_page'] = '20';
|
||||
$config['uri_segment'] = 3;
|
||||
$this->pagination->initialize($config);
|
||||
|
||||
$data['controller_name']=strtolower(get_class());
|
||||
$data['form_width']=$this->get_form_width();
|
||||
$data['manage_table']=get_items_manage_table($this->Item->get_all($config['per_page'], $this->input->get('per_page')),$this);
|
||||
$data['manage_table']=get_items_manage_table( $this->Item->get_all( $config['per_page'], $this->uri->segment( $config['uri_segment'] ) ), $this );
|
||||
$this->load->view('items/manage',$data);
|
||||
}
|
||||
|
||||
|
||||
@@ -31,9 +31,9 @@ class CI_Pagination {
|
||||
var $suffix = ''; // A custom suffix added to the path.
|
||||
|
||||
var $total_rows = 0; // Total number of items (database results)
|
||||
var $per_page = 10; // Max number of items you want shown per page
|
||||
var $per_page = 10; // Max number of items you want shown per page
|
||||
var $num_links = 2; // Number of "digit" links to show before/after the currently viewed page
|
||||
var $cur_page = 0; // The current page being viewed
|
||||
var $cur_page = 0; // The current page being viewed
|
||||
var $use_page_numbers = FALSE; // Use page number for segment instead of offset
|
||||
var $first_link = '‹ First';
|
||||
var $next_link = '>';
|
||||
|
||||
Reference in New Issue
Block a user