Administrator
2022-12-15 9ce4bb2b6bd1378ba7b0bd6681d22cb37a5e1452
提交 | 用户 | 时间
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         #simple-table th,#simple-table td{
21             text-align: center;
22             padding: 1px 8px;
23         }
24         #form .control-label {
25             margin-right: -14px
26         }
27         .t-error{
28             color: red;
29             position: relative;
30             right: 2px;
31             top: 3px;
32         }
33         i.fa.danger {
34             color: #D15B47
35         }
36         i.fa.success {
37             color: #87B87F
38         }
39         .pagination {
40             margin: 10px 0;
41         }
42         #simple-table th {
43             padding: 0
44         }
45         .th {
46             position: relative;
47             width: 100%;
48             display: block;
49             background: #F2F2F2;
50             border: 1px solid #DDDDDD;
51             z-index: 1;
52             border-left: none;
53         }
54         </style>
55     </ui:define>
56     <ui:define name="acontent">
57         <input type="hidden" value="#{param.page}" id="p" />
58         <input type="hidden" value="#{param.keyword}" id="k" />
59         <div class="row">
60             <div class="col-xs-2">
61                 <select name="" id="" class="form-control" data-bind="value: mtid, options: tList, optionsText: 'name', optionsValue: 'companyNo', optionsCaption: '全部运输公司', events: {change: change}"></select>
62             </div>
63             <div class="col-xs-5">
64                 <div class="input-group" style="margin-left: -31px">
65                     <input class="form-control input-mask-date" type="text" id="keyword" placeholder="输入名称搜索" data-bind="value: keyword, valueUpdate: 'afterkeydown'" />
66                     <span class="input-group-btn">
67                         <button class="btn btn-sm btn-default" type="button" id="searchBtn">
68                             <i class="ace-icon fa fa-search bigger-110"></i>
69                             搜索
70                         </button>
71                     </span>
72                 </div>
73             </div>
74             <div class="col-xs-5" style="text-align: right;">
75                 <button class="btn btn-sm btn-info" type="button" id="newObj">
76                     <i class="ace-icon fa fa-plus bigger-110"></i>
77                     新用户
78                 </button>
79             </div>
80             <div class="col-xs-12 table-responsive" style="margin-top: 8px;">
81                 <table id="simple-table" class="table  table-bordered table-hover table-striped">
82                     <thead>
83                         <tr>
84                             <th class="detail-col" style="min-width: 48px"><span class="th">序号</span></th>
85                             <th style="min-width: 100px"><span class="th">运输公司</span></th>
86                             <th style="min-width: 100px"><span class="th">姓名</span></th>
87                             <th style="min-width: 55px"><span class="th">性别</span></th>
88                             <th style="min-width: 100px"><span class="th">手机号</span></th>
89                             <th style="min-width: 75px"><span class="th">启用</span></th>
90                             <th style="min-width: 100px"><span class="th">用户名</span></th>
91                             <th style="width: 130px"><span class="th">操作</span></th>                            
92                         </tr>
93                     </thead>
94
95                     <tbody data-bind="foreach: list">
96                         <tr>
97                             <td class="center">
98                                 <span data-bind="text: $index() + 1"></span>
99                             </td>
100
101                             <td data-bind="text: companyName"></td>
102                             <td data-bind="text: name"></td>
103                             <td data-bind="text: sex"></td>
104                             <td data-bind="text: phone"></td>
105                             <td >
106                                 <a href="javascript:;" title="启用中"><i class="fa fa-check success" data-bind="click: $parent.mtvalid, visible: state(),css: {danger: !state(), success: state()}"></i></a>
107                                 <a href="javascript:;" title="禁用中"><i class="fa fa-close danger" data-bind="click: $parent.mtvalid, visible: !state(),css: {danger: !state(), success: state()}"></i></a>
108                             </td>
109                             <td data-bind="text: username"></td>
110                             <td>
111                                 <div class="btn-group">
112                                     <button class="btn btn-xs btn-info" title="编辑" data-bind="click: $parent.edit">
113                                         <!--<i class="ace-icon fa fa-pencil bigger-120"></i>-->
114                                         编辑
115                                     </button>
116
117                                     <button class="btn btn-xs btn-danger" title="删除" data-bind="click: $parent.del">
118                                         <!--<i class="ace-icon fa fa-trash-o bigger-120"></i>-->
119                                         删除
120                                     </button>
121                                 </div>
122                             </td>
123                         </tr>
124                     </tbody>
125                 </table>
126             </div>
127             <div class="col-md-12">
128                 <div id="pagdiv"></div>
129             </div>
130         </div>
131         <div class="modal fade" id="modal">
132             <div class="modal-dialog">
133                 <div class="modal-content">
134                     <div class="modal-header">
135                         <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
136                         <h4 class="modal-title">编辑人员信息</h4>
137                     </div>
138                     <div class="modal-body">
139                         <form class="form-horizontal" id="form">
140                             <div class="form-body">
141                                 <div class="form-group">
142                                     <label class="col-md-3 control-label">运输公司</label>
143                                     <div class="col-md-6">
144                                         <select name="" id="" class="form-control" data-bind="value: o().companyNo, options: tList, optionsCaption: '选择运输公司', optionsText: 'name', optionsValue: 'companyNo'"></select>
145                                     </div>
146                                     <div class="col-md-3">
147                                         <p class="form-control-static text-error"></p>
148                                     </div>
149                                 </div>
150                                 <div class="form-group">
151                                     <label class="col-md-3 control-label"><span class="t-error">*</span> 姓名</label>
152                                     <div class="col-md-6">
153                                         <input type="text" class="form-control" id="name" name="name" placeholder="" data-bind="value: o().name"/>
154                                     </div>
155                                     <div class="col-md-3">
156                                         <p class="form-control-static text-error"></p>
157                                     </div>
158                                 </div>
159                                 <div class="form-group">
160                                     <label class="col-md-3 control-label">性别</label>
161                                     <div class="col-md-6">
162                                         <select name="" id="" class="form-control" data-bind="value: o().sex, options: tyList"></select>
163                                     </div>
164                                     <div class="col-md-3">
165                                         <p class="form-control-static text-error"></p>
166                                     </div>
167                                 </div>
168                                 <div class="form-group">
169                                     <label class="col-md-3 control-label"><span class="t-error">*</span> 手机号</label>
170                                     <div class="col-md-6">
171                                         <input type="text" class="form-control" placeholder="" name="phone" data-bind="value: o().phone"/>
172                                     </div>
173                                     <div class="col-md-3">
174                                         <p class="form-control-static text-error"></p>
175                                     </div>
176                                 </div>
177                                 <div class="form-group">
178                                     <label class="col-md-3 col-sm-3 control-label" for="form-field-1-1"> 启用 </label>
179                                     <div class="col-md-6 col-sm-6">
180                                         <label style="padding-top: 9px;">
181                                             <input name="switch-field-1" class="ace ace-switch" type="checkbox" data-bind="checked: o().state()" id="state"/>
182                                             <span class="lbl"></span>
183                                         </label>
184                                     </div>
185                                 </div>
186                                 <div class="form-group">
187                                     <label class="col-md-3 control-label">用户类型</label>
188                                     <div class="col-md-6">
189                                         <select name="" id="" class="form-control" data-bind="value: o().utype, options: utypeList, optionsText: 'key', optionsValue: 'value'"></select>
190                                     </div>
191                                     <div class="col-md-3">
192                                         <p class="form-control-static text-error"></p>
193                                     </div>
194                                 </div>
195                                 <div class="form-group">
196                                     <label class="col-md-3 control-label">用户名</label>
197                                     <div class="col-md-6">
198                                         <input type="text" class="form-control" placeholder="" name="username" data-bind="value: o().username"/>
199                                     </div>
200                                     <div class="col-md-3">
201                                         <p class="form-control-static text-error"></p>
202                                     </div>
203                                 </div>
204                                 <div class="form-group">
205                                     <label class="col-md-3 control-label">密码</label>
206                                     <div class="col-md-6">
207                                         <input type="text" class="form-control" placeholder="" name="password" data-bind="value: o().password"/>
208                                     </div>
209                                     <div class="col-md-3">
210                                         <p class="form-control-static text-error"></p>
211                                     </div>
212                                 </div>
213                                  <div class="form-group">
214                                     <label class="col-md-3 control-label">备注</label>
215                                     <div class="col-md-6">
216                                         <input type="text" class="form-control" placeholder="" data-bind="value: o().note"/>
217                                     </div>
218                                     <div class="col-md-3">
219                                         <p class="form-control-static text-error"></p>
220                                     </div>
221                                 </div>
222                             </div>
223                         </form>
224                     </div>
225                     <div class="modal-footer">
226                         <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
227                         <button type="button" class="btn btn-primary" id="save">保存</button>
228                     </div>
229                 </div>
230             </div>
231         </div>
232         <div id="dialog-confirm" class="hide">
233             <div class="alert alert-info bigger-110" id="modalContent">
234             </div>
235         </div>
236     </ui:define>
237     <ui:define name="myscript">
238     <script type="text/javascript" src="#{request.contextPath}/template/assets/js/chosen.jquery.js"></script>
239         <script src="js/user.js"></script>
240     </ui:define>
241 </ui:composition>
242 </html>