hjg
2024-01-17 efbf825aa2f845bc6f9b26b0fa10139c8071deef
提交 | 用户 | 时间
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         </style>
25     </ui:define>
26     <ui:define name="acontent">
27         <input type="hidden" value="#{param.page}" id="p" />
28         <input type="hidden" value="#{param.keyword}" id="k" />
29         <div class="row">
30             <div class="col-xs-5">
31                 <div class="input-group">
32                     <input class="form-control input-mask-date" type="text" value="#{param.keyword}" id="keyword" placeholder="输入名称搜索" data-bind="value: keyword, valueUpdate: 'afterkeydown'" />
33                     <span class="input-group-btn">
34                         <button class="btn btn-sm btn-default" type="button" id="searchBtn">
35                             <i class="ace-icon fa fa-search bigger-110"></i>
36                             搜索
37                         </button>
38                     </span>
39                 </div>
40             </div>
41             <div class="col-xs-7" style="text-align: right;">
42                 <button class="btn btn-sm btn-info" type="button" id="newObjs">
43                     <i class="ace-icon fa fa-plus bigger-110"></i>
44                     发卡
45                 </button>
46             </div>
47             <div class="col-xs-12" style="margin-top: 8px; ''">
48                 <table id="simple-table" class="table  table-bordered table-hover">
49                     <thead>
50                         <tr>
51                             <th class="detail-col">序号</th>
52                             <th>卡号</th>
53                             <th>持卡人</th>
54                             <th>发放时间</th>
55                             <th>证件号</th>
56                             <th>联系方式</th>
57                             <th>有效期</th>
58                             <th style="width: 150px">操作</th>
59                         </tr>
60                     </thead>
61
62                     <tbody data-bind="foreach: list">
63                         <tr>
64                             <td class="center">
65                                 <span data-bind="text: $index() + 1"></span>
66                             </td>
67
68                             <td data-bind="text: name"></td>
69                             <td class="hidden-480" data-bind="text: lvl"></td>
70                             <td data-bind="text: note"></td>
71                             <td data-bind="text: note"></td>
72                             <td data-bind="text: note"></td>
73                             <td data-bind="text: note"></td>
74                             <td>
75                                 <div class="btn-group">
76                                     <button class="btn btn-xs btn-info" title="编辑" data-bind="click: $parent.edit">
77                                         <i class="ace-icon fa fa-pencil bigger-120"></i>
78                                     </button>
79
80                                     <button class="btn btn-xs btn-danger" title="删除" data-bind="click: $parent.del">
81                                         <i class="ace-icon fa fa-trash-o bigger-120"></i>
82                                     </button>
83                                 </div>
84                             </td>
85                         </tr>
86                     </tbody>
87                 </table>
88                 <div id="pagdiv"></div>
89             </div>
90         </div>
91         <div class="modal fade" id="modal">
92             <div class="modal-dialog">
93                 <div class="modal-content">
94                     <div class="modal-header">
95                         <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
96                         <h4 class="modal-title">编辑岗位</h4>
97                     </div>
98                     <div class="modal-body">
99                         <form class="form-horizontal" id="form">
100                             <div class="form-body">
101                                 <div class="form-group">
102                                     <label class="col-md-3 control-label">岗位名称</label>
103                                     <div class="col-md-6">
104                                         <input type="text" class="form-control" name="name" placeholder="" data-bind="value: o().name"/>
105                                     </div>
106                                     <div class="col-md-3">
107                                         <p class="form-control-static text-error"></p>
108                                     </div>
109                                 </div>
110                             </div>
111                             <div class="form-body">
112                                 <div class="form-group">
113                                     <label class="col-md-3 control-label">级别</label>
114                                     <div class="col-md-6">
115                                         <select name="" id="" class="form-control" data-bind="value: o().lvl">
116                                             <option value="0">请选择级别</option>
117                                             <option value="1">1</option>
118                                             <option value="2">2</option>
119                                             <option value="3">3</option>
120                                             <option value="4">4</option>
121                                             <option value="5">5</option>
122                                         </select>
123                                     </div>
124                                 </div>
125                             </div>
126                             <div class="form-body">
127                                 <div class="form-group">
128                                     <label class="col-md-3 control-label">备注</label>
129                                     <div class="col-md-6">
130                                         <input type="text" class="form-control" placeholder="" data-bind="value: o().note"/>
131                                     </div>
132                                 </div>
133                             </div>
134                         </form>
135                     </div>
136                     <div class="modal-footer">
137                         <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
138                         <button type="button" class="btn btn-primary" id="save">保存</button>
139                     </div>
140                 </div>
141             </div>
142         </div>
143         <div id="dialog-confirm" class="hide">
144             <div class="alert alert-info bigger-110" id="modalContent">
145             </div>
146         </div>
147     </ui:define>
148     <ui:define name="myscript">
149         <script src="js/guardcard.js"></script>
150     </ui:define>
151 </ui:composition>
152 </html>