Administrator
2023-04-14 cc0cbfc79a34e1b106fdb998450cd2ad03446126
提交 | 用户 | 时间
58d006 1 <?xml version="1.0" encoding="UTF-8"?>
A 2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml"
4 xmlns:c="http://java.sun.com/jsp/jstl/core"
5 xmlns:h="http://java.sun.com/jsf/html"
6 xmlns:f="http://java.sun.com/jsf/core"
7 xmlns:ui="http://java.sun.com/jsf/facelets">
8 <ui:composition template="/template/nit/tmp_brief.xhtml">
9     <ui:define name="acss">
10         <style>
11         #searchBtn {
12             height: 34px;
13         }
14         p.error {
15             color: #D9534F
16         }
17         input.error {
18             border: 1px solid #D9534F;
19         }
20         .table-jj th,.table-jj td{
21             text-align: center;
22             padding: 2px 8px !important;
23         }
24         .bigger-95{
25         font-size: 95% !important;
26         }
27         .btn-xs, .btn-group-xs > .btn{
28           padding-top: 0px;
29           padding-bottom: 0px;
30         }
31         .btn-xs{
32             border:none;
33         }
34         </style>
35     </ui:define>
36     <ui:define name="acontent">
37         <div class="row">
38             <div class="col-xs-5">
39                 <div class="input-group">
40                     <input class="form-control input-mask-date" type="text" id="keyword" placeholder="输入名称搜索" data-bind="value: filter, valueUpdate: 'afterkeydown'" />
41                     <span class="input-group-btn">
42                         <button class="btn btn-sm btn-default" type="button" id="searcha">
43                             <i class="ace-icon fa fa-search bigger-110"></i>
44                             搜索
45                         </button>
46                     </span>
47                 </div>
48             </div>
49             <div class="col-xs-7" style="text-align: right;">
50                 <button class="btn btn-sm btn-info" type="button" id="ctbtn">
51                     <i class="ace-icon fa fa-plus bigger-110"></i>
52                     新角色
53                 </button>
54             </div>
55             <div class="col-xs-12 table-responsive" style="margin-top: 8px">
56                 <table class="table table-striped table-bordered table-condensed table-hover table-jj">
57                     <thead>
58                         <tr>
59                             <th style="min-width: 48px">序号</th>
60                             <th style="min-width: 100px">名称</th>
61                             <th style="min-width: 150px">备注</th>
62                             <th style="min-width: 300px">操作</th>
63                         </tr>
64                     </thead>
65                     <tbody data-bind="foreach:roles">
66                         <tr>
67                             <td data-bind="text:$index()+1">序号</td>
68                             <td data-bind="text:$data.name">登陆名</td>
69                             <td data-bind="text:$data.description">email</td>
70                             <td>
71                                 <button class="btn btn-xs btn-info" title="编辑" data-bind="click: $parent.edit">
72                                     <!--<i class="ace-icon fa fa-edit bigger-95"></i>-->
73                                     编辑
74                                 </button>
75                                 <button class="btn btn-xs btn-success" title="配置权限" data-bind="click: $parent.stp">
76                                     <!--<i class="ace-icon fa fa-gavel bigger-95"></i>-->
77                                     配置权限
78                                 </button>
79                                 <button class="btn btn-xs btn-success" title="配置菜单" data-bind="click: $parent.stm">
80                                     <!--<i class="ace-icon fa fa-navicon bigger-95"></i>-->
81                                     配置菜单
82                                 </button>
83                                 <button class="btn btn-xs btn-success" title="配置模块" data-bind="click: $parent.rms">
84                                     <!--<i class="ace-icon fa fa-navicon bigger-95"></i>-->
85                                     配置模块
86                                 </button>
87                                 <button class="btn btn-xs btn-danger" title="删除" data-bind="click: $parent.rm">
88                                     <!--<i class="ace-icon fa fa-trash-o bigger-95"></i>-->
89                                     删除
90                                 </button>
91                             </td>
92                         </tr>
93                     </tbody>
94                 </table>
95                 <div id="pagdiv"></div>
96             </div>
97         </div>
98         <div class="modal fade" id="modal1" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
99             <div class="modal-dialog">
100                 <div class="modal-content">
101                     <div class="modal-header">
102                         <button type="button" class="close" data-dismiss="modal" aria-label="Close">
103                             <span aria-hidden="true">&times;</span>
104                         </button>
105                         <h4 class="modal-title"  data-bind="text:edittitle" ></h4>
106                     </div>
107                     <div class="modal-body">
108                         <form class="form-horizontal" id="fm1">
109                             <input type="hidden" name="id" id="id" value="" data-bind="value:role().id" />        
110                             <div class="form-group">
111                                 <label for="name" class="col-sm-2 control-label">名称</label>
112                                 <div class="col-sm-8">
113                                     <input type="text" class="form-control" id="name" name="name" placeholder="名称" data-bind="value:role().name"/>        
114                                 </div>
115                             </div>
116                             <div class="form-group">
117                                 <label for="description" class="col-sm-2 control-label">备注</label>
118                                 <div class="col-sm-8">
119                                     <input type="text" class="form-control" id="note" name="note" placeholder="备注" data-bind="value:role().description"/>        
120                                 </div>
121                             </div>
122                         </form>
123                     </div>
124                     <div id="errmsg"></div>
125                     <div class="modal-footer">
126                         <button type="button" class="btn btn-primary" data-loading-text="保存中..." id="tjbtn">提交</button>
127                     </div>
128                 </div>
129             </div>
130         </div>
131         <div id="dialog-confirm" class="hide">
132             <div class="alert alert-info bigger-110" id="modalContent">
133             </div>
134         </div>
135     </ui:define>
136     <ui:define name="myscript">
137         <script src="#{request.contextPath}/system/js/roles.js"></script>
138     </ui:define>
139 </ui:composition>
140 </html>