hjg
2024-07-09 4fd62ace17390b0b9cc37c55e88582134ec18c28
提交 | 用户 | 时间
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         i.fa.danger {
18             color: #D15B47
19         }
20         i.fa.success {
21             color: #87B87F
22         }
23         input.error {
24             border: 1px solid #D9534F;
25         }
26         #simple-table th,#simple-table td{
27             text-align: center;
28             padding: 2px 8px;
29         }
30         .bigger-95{
31         font-size: 95% !important;
32         }
33         .btn-xs, .btn-group-xs > .btn{
34           padding-top: 0px;
35           padding-bottom: 0px;
36         }
37         #form .control-label {
38             margin-right: -14px
39         }
40         .t-error{
41             color: red;
42             position: relative;
43             right: 2px;
44             top: 3px;
45         }
46         </style>
47     </ui:define>
48     <ui:define name="acontent">
49         <input type="hidden" value="#{param.page}" id="p" />
50         <input type="hidden" value="#{param.keyword}" id="k" />
51         <div class="row">
52             <!-- 
53             <div class="col-xs-2">
54                 <select name="" id="" class="form-control" data-bind="value: departNo, options: dList, optionsText: 'name', optionsValue: 'bianhao', optionsCaption: '请选择部门'"></select>
55             </div> 
56             -->
57             <div class="col-xs-5" style="margin-left: -31px">
58                 <div class="input-group">
59                     <input class="form-control input-mask-date" type="text" value="#{param.keyword}" id="keyword" placeholder="输入名称搜索" data-bind="value: keyword, valueUpdate: 'afterkeydown'" />
60                     <span class="input-group-btn">
61                         <button class="btn btn-sm btn-default" type="button" id="searchBtn">
62                             <i class="ace-icon fa fa-search bigger-110"></i>
63                             搜索
64                         </button>
65                     </span>
66                 </div>
67             </div>
68             <div class="col-xs-5" style="text-align: right;">
69                 <button class="btn btn-sm btn-info" type="button" id="newObj">
70                     <i class="ace-icon fa fa-plus bigger-110"></i>
71                     新装卸点
72                 </button>
73             </div>
74             <div class="col-xs-12 table-responsive" style="margin-top: 8px;">
75                 <table id="simple-table" class="table  table-bordered table-hover">
76                     <thead>
77                         <tr>
78                             <th class="detail-col" style="min-width: 48px">序号</th>
79                             <th style="min-width: 255px">名称</th>
80                             <th class="hidden-480" style="min-width: 48px">助记码</th>
81                             <!-- <th style="min-width: 125px">对应部门</th> -->
82                             <th style="min-width: 50px">启用</th>
83                             <th style="min-width: 255px">地址</th>
84                             <th style="min-width: 100px">操作</th>
85                         </tr>
86                     </thead>
87
88                     <tbody data-bind="foreach: list">
89                         <tr>
90                             <td class="center">
91                                 <span data-bind="text: $index() + 1"></span>
92                             </td>
93
94                             <td data-bind="text: name"></td>
95                             <td class="hidden-480" data-bind="text: helpcode"></td>
96                            <!--  <td data-bind="text: dname"></td> -->
97                             <td>
98                                 <a href="javascript:;" title="启用中"><i class="fa fa-check success" data-bind="click: $parent.state, visible: state(),css: {danger: !state(), success: state()}"></i></a>
99                                 <a href="javascript:;" title="禁用中"><i class="fa fa-close danger" data-bind="click: $parent.state, visible: !state(),css: {danger: !state(), success: state()}"></i></a>
100                             </td>
101                             <td data-bind="text: address"></td>
102
103                             <td>
104                                 <div class="btn-group">
105                                     <button class="btn btn-xs btn-info" title="编辑" data-bind="click: $parent.edit">
106                                         <!--<i class="ace-icon fa fa-pencil bigger-95"></i>-->
107                                         编辑
108                                     </button>
109
110                                     <button class="btn btn-xs btn-danger" title="删除" data-bind="click: $parent.del">
111                                         <!--<i class="ace-icon fa fa-trash-o bigger-95"></i>-->
112                                         删除
113                                     </button>
114                                 </div>
115                             </td>
116                         </tr>
117                     </tbody>
118                 </table>
119                 <div id="pagdiv"></div>
120             </div>
121         </div>
122         <div class="modal fade" id="modal">
123             <div class="modal-dialog">
124                 <div class="modal-content">
125                     <div class="modal-header">
126                         <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
127                         <h4 class="modal-title">编辑装卸点</h4>
128                     </div>
129                     <div class="modal-body">
130                         <form class="form-horizontal" id="form">
131                             <div class="form-body">
132                                 <div class="form-group">
133                                     <label class="col-md-3 control-label"><span class="t-error">*</span>名称</label>
134                                     <div class="col-md-6">
135                                         <input type="text" class="form-control" name="name" placeholder="" data-bind="value: o().name"/>
136                                     </div>
137                                     <div class="col-md-3">
138                                         <p class="form-control-static text-error"></p>
139                                     </div>
140                                 </div>
141                             </div>
142                             <div class="form-body">
143                                 <div class="form-group">
144                                     <label class="col-md-3 control-label"><span class="t-error"></span>助记码</label>
145                                     <div class="col-md-6">
146                                         <input type="text" class="form-control" name="helpcode" placeholder="" data-bind="value: o().helpcode"/>
147                                     </div>
148                                     <div class="col-md-3">
149                                         <p class="form-control-static text-error"></p>
150                                     </div>
151                                 </div>
152                             </div>
153                            <!--  <div class="form-body">
154                                 <div class="form-group">
155                                     <label class="col-md-3 control-label">部门</label>
156                                     <div class="col-md-6">
157                                         <select name="" id="" class="form-control" data-bind="value: o().departNo, options: dList, optionsText: 'name', optionsValue: 'bianhao', optionsCaption: '请选择部门'"></select>
158                                     </div>
159                                 </div>
160                             </div> -->
161                             <div class="form-body">
162                                 <div class="form-group">
163                                     <label class="col-md-3 control-label">地址</label>
164                                     <div class="col-md-6">
165                                         <input type="text" class="form-control" placeholder="" data-bind="value: o().address"/>
166                                     </div>
167                                 </div>
168                             </div>
169                         </form>
170                     </div>
171                     <div class="modal-footer">
172                         <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
173                         <button type="button" class="btn btn-primary" id="save">保存</button>
174                     </div>
175                 </div>
176             </div>
177         </div>
178         <div id="dialog-confirm" class="hide">
179             <div class="alert alert-info bigger-110" id="modalContent">
180             </div>
181         </div>
182     </ui:define>
183     <ui:define name="myscript">
184         <script src="js/lauZone.js"></script>
185     </ui:define>
186 </ui:composition>
187 </html>