提交 | 用户 | 时间
|
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 main-content-header"> |
|
51 |
<div class="row "> |
|
52 |
<div class="col-md-12 form-horizontal"> |
|
53 |
<div class="col-md-6"> |
|
54 |
<div class="input-group"> |
|
55 |
<input type="text" class="form-control" placeholder="请输入url" |
|
56 |
aria-describedby="basic-addon2" data-bind="value:filter" /> <a |
|
57 |
href="javascript:;" id="searcha" class="input-group-addon"><span |
|
58 |
class="fa fa-search"></span></a> |
|
59 |
</div> |
|
60 |
</div> |
|
61 |
<div class="col-md-4"> |
|
62 |
<select class="form-control" |
|
63 |
data-bind="value:type,event:{change:change}"> |
|
64 |
<option value="">-选择类型-</option> |
|
65 |
<option value="page">page</option> |
|
66 |
<option value="controller">controller</option> |
|
67 |
<option value="dom">dom</option> |
|
68 |
<option value="others">others</option> |
|
69 |
</select> |
|
70 |
</div> |
|
71 |
<div class="col-md-2"> |
|
72 |
<button id="ctbtn" type="button" class="btn btn-primary" |
|
73 |
autocomplete="off">新建</button> |
|
74 |
</div> |
|
75 |
</div> |
|
76 |
</div> |
|
77 |
</div> |
|
78 |
<div class="goods-table"> |
|
79 |
<table |
|
80 |
class="table table-striped table-bordered table-condensed table-hover"> |
|
81 |
<thead> |
|
82 |
<tr> |
|
83 |
<th>序号</th> |
|
84 |
<th>url</th> |
|
85 |
<th>备注</th> |
|
86 |
<th>类别</th> |
|
87 |
<th>操作</th> |
|
88 |
</tr> |
|
89 |
</thead> |
|
90 |
<tbody data-bind="foreach:ress"> |
|
91 |
<tr> |
|
92 |
<td data-bind="text:$index()+1">序号</td> |
|
93 |
<td data-bind="text:$data.url">登陆名</td> |
|
94 |
<td data-bind="text:$data.note">email</td> |
|
95 |
<td data-bind="text:$data.type">email</td> |
|
96 |
<td><a href="javascript:void(0);" |
|
97 |
data-bind="click:$parent.rm" title="删除"><span |
|
98 |
class="fa fa-times"></span></a>| <a href="javascript:void(0);" |
|
99 |
data-bind="click:$parent.edit" title="编辑"><span |
|
100 |
class="fa fa-edit"></span></a></td> |
|
101 |
</tr> |
|
102 |
</tbody> |
|
103 |
<tfoot> |
|
104 |
<tr> |
|
105 |
<td colspan="5"> |
|
106 |
<div id="pagdiv"></div> |
|
107 |
</td> |
|
108 |
</tr> |
|
109 |
</tfoot> |
|
110 |
</table> |
|
111 |
</div> |
|
112 |
|
|
113 |
</div> |
|
114 |
<div class="modal fade" id="modal1" tabindex="-1" role="dialog" |
|
115 |
aria-labelledby="myModalLabel" aria-hidden="true"> |
|
116 |
<div class="modal-dialog"> |
|
117 |
<div class="modal-content"> |
|
118 |
<div class="modal-header"> |
|
119 |
<button type="button" class="close" data-dismiss="modal" |
|
120 |
aria-label="Close"> |
|
121 |
<span aria-hidden="true">×</span> |
|
122 |
</button> |
|
123 |
<h4 class="modal-title" id="new-ress">新建</h4> |
|
124 |
<h4 class="modal-title" id="edit-ress" style="display: none">编辑</h4> |
|
125 |
</div> |
|
126 |
<div class="modal-body"> |
|
127 |
<form class="form-horizontal" id="fm1"> |
|
128 |
<input type="hidden" name="id" id="id" value="" |
|
129 |
data-bind="value:res.id" /> |
|
130 |
<div class="form-group"> |
|
131 |
<label for="url" class="col-sm-2 control-label">url</label> |
|
132 |
<div class="col-sm-8"> |
|
133 |
<input type="text" class="form-control" id="url" name="url" |
|
134 |
placeholder="url" data-bind="value:res.url" /> |
|
135 |
</div> |
|
136 |
</div> |
|
137 |
<div class="form-group"> |
|
138 |
<label for="note" class="col-sm-2 control-label">备注</label> |
|
139 |
<div class="col-sm-8"> |
|
140 |
<input type="text" class="form-control" id="note" name="note" |
|
141 |
placeholder="fa fa-download" data-bind="value:res.note" /> |
|
142 |
</div> |
|
143 |
</div> |
|
144 |
<div class="form-group"> |
|
145 |
<label for="type" class="col-sm-2 control-label">类别</label> |
|
146 |
<div class="col-sm-8"> |
|
147 |
<select data-bind="value:res.type"> |
|
148 |
<option value="">-选择类型-</option> |
|
149 |
<option value="page">page</option> |
|
150 |
<option value="controller">controller</option> |
|
151 |
<option value="dom">dom</option> |
|
152 |
<option value="others">others</option> |
|
153 |
</select> |
|
154 |
</div> |
|
155 |
</div> |
|
156 |
<div class="form-group"> |
|
157 |
<label for="type" class="col-sm-2 control-label">类别</label> |
|
158 |
<div class="col-sm-8"> |
|
159 |
<select data-bind="value:res.side"> |
|
160 |
<option value="front">page</option> |
|
161 |
<option value="back">controller</option> |
|
162 |
</select> |
|
163 |
</div> |
|
164 |
</div> |
|
165 |
|
|
166 |
<div class="form-group"> |
|
167 |
<label for="note" class="col-sm-2 control-label">模块</label> |
|
168 |
<div class="col-sm-8"> |
|
169 |
<select class="form-control" id="module" name="module" |
|
170 |
data-bind="value:res.module,options:modules,optionsText:'name',optionsValue:'id'"></select> |
|
171 |
</div> |
|
172 |
</div> |
|
173 |
<div class="form-group"> |
|
174 |
<label for="note" class="col-sm-2 control-label">操作</label> |
|
175 |
<div class="col-sm-8"> |
|
176 |
<select class="form-control" id="opvalue" name="opvalue" data-bind="value:res.opvalue,options:opers,optionsText:'title',optionsValue:'value'"></select> |
|
177 |
</div> |
|
178 |
</div> |
|
179 |
|
|
180 |
</form> |
|
181 |
</div> |
|
182 |
<div id="errmsg"></div> |
|
183 |
<div class="modal-footer"> |
|
184 |
<button type="button" class="btn btn-primary" |
|
185 |
data-loading-text="保存中..." id="tjbtn">提交</button> |
|
186 |
</div> |
|
187 |
</div> |
|
188 |
</div> |
|
189 |
</div> |
|
190 |
</ui:define> |
|
191 |
<ui:define name="myscript"> |
|
192 |
<script type="text/javascript" src="#{request.contextPath}/system/js/ress.js"></script> |
|
193 |
</ui:define> |
|
194 |
</ui:composition> |
|
195 |
</html> |