Commit 259f8092 by Phạm Văn Đoan

tổ chức lại module quản lý khóa học

parent f8807205
...@@ -449,7 +449,7 @@ class Admin extends CI_Controller ...@@ -449,7 +449,7 @@ class Admin extends CI_Controller
$page_data['courses'] = $this->crud_model->filter_course_for_backend($page_data['selected_category_id'], $page_data['selected_instructor_id'], $page_data['selected_price'], $page_data['selected_status']); $page_data['courses'] = $this->crud_model->filter_course_for_backend($page_data['selected_category_id'], $page_data['selected_instructor_id'], $page_data['selected_price'], $page_data['selected_status']);
$page_data['status_wise_courses'] = $this->crud_model->get_status_wise_courses(); $page_data['status_wise_courses'] = $this->crud_model->get_status_wise_courses();
$page_data['instructors'] = $this->user_model->get_instructor(); $page_data['instructors'] = $this->user_model->get_instructor();
$page_data['page_name'] = 'courses-server-side'; $page_data['page_name'] = 'course/courses-server-side';
$page_data['categories'] = $this->crud_model->get_categories(); $page_data['categories'] = $this->crud_model->get_categories();
$page_data['page_title'] = get_phrase('active_courses'); $page_data['page_title'] = get_phrase('active_courses');
$this->load->view('backend/index', $page_data); $this->load->view('backend/index', $page_data);
...@@ -609,7 +609,7 @@ class Admin extends CI_Controller ...@@ -609,7 +609,7 @@ class Admin extends CI_Controller
} }
$page_data['page_name'] = 'pending_courses'; $page_data['page_name'] = 'course/pending_courses';
$page_data['page_title'] = get_phrase('pending_courses'); $page_data['page_title'] = get_phrase('pending_courses');
$this->load->view('backend/index', $page_data); $this->load->view('backend/index', $page_data);
} }
...@@ -646,13 +646,13 @@ class Admin extends CI_Controller ...@@ -646,13 +646,13 @@ class Admin extends CI_Controller
if ($param1 == 'add_course') { if ($param1 == 'add_course') {
$page_data['languages'] = $this->crud_model->get_all_languages(); $page_data['languages'] = $this->crud_model->get_all_languages();
$page_data['categories'] = $this->crud_model->get_categories(); $page_data['categories'] = $this->crud_model->get_categories();
$page_data['page_name'] = 'course_add'; $page_data['page_name'] = 'course/course_add';
$page_data['page_title'] = get_phrase('add_course'); $page_data['page_title'] = get_phrase('add_course');
$this->load->view('backend/index', $page_data); $this->load->view('backend/index', $page_data);
} elseif ($param1 == 'course_edit') { } elseif ($param1 == 'course_edit') {
$this->is_drafted_course($param2); $this->is_drafted_course($param2);
$page_data['page_name'] = 'course_edit'; $page_data['page_name'] = 'course/course_edit';
$page_data['course_id'] = $param2; $page_data['course_id'] = $param2;
$page_data['page_title'] = get_phrase('edit_course'); $page_data['page_title'] = get_phrase('edit_course');
$page_data['languages'] = $this->crud_model->get_all_languages(); $page_data['languages'] = $this->crud_model->get_all_languages();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment