Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
academy-lms
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Phạm Văn Đoan
academy-lms
Commits
b480de0b
Commit
b480de0b
authored
Mar 04, 2020
by
Trần Văn Minh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tổ chức lại thư mục
parent
bbd8acad
Show whitespace changes
Inline
Side-by-side
Showing
48 changed files
with
74 additions
and
51 deletions
+74
-51
Admin.php
application/controllers/Admin.php
+18
-18
Home.php
application/controllers/Home.php
+17
-17
Crud_model.php
application/models/Crud_model.php
+1
-0
User_model.php
application/models/User_model.php
+1
-1
curriculum.php
application/views/backend/admin/course/curriculum.php
+0
-0
dashboard-chart.php
...ication/views/backend/admin/dashboard/dashboard-chart.php
+0
-0
dashboard.php
application/views/backend/admin/dashboard/dashboard.php
+0
-0
enrol_history.php
application/views/backend/admin/enrol/enrol_history.php
+0
-0
enrol_student.php
application/views/backend/admin/enrol/enrol_student.php
+0
-0
organ_add.php
application/views/backend/admin/organization/organ_add.php
+2
-2
organ_edit.php
application/views/backend/admin/organization/organ_edit.php
+2
-2
admin_revenue.php
application/views/backend/admin/report/admin_revenue.php
+0
-0
instructor_revenue.php
...ication/views/backend/admin/report/instructor_revenue.php
+0
-0
invoice.php
application/views/backend/admin/report/invoice.php
+0
-0
about.php
application/views/backend/admin/setting/about.php
+0
-0
frontend_settings.php
...ication/views/backend/admin/setting/frontend_settings.php
+0
-0
instructor_settings.php
...ation/views/backend/admin/setting/instructor_settings.php
+0
-0
manage_language.php
application/views/backend/admin/setting/manage_language.php
+0
-0
mobile_app.php
application/views/backend/admin/setting/mobile_app.php
+0
-0
payment_settings.php
application/views/backend/admin/setting/payment_settings.php
+0
-0
smtp_settings.php
application/views/backend/admin/setting/smtp_settings.php
+0
-0
system_settings.php
application/views/backend/admin/setting/system_settings.php
+0
-0
theme_settings.php
application/views/backend/admin/setting/theme_settings.php
+0
-0
user_add.php
application/views/backend/admin/user/user_add.php
+0
-0
user_edit.php
application/views/backend/admin/user/user_edit.php
+28
-7
users.php
application/views/backend/admin/user/users.php
+0
-0
includes_bottom.php
application/views/backend/includes_bottom.php
+1
-1
category_wise_course_list_layout.php
...ntend/default/course/category_wise_course_list_layout.php
+0
-0
course_page.php
application/views/frontend/default/course/course_page.php
+0
-0
courses_page.php
application/views/frontend/default/course/courses_page.php
+0
-0
about_us.php
application/views/frontend/default/footer/about_us.php
+0
-0
privacy_policy.php
application/views/frontend/default/footer/privacy_policy.php
+0
-0
terms_and_condition.php
...ion/views/frontend/default/footer/terms_and_condition.php
+0
-0
instructor_dashboard.php
...iews/frontend/default/instructor/instructor_dashboard.php
+0
-0
instructor_items.php
...on/views/frontend/default/instructor/instructor_items.php
+0
-0
instructor_page.php
...ion/views/frontend/default/instructor/instructor_page.php
+0
-0
lessons.php
application/views/frontend/default/lesson/lessons.php
+0
-0
inner_messages.php
application/views/frontend/default/my_all/inner_messages.php
+0
-0
my_courses.php
application/views/frontend/default/my_all/my_courses.php
+0
-0
my_messages.php
application/views/frontend/default/my_all/my_messages.php
+0
-0
my_notifications.php
...cation/views/frontend/default/my_all/my_notifications.php
+0
-0
my_wishlist.php
application/views/frontend/default/my_all/my_wishlist.php
+0
-0
purchase_history.php
...cation/views/frontend/default/my_all/purchase_history.php
+0
-0
update_user_photo.php
...tion/views/frontend/default/profile/update_user_photo.php
+0
-0
user_credentials.php
...ation/views/frontend/default/profile/user_credentials.php
+0
-0
user_profile.php
application/views/frontend/default/profile/user_profile.php
+0
-0
lessons.php
application/views/lessons/lessons.php
+2
-2
index.php
index.php
+2
-1
No files found.
application/controllers/Admin.php
View file @
b480de0b
...
...
@@ -31,7 +31,7 @@ class Admin extends CI_Controller
if
(
$this
->
session
->
userdata
(
'admin_login'
)
!=
true
)
{
redirect
(
site_url
(
'login'
),
'refresh'
);
}
$page_data
[
'page_name'
]
=
'dashboard'
;
$page_data
[
'page_name'
]
=
'dashboard
/dashboard
'
;
$page_data
[
'page_title'
]
=
get_phrase
(
'dashboard'
);
$this
->
load
->
view
(
'backend/index.php'
,
$page_data
);
}
...
...
@@ -134,7 +134,7 @@ class Admin extends CI_Controller
redirect
(
site_url
(
'admin/users'
),
'refresh'
);
}
$page_data
[
'page_name'
]
=
'users'
;
$page_data
[
'page_name'
]
=
'user
/user
s'
;
$page_data
[
'page_title'
]
=
get_phrase
(
'user'
);
$page_data
[
'users'
]
=
$this
->
user_model
->
get_user
(
$param2
);
$this
->
load
->
view
(
'backend/index'
,
$page_data
);
...
...
@@ -147,11 +147,11 @@ class Admin extends CI_Controller
}
if
(
$param1
==
'add_user_form'
)
{
$page_data
[
'page_name'
]
=
'user_add'
;
$page_data
[
'page_name'
]
=
'user
/user
_add'
;
$page_data
[
'page_title'
]
=
get_phrase
(
'student_add'
);
$this
->
load
->
view
(
'backend/index'
,
$page_data
);
}
elseif
(
$param1
==
'edit_user_form'
)
{
$page_data
[
'page_name'
]
=
'user_edit'
;
$page_data
[
'page_name'
]
=
'user
/user
_edit'
;
$page_data
[
'user_id'
]
=
$param2
;
$page_data
[
'page_title'
]
=
get_phrase
(
'student_edit'
);
$this
->
load
->
view
(
'backend/index'
,
$page_data
);
...
...
@@ -173,7 +173,7 @@ class Admin extends CI_Controller
$page_data
[
'timestamp_start'
]
=
strtotime
(
'-29 days'
,
time
());
$page_data
[
'timestamp_end'
]
=
strtotime
(
date
(
"m/d/Y"
));
}
$page_data
[
'page_name'
]
=
'enrol_history'
;
$page_data
[
'page_name'
]
=
'enrol
/enrol
_history'
;
$page_data
[
'enrol_history'
]
=
$this
->
crud_model
->
enrol_history_by_date_range
(
$page_data
[
'timestamp_start'
],
$page_data
[
'timestamp_end'
]);
$page_data
[
'page_title'
]
=
get_phrase
(
'enrol_history'
);
$this
->
load
->
view
(
'backend/index'
,
$page_data
);
...
...
@@ -188,7 +188,7 @@ class Admin extends CI_Controller
$this
->
crud_model
->
enrol_a_student_manually
();
redirect
(
site_url
(
'admin/enrol_history'
),
'refresh'
);
}
$page_data
[
'page_name'
]
=
'enrol_student'
;
$page_data
[
'page_name'
]
=
'enrol
/enrol
_student'
;
$page_data
[
'page_title'
]
=
get_phrase
(
'enrol_a_student'
);
$this
->
load
->
view
(
'backend/index'
,
$page_data
);
}
...
...
@@ -209,7 +209,7 @@ class Admin extends CI_Controller
$page_data
[
'timestamp_end'
]
=
strtotime
(
date
(
"m/d/Y"
));
}
$page_data
[
'page_name'
]
=
'admin_revenue'
;
$page_data
[
'page_name'
]
=
'
report/
admin_revenue'
;
$page_data
[
'payment_history'
]
=
$this
->
crud_model
->
get_revenue_by_user_type
(
$page_data
[
'timestamp_start'
],
$page_data
[
'timestamp_end'
],
'admin_revenue'
);
$page_data
[
'page_title'
]
=
get_phrase
(
'admin_revenue'
);
$this
->
load
->
view
(
'backend/index'
,
$page_data
);
...
...
@@ -221,7 +221,7 @@ class Admin extends CI_Controller
redirect
(
site_url
(
'login'
),
'refresh'
);
}
$page_data
[
'page_name'
]
=
'instructor_revenue'
;
$page_data
[
'page_name'
]
=
'
report/
instructor_revenue'
;
$page_data
[
'payment_history'
]
=
$this
->
crud_model
->
get_revenue_by_user_type
(
""
,
""
,
'instructor_revenue'
);
$page_data
[
'page_title'
]
=
get_phrase
(
'instructor_revenue'
);
$this
->
load
->
view
(
'backend/index'
,
$page_data
);
...
...
@@ -232,7 +232,7 @@ class Admin extends CI_Controller
if
(
$this
->
session
->
userdata
(
'admin_login'
)
!=
true
)
{
redirect
(
site_url
(
'login'
),
'refresh'
);
}
$page_data
[
'page_name'
]
=
'invoice'
;
$page_data
[
'page_name'
]
=
'
report/
invoice'
;
$page_data
[
'payment_details'
]
=
$this
->
crud_model
->
get_payment_details_by_id
(
$payment_id
);
$page_data
[
'page_title'
]
=
get_phrase
(
'invoice'
);
$this
->
load
->
view
(
'backend/index'
,
$page_data
);
...
...
@@ -294,7 +294,7 @@ class Admin extends CI_Controller
}
$page_data
[
'languages'
]
=
$this
->
crud_model
->
get_all_languages
();
$page_data
[
'page_name'
]
=
'system_settings'
;
$page_data
[
'page_name'
]
=
's
etting/s
ystem_settings'
;
$page_data
[
'page_title'
]
=
get_phrase
(
'system_settings'
);
$this
->
load
->
view
(
'backend/index'
,
$page_data
);
}
...
...
@@ -337,7 +337,7 @@ class Admin extends CI_Controller
redirect
(
site_url
(
'admin/frontend_settings'
),
'refresh'
);
}
$page_data
[
'page_name'
]
=
'frontend_settings'
;
$page_data
[
'page_name'
]
=
'
setting/
frontend_settings'
;
$page_data
[
'page_title'
]
=
get_phrase
(
'frontend_settings'
);
$this
->
load
->
view
(
'backend/index'
,
$page_data
);
}
...
...
@@ -361,7 +361,7 @@ class Admin extends CI_Controller
redirect
(
site_url
(
'admin/payment_settings'
),
'refresh'
);
}
$page_data
[
'page_name'
]
=
'payment_settings'
;
$page_data
[
'page_name'
]
=
'
setting/
payment_settings'
;
$page_data
[
'page_title'
]
=
get_phrase
(
'payment_settings'
);
$this
->
load
->
view
(
'backend/index'
,
$page_data
);
}
...
...
@@ -378,7 +378,7 @@ class Admin extends CI_Controller
redirect
(
site_url
(
'admin/smtp_settings'
),
'refresh'
);
}
$page_data
[
'page_name'
]
=
'smtp_settings'
;
$page_data
[
'page_name'
]
=
's
etting/s
mtp_settings'
;
$page_data
[
'page_title'
]
=
get_phrase
(
'smtp_settings'
);
$this
->
load
->
view
(
'backend/index'
,
$page_data
);
}
...
...
@@ -394,7 +394,7 @@ class Admin extends CI_Controller
redirect
(
site_url
(
'admin/instructor_settings'
),
'refresh'
);
}
$page_data
[
'page_name'
]
=
'instructor_settings'
;
$page_data
[
'page_name'
]
=
'
setting/
instructor_settings'
;
$page_data
[
'page_title'
]
=
get_phrase
(
'instructor_settings'
);
$this
->
load
->
view
(
'backend/index'
,
$page_data
);
}
...
...
@@ -404,7 +404,7 @@ class Admin extends CI_Controller
if
(
$this
->
session
->
userdata
(
'admin_login'
)
!=
true
)
{
redirect
(
site_url
(
'login'
),
'refresh'
);
}
$page_data
[
'page_name'
]
=
'theme_settings'
;
$page_data
[
'page_name'
]
=
'
setting/
theme_settings'
;
$page_data
[
'page_title'
]
=
get_phrase
(
'theme_settings'
);
$this
->
load
->
view
(
'backend/index'
,
$page_data
);
}
...
...
@@ -731,7 +731,7 @@ class Admin extends CI_Controller
$this
->
session
->
set_flashdata
(
'flash_message'
,
get_phrase
(
'lesson_has_been_deleted_successfully'
));
redirect
(
'admin/course_form/course_edit/'
.
$course_id
);
}
elseif
(
$param1
==
'filter'
)
{
redirect
(
'
admin/le
ssons/'
.
$this
->
input
->
post
(
'course_id'
));
redirect
(
'
ssons/'
.
$this
->
input
->
post
(
'course_id'
));
}
$page_data
[
'page_name'
]
=
'lessons'
;
$page_data
[
'lessons'
]
=
$this
->
crud_model
->
get_lessons
(
'course'
,
$course_id
);
...
...
@@ -781,7 +781,7 @@ class Admin extends CI_Controller
}
}
$page_data
[
'languages'
]
=
$this
->
crud_model
->
get_all_languages
();
$page_data
[
'page_name'
]
=
'manage_language'
;
$page_data
[
'page_name'
]
=
'
setting/
manage_language'
;
$page_data
[
'page_title'
]
=
get_phrase
(
'multi_language_settings'
);
$this
->
load
->
view
(
'backend/index'
,
$page_data
);
}
...
...
@@ -954,7 +954,7 @@ class Admin extends CI_Controller
redirect
(
site_url
(
'login'
),
'refresh'
);
$page_data
[
'application_details'
]
=
$this
->
crud_model
->
get_application_details
();
$page_data
[
'page_name'
]
=
'about'
;
$page_data
[
'page_name'
]
=
'
setting/
about'
;
$page_data
[
'page_title'
]
=
get_phrase
(
'about'
);
$this
->
load
->
view
(
'backend/index'
,
$page_data
);
}
...
...
application/controllers/Home.php
View file @
b480de0b
...
...
@@ -87,7 +87,7 @@ class Home extends CI_Controller {
$page_data
[
'courses'
]
=
$courses
;
}
$page_data
[
'page_name'
]
=
"courses_page"
;
$page_data
[
'page_name'
]
=
"course
/course
s_page"
;
$page_data
[
'page_title'
]
=
get_phrase
(
'courses'
);
$page_data
[
'layout'
]
=
$layout
;
$page_data
[
'selected_category_id'
]
=
$selected_category_id
;
...
...
@@ -106,13 +106,13 @@ class Home extends CI_Controller {
public
function
course
(
$slug
=
""
,
$course_id
=
""
)
{
$this
->
access_denied_courses
(
$course_id
);
$page_data
[
'course_id'
]
=
$course_id
;
$page_data
[
'page_name'
]
=
"course_page"
;
$page_data
[
'page_name'
]
=
"course
/course
_page"
;
$page_data
[
'page_title'
]
=
get_phrase
(
'course'
);
$this
->
load
->
view
(
'frontend/'
.
get_frontend_settings
(
'theme'
)
.
'/index'
,
$page_data
);
}
public
function
instructor_page
(
$instructor_id
=
""
)
{
$page_data
[
'page_name'
]
=
"instructor_page"
;
$page_data
[
'page_name'
]
=
"instructor
/instructor
_page"
;
$page_data
[
'page_title'
]
=
get_phrase
(
'instructor_page'
);
$page_data
[
'instructor_id'
]
=
$instructor_id
;
$this
->
load
->
view
(
'frontend/'
.
get_frontend_settings
(
'theme'
)
.
'/index'
,
$page_data
);
...
...
@@ -122,7 +122,7 @@ class Home extends CI_Controller {
if
(
$this
->
session
->
userdata
(
'user_login'
)
!=
true
)
{
redirect
(
site_url
(
'home'
),
'refresh'
);
}
$page_data
[
'page_name'
]
=
"my_courses"
;
$page_data
[
'page_name'
]
=
"my_
all/my_
courses"
;
$page_data
[
'page_title'
]
=
get_phrase
(
"my_courses"
);
$this
->
load
->
view
(
'frontend/'
.
get_frontend_settings
(
'theme'
)
.
'/index'
,
$page_data
);
}
...
...
@@ -144,13 +144,13 @@ class Home extends CI_Controller {
$this
->
session
->
set_flashdata
(
'flash_message'
,
get_phrase
(
'message_sent!'
));
redirect
(
site_url
(
'home/my_messages/read_message/'
.
$param2
),
'refresh'
);
}
$page_data
[
'page_name'
]
=
"my_messages"
;
$page_data
[
'page_name'
]
=
"my_
all/my_
messages"
;
$page_data
[
'page_title'
]
=
get_phrase
(
'my_messages'
);
$this
->
load
->
view
(
'frontend/'
.
get_frontend_settings
(
'theme'
)
.
'/index'
,
$page_data
);
}
public
function
my_notifications
()
{
$page_data
[
'page_name'
]
=
"my_notifications"
;
$page_data
[
'page_name'
]
=
"my_
all/my_
notifications"
;
$page_data
[
'page_title'
]
=
get_phrase
(
'my_notifications'
);
$this
->
load
->
view
(
'frontend/'
.
get_frontend_settings
(
'theme'
)
.
'/index'
,
$page_data
);
}
...
...
@@ -161,7 +161,7 @@ class Home extends CI_Controller {
}
$my_courses
=
$this
->
crud_model
->
get_courses_by_wishlists
();
$page_data
[
'my_courses'
]
=
$my_courses
;
$page_data
[
'page_name'
]
=
"my_wishlist"
;
$page_data
[
'page_name'
]
=
"my_
all/my_
wishlist"
;
$page_data
[
'page_title'
]
=
get_phrase
(
'my_wishlist'
);
$this
->
load
->
view
(
'frontend/'
.
get_frontend_settings
(
'theme'
)
.
'/index'
,
$page_data
);
}
...
...
@@ -177,7 +177,7 @@ class Home extends CI_Controller {
$config
[
'base_url'
]
=
site_url
(
'home/purchase_history'
);
$this
->
pagination
->
initialize
(
$config
);
$page_data
[
'per_page'
]
=
$config
[
'per_page'
];
$page_data
[
'page_name'
]
=
"purchase_history"
;
$page_data
[
'page_name'
]
=
"
my_all/
purchase_history"
;
$page_data
[
'page_title'
]
=
get_phrase
(
'purchase_history'
);
$this
->
load
->
view
(
'frontend/'
.
get_frontend_settings
(
'theme'
)
.
'/index'
,
$page_data
);
}
...
...
@@ -188,13 +188,13 @@ class Home extends CI_Controller {
}
if
(
$param1
==
'user_profile'
)
{
$page_data
[
'page_name'
]
=
"user_profile"
;
$page_data
[
'page_name'
]
=
"
profile/
user_profile"
;
$page_data
[
'page_title'
]
=
get_phrase
(
'user_profile'
);
}
elseif
(
$param1
==
'user_credentials'
)
{
$page_data
[
'page_name'
]
=
"user_credentials"
;
$page_data
[
'page_name'
]
=
"
profile/
user_credentials"
;
$page_data
[
'page_title'
]
=
get_phrase
(
'credentials'
);
}
elseif
(
$param1
==
'user_photo'
)
{
$page_data
[
'page_name'
]
=
"update_user_photo"
;
$page_data
[
'page_name'
]
=
"
profile/
update_user_photo"
;
$page_data
[
'page_title'
]
=
get_phrase
(
'update_user_photo'
);
}
$page_data
[
'user_details'
]
=
$this
->
user_model
->
get_user
(
$this
->
session
->
userdata
(
'user_id'
));
...
...
@@ -366,7 +366,7 @@ class Home extends CI_Controller {
}
$page_data
[
'course_id'
]
=
$course_id
;
$page_data
[
'page_name'
]
=
'lessons'
;
$page_data
[
'page_name'
]
=
'lesson
/lesson
s'
;
$page_data
[
'page_title'
]
=
$course_details
[
'title'
];
$this
->
load
->
view
(
'lessons/index'
,
$page_data
);
}
...
...
@@ -391,7 +391,7 @@ class Home extends CI_Controller {
$this
->
session
->
set_userdata
(
'layout'
,
'list'
);
}
$page_data
[
'layout'
]
=
$this
->
session
->
userdata
(
'layout'
);
$page_data
[
'page_name'
]
=
'courses_page'
;
$page_data
[
'page_name'
]
=
'course
/course
s_page'
;
$page_data
[
'search_string'
]
=
$search_string
;
$page_data
[
'page_title'
]
=
get_phrase
(
'search_results'
);
$this
->
load
->
view
(
'frontend/'
.
get_frontend_settings
(
'theme'
)
.
'/index'
,
$page_data
);
...
...
@@ -433,19 +433,19 @@ class Home extends CI_Controller {
}
public
function
about_us
()
{
$page_data
[
'page_name'
]
=
'about_us'
;
$page_data
[
'page_name'
]
=
'
footer/
about_us'
;
$page_data
[
'page_title'
]
=
get_phrase
(
'about_us'
);
$this
->
load
->
view
(
'frontend/'
.
get_frontend_settings
(
'theme'
)
.
'/index'
,
$page_data
);
}
public
function
terms_and_condition
()
{
$page_data
[
'page_name'
]
=
'terms_and_condition'
;
$page_data
[
'page_name'
]
=
'
footer/
terms_and_condition'
;
$page_data
[
'page_title'
]
=
get_phrase
(
'terms_and_condition'
);
$this
->
load
->
view
(
'frontend/'
.
get_frontend_settings
(
'theme'
)
.
'/index'
,
$page_data
);
}
public
function
privacy_policy
()
{
$page_data
[
'page_name'
]
=
'privacy_policy'
;
$page_data
[
'page_name'
]
=
'
footer/
privacy_policy'
;
$page_data
[
'page_title'
]
=
get_phrase
(
'privacy_policy'
);
$this
->
load
->
view
(
'frontend/'
.
get_frontend_settings
(
'theme'
)
.
'/index'
,
$page_data
);
}
...
...
@@ -479,7 +479,7 @@ class Home extends CI_Controller {
$this
->
load
->
view
(
'frontend/'
.
get_frontend_settings
(
'theme'
)
.
'/index'
,
$page_data
);
}
public
function
edit_co
urse
(
$param1
=
""
,
$param2
=
""
)
{
public
function
n
urse
(
$param1
=
""
,
$param2
=
""
)
{
if
(
$this
->
session
->
userdata
(
'user_login'
)
!=
1
){
redirect
(
'home'
,
'refresh'
);
}
...
...
application/models/Crud_model.php
View file @
b480de0b
...
...
@@ -1879,6 +1879,7 @@ class Crud_model extends CI_Model {
}
public
function
edit_organ
(
$param1
)
{
$data
[
'code'
]
=
html_escape
(
$this
->
input
->
post
(
'code'
));
$data
[
'name'
]
=
html_escape
(
$this
->
input
->
post
(
'name'
));
$data
[
'parent_id'
]
=
html_escape
(
$this
->
input
->
post
(
'parent_id'
));
$data
[
'slug'
]
=
slugify
(
html_escape
(
$this
->
input
->
post
(
'name'
)));
...
...
application/models/User_model.php
View file @
b480de0b
...
...
@@ -44,7 +44,7 @@ class User_model extends CI_Model {
return
$this
->
db
->
get
(
'users'
);
}
}
else
{
return
0
;
return
$this
->
db
->
get
(
'users'
)
;
}
}
...
...
application/views/backend/admin/curriculum.php
→
application/views/backend/admin/c
ourse/c
urriculum.php
View file @
b480de0b
File moved
application/views/backend/admin/dashboard-chart.php
→
application/views/backend/admin/dashboard
/dashboard
-chart.php
View file @
b480de0b
File moved
application/views/backend/admin/dashboard.php
→
application/views/backend/admin/dashboard
/dashboard
.php
View file @
b480de0b
File moved
application/views/backend/admin/enrol_history.php
→
application/views/backend/admin/enrol
/enrol
_history.php
View file @
b480de0b
File moved
application/views/backend/admin/enrol_student.php
→
application/views/backend/admin/enrol
/enrol
_student.php
View file @
b480de0b
File moved
application/views/backend/admin/organization/organ_add.php
View file @
b480de0b
...
...
@@ -18,8 +18,8 @@
<form
class=
"required-form"
action=
"
<?php
echo
site_url
(
'admin/organization/add'
);
?>
"
method=
"post"
enctype=
"multipart/form-data"
>
<div
class=
"form-group"
>
<label
for=
"code"
>
<?php
echo
get_phrase
(
'organ_code'
);
?>
</label>
<input
type=
"text"
class=
"form-control"
id=
"code"
name =
"code"
value=
"
<?php
echo
substr
(
md5
(
rand
(
0
,
1000000
)),
0
,
10
);
?>
"
readonly
>
<label
for=
"code"
>
<?php
echo
get_phrase
(
'organ_code'
);
?>
<
span
class=
"required"
>
*
</span><
/label>
<input
type=
"text"
class=
"form-control"
id=
"code"
name =
"code"
value=
"
"
require
>
</div>
<div
class=
"form-group"
>
...
...
application/views/backend/admin/organization/organ_edit.php
View file @
b480de0b
...
...
@@ -20,8 +20,8 @@ $organ_details = $this->crud_model->get_organ_details_by_id($organ_id)->row_arra
<form
class=
"required-form"
action=
"
<?php
echo
site_url
(
'admin/organization/edit/'
.
$organ_id
);
?>
"
method=
"post"
enctype=
"multipart/form-data"
>
<div
class=
"form-group"
>
<label
for=
"code"
>
<?php
echo
get_phrase
(
'organ_
title'
);
?
>
</label>
<input
type=
"text"
class=
"form-control"
id=
"code"
name =
"code"
value=
"
<?php
echo
$organ_details
[
'code'
];
?>
"
re
adonly
>
<label
for=
"code"
>
<?php
echo
get_phrase
(
'organ_
code'
);
?>
<span
class=
"required"
>
*
</span
></label>
<input
type=
"text"
class=
"form-control"
id=
"code"
name =
"code"
value=
"
<?php
echo
$organ_details
[
'code'
];
?>
"
re
quire
>
</div>
<div
class=
"form-group"
>
...
...
application/views/backend/admin/admin_revenue.php
→
application/views/backend/admin/
report/
admin_revenue.php
View file @
b480de0b
File moved
application/views/backend/admin/instructor_revenue.php
→
application/views/backend/admin/
report/
instructor_revenue.php
View file @
b480de0b
File moved
application/views/backend/admin/invoice.php
→
application/views/backend/admin/
report/
invoice.php
View file @
b480de0b
File moved
application/views/backend/admin/about.php
→
application/views/backend/admin/
setting/
about.php
View file @
b480de0b
File moved
application/views/backend/admin/frontend_settings.php
→
application/views/backend/admin/
setting/
frontend_settings.php
View file @
b480de0b
File moved
application/views/backend/admin/instructor_settings.php
→
application/views/backend/admin/
setting/
instructor_settings.php
View file @
b480de0b
File moved
application/views/backend/admin/manage_language.php
→
application/views/backend/admin/
setting/
manage_language.php
View file @
b480de0b
File moved
application/views/backend/admin/mobile_app.php
→
application/views/backend/admin/
setting/
mobile_app.php
View file @
b480de0b
File moved
application/views/backend/admin/payment_settings.php
→
application/views/backend/admin/
setting/
payment_settings.php
View file @
b480de0b
File moved
application/views/backend/admin/smtp_settings.php
→
application/views/backend/admin/s
etting/s
mtp_settings.php
View file @
b480de0b
File moved
application/views/backend/admin/system_settings.php
→
application/views/backend/admin/s
etting/s
ystem_settings.php
View file @
b480de0b
File moved
application/views/backend/admin/theme_settings.php
→
application/views/backend/admin/
setting/
theme_settings.php
View file @
b480de0b
File moved
application/views/backend/admin/user_add.php
→
application/views/backend/admin/user
/user
_add.php
View file @
b480de0b
File moved
application/views/backend/admin/user_edit.php
→
application/views/backend/admin/user
/user
_edit.php
View file @
b480de0b
...
...
@@ -6,6 +6,24 @@
$organization
=
$this
->
crud_model
->
get_organization_all
(
$children_org
,
$is_supper_admin
)
->
result_array
();
$number
=
$this
->
session
->
userdata
(
'account_type'
);
$result
=
account_type
(
$number
,
$is_supper_admin
,
$children_org
);
function
children_orgs
(
$organization
,
$parent_id
=
0
,
$text
=
""
)
{
foreach
(
$organization
as
$k
=>
$organ
)
{
if
(
$organ
[
'parent_id'
]
==
$parent_id
)
{
echo
'<option value=\''
.
$organ
[
'id'
]
.
'\''
;
if
(
$is_supper_admin
==
0
)
{
if
(
$organ
[
'id'
]
==
$organization_id
)
echo
'disabled'
;
};
if
(
$organ
[
'id'
]
==
$user_data
[
'organization_id'
])
echo
'selected'
;
echo
'>'
.
$text
.
' '
.
$organ
[
'name'
]
.
'</option>'
;
$id
=
$organ
[
'id'
];
unset
(
$organization
[
$k
]);
children_orgs
(
$organization
,
$id
,
$text
.
"--"
);
}
}
}
?>
<div
class=
"row "
>
<div
class=
"col-xl-12"
>
...
...
@@ -83,16 +101,19 @@
<div
class=
"col-md-9"
>
<select
class=
"form-control select2"
data-toggle=
"select2"
name=
"organization_id"
id=
"organization_id"
>
<option
value=
"2"
>
<?php
echo
get_phrase
(
'none'
);
?>
</option>
<?php
foreach
(
$organization
as
$organ
)
:
if
(
$children_org
!=
array
())
{
?>
<option
value=
"
<?php
echo
$organ
[
'id'
];
?>
"
<?php
if
(
$is_supper_admin
==
1
){}
else
{
if
(
$organ
[
'id'
]
==
$organization_id
||
$organ
[
'parent_id'
]
==
0
)
echo
'disabled'
;
}
if
(
$organ
[
'id'
]
==
$user_data
[
'organization_id'
])
echo
'selected'
?>
>
<?php
echo
$organ
[
'name'
];
?>
</option>
<?php
}
else
{
?>
<?php
if
(
$children_org
!=
array
())
{
if
(
$is_supper_admin
==
0
)
{
children_orgs
(
$organization
,
$user_data
[
'organization_id'
]);
}
else
{
children_orgs
(
$organization
);
}
}
else
{
foreach
(
$organization
as
$organ
)
:
?>
<option
value=
"
<?php
echo
$organ
[
'id'
];
?>
"
<?php
if
(
$organ
[
'parent_id'
]
==
0
)
echo
'disabled'
;
if
(
$organ
[
'id'
]
==
$user_data
[
'organization_id'
])
echo
'selected'
?>
>
<?php
echo
$organ
[
'name'
];
?>
</option>
<?php
}
endforeach
;
?>
<?php
endforeach
;}
?>
</select>
</div>
</div>
...
...
application/views/backend/admin/users.php
→
application/views/backend/admin/user
/user
s.php
View file @
b480de0b
File moved
application/views/backend/includes_bottom.php
View file @
b480de0b
...
...
@@ -35,7 +35,7 @@
<script
src=
"
<?php
echo
site_url
(
'assets/backend/js/custom.js'
);
?>
"
></script>
<!-- Dashboard chart's data is coming from this file -->
<?php
include
'admin/dashboard-chart.php'
;
?>
<?php
include
'admin/dashboard
/dashboard
-chart.php'
;
?>
<script
type=
"text/javascript"
>
$
(
document
).
ready
(
function
()
{
...
...
application/views/frontend/default/category_wise_course_list_layout.php
→
application/views/frontend/default/c
ourse/c
ategory_wise_course_list_layout.php
View file @
b480de0b
File moved
application/views/frontend/default/course_page.php
→
application/views/frontend/default/course
/course
_page.php
View file @
b480de0b
File moved
application/views/frontend/default/courses_page.php
→
application/views/frontend/default/course
/course
s_page.php
View file @
b480de0b
File moved
application/views/frontend/default/about_us.php
→
application/views/frontend/default/
footer/
about_us.php
View file @
b480de0b
File moved
application/views/frontend/default/privacy_policy.php
→
application/views/frontend/default/
footer/
privacy_policy.php
View file @
b480de0b
File moved
application/views/frontend/default/terms_and_condition.php
→
application/views/frontend/default/
footer/
terms_and_condition.php
View file @
b480de0b
File moved
application/views/frontend/default/instructor_dashboard.php
→
application/views/frontend/default/instructor
/instructor
_dashboard.php
View file @
b480de0b
File moved
application/views/frontend/default/instructor_items.php
→
application/views/frontend/default/instructor
/instructor
_items.php
View file @
b480de0b
File moved
application/views/frontend/default/instructor_page.php
→
application/views/frontend/default/instructor
/instructor
_page.php
View file @
b480de0b
File moved
application/views/frontend/default/lessons.php
→
application/views/frontend/default/lesson
/lesson
s.php
View file @
b480de0b
File moved
application/views/frontend/default/inner_messages.php
→
application/views/frontend/default/
my_all/
inner_messages.php
View file @
b480de0b
File moved
application/views/frontend/default/my_courses.php
→
application/views/frontend/default/my_
all/my_
courses.php
View file @
b480de0b
File moved
application/views/frontend/default/my_messages.php
→
application/views/frontend/default/my_
all/my_
messages.php
View file @
b480de0b
File moved
application/views/frontend/default/my_notifications.php
→
application/views/frontend/default/my_
all/my_
notifications.php
View file @
b480de0b
File moved
application/views/frontend/default/my_wishlist.php
→
application/views/frontend/default/my_
all/my_
wishlist.php
View file @
b480de0b
File moved
application/views/frontend/default/purchase_history.php
→
application/views/frontend/default/
my_all/
purchase_history.php
View file @
b480de0b
File moved
application/views/frontend/default/update_user_photo.php
→
application/views/frontend/default/
profile/
update_user_photo.php
View file @
b480de0b
File moved
application/views/frontend/default/user_credentials.php
→
application/views/frontend/default/
profile/
user_credentials.php
View file @
b480de0b
File moved
application/views/frontend/default/user_profile.php
→
application/views/frontend/default/
profile/
user_profile.php
View file @
b480de0b
File moved
application/views/lessons/lessons.php
View file @
b480de0b
...
...
@@ -6,13 +6,13 @@ $course_details_url = site_url("home/course/".slugify($course_details['title']).
<div
class=
"container-fluid course_container"
>
<!-- Top bar -->
<div
class=
"row"
>
<div
class=
"col-lg-
9
course_header_col"
>
<div
class=
"col-lg-
8
course_header_col"
>
<h5>
<img
src=
"
<?php
echo
base_url
()
.
'uploads/system/logo-light-sm.png'
;
?>
"
height=
"25"
>
|
<?php
echo
$course_details
[
'title'
];
?>
</h5>
</div>
<div
class=
"col-lg-
3
course_header_col"
>
<div
class=
"col-lg-
4
course_header_col"
>
<a
href=
"javascript::"
class=
"course_btn"
onclick=
"toggle_lesson_view()"
><i
class=
"fa fa-arrows-alt-h"
></i></a>
<a
href=
"
<?php
echo
$my_course_url
;
?>
"
class=
"course_btn"
>
<i
class=
"fa fa-chevron-left"
></i>
<?php
echo
get_phrase
(
'my_courses'
);
?>
</a>
<a
href=
"
<?php
echo
$course_details_url
;
?>
"
class=
"course_btn"
>
<?php
echo
get_phrase
(
'course_details'
);
?>
<i
class=
"fa fa-chevron-right"
></i></a>
...
...
index.php
View file @
b480de0b
...
...
@@ -53,8 +53,9 @@
*
* NOTE: If you change these, also change the error_reporting() code below
*/
define
(
'ENVIRONMENT'
,
isset
(
$_SERVER
[
'CI_ENV'
])
?
$_SERVER
[
'CI_ENV'
]
:
'
production
'
);
define
(
'ENVIRONMENT'
,
isset
(
$_SERVER
[
'CI_ENV'
])
?
$_SERVER
[
'CI_ENV'
]
:
'
development
'
);
error_log
(
'123'
);
/*
*---------------------------------------------------------------
* ERROR REPORTING
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment