提交 | 用户 | 时间
|
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 |
#sysDepart { |
|
12 |
padding-left: 17px; |
|
13 |
border: none; |
|
14 |
cursor: default; |
|
15 |
} |
|
16 |
</style> |
|
17 |
</ui:define> |
|
18 |
<ui:define name="acontent"> |
|
19 |
<div class="row main-content"> |
|
20 |
<div class="col-md-12 form-horizontal"> |
|
21 |
<div class="col-md-6"> |
|
22 |
<div class="input-group"> |
|
23 |
<input type="text" class="form-control" placeholder="请输入过滤内容" aria-describedby="basic-addon2" data-bind="value:filter" /> |
|
24 |
<a href="javascript:;" id="searcha" class="input-group-addon"><span class="fa fa-search"></span></a> |
|
25 |
</div> |
|
26 |
</div> |
|
27 |
<div class="col-md-2"> |
|
28 |
<button id="ctbtn" type="button" class="btn btn-primary" autocomplete="off">新建</button> |
|
29 |
</div> |
|
30 |
</div> |
|
31 |
|
|
32 |
<table class="table table-striped table-bordered table-condensed table-hover"> |
|
33 |
<thead> |
|
34 |
<tr> |
|
35 |
<th>序号</th> |
|
36 |
<th>名称</th> |
|
37 |
<th>备注</th> |
|
38 |
<th>操作</th> |
|
39 |
</tr> |
|
40 |
</thead> |
|
41 |
<tbody data-bind="foreach:groups"> |
|
42 |
<tr> |
|
43 |
<td data-bind="text:$index()+1">序号</td> |
|
44 |
<td data-bind="text:$data.level()+$data.name()">登陆名</td> |
|
45 |
<td data-bind="text:$data.note">email</td> |
|
46 |
<td> |
|
47 |
<a href="javascript:void(0);" data-bind="click:$parent.rm" title="删除"><span class="fa fa-times"></span></a>| |
|
48 |
<a href="javascript:void(0);" data-bind="click:$parent.edit" title="编辑"><span class="fa fa-edit"></span></a>| |
|
49 |
<a href="javascript:void(0);" data-bind="click:$parent.usrs" title="用户"><span class="fa fa-gift"></span></a>| |
|
50 |
<a href="javascript:void(0);" data-bind="click:$parent.stp" title="权限"><span class="fa fa-fire"></span></a> |
|
51 |
</td> |
|
52 |
</tr> |
|
53 |
</tbody> |
|
54 |
<tfoot> |
|
55 |
<tr> |
|
56 |
<td colspan="4"> |
|
57 |
<div id="pagdiv"></div> |
|
58 |
</td> |
|
59 |
</tr> |
|
60 |
</tfoot> |
|
61 |
</table> |
|
62 |
</div> |
|
63 |
|
|
64 |
<div class="modal fade" id="modal1" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> |
|
65 |
<div class="modal-dialog"> |
|
66 |
<div class="modal-content"> |
|
67 |
<div class="modal-header"> |
|
68 |
<button type="button" class="close" data-dismiss="modal" aria-label="Close"> |
|
69 |
<span aria-hidden="true">×</span> |
|
70 |
</button> |
|
71 |
<h4 class="modal-title" >编辑</h4> |
|
72 |
</div> |
|
73 |
<div class="modal-body"> |
|
74 |
<form class="form-horizontal" id="fm1"> |
|
75 |
<input type="hidden" name="id" id="id" value="" data-bind="value:group().id" /> |
|
76 |
<div class="form-group"> |
|
77 |
<label for="name" class="col-sm-2 control-label">名称</label> |
|
78 |
<div class="col-sm-8"> |
|
79 |
<input type="text" class="form-control" id="name" name="name" placeholder="name" data-bind="value:group().name"/> |
|
80 |
</div> |
|
81 |
</div> |
|
82 |
<div class="form-group"> |
|
83 |
<label for="description" class="col-sm-2 control-label">备注</label> |
|
84 |
<div class="col-sm-8"> |
|
85 |
<input type="text" class="form-control" id="note" name="note" placeholder="fa fa-download" data-bind="value:group().note"/> |
|
86 |
</div> |
|
87 |
</div> |
|
88 |
|
|
89 |
<div class="form-group"> |
|
90 |
<label for="TARGET" class="col-sm-2 control-label">父组</label> |
|
91 |
<div class="col-sm-8"> |
|
92 |
<div class="input-group"> |
|
93 |
<input type="hidden" id="pid" name="pid" value="" data-bind="value:group().pgroup" /> |
|
94 |
<span class="form-control" id="ptitle" data-bind="text:group().pgroupname">请选择上级菜单</span> |
|
95 |
<a href="javascript:;" id="selparent" class="input-group-addon"><span class="fa fa-caret-square-o-up"></span></a> |
|
96 |
</div> |
|
97 |
</div> |
|
98 |
</div> |
|
99 |
|
|
100 |
</form> |
|
101 |
</div> |
|
102 |
<div id="errmsg"></div> |
|
103 |
<div class="modal-footer"> |
|
104 |
<button type="button" class="btn btn-primary" data-loading-text="保存中..." id="tjbtn">提交</button> |
|
105 |
</div> |
|
106 |
</div> |
|
107 |
</div> |
|
108 |
</div> |
|
109 |
|
|
110 |
|
|
111 |
<div class="modal fade" id="modal2" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> |
|
112 |
<div class="modal-dialog"> |
|
113 |
<div class="modal-content"> |
|
114 |
<div class="modal-header"> |
|
115 |
<button type="button" class="close" data-dismiss="modal" aria-label="Close"> |
|
116 |
<span aria-hidden="true">×</span> |
|
117 |
</button> |
|
118 |
<h4 class="modal-title" >选择父组</h4> |
|
119 |
</div> |
|
120 |
<div class="modal-body"> |
|
121 |
<div class="row"> |
|
122 |
|
|
123 |
<table class="table table-striped table-bordered table-condensed"> |
|
124 |
<thead> |
|
125 |
<tr> |
|
126 |
<th>序号</th> |
|
127 |
<th>名字</th> |
|
128 |
</tr> |
|
129 |
</thead> |
|
130 |
<tbody data-bind="foreach:pgroups"> |
|
131 |
<tr> |
|
132 |
<td data-bind="text:$index()+1"></td> |
|
133 |
<td> |
|
134 |
<a href="javascript:;" data-bind="event:{click:$parent.psel},text:$data.name"></a> |
|
135 |
</td> |
|
136 |
</tr> |
|
137 |
</tbody> |
|
138 |
<tfoot> |
|
139 |
<tr> |
|
140 |
<td colspan="2"> |
|
141 |
<div id="pagdiv2"> |
|
142 |
|
|
143 |
</div> |
|
144 |
</td> |
|
145 |
</tr> |
|
146 |
</tfoot> |
|
147 |
</table> |
|
148 |
</div> |
|
149 |
</div> |
|
150 |
</div> |
|
151 |
</div> |
|
152 |
</div> |
|
153 |
</ui:define> |
|
154 |
<ui:define name="myscript"> |
|
155 |
<script type="text/javascript" src="#{request.contextPath}/template/assets/js/chosen.jquery.js"></script> |
|
156 |
<script type="text/javascript" src="#{request.contextPath}/system/js/groups.js"></script> |
|
157 |
</ui:define> |
|
158 |
</ui:composition> |
|
159 |
</html> |