File: tableui.html

package info (click to toggle)
libnb-platform18-java 10.0-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 667,920 kB
  • sloc: java: 4,911,908; xml: 540,084; php: 76,736; ansic: 10,266; sh: 5,624; cpp: 4,621; jsp: 3,621; sql: 1,097; makefile: 540; objc: 288; perl: 277; haskell: 93
file content (138 lines) | stat: -rw-r--r-- 6,129 bytes parent folder | download
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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
<!--

    Licensed to the Apache Software Foundation (ASF) under one
    or more contributor license agreements.  See the NOTICE file
    distributed with this work for additional information
    regarding copyright ownership.  The ASF licenses this file
    to you under the Apache License, Version 2.0 (the
    "License"); you may not use this file except in compliance
    with the License.  You may obtain a copy of the License at

      http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing,
    software distributed under the License is distributed on an
    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
    KIND, either express or implied.  See the License for the
    specific language governing permissions and limitations
    under the License.

-->
<!DOCTYPE html>
<html>
    <head>
        <title></title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link rel='stylesheet' href='//cdnjs.cloudflare.com/ajax/libs/jquery.tablesorter/2.26.2/css/theme.blue.min.css'>
        <link rel='stylesheet' href='//cdnjs.cloudflare.com/ajax/libs/jquery.tablesorter/2.26.2/css/jquery.tablesorter.pager.min.css'>
        <script src='//cdnjs.cloudflare.com/ajax/libs/underscore.js/1.8.3/underscore-min.js'></script>
        <script src='//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js'></script>
        <script src='//ajax.cdnjs.com/ajax/libs/backbone.js/0.9.2/backbone-min.js'></script>
        <script src='//cdnjs.cloudflare.com/ajax/libs/jquery.tablesorter/2.26.2/js/jquery.tablesorter.min.js' type="text/javascript"></script>
        <script src='//cdnjs.cloudflare.com/ajax/libs/jquery.tablesorter/2.26.2/js/extras/jquery.tablesorter.pager.min.js' type="text/javascript"></script>
        <script src='rest/RestClient.js'></script>
    </head>
    <body>
        <div id='create'></div>

        <table id='datatable' class='tablesorter-blue'>
        </table>
        <div class='pager' id='pager'>
            <img src='//cdnjs.cloudflare.com/ajax/libs/jquery.tablesorter/2.26.2/css/images/first.png' class='first' alt='First'/>
            <img src='//cdnjs.cloudflare.com/ajax/libs/jquery.tablesorter/2.26.2/css/images/prev.png' class='prev' alt='Prev'/>
            <span class='pagedisplay'></span> <!-- this can be any element, including an input -->
            <img src='//cdnjs.cloudflare.com/ajax/libs/jquery.tablesorter/2.26.2/css/images/next.png' class='next' alt='Next'/>
            <img src='//cdnjs.cloudflare.com/ajax/libs/jquery.tablesorter/2.26.2/css/images/last.png' class='last' alt='Last'/>
            <select class='pagesize'>
                <option selected='selected' value='10'>10</option>
                <option value='20'>20</option>
                <option value='30'>30</option>
                <option value='40'>40</option>
            </select>
        </div>
        <br>

        <div id='details'></div>


        <!-- Templates -->
        <script type='text/template' id='tpl-create'>
            <!--
                    Put your controls to create new entity here.
            
                    Class 'new' is used to listen on events in JS code.
            -->
            <button class='new'>Create</button>
        </script>

        <script type='text/template' id='thead'>
        <thead><th>manufacturerId</th>
        <th>addressline2</th>
        <th>zip</th>
        <th>phone</th>
        <th>addressline1</th>
        <th>fax</th>
        <th>email</th>
        <th>name</th>
        <th>state</th>
        <th>city</th>
        <th>rep</th>
    </thead>
</script>
<script type='text/template' id='tpl-manufacturer-list-item'>
    <td><a href='#<%= manufacturerId %>'><%= manufacturerId %></a></td>
    <td><%= addressline2 %></td>
    <td><%= zip %></td>
    <td><%= phone %></td>
    <td><%= addressline1 %></td>
    <td><%= fax %></td>
    <td><%= email %></td>
    <td><%= name %></td>
    <td><%= state %></td>
    <td><%= city %></td>
    <td><%= rep %></td>
</script>

<script type='text/template' id='tpl-manufacturer-details'>
    <div>
        <table>
            <tbody>
                <tr><td>Id</td>
                    <td>
                        <input type='text' id='manufacturerId' name='id' value='<%= typeof(manufacturerId)!== "undefined" ? manufacturerId : "" %>'  />
                    </td>
                </tr>
                <tr>
                    <td>addressline2</td><td><input type='text' id='addressline2' name='addressline2' value='<%= addressline2 %>'/></td></tr>
                <tr>
                    <td>zip</td><td><input type='text' id='zip' name='zip' value='<%= zip %>'/></td></tr>
                <tr>
                    <td>phone</td><td><input type='text' id='phone' name='phone' value='<%= phone %>'/></td></tr>
                <tr>
                    <td>addressline1</td><td><input type='text' id='addressline1' name='addressline1' value='<%= addressline1 %>'/></td></tr>
                <tr>
                    <td>fax</td><td><input type='text' id='fax' name='fax' value='<%= fax %>'/></td></tr>
                <tr>
                    <td>email</td><td><input type='text' id='email' name='email' value='<%= email %>'/></td></tr>
                <tr>
                    <td>name</td><td><input type='text' id='name' name='name' value='<%= name %>'/></td></tr>
                <tr>
                    <td>state</td><td><input type='text' id='state' name='state' value='<%= state %>'/></td></tr>
                <tr>
                    <td>city</td><td><input type='text' id='city' name='city' value='<%= city %>'/></td></tr>
                <tr>
                    <td>rep</td><td><input type='text' id='rep' name='rep' value='<%= rep %>'/></td></tr>
            </tbody>
        </table>
        <!--
                Put your controls to create new entity here.
                Classes 'save' and 'delete' are used to listen on events in JS code.
        -->
        <button  class='save'>Save</button>
        <button  class='delete'>Delete</button>
    </div>
</script>


</body>
</html>