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
ef7b4b9a
authored
2018-03-29 19:45:20 +0800
by
yangjianbin
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
init
1 parent
d88644d4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
3 deletions
application/controllers/Perm.php
application/views/perm/roleEdit.php
application/controllers/Perm.php
View file @
ef7b4b9
...
...
@@ -52,9 +52,17 @@ class Perm extends CI_Controller {
$this
->
load
->
view
(
'perm/roleAdd'
);
}
public
function
roleEdit
()
public
function
roleEdit
(
$id
)
{
$this
->
load
->
view
(
'perm/roleEdit'
);
$url
=
$this
->
CI
->
config
->
item
(
'apiBaseUrl'
)
.
'system/role/get/'
.
$id
;
$result
=
file_get_contents
(
$url
);
$json
=
json_decode
(
$result
);
$ret
=
$json
->
data
;
$data
=
array
(
'item'
=>
$ret
,
'id'
=>
$id
);
$this
->
load
->
view
(
'perm/roleEdit'
,
$data
);
}
public
function
organization
()
...
...
application/views/perm/roleEdit.php
View file @
ef7b4b9
...
...
@@ -2,6 +2,9 @@
<body>
<div
class=
"panel panel-default"
>
<form
action=
""
>
<input
type=
"hidden"
value=
"
<?=
$id
?>
"
name=
"id"
>
</form>
<div
class=
"panel-body"
>
<div
class=
"row cl"
>
<!--<div class="form-group col-sm-3 col-md-2">
...
...
@@ -14,7 +17,7 @@
</div>-->
<div
class=
"form-group col-sm-3 col-md-2"
>
<label>
角色
</label>
<input
type=
"text"
class=
"form-control input-text"
value=
""
>
<input
type=
"text"
class=
"form-control input-text"
value=
"
<?=
$item
->
nameZh
?>
"
>
</div>
</div>
<div
class=
"row cl"
>
...
...
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