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
988dadd1
authored
2018-03-25 23:34:36 +0800
by
yangjianbin
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
init
1 parent
57d132d8
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
9 deletions
application/views/perm/roleAdd.php
application/views/perm/staffAdd.php
application/views/perm/roleAdd.php
View file @
988dadd
...
...
@@ -8,7 +8,14 @@
<label>
所属网点
</label>
<span
class=
"form-control select-box"
>
<select
class=
"select"
size=
"1"
>
<option
selected
value
>
请选择
</option>
<?php
foreach
(
$this
->
session
->
departments
as
$k
=>
$v
)
:?>
<
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
?>"
><?=
$vv
->
name
?>
</option>
<?php
endforeach
;
?>
<?php
endif
;
?>
<?php
endforeach
;
?>
</select>
</span>
</div>
...
...
application/views/perm/staffAdd.php
View file @
988dadd
...
...
@@ -35,20 +35,23 @@
<label>
所属网点
</label>
<select
class=
"select"
size=
"5"
multiple
>
<option
selected
value
>
请选择
</option>
<option
value
>
请选择
</option>
<option
value
>
请选择
</option>
<option
value
>
请选择
</option>
<option
value
>
请选择
</option>
<?php
foreach
(
$this
->
session
->
departments
as
$k
=>
$v
)
:?>
<
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
?>"
><?=
$vv
->
name
?>
</option>
<?php
endforeach
;
?>
<?php
endif
;
?>
<?php
endforeach
;
?>
</select>
</div>
<div
class=
"form-group col-sm-4 col-md-2"
>
<label>
角色
</label>
<select
class=
"select"
size=
"5"
multiple
>
<option
selected
value
>
请选择
</option>
<option
value
>
请选择
</option>
<option
value
>
请选择
</option>
<option
value
>
请选择
</option>
<option
value
>
请选择
</option>
<?php
foreach
(
$this
->
session
->
role
as
$k
=>
$v
)
:?>
<
option
value
=
"<?=
$v->id
?>"
><?=
$v
->
nameZh
?>
</option>
<?php
endforeach
;
?>
</select>
</div>
</div>
...
...
@@ -73,6 +76,7 @@
}
function
save
()
{
window
.
parent
.
msg
(
'添加成功'
)
layer_close
();
...
...
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