Administrator
2022-12-15 9ce4bb2b6bd1378ba7b0bd6681d22cb37a5e1452
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:c="http://java.sun.com/jsp/jstl/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:ui="http://java.sun.com/jsf/facelets">
<ui:composition template="/template/nit/tmp_brief.xhtml">
    <ui:define name="acss">
        <style>
        .form-body span.text {
            line-height: 34px
        }
        </style>
    </ui:define>
    <ui:define name="acontent">
        <div class="row">
                <div class="col-md-12 form-horizontal">
                    <div class="col-md-6">
                        <div class="input-group">
                              <input type="text" class="form-control" placeholder="请输入过滤内容" aria-describedby="basic-addon2" data-bind="value:filter" />
                              <a href="javascript:;" id="searcha" class="input-group-addon"><span class="fa fa-search"></span></a>
                              
                            </div>
                    </div>
                    <div class="col-md-2 col-md-offset-4">
                        <button id="ctbtn" type="button" class="btn btn-primary" autocomplete="off">新建</button>
                    </div>
                </div>
                <div class="col-md-12 goods-table">
                    <table class="table table-striped table-bordered table-condensed">
                        <thead>
                            <tr>
                                <th>序号</th>
                                <th>名称</th>
                                <th>备注</th>
                                <th>操作</th>
                            </tr>
                        </thead>
                        <tbody data-bind="foreach:mts">
                            <tr>
                                <td data-bind="text:$index()+1"></td>
                                <td>
                  <a target="_blank" data-bind="text:$data.title,attr:{href:'bmenu.jsf?mtype='+$data.id()+'&amp;mtypetitle='+$data.title()}"></a>
                </td>
                                <td data-bind="text:$data.note">url</td>
                                <td >
                                    <a href="javascript:;" data-bind="event:{click:$parent.delmt}">
                                        <span class="fa fa-times"></span>
                                    </a>|
                                    <a href="javascript:;" data-bind="event:{click:$parent.editmt}">
                                        <span class="fa fa-edit"></span>
                                    </a>
                                </td>
                            </tr>
                        </tbody>
                        <tfoot>
                            <tr>
                                <td colspan="4">
                                    <div id="pagdiv">
                                    </div>
                                </td>
                            </tr>
                        </tfoot>
                    </table>
                </div>
            </div>
<div class="modal fade" id="modal1" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
            <span aria-hidden="true">&times;</span>
        </button>
        <h4 class="modal-title" >编辑菜单类型</h4>
      </div>
      <div class="modal-body">
           <form class="form-horizontal" id="fm1">
               <input type="hidden" name="mtid" id="mtid" value="" data-bind="value:mt().id" />
               <div class="form-group">
                <label for="title" class="col-sm-2 control-label">题目</label>
                <div class="col-sm-8">
                      <input type="text" class="form-control" id="title" name="title" placeholder="title" data-bind="value:mt().title"/>
                </div>
              </div>
              <div class="form-group">
                <label for="note" class="col-sm-2 control-label">备注</label>
                <div class="col-sm-8">
                      <input type="text" class="form-control" id="note" name="note" placeholder="fa fa-download" data-bind="value:mt().note"/>
                </div>
              </div>              
           </form>
      </div>
      <div id="errmsg"></div>
      <div class="modal-footer">
        <button type="button" class="btn btn-primary" data-loading-text="保存中..." id="tjbtn">提交</button>
      </div>
    </div>
  </div>
</div>
    </ui:define>
    <ui:define name="myscript">
        <script src="js/bmenutype.js"></script>
    </ui:define>
</ui:composition>
</html>