hjg
2023-10-14 f6c2f15c37aef4675dda01fb5ec17cde4e141c3f
提交 | 用户 | 时间
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         .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         </style>
41     </ui:define>
42     <ui:define name="acontent">
43         <input type="hidden" value="#{param.page}" id="p" />
44         <input type="hidden" value="#{param.keyword}" id="k" />
45         <div class="row">
46             <div class="col-xs-5">
47                 <div class="input-group">
48                     <input class="form-control input-mask-date" type="text" value="#{param.keyword}" id="keyword" placeholder="输入名称搜索" data-bind="value: keyword, valueUpdate: 'afterkeydown'" />
49                     <span class="input-group-btn">
50                         <button class="btn btn-sm btn-default" type="button" id="searchBtn">
51                             <i class="ace-icon fa fa-search bigger-110"></i>
52                             搜索
53                         </button>
54                     </span>
55                 </div>
56             </div>
57             <div class="col-xs-7" style="text-align: right;">
58                 <button class="btn btn-sm btn-info" type="button" id="newObj">
59                     <i class="ace-icon fa fa-plus bigger-110"></i>
60                     新货车类型
61                 </button>
62             </div>
63             <div class="col-xs-12 table-responsive" style="margin-top: 8px; ''">
64                 <table id="simple-table" class="table  table-bordered table-hover">
65                     <thead>
66                         <tr>
67                             <th class="detail-col">序号</th>
68                             <th style="width: 250px">货车类型名称</th>
69                             <th>备注</th>
70                             <th style="width: 150px; min-width: 100px">操作</th>
71                         </tr>
72                     </thead>
73
74                     <tbody data-bind="foreach: list">
75                         <tr>
76                             <td class="center">
77                                 <span data-bind="text: $index() + 1"></span>
78                             </td>
79
80                             <td data-bind="text: name"></td>
81                             <td data-bind="text: note"></td>
82
83                             <td>
84                                 <div class="btn-group">
85                                     <button class="btn btn-xs btn-info" title="编辑" data-bind="click: $parent.edit">
86                                         <!--<i class="ace-icon fa fa-pencil bigger-95"></i>-->
87                                         编辑
88                                     </button>
89
90                                     <button class="btn btn-xs btn-danger" title="删除" data-bind="click: $parent.del">
91                                         <!--<i class="ace-icon fa fa-trash-o bigger-95"></i>-->
92                                         删除
93                                     </button>
94                                 </div>
95                             </td>
96                         </tr>
97                     </tbody>
98                 </table>
99                 <div id="pagdiv"></div>
100             </div>
101         </div>
102         <div class="modal fade" id="modal">
103             <div class="modal-dialog">
104                 <div class="modal-content">
105                     <div class="modal-header">
106                         <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
107                         <h4 class="modal-title">编辑货车类型</h4>
108                     </div>
109                     <div class="modal-body">
110                         <form class="form-horizontal" id="form">
111                             <div class="form-body">
112                                 <div class="form-group">
113                                     <label class="col-md-3 control-label"><span class="t-error">*</span>货车类型名称</label>
114                                     <div class="col-md-6">
115                                         <input type="text" class="form-control" name="name" placeholder="" data-bind="value: o().name"/>
116                                     </div>
117                                     <div class="col-md-3">
118                                         <p class="form-control-static text-error"></p>
119                                     </div>
120                                 </div>
121                             </div>
122                             <div class="form-body">
123                                 <div class="form-group">
124                                     <label class="col-md-3 control-label">备注</label>
125                                     <div class="col-md-6">
126                                         <input type="text" class="form-control" placeholder="" data-bind="value: o().note"/>
127                                     </div>
128                                 </div>
129                             </div>
130                         </form>
131                     </div>
132                     <div class="modal-footer">
133                         <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
134                         <button type="button" class="btn btn-primary" id="save">保存</button>
135                     </div>
136                 </div>
137             </div>
138         </div>
139         <div id="dialog-confirm" class="hide">
140             <div class="alert alert-info bigger-110" id="modalContent">
141             </div>
142         </div>
143     </ui:define>
144     <ui:define name="myscript">
145         <script src="js/vehicletype.js"></script>
146     </ui:define>
147 </ui:composition>
148 </html>