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
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
251 additions
and
161 deletions
+251
-161
access.html
application/index/view/auth/access.html
+122
-25
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
...
...
@@ -4,43 +4,140 @@
<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/admin/auth/role_edit/group_id/3
.html"
>
角色信息
</a></li>
<li
class=
"
"
><a
href=
"/admin.php/admin/auth/access/group_id/3
.html"
>
权限分配
</a></li>
<li
class=
""
><a
href=
"/admin.php/
admin/auth/accessuser/group_id/3
.html"
>
成员授权
</a></li>
<li
class=
"
"
><a
href=
"/admin.php/index/roleedit/1
.html"
>
角色信息
</a></li>
<li
class=
"
active"
><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=
"col-md-7 col-md-offset-1"
>
<div
id=
"tab2"
class=
"tab-pane"
>
<form
action=
""
method=
"post"
class=
"form-builder form-horizontal responsive"
>
<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
class=
"auth"
>
<div
class=
"admin"
>
<div
class=
"ud-control ud-checkbox"
>
<label
class=
"checkbox-label checkbox-inline"
>
<div
class=
"icheckbox_minimal-blue checked"
aria-checked=
"false"
aria-disabled=
"false"
style=
"position: relative;"
><input
type=
"checkbox"
name=
"menu_auth[]"
data-module-name=
"admin"
checked=
""
value=
"1"
style=
"position: absolute; top: -20%; left: -20%; display: block; width: 140%; height: 140%; margin: 0px; padding: 0px; background: rgb(255, 255, 255); border: 0px; opacity: 0;"
><ins
class=
"iCheck-helper"
style=
"position: absolute; top: -20%; left: -20%; display: block; width: 140%; height: 140%; margin: 0px; padding: 0px; background: rgb(255, 255, 255); border: 0px; opacity: 0;"
></ins></div>
<span
class=
"ud-control-indicator"
></span>
<span>
仪表盘
</span>
</label>
<div
class=
"auth1"
style=
"padding-left: 25px;margin-top: 10px;"
>
</div>
</div>
</div>
<hr>
<div
class=
"admin"
>
<div
class=
"ud-control ud-checkbox"
>
<label
class=
"checkbox-label checkbox-inline"
>
<div
class=
"icheckbox_minimal-blue checked"
aria-checked=
"false"
aria-disabled=
"false"
style=
"position: relative;"
><input
type=
"checkbox"
name=
"menu_auth[]"
data-module-name=
"admin"
checked=
""
value=
"2"
style=
"position: absolute; top: -20%; left: -20%; display: block; width: 140%; height: 140%; margin: 0px; padding: 0px; background: rgb(255, 255, 255); border: 0px; opacity: 0;"
><ins
class=
"iCheck-helper"
style=
"position: absolute; top: -20%; left: -20%; display: block; width: 140%; height: 140%; margin: 0px; padding: 0px; background: rgb(255, 255, 255); border: 0px; opacity: 0;"
></ins></div>
<span
class=
"ud-control-indicator"
></span>
<span>
系统设置
</span>
</label>
<div
class=
"auth2"
style=
"padding-left: 25px;margin-top: 10px;"
>
<label
class=
"checkbox-label checkbox-inline"
>
<div
class=
"icheckbox_minimal-blue"
aria-checked=
"false"
aria-disabled=
"false"
style=
"position: relative;"
><input
type=
"checkbox"
name=
"menu_auth[]"
data-module-name=
"admin"
value=
"12"
style=
"position: absolute; top: -20%; left: -20%; display: block; width: 140%; height: 140%; margin: 0px; padding: 0px; background: rgb(255, 255, 255); border: 0px; opacity: 0;"
><ins
class=
"iCheck-helper"
style=
"position: absolute; top: -20%; left: -20%; display: block; width: 140%; height: 140%; margin: 0px; padding: 0px; background: rgb(255, 255, 255); border: 0px; opacity: 0;"
></ins></div>
<span
class=
"ud-control-indicator"
></span>
<span>
设置
</span>
</label>
<div
class=
"auth12"
style=
"padding-left: 25px;margin-top: 10px;"
>
</div>
<label
class=
"checkbox-label checkbox-inline"
>
<div
class=
"icheckbox_minimal-blue checked"
aria-checked=
"false"
aria-disabled=
"false"
style=
"position: relative;"
><input
type=
"checkbox"
name=
"menu_auth[]"
data-module-name=
"admin"
checked=
""
value=
"26"
style=
"position: absolute; top: -20%; left: -20%; display: block; width: 140%; height: 140%; margin: 0px; padding: 0px; background: rgb(255, 255, 255); border: 0px; opacity: 0;"
><ins
class=
"iCheck-helper"
style=
"position: absolute; top: -20%; left: -20%; display: block; width: 140%; height: 140%; margin: 0px; padding: 0px; background: rgb(255, 255, 255); border: 0px; opacity: 0;"
></ins></div>
<span
class=
"ud-control-indicator"
></span>
<span>
系统设置
</span>
</label>
<div
class=
"auth26"
style=
"padding-left: 25px;margin-top: 10px;"
>
</div>
<label
class=
"checkbox-label checkbox-inline"
>
<div
class=
"icheckbox_minimal-blue"
aria-checked=
"false"
aria-disabled=
"false"
style=
"position: relative;"
><input
type=
"checkbox"
name=
"menu_auth[]"
data-module-name=
"admin"
value=
"19"
style=
"position: absolute; top: -20%; left: -20%; display: block; width: 140%; height: 140%; margin: 0px; padding: 0px; background: rgb(255, 255, 255); border: 0px; opacity: 0;"
><ins
class=
"iCheck-helper"
style=
"position: absolute; top: -20%; left: -20%; display: block; width: 140%; height: 140%; margin: 0px; padding: 0px; background: rgb(255, 255, 255); border: 0px; opacity: 0;"
></ins></div>
<span
class=
"ud-control-indicator"
></span>
<span>
网站设置
</span>
</label>
<div
class=
"auth19"
style=
"padding-left: 25px;margin-top: 10px;"
>
</div>
<label
class=
"checkbox-label checkbox-inline"
>
<div
class=
"icheckbox_minimal-blue checked"
aria-checked=
"false"
aria-disabled=
"false"
style=
"position: relative;"
><input
type=
"checkbox"
name=
"menu_auth[]"
data-module-name=
"admin"
checked=
""
value=
"9"
style=
"position: absolute; top: -20%; left: -20%; display: block; width: 140%; height: 140%; margin: 0px; padding: 0px; background: rgb(255, 255, 255); border: 0px; opacity: 0;"
><ins
class=
"iCheck-helper"
style=
"position: absolute; top: -20%; left: -20%; display: block; width: 140%; height: 140%; margin: 0px; padding: 0px; background: rgb(255, 255, 255); border: 0px; opacity: 0;"
></ins></div>
<span
class=
"ud-control-indicator"
></span>
<span>
后台菜单管理
</span>
</label>
<div
class=
"auth9"
style=
"padding-left: 25px;margin-top: 10px;"
>
</div>
<label
class=
"checkbox-label checkbox-inline"
>
<div
class=
"icheckbox_minimal-blue"
aria-checked=
"false"
aria-disabled=
"false"
style=
"position: relative;"
><input
type=
"checkbox"
name=
"menu_auth[]"
data-module-name=
"admin"
value=
"25"
style=
"position: absolute; top: -20%; left: -20%; display: block; width: 140%; height: 140%; margin: 0px; padding: 0px; background: rgb(255, 255, 255); border: 0px; opacity: 0;"
><ins
class=
"iCheck-helper"
style=
"position: absolute; top: -20%; left: -20%; display: block; width: 140%; height: 140%; margin: 0px; padding: 0px; background: rgb(255, 255, 255); border: 0px; opacity: 0;"
></ins></div>
<span
class=
"ud-control-indicator"
></span>
<span>
配置管理
</span>
</label>
<div
class=
"auth25"
style=
"padding-left: 25px;margin-top: 10px;"
>
</div>
</div>
</div>
</div>
<hr>
<div
class=
"admin"
>
<div
class=
"ud-control ud-checkbox"
>
<label
class=
"checkbox-label checkbox-inline"
>
<div
class=
"icheckbox_minimal-blue checked"
aria-checked=
"false"
aria-disabled=
"false"
style=
"position: relative;"
><input
type=
"checkbox"
name=
"menu_auth[]"
data-module-name=
"admin"
checked=
""
value=
"5"
style=
"position: absolute; top: -20%; left: -20%; display: block; width: 140%; height: 140%; margin: 0px; padding: 0px; background: rgb(255, 255, 255); border: 0px; opacity: 0;"
><ins
class=
"iCheck-helper"
style=
"position: absolute; top: -20%; left: -20%; display: block; width: 140%; height: 140%; margin: 0px; padding: 0px; background: rgb(255, 255, 255); border: 0px; opacity: 0;"
></ins></div>
<span
class=
"ud-control-indicator"
></span>
<span>
扩展中心
</span>
</label>
<div
class=
"auth5"
style=
"padding-left: 25px;margin-top: 10px;"
>
<label
class=
"checkbox-label checkbox-inline"
>
<div
class=
"icheckbox_minimal-blue checked"
aria-checked=
"false"
aria-disabled=
"false"
style=
"position: relative;"
><input
type=
"checkbox"
name=
"menu_auth[]"
data-module-name=
"admin"
checked=
""
value=
"24"
style=
"position: absolute; top: -20%; left: -20%; display: block; width: 140%; height: 140%; margin: 0px; padding: 0px; background: rgb(255, 255, 255); border: 0px; opacity: 0;"
><ins
class=
"iCheck-helper"
style=
"position: absolute; top: -20%; left: -20%; display: block; width: 140%; height: 140%; margin: 0px; padding: 0px; background: rgb(255, 255, 255); border: 0px; opacity: 0;"
></ins></div>
<span
class=
"ud-control-indicator"
></span>
<span>
模块
</span>
</label>
<div
class=
"auth24"
style=
"padding-left: 25px;margin-top: 10px;"
>
</div>
<label
class=
"checkbox-label checkbox-inline"
>
<div
class=
"icheckbox_minimal-blue"
aria-checked=
"false"
aria-disabled=
"false"
style=
"position: relative;"
><input
type=
"checkbox"
name=
"menu_auth[]"
data-module-name=
"admin"
value=
"45"
style=
"position: absolute; top: -20%; left: -20%; display: block; width: 140%; height: 140%; margin: 0px; padding: 0px; background: rgb(255, 255, 255); border: 0px; opacity: 0;"
><ins
class=
"iCheck-helper"
style=
"position: absolute; top: -20%; left: -20%; display: block; width: 140%; height: 140%; margin: 0px; padding: 0px; background: rgb(255, 255, 255); border: 0px; opacity: 0;"
></ins></div>
<span
class=
"ud-control-indicator"
></span>
<span>
444
</span>
</label>
<div
class=
"auth45"
style=
"padding-left: 25px;margin-top: 10px;"
>
</div>
<label
class=
"checkbox-label checkbox-inline"
>
<div
class=
"icheckbox_minimal-blue"
aria-checked=
"false"
aria-disabled=
"false"
style=
"position: relative;"
><input
type=
"checkbox"
name=
"menu_auth[]"
data-module-name=
"admin"
value=
"46"
style=
"position: absolute; top: -20%; left: -20%; display: block; width: 140%; height: 140%; margin: 0px; padding: 0px; background: rgb(255, 255, 255); border: 0px; opacity: 0;"
><ins
class=
"iCheck-helper"
style=
"position: absolute; top: -20%; left: -20%; display: block; width: 140%; height: 140%; margin: 0px; padding: 0px; background: rgb(255, 255, 255); border: 0px; opacity: 0;"
></ins></div>
<span
class=
"ud-control-indicator"
></span>
<span>
88888888888
</span>
</label>
<div
class=
"auth46"
style=
"padding-left: 25px;margin-top: 10px;"
>
</div>
<label
class=
"checkbox-label checkbox-inline"
>
<div
class=
"icheckbox_minimal-blue"
aria-checked=
"false"
aria-disabled=
"false"
style=
"position: relative;"
><input
type=
"checkbox"
name=
"menu_auth[]"
data-module-name=
"admin"
value=
"23"
style=
"position: absolute; top: -20%; left: -20%; display: block; width: 140%; height: 140%; margin: 0px; padding: 0px; background: rgb(255, 255, 255); border: 0px; opacity: 0;"
><ins
class=
"iCheck-helper"
style=
"position: absolute; top: -20%; left: -20%; display: block; width: 140%; height: 140%; margin: 0px; padding: 0px; background: rgb(255, 255, 255); border: 0px; opacity: 0;"
></ins></div>
<span
class=
"ud-control-indicator"
></span>
<span>
插件
</span>
</label>
<div
class=
"auth23"
style=
"padding-left: 25px;margin-top: 10px;"
>
</div>
<label
class=
"checkbox-label checkbox-inline"
>
<div
class=
"icheckbox_minimal-blue checked"
aria-checked=
"false"
aria-disabled=
"false"
style=
"position: relative;"
><input
type=
"checkbox"
name=
"menu_auth[]"
data-module-name=
"admin"
checked=
""
value=
"22"
style=
"position: absolute; top: -20%; left: -20%; display: block; width: 140%; height: 140%; margin: 0px; padding: 0px; background: rgb(255, 255, 255); border: 0px; opacity: 0;"
><ins
class=
"iCheck-helper"
style=
"position: absolute; top: -20%; left: -20%; display: block; width: 140%; height: 140%; margin: 0px; padding: 0px; background: rgb(255, 255, 255); border: 0px; opacity: 0;"
></ins></div>
<span
class=
"ud-control-indicator"
></span>
<span>
主题
</span>
</label>
<div
class=
"auth22"
style=
"padding-left: 25px;margin-top: 10px;"
>
</div>
</div>
</div>
</div>
<hr>
</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 b
tn-block btn-default return"
onclick=
"javascript:history.back(-1);return false;"
>
返回
</button></div>
<div
class=
"col-md-
offset-2 tc
"
>
<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 b
g-aqua btn-block return"
onclick=
"javascript:history.back(-1);return false;"
><i
class=
"fa fa-mail-reply"
></i>
返回
</button></div>
</div>
</div>
</fieldset>
</form>
</form>
</div>
</div>
</div>
</div>
<!--row-->
</div>
</div>
</div>
...
...
application/index/view/auth/accessUser.html
View file @
e49e4c3e
{extend name="public/base"/}
{block name="style"}{/block}
{block name="main"}
<div
class=
"builder-tabs builder-form-tabs"
>
<ul
class=
"nav nav-tabs"
>
<li
class=
""
><a
href=
"{:url('roleedit',array('group_id'=>$group_id))}"
>
角色信息
</a></li>
<li
class=
""
><a
href=
"{:url('access',array('group_id'=>$group_id))}"
>
权限分配
</a></li>
<li
class=
"active"
><a
href=
"{:url('accessUser',['group_id'=>$group_id])}"
>
成员授权
</a></li>
<li
class=
"right form-group mt0 mr20"
>
<select
name=
"group"
class=
"form-control col-md-8"
>
{volist name="auth_group" id="vo"}
<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>
{/volist}
</select>
</li>
</ul>
<div
class=
"form-group"
></div>
</div>
<div
class=
"builder-container listbuilder-box"
>
{layout name="global/frame_tpl" /}
<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=
""
><a
href=
"/admin.php/index/roleedit/1.html"
>
角色信息
</a></li>
<li
class=
""
><a
href=
"/admin.php/index/access/1.html"
>
权限分配
</a></li>
<li
class=
"active"
><a
href=
"/admin.php/index/accessUser/1.html"
>
成员授权
</a></li>
<li
class=
"right form-group mt0 mr20"
>
<select
name=
"group"
class=
"form-control col-md-8"
>
<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=
"/admin.php/admin/auth_manager/user/group_id/2/group_name/%E7%AE%A1%E7%90%86%E5%91%98.html"
>
管理员
</option>
<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>
<option
value=
"/admin.php/admin/auth_manager/user/group_id/4/group_name/%E5%AE%A2%E6%9C%8D.html"
>
客服
</option>
</select>
</li>
</ul>
<div
class=
"form-group"
></div>
</div>
<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"
>
<!-- 数据列表 -->
<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>
{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>
</tr>
<tr>
<td>
2
</td>
<td>
心灵旅行
</td>
<td><span>
2016-09-18 22:18
</span></td>
<td><span>
1928388295
</span></td>
<td>
正常
</td>
<td><a
href=
"/admin.php/admin/auth/removefromgroup/uid/2/group_id/1.html"
class=
"ajax-get"
>
解除授权
</a>
</td>
</tr>
{/volist}
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div
class=
"main-title"
>
<div
class=
"page_nav col-md-8"
>
{$_list->render()}
</div>
<div
id=
"add-to-group"
class=
"tools col-md-4"
>
<form
class=
"add-user"
action=
"{:url('addToGroup')}"
method=
"post"
enctype=
"application/x-www-form-urlencoded"
>
<div
class=
"form-group"
>
<div
class=
"col-md-10"
>
<input
class=
"form-control"
type=
"text"
name=
"uid"
placeholder=
"请输入uid,多个用英文逗号分隔"
>
</div>
</div>
<div
class=
"main-title"
>
<div
class=
"page_nav col-md-8"
>
</div>
<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"
>
<div
class=
"form-group"
>
<div
class=
"col-md-10"
>
<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>
<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>
</form>
</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 @@
<div
id=
"page-content-wrapper"
>
<div
class=
"container"
>
<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>
<tr>
<th
class=
"text-center"
>
ID
</th>
...
...
application/index/view/auth/roleedit.html
View file @
e49e4c3e
{extend name="public/base"/}
{block name="style"}{/block}
{layout name="global/frame_tpl" /}
<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"}
{present name="group_id"}
<div
class=
"builder-tabs builder-form-tabs"
>
<ul
class=
"nav nav-tabs"
>
<li
class=
"active"
><a
href=
"{:url('role_edit',['group_id'=>$group_id])}"
>
角色信息
</a></li>
<li
class=
""
><a
href=
"{:url('access',['group_id'=>$group_id])}"
>
权限分配
</a></li>
<li
class=
""
><a
href=
"{:url('accessUser',['group_id'=>$group_id])}"
>
成员授权
</a></li>
</ul>
<div
class=
"form-group"
></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
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
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'
>
{$info.description|default=''}
</textarea>
<span
class=
"material-input"
></span>
</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
</div>
</div>
</div>
</div>
\ No newline at end of file
application/route.php
View file @
e49e4c3e
...
...
@@ -73,9 +73,9 @@ Route::group('index', [
'getVersionList'
=>
[
'index/version/getVersionList'
,[
'method'
=>
'post'
]],
'addVersion'
=>
[
'index/version/addVersion'
,[
'method'
=>
'post'
]],
'getAuth'
=>
[
'index/auth/getAuth'
,
[
'method'
=>
'get'
]],
//权限列表
'access'
=>
[
'index/auth/access'
,
[
'method'
=>
'get'
]],
//权限
列表
'roleedit'
=>
[
'index/auth/roleedit'
,
[
'method'
=>
'get'
]],
//
权限列表
'accessUser'
=>
[
'index/auth/accessUser'
,
[
'method'
=>
'get'
]],
//
权限列表
'access'
=>
[
'index/auth/access'
,
[
'method'
=>
'get'
]],
//权限
分配
'roleedit'
=>
[
'index/auth/roleedit'
,
[
'method'
=>
'get'
]],
//
编辑角色
'accessUser'
=>
[
'index/auth/accessUser'
,
[
'method'
=>
'get'
]],
//
成员授权
]);
...
...
public/resource/template/auth_template_tpl.html
View file @
e49e4c3e
...
...
@@ -11,9 +11,9 @@
<
/td
>
<
td
>
[
%=
it
[
item
][
"status"
]
%
]
<
/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-info btn-xs"
href
=
"/admin.php/index/access
User
?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-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?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
>
<
/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