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
425d4e79
authored
2018-03-30 15:26:39 +0800
by
wang
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
init
1 parent
8ce0c5da
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
application/views/perm/staffEdit.php
application/views/perm/staffEdit.php
View file @
425d4e7
...
...
@@ -32,7 +32,7 @@
<option
value=
"
<?=
$v
->
id
?>
"
>
<?=
$v
->
name
?>
</option>
<?php
if
(
$v
->
children
&&
!
empty
(
$v
->
children
))
:
?>
<?php
foreach
(
$v
->
children
as
$kk
=>
$vv
)
:
?>
<option
value=
"
<?=
$vv
->
id
?>
"
<?php
if
(
in_array
(
$vv
->
id
,
$roles
))
echo
'selected'
;
?>
>
<?=
$vv
->
name
?>
</option>
<option
value=
"
<?=
$vv
->
id
?>
"
<?php
//
if(in_array($vv->id,$roles)) echo 'selected';?> ><?= $vv->name ?></option>
<?
php
endforeach
;
?>
<?php
endif
;
?>
<?php
endforeach
;
?>
...
...
@@ -43,7 +43,7 @@
<select
class=
"select"
size=
"5"
name=
"roles"
multiple
>
<option
selected
value
>
请选择
</option>
<?php
foreach
(
$this
->
session
->
role
as
$k
=>
$v
)
:
?>
<option
value=
"
<?=
$v
->
id
?>
"
<?php
if
(
$item
->
departmentId
==
$v
->
id
)
echo
'selected'
;
?>
>
<?=
$v
->
nameZh
?>
</option>
<option
value=
"
<?=
$v
->
id
?>
"
<?php
//
if($item->departmentId == $v->id) echo 'selected';?> ><?= $v->nameZh ?></option>
<?
php
endforeach
;
?>
</
select
>
</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