hjg
2023-10-14 f6c2f15c37aef4675dda01fb5ec17cde4e141c3f
提交 | 用户 | 时间
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 class="col-md-12 goods-table">
31                     <table class="table table-striped table-bordered table-condensed">
32                         <thead>
33                             <tr>
34                                 <th>序号</th>
35                                 <th>名称</th>
36                                 <th>备注</th>
37                                 <th>操作</th>
38                             </tr>
39                         </thead>
40                         <tbody data-bind="foreach:mts">
41                             <tr>
42                                 <td data-bind="text:$index()+1"></td>
43                                 <td>
44                   <a target="_blank" data-bind="text:$data.title,attr:{href:'bmenu.jsf?mtype='+$data.id()+'&amp;mtypetitle='+$data.title()}"></a>
45                 </td>
46                                 <td data-bind="text:$data.note">url</td>
47                                 <td >
48                                     <a href="javascript:;" data-bind="event:{click:$parent.delmt}">
49                                         <span class="fa fa-times"></span>
50                                     </a>|
51                                     <a href="javascript:;" data-bind="event:{click:$parent.editmt}">
52                                         <span class="fa fa-edit"></span>
53                                     </a>
54                                 </td>
55                             </tr>
56                         </tbody>
57                         <tfoot>
58                             <tr>
59                                 <td colspan="4">
60                                     <div id="pagdiv">
61                                     </div>
62                                 </td>
63                             </tr>
64                         </tfoot>
65                     </table>
66                 </div>
67             </div>
68 <div class="modal fade" id="modal1" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
69   <div class="modal-dialog">
70     <div class="modal-content">
71       <div class="modal-header">
72         <button type="button" class="close" data-dismiss="modal" aria-label="Close">
73             <span aria-hidden="true">&times;</span>
74         </button>
75         <h4 class="modal-title" >编辑菜单类型</h4>
76       </div>
77       <div class="modal-body">
78            <form class="form-horizontal" id="fm1">
79                <input type="hidden" name="mtid" id="mtid" value="" data-bind="value:mt().id" />
80                <div class="form-group">
81                 <label for="title" class="col-sm-2 control-label">题目</label>
82                 <div class="col-sm-8">
83                       <input type="text" class="form-control" id="title" name="title" placeholder="title" data-bind="value:mt().title"/>
84                 </div>
85               </div>
86               <div class="form-group">
87                 <label for="note" class="col-sm-2 control-label">备注</label>
88                 <div class="col-sm-8">
89                       <input type="text" class="form-control" id="note" name="note" placeholder="fa fa-download" data-bind="value:mt().note"/>
90                 </div>
91               </div>              
92            </form>
93       </div>
94       <div id="errmsg"></div>
95       <div class="modal-footer">
96         <button type="button" class="btn btn-primary" data-loading-text="保存中..." id="tjbtn">提交</button>
97       </div>
98     </div>
99   </div>
100 </div>
101     </ui:define>
102     <ui:define name="myscript">
103         <script src="js/bmenutype.js"></script>
104     </ui:define>
105 </ui:composition>
106 </html>