提交 | 用户 | 时间
|
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 |
i.fa.danger { |
|
21 |
color: #D15B47 |
|
22 |
} |
|
23 |
i.fa.success { |
|
24 |
color: #87B87F |
|
25 |
} |
|
26 |
</style> |
|
27 |
</ui:define> |
|
28 |
<ui:define name="acontent"> |
|
29 |
<input type="hidden" value="#{param.relationno}" id="relationno"/> |
|
30 |
<input type="hidden" value="#{param.name}" id="name"/> |
|
31 |
<div class="row"> |
|
32 |
<div class="col-xs-5"> |
|
33 |
<div class="page-header"> |
|
34 |
<h1>【#{param.name}】的设备列表</h1> |
|
35 |
</div> |
|
36 |
</div> |
|
37 |
<div class="col-xs-7" style="text-align: right;"> |
|
38 |
<a class="btn btn-xs btn-info" title="新设备" id="newceq" href="javascript:;"> |
|
39 |
<i class="ace-icon fa fa-plus bigger-110"></i> |
|
40 |
新设备 |
|
41 |
</a> |
|
42 |
</div> |
|
43 |
<div class="col-xs-12" style="margin-top: 8px; ''"> |
|
44 |
<table id="simple-table" class="table table-bordered table-hover"> |
|
45 |
<thead> |
|
46 |
<tr> |
|
47 |
<th class="detail-col">序号</th> |
|
48 |
<th>设备编号</th> |
|
49 |
<th>设备名称</th> |
|
50 |
<th>设备类型</th> |
|
51 |
<th>方向</th> |
|
52 |
<th>IP</th> |
|
53 |
<th>服务IP</th> |
|
54 |
<th>启用</th> |
|
55 |
<th style="width: 150px">操作</th> |
|
56 |
</tr> |
|
57 |
</thead> |
|
58 |
|
|
59 |
<tbody data-bind="foreach: list"> |
|
60 |
<tr> |
|
61 |
<td class="center"> |
|
62 |
<span data-bind="text: $index() + 1"></span> |
|
63 |
</td> |
|
64 |
|
|
65 |
<td data-bind="text: equipmentno"></td> |
|
66 |
<td data-bind="text: eqname"></td> |
|
67 |
<td data-bind="text: type"></td> |
|
68 |
<td data-bind="text: aspect==1?'进':'出'"></td> |
|
69 |
<td data-bind="text: ip"></td> |
|
70 |
<td data-bind="text: serviceIP"></td> |
|
71 |
<td> |
|
72 |
<a href="javascript:;" title="启用中"><i class="fa fa-check success" data-bind="click: $parent.used, visible: state(),css: {danger: !state(), success: state()}"></i></a> |
|
73 |
<a href="javascript:;" title="禁用中"><i class="fa fa-close danger" data-bind="click: $parent.used, visible: !state(),css: {danger: !state(), success: state()}"></i></a> |
|
74 |
</td> |
|
75 |
|
|
76 |
<td> |
|
77 |
<div class="btn-group"> |
|
78 |
<a class="btn btn-xs btn-info" title="编辑" data-bind="attr: {href: 'gates_cequipmentEdit.jsf?id=' + id}"> |
|
79 |
<i class="ace-icon fa fa-edit bigger-120"></i> |
|
80 |
</a> |
|
81 |
|
|
82 |
<button class="btn btn-xs btn-danger" title="删除" data-bind="click: $parent.del"> |
|
83 |
<i class="ace-icon fa fa-trash-o bigger-120"></i> |
|
84 |
</button> |
|
85 |
</div> |
|
86 |
</td> |
|
87 |
</tr> |
|
88 |
</tbody> |
|
89 |
</table> |
|
90 |
</div> |
|
91 |
</div> |
|
92 |
<div id="dialog-confirm" class="hide"> |
|
93 |
<div class="alert alert-info bigger-110" id="modalContent"> |
|
94 |
</div> |
|
95 |
</div> |
|
96 |
</ui:define> |
|
97 |
<ui:define name="myscript"> |
|
98 |
<script src="js/gates_cequipmentList.js"></script> |
|
99 |
</ui:define> |
|
100 |
</ui:composition> |
|
101 |
</html> |