This commit is contained in:
Olusesan Ameye
2021-02-18 13:37:44 -05:00
parent 46ede2f1cf
commit 2a70f81dbc
4 changed files with 16 additions and 6 deletions
+3 -4
View File
@@ -9,9 +9,9 @@ class Dash extends Admin_Controller {
$this->load->helper('url');
$data = array();
$this->load->model('Dash_model');
$data = $this->Dash_model->dashData();
$data = $this->Dash_model->dashData();
// $data = $this->dashData();
// $data = $this->dashData();
$this->load->library('table');
$this->table->set_template($this->template);
@@ -44,7 +44,6 @@ class Dash extends Admin_Controller {
$this->renderAdminPage('view_dash', $data);
}
public function pendingpractice() {
$data = array();
$data["page_title"] = "Pending Practice";
@@ -64,7 +63,7 @@ class Dash extends Admin_Controller {
$this->table->set_template($this->template);
$this->load->model('Practice_model');
$query = $this->Practice_model->getPractice();
$this->table->set_heading(array('data' => 'Process', 'style' => 'width:50px'), 'Status', 'Practice Name', 'Username', 'Email', array('data' => 'Date Added', 'style' => 'width:40px'));
$this->table->set_heading(array('data' => 'Process', 'style' => 'width:50px'), 'Status', 'Practice Name', 'Username', 'Email', array('data' => 'Date Added', 'style' => 'width:40px'));
$data['pending_practice'] = $this->table->generate($query);
$this->renderAdminPage('view_pendingpractice', $data);
}