hjg
2023-11-18 bb48edb3d9faaaeab0088151c86fc24137acdb08
提交 | 用户 | 时间
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: 2px 8px;
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         #form .control-label {
32             margin-right: -14px
33         }
34         .t-error{
35             color: red;
36             position: relative;
37             right: 2px;
38             top: 3px;
39         }
40         .pagination {
41             margin: 10px 0;
42         }
43         #simple-table th {
44             padding: 0
45         }
46         .th {
47             position: relative;
48             width: 100%;
49             display: block;
50             background: #F2F2F2;
51             border: 1px solid #DDDDDD;
52             z-index: 1;
53             border-left: none;
54         }
55         </style>
56     </ui:define>
57     <ui:define name="acontent">
58         <input type="hidden" value="#{param.page}" id="p" />
59         <input type="hidden" value="#{param.keyword}" id="k" />
60         <div class="row">
61             <div class="col-xs-5">
62                 <div class="input-group">
63                     <input class="form-control input-mask-date" type="text" value="#{param.keyword}" id="keyword" placeholder="输入名称搜索" data-bind="value: keyword, valueUpdate: 'afterkeydown'" />
64                     <span class="input-group-btn">
65                         <button class="btn btn-sm btn-default" type="button" id="searchBtn">
66                             <i class="ace-icon fa fa-search bigger-110"></i>
67                             搜索
68                         </button>
69                     </span>
70                 </div>
71             </div>
72             <div class="col-xs-7" style="text-align: right;">
73                 <!--<button class="btn btn-sm btn-info" type="button" id="newObj">
74                     <i class="ace-icon fa fa-plus bigger-110"></i>
75                     新岗位
76                 </button>-->
77             </div>
78             <div class="col-xs-12 table-responsive" style="margin-top: 8px;">
79                 <table id="simple-table" class="table  table-bordered table-hover">
80                     <thead>
81                         <tr>
82                             <th class="detail-col" style="min-width: 48px">序号</th>
83                             <th style="min-width: 150px">车牌号</th>
84                             <th style="min-width: 150px">司机</th>
85                             <th style="min-width: 150px">联系电话</th>
86                             <th style="width: 100px; min-width: 100px">操作</th>
87                         </tr>
88                     </thead>
89
90                     <tbody data-bind="foreach: list">
91                         <tr>
92                             <td class="center">
93                                 <span data-bind="text: $index() + 1"></span>
94                             </td>
95
96                             <td data-bind="text: vehicleID"></td>
97                             <td data-bind="text: driver"></td>
98                             <td data-bind="text: phone"></td>
99
100                             <td>
101                                 <div class="btn-group">
102                                     <!--<button class="btn btn-xs btn-info" title="编辑" data-bind="click: $parent.edit">
103                                         <i class="ace-icon fa fa-pencil bigger-95"></i>
104                                         编辑
105                                     </button>-->
106
107                                     <button class="btn btn-xs btn-danger" title="删除" data-bind="click: $parent.del">
108                                         <!--<i class="ace-icon fa fa-trash-o bigger-95"></i>-->
109                                         删除
110                                     </button>
111                                 </div>
112                             </td>
113                         </tr>
114                     </tbody>
115                 </table>
116             </div>
117             <div class="col-md-12">
118                 <div id="pagdiv"></div>
119             </div>
120         </div>
121         <div class="modal fade" id="modal">
122             <div class="modal-dialog">
123                 <div class="modal-content">
124                     <div class="modal-header">
125                         <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
126                         <h4 class="modal-title">编辑岗位</h4>
127                     </div>
128                     <div class="modal-body">
129                         <form class="form-horizontal" id="form">
130                             <div class="form-body">
131                                 <div class="form-group">
132                                     <label class="col-md-3 control-label"><span class="t-error">*</span>岗位名称</label>
133                                     <div class="col-md-6">
134                                         <input type="text" class="form-control" name="name" placeholder="" data-bind="value: o().name"/>
135                                     </div>
136                                     <div class="col-md-3">
137                                         <p class="form-control-static text-error"></p>
138                                     </div>
139                                 </div>
140                             </div>
141                             <div class="form-body">
142                                 <div class="form-group">
143                                     <label class="col-md-3 control-label">级别</label>
144                                     <div class="col-md-6">
145                                         <select name="" id="" class="form-control" data-bind="value: o().lvl">
146                                             <option value="0">请选择级别</option>
147                                             <option value="1">1</option>
148                                             <option value="2">2</option>
149                                             <option value="3">3</option>
150                                             <option value="4">4</option>
151                                             <option value="5">5</option>
152                                         </select>
153                                     </div>
154                                 </div>
155                             </div>
156                             <div class="form-body">
157                                 <div class="form-group">
158                                     <label class="col-md-3 control-label">备注</label>
159                                     <div class="col-md-6">
160                                         <input type="text" class="form-control" placeholder="" data-bind="value: o().note"/>
161                                     </div>
162                                 </div>
163                             </div>
164                         </form>
165                     </div>
166                     <div class="modal-footer">
167                         <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
168                         <button type="button" class="btn btn-primary" id="save">保存</button>
169                     </div>
170                 </div>
171             </div>
172         </div>
173         <div id="dialog-confirm" class="hide">
174             <div class="alert alert-info bigger-110" id="modalContent">
175             </div>
176         </div>
177     </ui:define>
178     <ui:define name="myscript">
179         <script src="js/vehiclehinfo.js"></script>
180     </ui:define>
181 </ui:composition>
182 </html>