潘志宝
2024-11-21 d338b50afd6504a9676f0a26b3ecbcc844483e7c
提交 | 用户 | 时间
e7c126 1 <!DOCTYPE html>
H 2 <html>
3 <head>
4       <#import "../common/common.macro.ftl" as netCommon>
5     <@netCommon.commonStyle />
6     <!-- DataTables -->
7       <link rel="stylesheet" href="${request.contextPath}/static/adminlte/bower_components/datatables.net-bs/css/dataTables.bootstrap.min.css">
8     <title>${I18n.admin_name}</title>
9 </head>
10 <body class="hold-transition skin-blue sidebar-mini <#if cookieMap?exists && cookieMap["xxljob_adminlte_settings"]?exists && "off" == cookieMap["xxljob_adminlte_settings"].value >sidebar-collapse</#if>">
11 <div class="wrapper">
12     <!-- header -->
13     <@netCommon.commonHeader />
14     <!-- left -->
15     <@netCommon.commonLeft "user" />
16     
17     <!-- Content Wrapper. Contains page content -->
18     <div class="content-wrapper">
19         <!-- Content Header (Page header) -->
20         <section class="content-header">
21             <h1>${I18n.user_manage}</h1>
22         </section>
23         
24         <!-- Main content -->
25         <section class="content">
26         
27             <div class="row">
28                 <div class="col-xs-3">
29                     <div class="input-group">
30                         <span class="input-group-addon">${I18n.user_role}</span>
31                         <select class="form-control" id="role" >
32                             <option value="-1" >${I18n.system_all}</option>
33                             <option value="1" >${I18n.user_role_admin}</option>
34                             <option value="0" >${I18n.user_role_normal}</option>
35                         </select>
36                     </div>
37                 </div>
38                 <div class="col-xs-3">
39                     <div class="input-group">
40                         <span class="input-group-addon">${I18n.user_username}</span>
41                         <input type="text" class="form-control" id="username" autocomplete="on" >
42                     </div>
43                 </div>
44                 <div class="col-xs-1">
45                     <button class="btn btn-block btn-info" id="searchBtn">${I18n.system_search}</button>
46                 </div>
47                 <div class="col-xs-2">
48                     <button class="btn btn-block btn-success add" type="button">${I18n.user_add}</button>
49                 </div>
50               </div>
51             
52             <div class="row">
53                 <div class="col-xs-12">
54                     <div class="box">
55                         <div class="box-body" >
56                               <table id="user_list" class="table table-bordered table-striped" width="100%" >
57                                 <thead>
58                                     <tr>
59                                         <th name="id" >ID</th>
60                                         <th name="username" >${I18n.user_username}</th>
61                                           <th name="password" >${I18n.user_password}</th>
62                                         <th name="role" >${I18n.user_role}</th>
63                                           <th name="permission" >${I18n.user_permission}</th>
64                                           <th>${I18n.system_opt}</th>
65                                     </tr>
66                                 </thead>
67                                 <tbody></tbody>
68                                 <tfoot></tfoot>
69                             </table>
70                         </div>
71                     </div>
72                 </div>
73             </div>
74         </section>
75     </div>
76     
77     <!-- footer -->
78     <@netCommon.commonFooter />
79 </div>
80
81 <!-- 新增.模态框 -->
82 <div class="modal fade" id="addModal" tabindex="-1" role="dialog"  aria-hidden="true">
83     <div class="modal-dialog">
84         <div class="modal-content">
85             <div class="modal-header">
86                 <h4 class="modal-title" >${I18n.user_add}</h4>
87              </div>
88              <div class="modal-body">
89                 <form class="form-horizontal form" role="form" >
90                     <div class="form-group">
91                         <label for="lastname" class="col-sm-2 control-label">${I18n.user_username}<font color="red">*</font></label>
92                         <div class="col-sm-8"><input type="text" class="form-control" name="username" placeholder="${I18n.system_please_input}${I18n.user_username}" maxlength="20" ></div>
93                     </div>
94                     <div class="form-group">
95                         <label for="lastname" class="col-sm-2 control-label">${I18n.user_password}<font color="red">*</font></label>
96                         <div class="col-sm-8"><input type="text" class="form-control" name="password" placeholder="${I18n.system_please_input}${I18n.user_password}" maxlength="20" ></div>
97                     </div>
98                     <div class="form-group">
99                         <label for="lastname" class="col-sm-2 control-label">${I18n.user_role}<font color="red">*</font></label>
100                         <div class="col-sm-10">
101                             <input type="radio" name="role" value="0" checked />${I18n.user_role_normal}
102                             &nbsp;&nbsp;&nbsp;&nbsp;
103                             <input type="radio" name="role" value="1" />${I18n.user_role_admin}
104                         </div>
105                     </div>
106                     <div class="form-group">
107                         <label for="lastname" class="col-sm-2 control-label">${I18n.user_permission}<font color="black">*</font></label>
108                         <div class="col-sm-10">
109                             <#if groupList?exists && groupList?size gt 0>
110                                 <#list groupList as item>
111                                     <input type="checkbox" name="permission" value="${item.id}" />${item.title}(${item.appname})<br>
112                                 </#list>
113                             </#if>
114                         </div>
115                     </div>
116
117                     <hr>
118                     <div class="form-group">
119                         <div class="col-sm-offset-3 col-sm-6">
120                             <button type="submit" class="btn btn-primary"  >${I18n.system_save}</button>
121                             <button type="button" class="btn btn-default" data-dismiss="modal">${I18n.system_cancel}</button>
122                         </div>
123                     </div>
124
125                 </form>
126              </div>
127         </div>
128     </div>
129 </div>
130
131 <!-- 更新.模态框 -->
132 <div class="modal fade" id="updateModal" tabindex="-1" role="dialog"  aria-hidden="true">
133     <div class="modal-dialog">
134         <div class="modal-content">
135             <div class="modal-header">
136                 <h4 class="modal-title" >${I18n.user_update}</h4>
137              </div>
138              <div class="modal-body">
139                 <form class="form-horizontal form" role="form" >
140                     <div class="form-group">
141                         <label for="lastname" class="col-sm-2 control-label">${I18n.user_username}<font color="red">*</font></label>
142                         <div class="col-sm-8"><input type="text" class="form-control" name="username" placeholder="${I18n.system_please_input}${I18n.user_username}" maxlength="20" readonly ></div>
143                     </div>
144                     <div class="form-group">
145                         <label for="lastname" class="col-sm-2 control-label">${I18n.user_password}<font color="red">*</font></label>
146                         <div class="col-sm-8"><input type="text" class="form-control" name="password" placeholder="${I18n.user_password_update_placeholder}" maxlength="20" ></div>
147                     </div>
148                     <div class="form-group">
149                         <label for="lastname" class="col-sm-2 control-label">${I18n.user_role}<font color="red">*</font></label>
150                         <div class="col-sm-10">
151                             <input type="radio" name="role" value="0" />${I18n.user_role_normal}
152                             &nbsp;&nbsp;&nbsp;&nbsp;
153                             <input type="radio" name="role" value="1" />${I18n.user_role_admin}
154                         </div>
155                     </div>
156                     <div class="form-group">
157                         <label for="lastname" class="col-sm-2 control-label">${I18n.user_permission}<font color="black">*</font></label>
158                         <div class="col-sm-10">
159                         <#if groupList?exists && groupList?size gt 0>
160                             <#list groupList as item>
161                                 <input type="checkbox" name="permission" value="${item.id}" />${item.title}(${item.appname})<br>
162                             </#list>
163                         </#if>
164                         </div>
165                     </div>
166
167                     <hr>
168                     <div class="form-group">
169                         <div class="col-sm-offset-3 col-sm-6">
170                             <button type="submit" class="btn btn-primary"  >${I18n.system_save}</button>
171                             <button type="button" class="btn btn-default" data-dismiss="modal">${I18n.system_cancel}</button>
172                             <input type="hidden" name="id" >
173                         </div>
174                     </div>
175
176                 </form>
177              </div>
178         </div>
179     </div>
180 </div>
181
182 <@netCommon.commonScript />
183 <!-- DataTables -->
184 <script src="${request.contextPath}/static/adminlte/bower_components/datatables.net/js/jquery.dataTables.min.js"></script>
185 <script src="${request.contextPath}/static/adminlte/bower_components/datatables.net-bs/js/dataTables.bootstrap.min.js"></script>
186 <script src="${request.contextPath}/static/js/user.index.1.js"></script>
187 </body>
188 </html>