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
b3cec2e3
Commit
b3cec2e3
authored
Mar 02, 2020
by
Phạm Văn Đoan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tổ chức lại view của module categories
parent
259f8092
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
6 additions
and
5 deletions
+6
-5
Admin.php
application/controllers/Admin.php
+5
-5
categories.php
application/views/backend/admin/category/categories.php
+0
-0
category_add.php
application/views/backend/admin/category/category_add.php
+0
-0
category_edit.php
application/views/backend/admin/category/category_edit.php
+0
-0
sub_categories.php
application/views/backend/admin/category/sub_categories.php
+1
-0
sub_category_add.php
...ication/views/backend/admin/category/sub_category_add.php
+0
-0
sub_category_edit.php
...cation/views/backend/admin/category/sub_category_edit.php
+0
-0
No files found.
application/controllers/Admin.php
View file @
b3cec2e3
...
...
@@ -64,7 +64,7 @@ class Admin extends CI_Controller
$this
->
session
->
set_flashdata
(
'flash_message'
,
get_phrase
(
'data_deleted'
));
redirect
(
site_url
(
'admin/categories'
),
'refresh'
);
}
$page_data
[
'page_name'
]
=
'categories'
;
$page_data
[
'page_name'
]
=
'categor
y/categor
ies'
;
$page_data
[
'page_title'
]
=
get_phrase
(
'categories'
);
$page_data
[
'categories'
]
=
$this
->
crud_model
->
get_categories
(
$param2
);
$this
->
load
->
view
(
'backend/index'
,
$page_data
);
...
...
@@ -76,12 +76,12 @@ class Admin extends CI_Controller
redirect
(
site_url
(
'login'
),
'refresh'
);
}
if
(
$param1
==
"add_category"
)
{
$page_data
[
'page_name'
]
=
'category_add'
;
$page_data
[
'page_name'
]
=
'category
/category
_add'
;
$page_data
[
'categories'
]
=
$this
->
crud_model
->
get_categories
()
->
result_array
();
$page_data
[
'page_title'
]
=
get_phrase
(
'add_category'
);
}
if
(
$param1
==
"edit_category"
)
{
$page_data
[
'page_name'
]
=
'category_edit'
;
$page_data
[
'page_name'
]
=
'category
/category
_edit'
;
$page_data
[
'page_title'
]
=
get_phrase
(
'edit_category'
);
$page_data
[
'categories'
]
=
$this
->
crud_model
->
get_categories
()
->
result_array
();
$page_data
[
'category_id'
]
=
$param2
;
...
...
@@ -107,10 +107,10 @@ class Admin extends CI_Controller
}
if
(
$param1
==
'add_sub_category'
)
{
$page_data
[
'page_name'
]
=
'sub_category_add'
;
$page_data
[
'page_name'
]
=
'
category/
sub_category_add'
;
$page_data
[
'page_title'
]
=
get_phrase
(
'add_sub_category'
);
}
elseif
(
$param1
==
'edit_sub_category'
)
{
$page_data
[
'page_name'
]
=
'sub_category_edit'
;
$page_data
[
'page_name'
]
=
'
category/
sub_category_edit'
;
$page_data
[
'page_title'
]
=
get_phrase
(
'edit_sub_category'
);
$page_data
[
'sub_category_id'
]
=
$param2
;
}
...
...
application/views/backend/admin/categories.php
→
application/views/backend/admin/categor
y/categor
ies.php
View file @
b3cec2e3
File moved
application/views/backend/admin/category_add.php
→
application/views/backend/admin/category
/category
_add.php
View file @
b3cec2e3
File moved
application/views/backend/admin/category_edit.php
→
application/views/backend/admin/category
/category
_edit.php
View file @
b3cec2e3
File moved
application/views/backend/admin/sub_categories.php
→
application/views/backend/admin/
category/
sub_categories.php
View file @
b3cec2e3
Phạm Văn Đoan
<?php
if
(
$selected_category_id
==
0
)
{
foreach
(
$categories
->
result_array
()
as
$category
)
{
...
...
application/views/backend/admin/sub_category_add.php
→
application/views/backend/admin/
category/
sub_category_add.php
View file @
b3cec2e3
File moved
application/views/backend/admin/sub_category_edit.php
→
application/views/backend/admin/
category/
sub_category_edit.php
View file @
b3cec2e3
File moved
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