fix
This commit is contained in:
@@ -22,6 +22,9 @@ class WRB_Controller extends CI_Controller {
|
||||
'cell_alt_end' => '</td>',
|
||||
'table_close' => '</table>'
|
||||
);
|
||||
|
||||
|
||||
|
||||
var $template_nohead = array(
|
||||
'table_open' => "<table class='table table-striped table-hover table-bordered table-condensed'>",
|
||||
'thead_open' => '<thead>',
|
||||
@@ -50,6 +53,31 @@ class WRB_Controller extends CI_Controller {
|
||||
$this->load->library(array('session', 'lib_login'));
|
||||
}
|
||||
|
||||
public function paginationConfig($urlSeg,$perPage,$numRows,$linkPath,$numLnk){
|
||||
$config = array();
|
||||
$config["total_rows"] =$numRows;
|
||||
$config["base_url"] = base_url() . $linkPath;
|
||||
$config["per_page"] = $perPage;
|
||||
$config["uri_segment"] = $urlSeg;
|
||||
$config["num_links"] = $numLnk;
|
||||
|
||||
$config['full_tag_open'] = "<ul class='pagination'>";
|
||||
$config['full_tag_close'] = "</ul>";
|
||||
$config['num_tag_open'] = '<li class="page-item">';
|
||||
$config['num_tag_close'] = '</li>';
|
||||
$config['cur_tag_open'] = "<li class='page-item active'><a href='#'>";
|
||||
$config['cur_tag_close'] = "<span class='sr-only'></span></a></li>";
|
||||
$config['next_tag_open'] = '<li class="page-item">';
|
||||
$config['next_tagl_close'] = "</li>";
|
||||
$config['prev_tag_open'] = '<li class="page-item">';
|
||||
$config['prev_tagl_close'] = "</li>";
|
||||
$config['first_tag_open'] = '<li class="page-item">';
|
||||
$config['first_tagl_close'] = "</li>";
|
||||
$config['last_tag_open'] = '<li class="page-item">';
|
||||
$config['last_tagl_close'] = "</li>";
|
||||
return $config;
|
||||
}
|
||||
|
||||
public function wrenchboard_api($in, $out) {
|
||||
$this->load->model('backend_model');
|
||||
// $out = array();
|
||||
|
||||
Reference in New Issue
Block a user