fix
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -105,7 +105,18 @@ class Practice extends Admin_Controller {
|
||||
$data = $this->Practice_model->loadPractice($practice_id);
|
||||
$this->load->view('practice/parts/view_practice.php', $data);
|
||||
}
|
||||
|
||||
|
||||
public function viewPracticeDetail() {
|
||||
$data = [];
|
||||
$data = array();
|
||||
$practice_id = $data['practice_id'] = $this->uri->segment(3);
|
||||
$this->load->model('Practice_model');
|
||||
$data = $this->Practice_model->loadPractice($practice_id);
|
||||
|
||||
$data["page_title"] = $data["name"];
|
||||
$this->renderPracticePage('view_practice', $data);
|
||||
}
|
||||
|
||||
protected function renderPracticePage($page_name, $data) {
|
||||
$this->load->view('template/secure_header', $data);
|
||||
$this->load->view('practice/' . $page_name, $data);
|
||||
|
||||
@@ -45,7 +45,7 @@ $read_level = " readonly "
|
||||
<div class="form-group">
|
||||
<button type="submit" class="btn btn-secondary" name="signup" value="Sign up">Update</button>
|
||||
|
||||
<button type="submit" class="btn btn-primary" name="signup" value="Sign up">Manage</button>
|
||||
<a href="/practice/viewPracticeDetail/<?=$id?>" class="btn btn-primary" > Manage</a>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user