Administrator
2022-12-15 9ce4bb2b6bd1378ba7b0bd6681d22cb37a5e1452
提交 | 用户 | 时间
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         .form-body span.text {
12             line-height: 34px
13         }
14         </style>
15     </ui:define>
16     <ui:define name="acontent">
17         <div class="row">
18                 <div class="col-md-12 form-horizontal">
19                     <div class="col-md-6">
20                         <div class="input-group">
21                               <input type="text" class="form-control" placeholder="请输入过滤内容" aria-describedby="basic-addon2" data-bind="value:filter" />
22                               <a href="javascript:;" id="searcha" class="input-group-addon"><span class="fa fa-search"></span></a>
23                               
24                             </div>
25                     </div>
26                     <div class="col-md-2 col-md-offset-4">
27                         <button id="ctbtn" type="button" class="btn btn-primary" autocomplete="off">新建</button>
28                     </div>
29                 </div>
30             </div>
31             <div class="row goods-table">
32                 <div class="col-md-12">
33                     <table class="table table-striped table-bordered table-condensed">
34                         <thead>
35                             <tr>
36                                 <th>序号</th>
37                                 <th>名称</th>
38                                 <th>icon</th>
39                                 <th>url</th>
40                                 <th>状态</th>
41                                 <th>target</th>
42                                 <th>顺序</th>
43                                 <th>操作</th>
44                             </tr>
45                         </thead>
46                         <tbody data-bind="foreach:menus">
47                             <tr>
48                                 <td data-bind="text:$index()+1"></td>
49                                 <td data-bind="text:$data.level()+$data.title()">名称</td>
50                                 <td ><span class="fa" data-bind="css:$data.icon"></span></td>
51                                 <td data-bind="text:$data.url">url</td>
52                                 <td>
53                                     <a href="javascript:;" data-bind="event:{click:$parent.validchg}">
54                                         <span data-bind="css:($data.valid()==true)?'glyphicon glyphicon-ok':'glyphicon glyphicon-remove' "></span>
55                                     </a>
56                                 </td>
57                                 <td data-bind="text:$data.target">target</td>
58                                 <td>
59                                     <a href="javascript:;" data-bind="event:{click:$parent.uporder}">
60                                         <span class="fa fa-arrow-circle-o-up"></span>
61                                     </a>|
62                                     <a href="javascript:;" data-bind="event:{click:$parent.downorder}">
63                                         <span class="fa fa-arrow-circle-o-down"></span>
64                                     </a>
65                                 </td>
66                                 <td >
67                                     <a href="javascript:;" data-bind="event:{click:$parent.delmenu}">
68                                         <span class="fa fa-times"></span>
69                                     </a>|
70                                     <a href="javascript:;" data-bind="event:{click:$parent.editmenu}">
71                                         <span class="fa fa-edit"></span>
72                                     </a>
73                                 </td>
74                             </tr>
75                         </tbody>
76                         <tfoot>
77                             <tr>
78                                 <td colspan="8">
79                                     <div id="pagdiv">
80                                     </div>
81                                 </td>
82                             </tr>
83                         </tfoot>
84                     </table>
85                 </div>
86             </div>
87       <input  type="hidden" name="mtype" id="mtype" value="#{param.mtype==null?0:param.mtype}" />
88       <input  type="hidden" name="mtypetitle" id="mtypetitle" value="#{param.mtypetitle==null?'':param.mtypetitle}" />
89
90 <div class="modal fade" id="modal1" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
91   <div class="modal-dialog">
92     <div class="modal-content">
93       <div class="modal-header">
94         <button type="button" class="close" data-dismiss="modal" aria-label="Close">
95             <span aria-hidden="true">&times;</span>
96         </button>
97         <h4 class="modal-title" >编辑菜单</h4>
98       </div>
99       <div class="modal-body">
100            <form class="form-horizontal" id="fm1">
101                <input type="hidden" name="menuid" id="menuid" value="" data-bind="value:menu().id" />
102                <div class="form-group">
103                 <label for="title" class="col-sm-2 control-label">题目</label>
104                 <div class="col-sm-8">
105                       <input type="text" class="form-control" id="title" name="title" placeholder="title" data-bind="value:menu().title"/>
106                 </div>
107               </div>
108               <div class="form-group">
109                 <label for="icon" class="col-sm-2 control-label">图标</label>
110                 <div class="col-sm-8">
111                       <input type="text" class="form-control" id="icon" name="icon" placeholder="fa fa-download" data-bind="value:menu().icon"/>
112                 </div>
113               </div>
114               <div class="form-group">
115                 <label for="URL" class="col-sm-2 control-label">URL</label>
116                 <div class="col-sm-8">
117                       <input type="text" class="form-control" id="URL" name="URL" placeholder="URL" data-bind="value:menu().url"/>
118                 </div>
119               </div>
120               <div class="form-group">
121                 <label for="vld" class="col-sm-2 control-label">启停用</label>
122                 <div class="col-sm-8">
123                     <label class="checkbox-inline">
124                               <input type="checkbox" name="vld" id="vld"  data-bind="checked:menu().valid"/> 是否启用
125                     </label>              
126                 </div>
127               </div>
128               <div class="form-group">
129                 <label for="TARGET" class="col-sm-2 control-label">TARGET</label>
130                 <div class="col-sm-8">
131                       <input type="text" class="form-control" id="TARGET" name="TARGET" placeholder="_blank,_self,etc..." data-bind="value:menu().trget"/>
132                 </div>
133               </div>
134               <div class="form-group">
135                 <label for="TARGET" class="col-sm-2 control-label">菜单类型</label>
136                 <div class="col-sm-8">
137                       <select data-bind="value:menu().mtype,options:mtypes,optionsText:'title',optionsValue:'id'" readonly="readonly">
138                           <option value="0">-请选择-</option>
139                       </select>
140                 </div>
141               </div>
142               <div class="form-group">
143                 <label for="TARGET" class="col-sm-2 control-label">上级菜单</label>
144                 <div class="col-sm-8">
145                     <div class="input-group">
146                     <input type="hidden" id="pid" name="pid" value="" data-bind="value:menu().pmenu" />
147                       <span class="form-control" id="ptitle" data-bind="text:menu().pmenutitle">请选择上级菜单</span>
148                       <a href="javascript:;" id="selparent" class="input-group-addon"><span class="fa fa-caret-square-o-up"></span></a>
149                     </div>
150                 </div>
151               </div>
152            </form>
153       </div>
154       <div id="errmsg"></div>
155       <div class="modal-footer">
156         <button type="button" class="btn btn-primary" data-loading-text="保存中..." id="tjbtn">提交</button>
157       </div>
158     </div>
159   </div>
160 </div>
161
162
163 <div class="modal fade" id="modal2" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
164   <div class="modal-dialog">
165     <div class="modal-content">
166       <div class="modal-header">
167         <button type="button" class="close" data-dismiss="modal" aria-label="Close">
168             <span aria-hidden="true">&times;</span>
169         </button>
170         <h4 class="modal-title" >选择上级菜单</h4>
171       </div>
172       <div class="modal-body">
173       <div class="row">
174
175            <table class="table table-striped table-bordered table-condensed">
176                <thead>
177                    <tr>
178                        <th>序号</th>
179                        <th>菜单题目</th>
180                    </tr>    
181                </thead>
182                <tbody data-bind="foreach:pmenus">
183                    <tr>
184                        <td data-bind="text:$index()+1"></td>
185                        <td>
186                            <a href="javascript:;" data-bind="event:{click:$parent.psel},text:$data.title"></a>
187                        </td>
188                    </tr>
189                </tbody>
190                <tfoot>
191                    <tr>
192                        <td colspan="2">
193                            <div id="pagdiv2">
194
195                            </div>
196                        </td>
197                   </tr>
198                </tfoot>
199            </table>
200       </div>
201       </div>
202     </div>
203   </div>
204 </div>
205     </ui:define>
206     <ui:define name="myscript">
207         <script src="js/bmenu.js"></script>
208     </ui:define>
209 </ui:composition>
210 </html>