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
f347ae2a
Commit
f347ae2a
authored
Mar 04, 2020
by
Trần Văn Minh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chỉnh sửa add user
parent
1373a75f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
Crud_model.php
application/models/Crud_model.php
+8
-2
No files found.
application/models/Crud_model.php
View file @
f347ae2a
...
@@ -1826,7 +1826,7 @@ class Crud_model extends CI_Model {
...
@@ -1826,7 +1826,7 @@ class Crud_model extends CI_Model {
}
}
public
function
get_organization_all
(
$param1
=
""
,
$is_supper_admin
=
""
)
{
public
function
get_organization_all
(
$param1
=
""
,
$is_supper_admin
=
""
)
{
if
(
$is_supper_admin
==
0
)
{
if
(
$is_supper_admin
==
0
&&
$param1
!=
""
)
{
if
(
$param1
!=
""
&&
$param1
!=
array
())
{
if
(
$param1
!=
""
&&
$param1
!=
array
())
{
$this
->
db
->
where_in
(
'id'
,
$param1
);
$this
->
db
->
where_in
(
'id'
,
$param1
);
}
else
{
}
else
{
...
@@ -1834,9 +1834,15 @@ class Crud_model extends CI_Model {
...
@@ -1834,9 +1834,15 @@ class Crud_model extends CI_Model {
$this
->
db
->
where
(
'id'
,
$organization_id
);
$this
->
db
->
where
(
'id'
,
$organization_id
);
}
}
return
$this
->
db
->
get
(
'organization'
);
return
$this
->
db
->
get
(
'organization'
);
}
else
}
else
if
(
$is_supper_admin
===
1
)
{
return
$this
->
db
->
get
(
'organization'
);
return
$this
->
db
->
get
(
'organization'
);
}
}
if
(
$param1
==
""
&&
$is_supper_admin
==
""
)
{
$where
=
"parent_id != 0"
;
$this
->
db
->
where
(
$where
);
return
$this
->
db
->
get
(
'organization'
);
}
}
public
function
get_organ_details_by_id
(
$id
)
{
public
function
get_organ_details_by_id
(
$id
)
{
return
$this
->
db
->
get_where
(
'organization'
,
array
(
'id'
=>
$id
));
return
$this
->
db
->
get_where
(
'organization'
,
array
(
'id'
=>
$id
));
...
...
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