Administrator
2023-04-19 eeb08a586132f489c10e12551c6479b13c9def5e
提交 | 用户 | 时间
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 main-content-header">
21                 <div class="row ">
22                     <div class="col-md-12 form-horizontal">
23                         <div class="col-md-6">
24                             <div class="input-group">
25                                 <input type="text" class="form-control" placeholder="请输入url"
26                                     aria-describedby="basic-addon2" data-bind="value:filter" /> <a
27                                     href="javascript:;" id="searcha" class="input-group-addon"><span
28                                     class="fa fa-search"></span></a>
29                             </div>
30                         </div>
31                         <div class="col-md-2">
32                             <button id="ctbtn" type="button" class="btn btn-primary"
33                                 autocomplete="off">新建</button>
34                         </div>
35                     </div>
36                 </div>
37             </div>
38             <div class="goods-table">
39                 <table
40                     class="table table-striped table-bordered table-condensed table-hover">
41                     <thead>
42                         <tr>
43                             <th>序号</th>
44                             <th>模块名字</th>
45                             <th>备注</th>
46                             <th>操作</th>
47                         </tr>
48                     </thead>
49                     <tbody data-bind="foreach:modules">
50                         <tr>
51                             <td data-bind="text:$index()+1">序号</td>
52                             <td data-bind="text:$data.name">模块名字</td>
53                             <td data-bind="text:$data.note">备注</td>
54                             <td><a href="javascript:void(0);"
55                                 data-bind="click:$parent.rm" title="删除"><span
56                                     class="fa fa-times"></span></a>| <a href="javascript:void(0);"
57                                 data-bind="click:$parent.edit" title="编辑"><span
58                                     class="fa fa-edit"></span></a></td>
59                         </tr>
60                     </tbody>
61                     <tfoot>
62                         <tr>
63                             <td colspan="5">
64                                 <div id="pagdiv"></div>
65                             </td>
66                         </tr>
67                     </tfoot>
68                 </table>
69             </div>
70
71         </div>
72         <div class="modal fade" id="modal1" tabindex="-1" role="dialog"
73             aria-labelledby="myModalLabel" aria-hidden="true">
74             <div class="modal-dialog">
75                 <div class="modal-content">
76                     <div class="modal-header">
77                         <button type="button" class="close" data-dismiss="modal"
78                             aria-label="Close">
79                             <span aria-hidden="true">&times;</span>
80                         </button>
81                         <h4 class="modal-title" id="new-ress">新建</h4>
82                         <h4 class="modal-title" id="edit-ress" style="display: none">编辑</h4>
83                     </div>
84                     <div class="modal-body">
85                         <form class="form-horizontal" id="fm1">
86                             <input type="hidden" name="id" id="id" value=""
87                                 data-bind="value:module.id" />
88                             <div class="form-group">
89                                 <label for="title" class="col-sm-2 control-label">名字</label>
90                                 <div class="col-sm-8">
91                                     <input type="text" class="form-control" id="title" name="title"
92                                         placeholder="title" data-bind="value:module.name" />
93                                 </div>
94                             </div>
95                             <div class="form-group">
96                                 <label for="note" class="col-sm-2 control-label">备注</label>
97                                 <div class="col-sm-8">
98                                     <input type="text" class="form-control" id="note" name="note"
99                                         placeholder="fa fa-download" data-bind="value:module.note" />
100                                 </div>
101                             </div>
102                         </form>
103                     </div>
104                     <div id="errmsg"></div>
105                     <div class="modal-footer">
106                         <button type="button" class="btn btn-primary"
107                             data-loading-text="保存中..." id="tjbtn">提交</button>
108                     </div>
109                 </div>
110             </div>
111         </div>
112     </ui:define>
113     <ui:define name="myscript">
114         <script type="text/javascript" src="#{request.contextPath}/template/assets/js/chosen.jquery.js"></script>
115         <script type="text/javascript" src="#{request.contextPath}/system/js/modules.js"></script>
116     </ui:define>
117 </ui:composition>
118 </html>