This commit is contained in:
Olusesan Ameye
2021-02-18 12:51:55 -05:00
parent a045bbce5a
commit 46ede2f1cf
4 changed files with 44 additions and 7 deletions
+1 -1
View File
@@ -64,7 +64,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'), 'Resend Email', '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);
}
@@ -98,6 +98,14 @@ class Practice extends Admin_Controller {
$this->load->view('practice/parts/view_pending.php', $data);
}
public function selectPractice() {
$data = [];
$practice_id = $data['practice_id'] = trim($this->input->get('practice_id'));
$this->load->model('Practice_model');
$data = $this->Practice_model->loadPractice($practice_id);
$this->load->view('practice/parts/view_practice.php', $data);
}
protected function renderPracticePage($page_name, $data) {
$this->load->view('template/secure_header', $data);
$this->load->view('practice/' . $page_name, $data);