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
f8807205
Commit
f8807205
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 module
parent
646acfe5
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
3 deletions
+6
-3
Admin.php
application/controllers/Admin.php
+6
-3
organ_add.php
application/views/backend/admin/organization/organ_add.php
+0
-0
organ_edit.php
application/views/backend/admin/organization/organ_edit.php
+0
-0
organization.php
...ication/views/backend/admin/organization/organization.php
+0
-0
No files found.
application/controllers/Admin.php
View file @
f8807205
...
...
@@ -1065,6 +1065,9 @@ class Admin extends CI_Controller
$this
->
crud_model
->
sort_question
(
$question_json
);
}
/**
* Module Đơn vị/Tổ chức
*/
public
function
organization
(
$param1
=
""
,
$param2
=
""
)
{
if
(
$this
->
session
->
userdata
(
'admin_login'
)
!=
true
)
{
...
...
@@ -1084,7 +1087,7 @@ class Admin extends CI_Controller
$this
->
session
->
set_flashdata
(
'flash_message'
,
get_phrase
(
'data_deleted'
));
redirect
(
site_url
(
'admin/organization'
),
'refresh'
);
}
$page_data
[
'page_name'
]
=
'organization'
;
$page_data
[
'page_name'
]
=
'organization
/organization
'
;
$page_data
[
'organization'
]
=
get_phrase
(
'organization'
);
$page_data
[
'organization'
]
=
$this
->
crud_model
->
get_organization
(
$param2
);
$this
->
load
->
view
(
'backend/index'
,
$page_data
);
...
...
@@ -1096,12 +1099,12 @@ class Admin extends CI_Controller
redirect
(
site_url
(
'login'
),
'refresh'
);
}
if
(
$param1
==
"add_organ"
)
{
$page_data
[
'page_name'
]
=
'organ_add'
;
$page_data
[
'page_name'
]
=
'organ
ization/organ
_add'
;
$page_data
[
'organization'
]
=
$this
->
crud_model
->
get_organization
()
->
result_array
();
$page_data
[
'page_title'
]
=
get_phrase
(
'add_organ'
);
}
if
(
$param1
==
"edit_organ"
)
{
$page_data
[
'page_name'
]
=
'organ_edit'
;
$page_data
[
'page_name'
]
=
'organ
ization/organ
_edit'
;
$page_data
[
'page_title'
]
=
get_phrase
(
'edit_organ'
);
$page_data
[
'organization'
]
=
$this
->
crud_model
->
get_organization
()
->
result_array
();
$page_data
[
'organ_id'
]
=
$param2
;
...
...
application/views/backend/admin/organ_add.php
→
application/views/backend/admin/organ
ization/organ
_add.php
View file @
f8807205
File moved
application/views/backend/admin/organ_edit.php
→
application/views/backend/admin/organ
ization/organ
_edit.php
View file @
f8807205
File moved
application/views/backend/admin/organization.php
→
application/views/backend/admin/organization
/organization
.php
View file @
f8807205
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