fix
This commit is contained in:
@@ -44,7 +44,6 @@ class Dash extends Admin_Controller {
|
|||||||
$this->renderAdminPage('view_dash', $data);
|
$this->renderAdminPage('view_dash', $data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public function pendingpractice() {
|
public function pendingpractice() {
|
||||||
$data = array();
|
$data = array();
|
||||||
$data["page_title"] = "Pending Practice";
|
$data["page_title"] = "Pending Practice";
|
||||||
|
|||||||
@@ -106,6 +106,17 @@ class Practice extends Admin_Controller {
|
|||||||
$this->load->view('practice/parts/view_practice.php', $data);
|
$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) {
|
protected function renderPracticePage($page_name, $data) {
|
||||||
$this->load->view('template/secure_header', $data);
|
$this->load->view('template/secure_header', $data);
|
||||||
$this->load->view('practice/' . $page_name, $data);
|
$this->load->view('practice/' . $page_name, $data);
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ $read_level = " readonly "
|
|||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<button type="submit" class="btn btn-secondary" name="signup" value="Sign up">Update</button>
|
<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>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user