Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
杨建斌
/
page
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
1
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
5c81f949
authored
2018-03-21 21:44:27 +0800
by
yangjianbin
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
init
1 parent
0223b292
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
3 deletions
application/hooks/CheckLogin.php
application/views/work/index.php
application/hooks/CheckLogin.php
View file @
5c81f94
...
...
@@ -25,6 +25,10 @@ class CheckLogin
if
(
!
$session
->
customerManagers
)
{
$session
->
customerManagers
=
$this
->
getCustomerManagers
();
}
if
(
!
$session
->
operatorManagers
)
{
$session
->
operatorManagers
=
$this
->
getOperatorManagers
();
}
/*if (preg_match("/admin|base/i", uri_string())) {
if(!$this->CI->session->isadmin){
...
...
@@ -72,4 +76,12 @@ class CheckLogin
return
$products
;
}
private
function
getOperatorManagers
()
{
$url
=
'http://151.28ms.com:8088/system/user/getOperatorManager'
;
$res
=
json_decode
(
file_get_contents
(
$url
));
$products
=
$res
->
data
;
return
$products
;
}
}
\ No newline at end of file
...
...
application/views/work/index.php
View file @
5c81f94
...
...
@@ -57,9 +57,9 @@
<span
class=
"select-box"
>
<select
class=
"select table_search"
name=
"modifyUser"
size=
"1"
column=
"13"
>
<option
value=
""
selected
>
处理人
</option>
<
option
value=
"1"
>
菜单一
</option
>
<option
value=
"2"
>
菜单二
</option>
<
option
value=
"3"
>
菜单三
</option
>
<
?php
foreach
(
$this
->
session
->
operatorManagers
as
$k
=>
$v
)
:?
>
<
option
value
=
"<?=
$k
?>"
><?=
$v
->
name
?>
</option>
<
?php
endforeach
;
?
>
</select>
</span>
</div>
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
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 post a comment