Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tl_estate
Project
Project
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
hujun
tl_estate
Commits
e49e4c3e
Commit
e49e4c3e
authored
Jan 16, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
edit
parent
059a9d3c
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
129 additions
and
136 deletions
+129
-136
access.html
application/index/view/auth/access.html
+0
-0
accessUser.html
application/index/view/auth/accessUser.html
+76
-76
index.html
application/index/view/auth/index.html
+1
-1
roleedit.html
application/index/view/auth/roleedit.html
+46
-53
route.php
application/route.php
+3
-3
auth_template_tpl.html
public/resource/template/auth_template_tpl.html
+3
-3
No files found.
application/index/view/auth/access.html
View file @
e49e4c3e
This diff is collapsed.
Click to expand it.
application/index/view/auth/accessUser.html
View file @
e49e4c3e
{extend name="public/base"/}
{layout name="global/frame_tpl" /}
{block name="style"}{/block}
<div
id=
"page-content-wrapper"
>
<div
class=
"container"
>
{block name="main"}
<div
class=
"col-lg-10 col-lg-offset-0"
>
<div
class=
"builder-tabs builder-form-tabs"
>
<div
class=
"builder-tabs builder-form-tabs"
>
<ul
class=
"nav nav-tabs"
>
<ul
class=
"nav nav-tabs"
>
<li
class=
""
><a
href=
"{:url('roleedit',array('group_id'=>$group_id))}"
>
角色信息
</a></li>
<li
class=
""
><a
href=
"/admin.php/index/roleedit/1.html"
>
角色信息
</a></li>
<li
class=
""
><a
href=
"{:url('access',array('group_id'=>$group_id))}"
>
权限分配
</a></li>
<li
class=
""
><a
href=
"/admin.php/index/access/1.html"
>
权限分配
</a></li>
<li
class=
"active"
><a
href=
"{:url('accessUser',['group_id'=>$group_id])}"
>
成员授权
</a></li>
<li
class=
"active"
><a
href=
"/admin.php/index/accessUser/1.html"
>
成员授权
</a></li>
<li
class=
"right form-group mt0 mr20"
>
<li
class=
"right form-group mt0 mr20"
>
<select
name=
"group"
class=
"form-control col-md-8"
>
<select
name=
"group"
class=
"form-control col-md-8"
>
{volist name="auth_group" id="vo"}
<option
value=
"/admin.php/admin/auth_manager/user/group_id/1/group_name/%E8%B6%85%E7%BA%A7%E7%AE%A1%E7%90%86%E5%91%98.html"
selected=
""
>
超级管理员
</option>
<option
value=
"{:url('AuthManager/user',['group_id'=>$vo['id'],'group_name'=>$vo['title']])}"
{
eq
name=
"vo['id']"
value=
"$this_group['id']"
}
selected
{/
eq
}
>
{$vo.title}
</option>
<option
value=
"/admin.php/admin/auth_manager/user/group_id/2/group_name/%E7%AE%A1%E7%90%86%E5%91%98.html"
>
管理员
</option>
{/volist}
<option
value=
"/admin.php/admin/auth_manager/user/group_id/3/group_name/%E6%99%AE%E9%80%9A%E7%94%A8%E6%88%B7.html"
>
普通用户
</option>
</select>
<option
value=
"/admin.php/admin/auth_manager/user/group_id/4/group_name/%E5%AE%A2%E6%9C%8D.html"
>
客服
</option>
</li>
</select>
</ul>
</li>
<div
class=
"form-group"
></div>
</ul>
</div>
<div
class=
"form-group"
></div>
</div>
<div
class=
"builder-container listbuilder-box"
>
<div
class=
"builder formbuilder-box panel-body bg-color-fff"
>
<div
class=
"row"
>
<div
class=
"row"
>
<div
class=
"builder-table"
>
<!-- 数据列表 -->
<div
class=
"col-sm-12"
>
<table
class=
"table table-responsive table-hover dataTable"
>
<thead>
<tr>
<th
class=
""
>
UID
</th>
<th
class=
""
>
昵称
</th>
<th
class=
""
>
最后登录时间
</th>
<th
class=
""
>
最后登录IP
</th>
<th
class=
""
>
状态
</th>
<th
class=
""
>
操作
</th>
</tr>
</thead>
<tbody>
<tr>
<td>
1
</td>
<td>
创始人
</td>
<td><span>
2018-01-16 16:49
</span></td>
<td><span>
127.0.0.1
</span></td>
<td>
正常
</td>
<td><a
href=
"/admin.php/admin/auth/removefromgroup/uid/1/group_id/1.html"
class=
"ajax-get"
>
解除授权
</a>
<div
class=
"builder-table"
>
</td>
<!-- 数据列表 -->
</tr>
<div
class=
"col-sm-12"
>
<tr>
<table
class=
"table table-responsive table-hover dataTable"
>
<td>
2
</td>
<thead>
<td>
心灵旅行
</td>
<tr>
<td><span>
2016-09-18 22:18
</span></td>
<th
class=
""
>
UID
</th>
<td><span>
1928388295
</span></td>
<th
class=
""
>
昵称
</th>
<td>
正常
</td>
<th
class=
""
>
最后登录时间
</th>
<td><a
href=
"/admin.php/admin/auth/removefromgroup/uid/2/group_id/1.html"
class=
"ajax-get"
>
解除授权
</a>
<th
class=
""
>
最后登录IP
</th>
<th
class=
""
>
状态
</th>
<th
class=
""
>
操作
</th>
</tr>
</thead>
<tbody>
{volist name="_list" id="vo"}
<tr>
<td>
{$vo.uid}
</td>
<td>
{$vo.nickname}
</td>
<td><span>
{$vo.last_login_time|time_format}
</span></td>
<td><span>
{$vo.last_login_ip}
</span></td>
<td>
{switch name="vo.status"}
{case value="-1"}删除{/case}
{case value="0"}禁用{/case}
{case value="1"}正常{/case}
{case value="2"}待审核{/case}
{case value="3"}草稿{/case}
{default /}未知
{/switch}
</td>
<td><a
href=
"{:url('auth/removeFromGroup?uid='.$vo['uid'].'&group_id='.input('group_id'))}"
class=
"ajax-get"
>
解除授权
</a>
</td>
</td>
</tr>
</tr>
{/volist}
</tbody>
</tbody>
</table>
</table>
</div>
</div>
</div>
</div>
<div
class=
"main-title"
>
<div
class=
"main-title"
>
<div
class=
"page_nav col-md-8"
>
<div
class=
"page_nav col-md-8"
>
{$_list->render()}
</div>
</div>
<div
id=
"add-to-group"
class=
"tools col-md-4"
>
<div
id=
"add-to-group"
class=
"tools col-md-4"
>
<form
class=
"add-user"
action=
"/admin.php/admin/auth/addtogroup.html"
method=
"post"
enctype=
"application/x-www-form-urlencoded"
>
<form
class=
"add-user"
action=
"{:url('addToGroup')}"
method=
"post"
enctype=
"application/x-www-form-urlencoded"
>
<div
class=
"form-group"
>
<div
class=
"form-group"
>
<div
class=
"col-md-10"
>
<div
class=
"col-md-10"
>
<input
class=
"form-control"
type=
"text"
name=
"uid"
placeholder=
"请输入uid,多个用英文逗号分隔"
>
<input
class=
"form-control"
type=
"text"
name=
"uid"
placeholder=
"请输入uid,多个用英文逗号分隔"
>
</div>
<input
type=
"hidden"
name=
"group_id"
value=
"1"
>
<button
type=
"submit"
class=
"btn btn-info btn-raised btn-sm ajax-post col-md-2"
target-form=
"add-user"
>
新 增
</button>
</div>
</form>
</div>
</div>
</div>
</div>
<input
type=
"hidden"
name=
"group_id"
value=
"{:input('group_id')}"
>
<button
type=
"submit"
class=
"btn btn-info btn-raised btn-sm ajax-post col-md-2"
target-form=
"add-user"
>
新 增
</button>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
{/block}
\ No newline at end of file
application/index/view/auth/index.html
View file @
e49e4c3e
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<div
id=
"page-content-wrapper"
>
<div
id=
"page-content-wrapper"
>
<div
class=
"container"
>
<div
class=
"container"
>
<div
class=
"col-lg-10 col-lg-offset-0"
>
<div
class=
"col-lg-10 col-lg-offset-0"
>
<table
class=
"table table-
responsive table-bordered table-hover dataTable
"
>
<table
class=
"table table-
striped table-bordered table-hover table-condensed
"
>
<thead>
<thead>
<tr>
<tr>
<th
class=
"text-center"
>
ID
</th>
<th
class=
"text-center"
>
ID
</th>
...
...
application/index/view/auth/roleedit.html
View file @
e49e4c3e
{extend name="public/base"/}
{layout name="global/frame_tpl" /}
{block name="style"}{/block}
<div
id=
"page-content-wrapper"
>
<div
class=
"container"
>
<div
class=
"col-lg-10 col-lg-offset-0"
>
<div
class=
"builder-tabs builder-form-tabs"
>
<ul
class=
"nav nav-tabs"
>
<li
class=
"active"
><a
href=
"/admin.php/index/roleedit/1.html"
>
角色信息
</a></li>
<li
class=
""
><a
href=
"/admin.php/index/access/1.html"
>
权限分配
</a></li>
<li
class=
""
><a
href=
"/admin.php/index/accessUser/1.html"
>
成员授权
</a></li>
</ul>
<div
class=
"form-group"
></div>
</div>
<div
class=
"builder formbuilder-box panel-body bg-color-fff"
>
<div
class=
"row"
>
<div
class=
"col-md-7"
>
<form
action=
""
method=
"post"
class=
"form-builder form-horizontal"
>
<fieldset>
<input
type=
"hidden"
name=
"id"
value=
"3"
>
<div
class=
"form-group"
>
<label
for=
"title"
class=
"col-md-2 control-label"
>
名称:
</label>
<div
class=
"col-md-10"
>
<input
type=
"text"
class=
"form-control"
name=
"title"
placeholder=
"创建的角色名称"
value=
"普通用户"
>
<span
class=
"material-input"
></span>
</div>
</div>
<div
class=
"form-group item_description"
>
<label
for=
"description"
class=
"col-md-2 control-label"
>
描述:
</label>
<div
class=
"col-md-10"
>
<textarea
name=
"description"
class=
"form-control"
length=
"120"
rows=
"5"
>
这是普通用户的权限
</textarea>
<span
class=
"material-input"
></span>
</div>
</div>
{block name="main"}
<div
class=
"form-group"
>
{present name="group_id"}
<div
class=
"col-md-12 col-md-offset-2"
>
<div
class=
"builder-tabs builder-form-tabs"
>
<div
class=
"col-md-3"
><button
class=
"btn btn-block btn-primary submit ajax-post"
type=
"submit"
target-form=
"form-builder"
>
确定
</button></div>
<ul
class=
"nav nav-tabs"
>
<div
class=
"col-md-3"
><button
class=
"btn btn-block btn-default return"
onclick=
"javascript:history.back(-1);return false;"
>
返回
</button></div>
<li
class=
"active"
><a
href=
"{:url('role_edit',['group_id'=>$group_id])}"
>
角色信息
</a></li>
</div>
<li
class=
""
><a
href=
"{:url('access',['group_id'=>$group_id])}"
>
权限分配
</a></li>
</div>
<li
class=
""
><a
href=
"{:url('accessUser',['group_id'=>$group_id])}"
>
成员授权
</a></li>
</fieldset>
</ul>
</form>
<div
class=
"form-group"
></div>
</div>
</div>
{/present}
<div
class=
"builder formbuilder-box panel-body bg-color-fff"
>
<div
class=
"row"
>
<div
class=
"col-md-7"
>
<form
action=
""
method=
"post"
class=
"form-builder form-horizontal"
>
<fieldset>
{notempty name="info"}
<input
type=
"hidden"
name=
"id"
value=
"{$info.id}"
>
{/notempty}
<div
class=
"form-group"
>
<label
for=
"title"
class=
"col-md-2 control-label"
>
名称:
</label>
<div
class=
"col-md-10"
>
<input
type=
"text"
class=
"form-control"
name=
"title"
placeholder=
"创建的角色名称"
value=
"{$info.title|default=''}"
>
<span
class=
"material-input"
></span>
</div>
</div>
</div>
<div
class=
"form-group item_description"
>
</div>
<label
for=
"description"
class=
"col-md-2 control-label"
>
描述:
</label>
</div>
<div
class=
"col-md-10"
>
</div>
<textarea
name=
"description"
class=
"form-control"
length=
"120"
rows=
'5'
>
{$info.description|default=''}
</textarea>
</div>
<span
class=
"material-input"
></span>
\ No newline at end of file
</div>
</div>
<div
class=
"form-group"
>
<div
class=
"col-md-12 col-md-offset-2"
>
<div
class=
"col-md-3"
><button
class=
"btn btn-block btn-primary submit ajax-post"
type=
"submit"
target-form=
"form-builder"
>
确定
</button></div>
<div
class=
"col-md-3"
><button
class=
"btn btn-block btn-default return"
onclick=
"javascript:history.back(-1);return false;"
>
返回
</button></div>
</div>
</div>
</fieldset>
</form>
</div>
</div>
</div>
{/block}
\ No newline at end of file
application/route.php
View file @
e49e4c3e
...
@@ -73,9 +73,9 @@ Route::group('index', [
...
@@ -73,9 +73,9 @@ Route::group('index', [
'getVersionList'
=>
[
'index/version/getVersionList'
,[
'method'
=>
'post'
]],
'getVersionList'
=>
[
'index/version/getVersionList'
,[
'method'
=>
'post'
]],
'addVersion'
=>
[
'index/version/addVersion'
,[
'method'
=>
'post'
]],
'addVersion'
=>
[
'index/version/addVersion'
,[
'method'
=>
'post'
]],
'getAuth'
=>
[
'index/auth/getAuth'
,
[
'method'
=>
'get'
]],
//权限列表
'getAuth'
=>
[
'index/auth/getAuth'
,
[
'method'
=>
'get'
]],
//权限列表
'access'
=>
[
'index/auth/access'
,
[
'method'
=>
'get'
]],
//权限
列表
'access'
=>
[
'index/auth/access'
,
[
'method'
=>
'get'
]],
//权限
分配
'roleedit'
=>
[
'index/auth/roleedit'
,
[
'method'
=>
'get'
]],
//
权限列表
'roleedit'
=>
[
'index/auth/roleedit'
,
[
'method'
=>
'get'
]],
//
编辑角色
'accessUser'
=>
[
'index/auth/accessUser'
,
[
'method'
=>
'get'
]],
//
权限列表
'accessUser'
=>
[
'index/auth/accessUser'
,
[
'method'
=>
'get'
]],
//
成员授权
]);
]);
...
...
public/resource/template/auth_template_tpl.html
View file @
e49e4c3e
...
@@ -11,9 +11,9 @@
...
@@ -11,9 +11,9 @@
<
/td
>
<
/td
>
<
td
>
[
%=
it
[
item
][
"status"
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
"status"
]
%
]
<
/td
>
<
td
>
<
td
>
<
a
title
=
"编辑"
class
=
"btn btn-success btn-xs"
href
=
"/admin.php/index/
access
?id=[%= it[item]['id']%].html"
style
=
"margin-right:6px;"
>
编辑
<
/a
>
<
a
title
=
"编辑"
class
=
"btn btn-success btn-xs"
href
=
"/admin.php/index/
roleedit
?id=[%= it[item]['id']%].html"
style
=
"margin-right:6px;"
>
编辑
<
/a
>
<
a
title
=
"权限分配"
class
=
"btn btn-info btn-xs"
href
=
"/admin.php/index/access
User
?id=[%= it[item]['id']%].html"
style
=
"margin-right:6px;"
>
权限分配
<
/a
>
<
a
title
=
"权限分配"
class
=
"btn btn-info btn-xs"
href
=
"/admin.php/index/access?id=[%= it[item]['id']%].html"
style
=
"margin-right:6px;"
>
权限分配
<
/a
>
<
a
title
=
"成员授权"
class
=
"btn btn-primary btn-xs"
href
=
"/admin.php/index/
roleedit
?id=[%= it[item]['id']%].html"
style
=
"margin-right:6px;"
>
成员授权
<
/a
>
<
a
title
=
"成员授权"
class
=
"btn btn-primary btn-xs"
href
=
"/admin.php/index/
accessUser
?id=[%= it[item]['id']%].html"
style
=
"margin-right:6px;"
>
成员授权
<
/a
>
<
/td
>
<
/td
>
<
/tr
>
<
/tr
>
[
%
}
%
]
[
%
}
%
]
...
...
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