提交 | 用户 | 时间
|
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 |
select.error, 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 |
#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 |
<div class="row main-content"> |
|
50 |
<div class="col-md-12 form-horizontal"> |
|
51 |
<!-- |
|
52 |
<div class="col-md-6"> |
|
53 |
<div class="input-group"> |
|
54 |
<input type="text" class="form-control" placeholder="请输入过滤内容" aria-describedby="basic-addon2" data-bind="value:filter" /> |
|
55 |
<a href="javascript:;" id="searcha" class="input-group-addon"><span class="fa fa-search"></span></a> |
|
56 |
</div> |
|
57 |
</div> |
|
58 |
--> |
|
59 |
<div class="col-md-2 col-md-offset-10"> |
|
60 |
<button id="ctbtn" type="button" class="btn btn-primary" autocomplete="off">新建</button> |
|
61 |
</div> |
|
62 |
</div> |
|
63 |
|
|
64 |
<table class="table table-striped table-bordered table-condensed table-hover"> |
|
65 |
<thead> |
|
66 |
<tr> |
|
67 |
<th>序号</th> |
|
68 |
<th>题目</th> |
|
69 |
|
|
70 |
<th>指数</th> |
|
71 |
<th>数值</th> |
|
72 |
<th>操作</th> |
|
73 |
</tr> |
|
74 |
</thead> |
|
75 |
<tbody data-bind="foreach:opers"> |
|
76 |
<tr> |
|
77 |
<td data-bind="text:$index()+1">序号</td> |
|
78 |
<td data-bind="text:$data.title">题目</td> |
|
79 |
|
|
80 |
<td data-bind="text:$data.exp">指数</td> |
|
81 |
<td data-bind="text:$data.value">数值</td> |
|
82 |
<td> |
|
83 |
<a href="javascript:void(0);" data-bind="click:$parent.rm" title="删除"><span class="fa fa-times"></span></a>| |
|
84 |
<a href="javascript:void(0);" data-bind="click:$parent.edit" title="编辑"><span class="fa fa-edit"></span></a> |
|
85 |
</td> |
|
86 |
</tr> |
|
87 |
</tbody> |
|
88 |
<tfoot> |
|
89 |
<tr> |
|
90 |
<td colspan="5"> |
|
91 |
<div id="pagdiv"></div> |
|
92 |
</td> |
|
93 |
</tr> |
|
94 |
</tfoot> |
|
95 |
</table> |
|
96 |
</div> |
|
97 |
<div class="modal fade" id="modal1" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> |
|
98 |
<div class="modal-dialog"> |
|
99 |
<div class="modal-content"> |
|
100 |
<div class="modal-header"> |
|
101 |
<button type="button" class="close" data-dismiss="modal" aria-label="Close"> |
|
102 |
<span aria-hidden="true">×</span> |
|
103 |
</button> |
|
104 |
<h4 class="modal-title" >编辑</h4> |
|
105 |
</div> |
|
106 |
<div class="modal-body"> |
|
107 |
<form class="form-horizontal" id="fm1"> |
|
108 |
<input type="hidden" name="id" id="id" value="" data-bind="value:oper().id" /> |
|
109 |
<div class="form-group"> |
|
110 |
<label for="title" class="col-sm-2 control-label">用户名</label> |
|
111 |
<div class="col-sm-8"> |
|
112 |
<input type="text" class="form-control" id="title" name="title" placeholder="title" data-bind="value:oper().title"/> |
|
113 |
</div> |
|
114 |
</div> |
|
115 |
<div class="form-group"> |
|
116 |
<label for="description" class="col-sm-2 control-label">指数</label> |
|
117 |
<div class="col-sm-8"> |
|
118 |
<span class="form-control" data-bind="text:oper().exp"></span> |
|
119 |
</div> |
|
120 |
</div> |
|
121 |
<div class="form-group"> |
|
122 |
<label for="description" class="col-sm-2 control-label">数值</label> |
|
123 |
<div class="col-sm-8"> |
|
124 |
<span class="form-control" data-bind="text:oper().value"></span> |
|
125 |
</div> |
|
126 |
</div> |
|
127 |
</form> |
|
128 |
</div> |
|
129 |
<div id="errmsg"></div> |
|
130 |
<div class="modal-footer"> |
|
131 |
<button type="button" class="btn btn-primary" data-loading-text="保存中..." id="tjbtn">提交</button> |
|
132 |
</div> |
|
133 |
</div> |
|
134 |
</div> |
|
135 |
</div> |
|
136 |
</ui:define> |
|
137 |
<ui:define name="myscript"> |
|
138 |
<script type="text/javascript" src="#{request.contextPath}/system/js/opers.js"></script> |
|
139 |
</ui:define> |
|
140 |
</ui:composition> |
|
141 |
</html> |