Subversion Repositories bacoAlunos

Rev

Rev 1327 | Rev 1329 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1327 Rev 1328
1
<%@ page import="pt.estgp.estgweb.web.filters.TopImageFilter" %>
1
<%@ page import="pt.estgp.estgweb.web.filters.TopImageFilter" %>
2
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
2
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
3
 
3
 
4
<meta name="viewport" content="width=device-width, initial-scale=1">
4
<meta name="viewport" content="width=device-width, initial-scale=1">
5
 
5
 
6
 
6
 
-
 
7
 
-
 
8
 
7
<%
9
<%
8
    String bacoTheme = (String) request.getAttribute("pt_estgp_estgweb_theme");
10
    String bacoTheme = (String) request.getAttribute("pt_estgp_estgweb_theme");
9
    if(bacoTheme == null)
11
    if(bacoTheme == null)
10
        bacoTheme = "estg";
12
        bacoTheme = "estg";
11
%>
13
%>
12
 
14
 
13
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/yui/build/menu/assets/skins/sam/menu.css" />
15
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/yui/build/menu/assets/skins/sam/menu.css" />
14
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/yui/build/button/assets/skins/sam/button.css" />
16
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/yui/build/button/assets/skins/sam/button.css" />
15
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/yui/build/fonts/fonts-min.css" />
17
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/yui/build/fonts/fonts-min.css" />
16
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/yui/build/container/assets/skins/sam/container.css" />
18
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/yui/build/container/assets/skins/sam/container.css" />
17
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/yui/build/editor/assets/skins/sam/editor.css" />
19
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/yui/build/editor/assets/skins/sam/editor.css" />
18
 
20
 
19
<!--OFF CANVAS É PARA METER O BODY ABAIXO DO MENU DESLIZANTE DE TOPO-->
21
<!--OFF CANVAS É PARA METER O BODY ABAIXO DO MENU DESLIZANTE DE TOPO-->
20
<link type="text/css" rel="stylesheet" href="<%=request.getContextPath()%>/css/offcanvas.css"/>
22
<link type="text/css" rel="stylesheet" href="<%=request.getContextPath()%>/css/offcanvas.css"/>
21
 
23
 
22
 
24
 
23
<script type="text/javascript" src="<%=request.getContextPath()%>/js/functions.js"></script>
25
<script type="text/javascript" src="<%=request.getContextPath()%>/js/functions.js"></script>
24
<script type="text/javascript" src="<%=request.getContextPath()%>/js/ajax.js"></script>
26
<script type="text/javascript" src="<%=request.getContextPath()%>/js/ajax.js"></script>
25
<script type="text/javascript" src="<%=request.getContextPath()%>/js/compactedPopup.js"></script>
27
<script type="text/javascript" src="<%=request.getContextPath()%>/js/compactedPopup.js"></script>
26
<!--
28
<!--
27
<style>
29
<style>
28
    body
30
    body
29
    {
31
    {
30
        background: url('http://www.ist.utl.pt/img/page/cubes.png')
32
        background: url('http://www.ist.utl.pt/img/page/cubes.png')
31
    }
33
    }
32
</style>-->
34
</style>-->
33
<!--
35
<!--
34
<link type="text/css" rel="stylesheet" href="<%=request.getContextPath()%>/js/jquery/style.css"/>
36
<link type="text/css" rel="stylesheet" href="<%=request.getContextPath()%>/js/jquery/style.css"/>
35
<script type="text/javascript" src="<%=request.getContextPath()%>/js/jquery-latest.js"></script>
37
<script type="text/javascript" src="<%=request.getContextPath()%>/js/jquery-latest.js"></script>
36
<script type="text/javascript" src="<%=request.getContextPath()%>/js/jquery.tablesorter.js"></script>
38
<script type="text/javascript" src="<%=request.getContextPath()%>/js/jquery.tablesorter.js"></script>
37
-->
39
-->
38
 
40
 
39
<%
41
<%
40
        String link = (String) request.getAttribute(TopImageFilter.TOP_CSS);
42
        String link = (String) request.getAttribute(TopImageFilter.TOP_CSS);
41
        if (link != null)
43
        if (link != null)
42
        {
44
        {
43
    %>
45
    %>
44
    <link type="text/css" rel="stylesheet" href="<%=link%>"/>
46
    <link type="text/css" rel="stylesheet" href="<%=link%>"/>
45
    <%
47
    <%
46
        }
48
        }
47
    %>
49
    %>
48
 
50
 
49
<script type="text/javascript" language="JavaScript">
51
<script type="text/javascript" language="JavaScript">
50
    var cal = new CalendarPopup();
52
    var cal = new CalendarPopup();
51
 
53
 
52
   /* //TABLE SORTER
54
   /* //TABLE SORTER
53
    $(document).ready(function()
55
    $(document).ready(function()
54
        {
56
        {
55
            $("#myTable").tablesorter();
57
            $("#myTable").tablesorter();
56
 
58
 
57
        }
59
        }
58
    );*/
60
    );*/
59
 
61
 
60
</script>
62
</script>
61
 
63
 
62
 
64
 
63
 
65
 
64
<script type="text/javascript" src="<%=request.getContextPath()%>/js/jquerytables/jquery-2.1.4.min.js"></script>
66
<script type="text/javascript" src="<%=request.getContextPath()%>/js/jquerytables/jquery-2.1.4.min.js"></script>
-
 
67
 
-
 
68
<!--READY FIRST EVENT-->
-
 
69
<script>
-
 
70
    $(document).ready(
-
 
71
            function()
-
 
72
            {
-
 
73
                $(".baco-please-wait-target").hide();
-
 
74
                $(".baco-please-wait").html(
-
 
75
                        "<div class=\"panel panel-info\">" +
-
 
76
                                "<div class=\"panel-body\">" +
-
 
77
                                "<p>Por favor aguarde um momento, o sistema está a carregar <img src=\"<%=request.getContextPath()%>/imgs/wait.gif\"/></p>" +
-
 
78
                                "</div>" +
-
 
79
                                "</div>");
-
 
80
                setTimeout("removeBacoWait()", 2000);
-
 
81
 
-
 
82
            }
-
 
83
    );
-
 
84
    function removeBacoWait()
-
 
85
    {
-
 
86
        $(".baco-please-wait").fadeOut(300, function(){ $(this).remove();});
-
 
87
        $(".baco-please-wait-target").fadeIn(300, function(){ $(this).show();});
-
 
88
    }
-
 
89
</script>
-
 
90
<style>
-
 
91
    .baco-please-wait-target
-
 
92
    {
-
 
93
        display: none;
-
 
94
    }
-
 
95
</style>
-
 
96
<!--READY FIRST EVENT-->
-
 
97
 
65
<script type="text/javascript" src="<%=request.getContextPath()%>/js/jquerytables/jquery.tablesorter.min.js"></script>
98
<script type="text/javascript" src="<%=request.getContextPath()%>/js/jquerytables/jquery.tablesorter.min.js"></script>
66
<script type="text/javascript" src="<%=request.getContextPath()%>/js/jquerytables/jquery.tablesorter.widgets.js"></script>
99
<script type="text/javascript" src="<%=request.getContextPath()%>/js/jquerytables/jquery.tablesorter.widgets.js"></script>
67
<script type="text/javascript" src="<%=request.getContextPath()%>/js/jquerytables/bootstrap/js/bootstrap.js"></script>
100
<script type="text/javascript" src="<%=request.getContextPath()%>/js/jquerytables/bootstrap/js/bootstrap.js"></script>
68
<link rel="stylesheet" href="<%=request.getContextPath()%>/js/jquerytables/bootstrap/css/bootstrap.css" type="text/css"/>
101
<link rel="stylesheet" href="<%=request.getContextPath()%>/js/jquerytables/bootstrap/css/bootstrap.css" type="text/css"/>
69
<link rel="stylesheet" href="<%=request.getContextPath()%>/js/jquerytables/bootstrap/icomoon/style.css" type="text/css"/>
102
<link rel="stylesheet" href="<%=request.getContextPath()%>/js/jquerytables/bootstrap/icomoon/style.css" type="text/css"/>
70
<!--<link rel="stylesheet" href="<%=request.getContextPath()%>/js/jquerytables/bootstrap/css/bootstrap-theme.css" type="text/css"/>-->
103
<!--<link rel="stylesheet" href="<%=request.getContextPath()%>/js/jquerytables/bootstrap/css/bootstrap-theme.css" type="text/css"/>-->
71
<link rel="stylesheet" href="<%=request.getContextPath()%>/js/jquerytables/jquerytable/theme.estg.css" type="text/css"/>
104
<link rel="stylesheet" href="<%=request.getContextPath()%>/js/jquerytables/jquerytable/theme.estg.css" type="text/css"/>
72
<link rel="stylesheet" href="<%=request.getContextPath()%>/js/jquerytables/jquerytable/filter.formatter.css" type="text/css"/>
105
<link rel="stylesheet" href="<%=request.getContextPath()%>/js/jquerytables/jquerytable/filter.formatter.css" type="text/css"/>
73
<!--<link type="text/css" rel="stylesheet" href="<%=request.getContextPath()%>/css/variables.less"/>
106
<!--<link type="text/css" rel="stylesheet" href="<%=request.getContextPath()%>/css/variables.less"/>
74
<link type="text/css" rel="stylesheet" href="<%=request.getContextPath()%>/css/lavish-bootstrap.css"/>-->
107
<link type="text/css" rel="stylesheet" href="<%=request.getContextPath()%>/css/lavish-bootstrap.css"/>-->
75
<link type="text/css" rel="stylesheet" href="<%=request.getContextPath()%>/css/<%=bacoTheme%>/lavish-bootstrap.css"/>
108
<link type="text/css" rel="stylesheet" href="<%=request.getContextPath()%>/css/<%=bacoTheme%>/lavish-bootstrap.css"/>
76
<link type="text/css" rel="stylesheet" href="<%=request.getContextPath()%>/css/<%=bacoTheme%>/variables.scss"/>
109
<link type="text/css" rel="stylesheet" href="<%=request.getContextPath()%>/css/<%=bacoTheme%>/variables.scss"/>
77
 
110
 
78
 
111
 
79
 
112
 
80
<%--SCRIPTS DO CALENDARIO BOOTSTRAP--%>
113
<%--SCRIPTS DO CALENDARIO BOOTSTRAP--%>
81
<%--<script type="text/javascript" src="/bower_components/jquery/jquery.min.js"></script>--%>
114
<%--<script type="text/javascript" src="/bower_components/jquery/jquery.min.js"></script>--%>
82
<script type="text/javascript" src="<%=request.getContextPath()%>/js/bower_components/moment/min/moment.min.js"></script>
115
<script type="text/javascript" src="<%=request.getContextPath()%>/js/bower_components/moment/min/moment.min.js"></script>
83
<script type="text/javascript" src="<%=request.getContextPath()%>/js/bower_components/moment/locale/pt.js"></script>
116
<script type="text/javascript" src="<%=request.getContextPath()%>/js/bower_components/moment/locale/pt.js"></script>
84
<%--<script type="text/javascript" src="/bower_components/bootstrap/dist/js/bootstrap.min.js"></script>--%>
117
<%--<script type="text/javascript" src="/bower_components/bootstrap/dist/js/bootstrap.min.js"></script>--%>
85
<script type="text/javascript" src="<%=request.getContextPath()%>/js/bower_components/eonasdan-bootstrap-datetimepicker/build/js/bootstrap-datetimepicker.min.js"></script>
118
<script type="text/javascript" src="<%=request.getContextPath()%>/js/bower_components/eonasdan-bootstrap-datetimepicker/build/js/bootstrap-datetimepicker.min.js"></script>
86
<%--<link rel="stylesheet" href="/bower_components/bootstrap/dist/css/bootstrap.min.css" />--%>
119
<%--<link rel="stylesheet" href="/bower_components/bootstrap/dist/css/bootstrap.min.css" />--%>
87
<link rel="stylesheet" href="<%=request.getContextPath()%>/js/bower_components/eonasdan-bootstrap-datetimepicker/build/css/bootstrap-datetimepicker.min.css" />
120
<link rel="stylesheet" href="<%=request.getContextPath()%>/js/bower_components/eonasdan-bootstrap-datetimepicker/build/css/bootstrap-datetimepicker.min.css" />
88
 
121
 
89
<script type="text/javascript">
122
<script type="text/javascript">
90
    $(function () {
123
    $(function () {
91
        $('.datetimepicker').datetimepicker({
124
        $('.datetimepicker').datetimepicker({
92
            locale: 'pt',
125
            locale: 'pt',
93
            format: 'YYYY/MM/DD'
126
            format: 'YYYY/MM/DD'
94
        });
127
        });
95
    });
128
    });
96
</script>
129
</script>
97
 
130
 
98
<script type="text/javascript" language="JavaScript">
131
<script type="text/javascript" language="JavaScript">
99
    var cal = new CalendarPopup();
132
    var cal = new CalendarPopup();
100
 
133
 
101
    /*
134
    /*
102
    //TABLE SORTER
135
    //TABLE SORTER
103
    $(document).ready(function()
136
    $(document).ready(function()
104
            {
137
            {
105
                $("#myTable").tablesorter();
138
                $("#myTable").tablesorter();
106
 
139
 
107
            }
140
            }
108
    );
141
    );
109
*/
142
*/
110
 
143
 
111
    function isBreakpoint( alias ) {
144
    function isBreakpoint( alias ) {
112
        return $('.device-' + alias).is(':visible');
145
        return $('.device-' + alias).is(':visible');
113
    }
146
    }
114
 
147
 
115
 
148
 
116
 
149
 
117
 
150
 
118
 
151
 
-
 
152
 
-
 
153
 
-
 
154
 
119
    $(document).ready(
155
    $(document).ready(
120
            function(){
156
            function(){
121
                $("#network").hide();
157
                $("#network").hide();
122
                $("#network2").hide();
158
                $("#network2").hide();
123
                $("#network").mouseleave(
159
                $("#network").mouseleave(
124
                        function(){
160
                        function(){
125
                            $("#network").animate({
161
                            $("#network").animate({
126
                                height: 'hide'
162
                                height: 'hide'
127
                            });
163
                            });
128
                        }
164
                        }
129
 
165
 
130
                );
166
                );
131
                $("#network2").mouseleave(
167
                $("#network2").mouseleave(
132
                        function(){
168
                        function(){
133
                            $("#network2").animate({
169
                            $("#network2").animate({
134
                                height: 'hide'
170
                                height: 'hide'
135
                            });
171
                            });
136
                        }
172
                        }
137
 
173
 
138
                );
174
                );
139
            }
175
            }
140
    );
176
    );
141
 
177
 
142
    function openNetwork(id){
178
    function openNetwork(id){
143
 
179
 
144
        $(".slideMenu").each(function()
180
        $(".slideMenu").each(function()
145
        {
181
        {
146
            if($(this).attr("id") != id)
182
            if($(this).attr("id") != id)
147
            {
183
            {
148
                $(this).animate({
184
                $(this).animate({
149
                    height: 'hide'
185
                    height: 'hide'
150
                },200);
186
                },200);
151
            }
187
            }
152
        });
188
        });
153
 
189
 
154
        $("#"+id).animate({
190
        $("#"+id).animate({
155
            height: 'toggle'
191
            height: 'toggle'
156
        },600);
192
        },600);
157
 
193
 
158
    }
194
    }
159
 
195
 
160
 
196
 
161
 
197
 
162
</script>
198
</script>
163
<script language="javascript">
199
<script language="javascript">
164
 
200
 
165
    function ping()
201
    function ping()
166
    {
202
    {
167
        $.ajax({
203
        $.ajax({
168
            url: "<%=request.getContextPath()%>/ping.jsp",
204
            url: "<%=request.getContextPath()%>/ping.jsp",
169
            type: "POST",
205
            type: "POST",
170
            dataType: "json",
206
            dataType: "json",
171
            success: function(resposta) {
207
            success: function(resposta) {
172
                setTimeout("ping()",10000);
208
                setTimeout("ping()",10000);
173
            },
209
            },
174
            error: function() {
210
            error: function() {
175
                setTimeout("ping()",10000);
211
                setTimeout("ping()",10000);
176
            }
212
            }
177
        });
213
        });
178
 
214
 
179
    }
215
    }
180
    $(document).ready(function()
216
    $(document).ready(function()
181
            {
217
            {
182
 
218
 
183
                return evaluateTableSorters();
219
                return evaluateTableSorters();
184
 
220
 
185
            }
221
            }
186
 
222
 
187
    );
223
    );
188
 
224
 
189
    function evaluateTableSorters()
225
    function evaluateTableSorters()
190
    {
226
    {
191
        evaluateTableSortersInside("");
227
        evaluateTableSortersInside("");
192
    }
228
    }
193
    function evaluateTableSortersInside(insideDiv)
229
    function evaluateTableSortersInside(insideDiv)
194
    {
230
    {
195
        if($(insideDiv + " #myTable"))
231
        if($(insideDiv + " #myTable"))
196
        {
232
        {
197
            $(insideDiv + " #myTable").tablesorter({
233
            $(insideDiv + " #myTable").tablesorter({
198
                        theme: 'blue',
234
                        theme: 'blue',
199
 
235
 
200
 
236
 
201
                        sortMultiSortKey: 'altKey',
237
                        sortMultiSortKey: 'altKey',
202
                        //sortList: [[0,0]],
238
                        //sortList: [[0,0]],
203
                        widgets: ["zebra","filter"],
239
                        widgets: ["zebra","filter"],
204
 
240
 
205
                        ignoreCase: false,
241
                        ignoreCase: false,
206
                        widthFixed : true,
242
                        widthFixed : true,
207
                        widgetOptions : {filter_reset : 'button.reset',filter_columnFilters : true},
243
                        widgetOptions : {filter_reset : 'button.reset',filter_columnFilters : true},
208
                        textExtraction: function(node) {
244
                        textExtraction: function(node) {
209
                            // extract data from markup and return it
245
                            // extract data from markup and return it
210
                            if($(node).find(':input').size()>0)
246
                            if($(node).find(':input').size()>0)
211
                            {
247
                            {
212
                                var values = $(node).find(":input").map(function() {
248
                                var values = $(node).find(":input").map(function() {
213
                                    return $(this).val()
249
                                    return $(this).val()
214
                                }).get().join(",");
250
                                }).get().join(",");
215
 
251
 
216
 
252
 
217
                                return values;
253
                                return values;
218
                            }
254
                            }
219
                            return $(node).text();
255
                            return $(node).text();
220
                        },
256
                        },
221
                        widgetOptions : {
257
                        widgetOptions : {
222
 
258
 
223
                            filter_excludeFilter : {
259
                            filter_excludeFilter : {
224
                                // target a column by class name or column index (zero-based)
260
                                // target a column by class name or column index (zero-based)
225
                                '.filter-false' : 'range'
261
                                '.filter-false' : 'range'
226
                            }
262
                            }
227
 
263
 
228
                        }
264
                        }
229
 
265
 
230
                        /*        ,
266
                        /*        ,
231
 
267
 
232
                         widgetOptions : {
268
                         widgetOptions : {
233
 
269
 
234
                         // filter_anyMatch options was removed in v2.15; it has been replaced by the filter_external option
270
                         // filter_anyMatch options was removed in v2.15; it has been replaced by the filter_external option
235
 
271
 
236
                         // If there are child rows in the table (rows with class name from "cssChildRow" option)
272
                         // If there are child rows in the table (rows with class name from "cssChildRow" option)
237
                         // and this option is true and a match is found anywhere in the child row, then it will make that row
273
                         // and this option is true and a match is found anywhere in the child row, then it will make that row
238
                         // visible; default is false
274
                         // visible; default is false
239
                         filter_childRows : false,
275
                         filter_childRows : false,
240
 
276
 
241
                         // if true, filter child row content by column; filter_childRows must also be true
277
                         // if true, filter child row content by column; filter_childRows must also be true
242
                         filter_childByColumn : false,
278
                         filter_childByColumn : false,
243
 
279
 
244
                         // if true, a filter will be added to the top of each table column;
280
                         // if true, a filter will be added to the top of each table column;
245
                         // disabled by using -> headers: { 1: { filter: false } } OR add class="filter-false"
281
                         // disabled by using -> headers: { 1: { filter: false } } OR add class="filter-false"
246
                         // if you set this to false, make sure you perform a search using the second method below
282
                         // if you set this to false, make sure you perform a search using the second method below
247
                         filter_columnFilters : true,
283
                         filter_columnFilters : true,
248
 
284
 
249
                         // if true, allows using "#:{query}" in AnyMatch searches (column:query; added v2.20.0)
285
                         // if true, allows using "#:{query}" in AnyMatch searches (column:query; added v2.20.0)
250
                         filter_columnAnyMatch: true,
286
                         filter_columnAnyMatch: true,
251
 
287
 
252
                         // extra css class name (string or array) added to the filter element (input or select)
288
                         // extra css class name (string or array) added to the filter element (input or select)
253
                         filter_cellFilter : '',
289
                         filter_cellFilter : '',
254
 
290
 
255
                         // extra css class name(s) applied to the table row containing the filters & the inputs within that row
291
                         // extra css class name(s) applied to the table row containing the filters & the inputs within that row
256
                         // this option can either be a string (class applied to all filters) or an array (class applied to indexed filter)
292
                         // this option can either be a string (class applied to all filters) or an array (class applied to indexed filter)
257
                         filter_cssFilter : '', // or []
293
                         filter_cssFilter : '', // or []
258
 
294
 
259
                         // add a default column filter type "~{query}" to make fuzzy searches default;
295
                         // add a default column filter type "~{query}" to make fuzzy searches default;
260
                         // "{q1} AND {q2}" to make all searches use a logical AND.
296
                         // "{q1} AND {q2}" to make all searches use a logical AND.
261
                         filter_defaultFilter : {},
297
                         filter_defaultFilter : {},
262
 
298
 
263
                         // filters to exclude, per column
299
                         // filters to exclude, per column
264
                         filter_excludeFilter : {},
300
                         filter_excludeFilter : {},
265
 
301
 
266
                         // jQuery selector (or object) pointing to an input to be used to match the contents of any column
302
                         // jQuery selector (or object) pointing to an input to be used to match the contents of any column
267
                         // please refer to the filter-any-match demo for limitations - new in v2.15
303
                         // please refer to the filter-any-match demo for limitations - new in v2.15
268
                         filter_external : '',
304
                         filter_external : '',
269
 
305
 
270
                         // class added to filtered rows (rows that are not showing); needed by pager plugin
306
                         // class added to filtered rows (rows that are not showing); needed by pager plugin
271
                         filter_filteredRow : 'filtered',
307
                         filter_filteredRow : 'filtered',
272
 
308
 
273
                         // add custom filter elements to the filter row
309
                         // add custom filter elements to the filter row
274
                         // see the filter formatter demos for more specifics
310
                         // see the filter formatter demos for more specifics
275
                         filter_formatter : null,
311
                         filter_formatter : null,
276
 
312
 
277
                         // add custom filter functions using this option
313
                         // add custom filter functions using this option
278
                         // see the filter widget custom demo for more specifics on how to use this option
314
                         // see the filter widget custom demo for more specifics on how to use this option
279
                         filter_functions : null,
315
                         filter_functions : null,
280
 
316
 
281
                         // hide filter row when table is empty
317
                         // hide filter row when table is empty
282
                         filter_hideEmpty : true,
318
                         filter_hideEmpty : true,
283
 
319
 
284
                         // if true, filters are collapsed initially, but can be revealed by hovering over the grey bar immediately
320
                         // if true, filters are collapsed initially, but can be revealed by hovering over the grey bar immediately
285
                         // below the header row. Additionally, tabbing through the document will open the filter row when an input gets focus
321
                         // below the header row. Additionally, tabbing through the document will open the filter row when an input gets focus
286
                         filter_hideFilters : true,
322
                         filter_hideFilters : true,
287
 
323
 
288
                         // Set this option to false to make the searches case sensitive
324
                         // Set this option to false to make the searches case sensitive
289
                         filter_ignoreCase : true,
325
                         filter_ignoreCase : true,
290
 
326
 
291
                         // if true, search column content while the user types (with a delay)
327
                         // if true, search column content while the user types (with a delay)
292
                         filter_liveSearch : true,
328
                         filter_liveSearch : true,
293
 
329
 
294
                         // a header with a select dropdown & this class name will only show available (visible) options within that drop down.
330
                         // a header with a select dropdown & this class name will only show available (visible) options within that drop down.
295
 
331
 
296
 
332
 
297
                         // default placeholder text (overridden by any header "data-placeholder" setting)
333
                         // default placeholder text (overridden by any header "data-placeholder" setting)
298
                         filter_placeholder : { search : '', select : '' },
334
                         filter_placeholder : { search : '', select : '' },
299
 
335
 
300
                         // jQuery selector string of an element used to reset the filters
336
                         // jQuery selector string of an element used to reset the filters
301
                         filter_reset : 'button.reset',
337
                         filter_reset : 'button.reset',
302
 
338
 
303
                         // Use the $.tablesorter.storage utility to save the most recent filters (default setting is false)
339
                         // Use the $.tablesorter.storage utility to save the most recent filters (default setting is false)
304
                         filter_saveFilters : true,
340
                         filter_saveFilters : true,
305
 
341
 
306
                         // Delay in milliseconds before the filter widget starts searching; This option prevents searching for
342
                         // Delay in milliseconds before the filter widget starts searching; This option prevents searching for
307
                         // every character while typing and should make searching large tables faster.
343
                         // every character while typing and should make searching large tables faster.
308
                         filter_searchDelay : 300,
344
                         filter_searchDelay : 300,
309
 
345
 
310
                         // allow searching through already filtered rows in special circumstances; will speed up searching in large tables if true
346
                         // allow searching through already filtered rows in special circumstances; will speed up searching in large tables if true
311
                         filter_searchFiltered: true,
347
                         filter_searchFiltered: true,
312
 
348
 
313
                         // include a function to return an array of values to be added to the column filter select
349
                         // include a function to return an array of values to be added to the column filter select
314
                         filter_selectSource  : null,
350
                         filter_selectSource  : null,
315
 
351
 
316
                         // if true, server-side filtering should be performed because client-side filtering will be disabled, but
352
                         // if true, server-side filtering should be performed because client-side filtering will be disabled, but
317
                         // the ui and events will still be used.
353
                         // the ui and events will still be used.
318
                         filter_serversideFiltering : false,
354
                         filter_serversideFiltering : false,
319
 
355
 
320
                         // Set this option to true to use the filter to find text from the start of the column
356
                         // Set this option to true to use the filter to find text from the start of the column
321
                         // So typing in "a" will find "albert" but not "frank", both have a's; default is false
357
                         // So typing in "a" will find "albert" but not "frank", both have a's; default is false
322
                         filter_startsWith : false,
358
                         filter_startsWith : false,
323
 
359
 
324
                         // Filter using parsed content for ALL columns
360
                         // Filter using parsed content for ALL columns
325
                         // be careful on using this on date columns as the date is parsed and stored as time in seconds
361
                         // be careful on using this on date columns as the date is parsed and stored as time in seconds
326
                         filter_useParsedData : false,
362
                         filter_useParsedData : false,
327
 
363
 
328
                         // data attribute in the header cell that contains the default filter value
364
                         // data attribute in the header cell that contains the default filter value
329
                         filter_defaultAttrib : 'data-value',
365
                         filter_defaultAttrib : 'data-value',
330
 
366
 
331
                         // filter_selectSource array text left of the separator is added to the option value, right into the option text
367
                         // filter_selectSource array text left of the separator is added to the option value, right into the option text
332
                         filter_selectSourceSeparator : '|'
368
                         filter_selectSourceSeparator : '|'
333
 
369
 
334
                         }*/
370
                         }*/
335
                    }
371
                    }
336
            );
372
            );
337
        }
373
        }
338
 
374
 
339
        if($(insideDiv + " #myTable2"))
375
        if($(insideDiv + " #myTable2"))
340
        {
376
        {
341
            $(insideDiv + " #myTable2").tablesorter({
377
            $(insideDiv + " #myTable2").tablesorter({
342
                        theme: 'blue',
378
                        theme: 'blue',
343
                        sortMultiSortKey: 'altKey',
379
                        sortMultiSortKey: 'altKey',
344
                        //sortList: [[0,0]],
380
                        //sortList: [[0,0]],
345
                        widgets: ["zebra","filter"],
381
                        widgets: ["zebra","filter"],
346
                        ignoreCase: false,
382
                        ignoreCase: false,
347
                        widthFixed : true,
383
                        widthFixed : true,
348
                        widgetOptions : {filter_reset : 'button.reset',filter_columnFilters : true,
384
                        widgetOptions : {filter_reset : 'button.reset',filter_columnFilters : true,
349
                            filter_excludeFilter : {
385
                            filter_excludeFilter : {
350
                                // target a column by class name or column index (zero-based)
386
                                // target a column by class name or column index (zero-based)
351
                                '.filter-false' : 'range'
387
                                '.filter-false' : 'range'
352
                            }},
388
                            }},
353
                        textExtraction: function(node) {
389
                        textExtraction: function(node) {
354
                            // extract data from markup and return it
390
                            // extract data from markup and return it
355
                            if($(node).find(':input').size()>0)
391
                            if($(node).find(':input').size()>0)
356
                            {
392
                            {
357
                                var values = $(node).find(":input").map(function() {
393
                                var values = $(node).find(":input").map(function() {
358
                                    return $(this).val()
394
                                    return $(this).val()
359
                                }).get().join(",");
395
                                }).get().join(",");
360
 
396
 
361
 
397
 
362
                                return values;
398
                                return values;
363
                            }
399
                            }
364
                            return $(node).text();
400
                            return $(node).text();
365
                        }
401
                        }
366
                    }
402
                    }
367
            );
403
            );
368
        }
404
        }
369
 
405
 
370
        if($(insideDiv + " .tablesortersimple"))
406
        if($(insideDiv + " .tablesortersimple"))
371
        {
407
        {
372
            $(insideDiv + " .tablesortersimple").tablesorter({
408
            $(insideDiv + " .tablesortersimple").tablesorter({
373
                        theme: 'blue',
409
                        theme: 'blue',
374
                        sortMultiSortKey: 'altKey',
410
                        sortMultiSortKey: 'altKey',
375
                        //sortList: [[0,0]],
411
                        //sortList: [[0,0]],
376
                        widgets: ["zebra","filter"],
412
                        widgets: ["zebra","filter"],
377
                        ignoreCase: false,
413
                        ignoreCase: false,
378
                        widthFixed : true,
414
                        widthFixed : true,
379
                        widgetOptions : {filter_reset : 'button.reset',filter_columnFilters : true,
415
                        widgetOptions : {filter_reset : 'button.reset',filter_columnFilters : true,
380
 
416
 
381
                            filter_excludeFilter : {
417
                            filter_excludeFilter : {
382
                                // target a column by class name or column index (zero-based)
418
                                // target a column by class name or column index (zero-based)
383
                                '.filter-false' : 'range'
419
                                '.filter-false' : 'range'
384
                            }
420
                            }
385
                        },
421
                        },
386
                        textExtraction: function(node) {
422
                        textExtraction: function(node) {
387
                            // extract data from markup and return it
423
                            // extract data from markup and return it
388
                            if($(node).find(':input').size()>0)
424
                            if($(node).find(':input').size()>0)
389
                            {
425
                            {
390
                                var values = $(node).find(":input").map(function() {
426
                                var values = $(node).find(":input").map(function() {
391
                                    return $(this).val()
427
                                    return $(this).val()
392
                                }).get().join(",");
428
                                }).get().join(",");
393
 
429
 
394
 
430
 
395
                                return values;
431
                                return values;
396
                            }
432
                            }
397
                            return $(node).text();
433
                            return $(node).text();
398
                        }
434
                        }
399
                    }
435
                    }
400
            );
436
            );
401
        }
437
        }
402
        /*
438
        /*
403
         if($(".tablesorterfiltered"))
439
         if($(".tablesorterfiltered"))
404
         {
440
         {
405
         $(".tablesorterfiltered").tablesorter({
441
         $(".tablesorterfiltered").tablesorter({
406
         theme: 'blue',
442
         theme: 'blue',
407
 
443
 
408
 
444
 
409
         sortMultiSortKey: 'altKey',
445
         sortMultiSortKey: 'altKey',
410
         //sortList: [[0,0]],
446
         //sortList: [[0,0]],
411
         widgets: ["zebra","filter"],
447
         widgets: ["zebra","filter"],
412
 
448
 
413
         ignoreCase: false,
449
         ignoreCase: false,
414
         widthFixed : true,
450
         widthFixed : true,
415
         widgetOptions : {filter_reset : 'button.reset',filter_columnFilters : true},
451
         widgetOptions : {filter_reset : 'button.reset',filter_columnFilters : true},
416
         textExtraction: function(node) {
452
         textExtraction: function(node) {
417
         // extract data from markup and return it
453
         // extract data from markup and return it
418
         if($(node).find(':input').size()>0)
454
         if($(node).find(':input').size()>0)
419
         {
455
         {
420
         var values = $(node).find(":input").map(function() {
456
         var values = $(node).find(":input").map(function() {
421
         return $(this).val()
457
         return $(this).val()
422
         }).get().join(",");
458
         }).get().join(",");
423
 
459
 
424
 
460
 
425
         return values;
461
         return values;
426
         }
462
         }
427
         return $(node).text();
463
         return $(node).text();
428
         }
464
         }
429
         }
465
         }
430
         );
466
         );
431
         }*/
467
         }*/
432
        if($(insideDiv + " .tablesorterfiltered"))
468
        if($(insideDiv + " .tablesorterfiltered"))
433
        {
469
        {
434
            $(insideDiv + " .tablesorterfiltered").tablesorter({
470
            $(insideDiv + " .tablesorterfiltered").tablesorter({
435
                        theme: 'blue',
471
                        theme: 'blue',
436
 
472
 
437
 
473
 
438
                        sortMultiSortKey: 'altKey',
474
                        sortMultiSortKey: 'altKey',
439
                        //sortList: [[0,0]],
475
                        //sortList: [[0,0]],
440
                        widgets: ["zebra","filter"],
476
                        widgets: ["zebra","filter"],
441
 
477
 
442
                        ignoreCase: false,
478
                        ignoreCase: false,
443
                        widthFixed : true,
479
                        widthFixed : true,
444
                        widgetOptions : {filter_reset : 'button.reset',filter_columnFilters : true,
480
                        widgetOptions : {filter_reset : 'button.reset',filter_columnFilters : true,
445
 
481
 
446
                            filter_excludeFilter : {
482
                            filter_excludeFilter : {
447
                                // target a column by class name or column index (zero-based)
483
                                // target a column by class name or column index (zero-based)
448
                                '.filter-false' : 'range'
484
                                '.filter-false' : 'range'
449
 
485
 
450
 
486
 
451
                            }
487
                            }
452
                        },
488
                        },
453
                        textExtraction: function(node) {
489
                        textExtraction: function(node) {
454
                            // extract data from markup and return it
490
                            // extract data from markup and return it
455
                            if($(node).find(':input').size()>0)
491
                            if($(node).find(':input').size()>0)
456
                            {
492
                            {
457
                                var values = $(node).find(":input").map(function() {
493
                                var values = $(node).find(":input").map(function() {
458
                                    return $(this).val()
494
                                    return $(this).val()
459
                                }).get().join(",");
495
                                }).get().join(",");
460
 
496
 
461
 
497
 
462
                                return values;
498
                                return values;
463
                            }
499
                            }
464
                            return $(node).text();
500
                            return $(node).text();
465
                        }
501
                        }
466
                    }
502
                    }
467
            );
503
            );
468
        }
504
        }
469
 
505
 
470
 
506
 
471
 
507
 
472
        // External search
508
        // External search
473
        // buttons set up like this:
509
        // buttons set up like this:
474
        // <button type="button" data-filter-column="4" data-filter-text="2?%">Saved Search</button>
510
        // <button type="button" data-filter-column="4" data-filter-text="2?%">Saved Search</button>
475
        $(insideDiv + 'button[data-filter-column]').click(function(){
511
        $(insideDiv + 'button[data-filter-column]').click(function(){
476
            /*** first method *** data-filter-column="1" data-filter-text="!son"
512
            /*** first method *** data-filter-column="1" data-filter-text="!son"
477
             add search value to Discount column (zero based index) input */
513
             add search value to Discount column (zero based index) input */
478
            var filters = [],
514
            var filters = [],
479
                    $t = $(this),
515
                    $t = $(this),
480
                    col = $t.data('filter-column'), // zero-based index
516
                    col = $t.data('filter-column'), // zero-based index
481
                    txt = $t.data('filter-text') || $t.text(); // text to add to filter
517
                    txt = $t.data('filter-text') || $t.text(); // text to add to filter
482
 
518
 
483
            filters[col] = txt;
519
            filters[col] = txt;
484
            // using "table.hasFilters" here to make sure we aren't targeting a sticky header
520
            // using "table.hasFilters" here to make sure we aren't targeting a sticky header
485
            if($(insideDiv + ' #myTable'))
521
            if($(insideDiv + ' #myTable'))
486
                $.tablesorter.setFilters( $(insideDiv + ' #myTable'), filters, true ); // new v2.9
522
                $.tablesorter.setFilters( $(insideDiv + ' #myTable'), filters, true ); // new v2.9
487
            if($(insideDiv + ' #myTable2'))
523
            if($(insideDiv + ' #myTable2'))
488
                $.tablesorter.setFilters( $(insideDiv + ' #myTable2'), filters, true ); // new v2.9
524
                $.tablesorter.setFilters( $(insideDiv + ' #myTable2'), filters, true ); // new v2.9
489
            if($(insideDiv + ' .tablesorterfiltered'))
525
            if($(insideDiv + ' .tablesorterfiltered'))
490
                $.tablesorter.setFilters( $(insideDiv + ' .tablesorterfiltered'), filters, true ); // new v2.9
526
                $.tablesorter.setFilters( $(insideDiv + ' .tablesorterfiltered'), filters, true ); // new v2.9
491
 
527
 
492
            /*
528
            /*
493
             if($('.tablesorterfiltered'))
529
             if($('.tablesorterfiltered'))
494
             $.tablesorter.setFilters( $('.tablesorterfiltered'), filters, true ); // new v2.9
530
             $.tablesorter.setFilters( $('.tablesorterfiltered'), filters, true ); // new v2.9
495
             */
531
             */
496
            /** old method (prior to tablsorter v2.9 ***
532
            /** old method (prior to tablsorter v2.9 ***
497
             var filters = $('table.tablesorter').find('input.tablesorter-filter');
533
             var filters = $('table.tablesorter').find('input.tablesorter-filter');
498
             filters.val(''); // clear all filters
534
             filters.val(''); // clear all filters
499
             filters.eq(col).val(txt).trigger('search', false);
535
             filters.eq(col).val(txt).trigger('search', false);
500
             ******/
536
             ******/
501
 
537
 
502
            /*** second method ***
538
            /*** second method ***
503
             this method bypasses the filter inputs, so the "filter_columnFilters"
539
             this method bypasses the filter inputs, so the "filter_columnFilters"
504
             option can be set to false (no column filters showing)
540
             option can be set to false (no column filters showing)
505
             ******/
541
             ******/
506
            /*
542
            /*
507
             var columns = [];
543
             var columns = [];
508
             columns[5] = '2?%'; // or define the array this way [ '', '', '', '', '', '2?%' ]
544
             columns[5] = '2?%'; // or define the array this way [ '', '', '', '', '', '2?%' ]
509
             $('table').trigger('search', [ columns ]);
545
             $('table').trigger('search', [ columns ]);
510
             */
546
             */
511
 
547
 
512
            return false;
548
            return false;
513
        });
549
        });
514
    }
550
    }
515
</script>
551
</script>
516
<style>
552
<style>
517
    th.headerSortUp {
553
    th.headerSortUp {
518
        background-image: url(<%=request.getContextPath()%>/js/jquerytables/jquerytable/asc.gif);
554
        background-image: url(<%=request.getContextPath()%>/js/jquerytables/jquerytable/asc.gif);
519
        background-color: #3399FF;
555
        background-color: #3399FF;
520
    }
556
    }
521
    th.headerSortDown {
557
    th.headerSortDown {
522
        background-image: url(<%=request.getContextPath()%>/js/jquerytables/jquerytable/desc.gif);
558
        background-image: url(<%=request.getContextPath()%>/js/jquerytables/jquerytable/desc.gif);
523
        background-color: #3399FF;
559
        background-color: #3399FF;
524
    }
560
    }
525
    .dorsalActivado span, .dorsal span
561
    .dorsalActivado span, .dorsal span
526
    {
562
    {
527
        text-align: center;
563
        text-align: center;
528
        background-color: white;
564
        background-color: white;
529
        padding: 3px;
565
        padding: 3px;
530
        border: 1px solid black;
566
        border: 1px solid black;
531
        font-weight: bold;
567
        font-weight: bold;
532
        white-space: nowrap;
568
        white-space: nowrap;
533
    }
569
    }
534
 
570
 
535
    .tablesorterfiltered thead .disabled {display: none}
571
    .tablesorterfiltered thead .disabled {display: none}
536
 
572
 
537
</style>
573
</style>
538
 
574
 
539
 
575
 
540
 
576
 
541
 
577
 
542
<%--SCRIPTS DO EDITOR DE HTML 5--%>
578
<%--SCRIPTS DO EDITOR DE HTML 5--%>
543
 
579
 
544
<!--
580
<!--
545
 
581
 
546
<link rel="apple-touch-icon" href="//mindmup.s3.amazonaws.com/lib/img/apple-touch-icon.png" />
582
<link rel="apple-touch-icon" href="//mindmup.s3.amazonaws.com/lib/img/apple-touch-icon.png" />
547
-->
583
-->
548
<link href="<%=request.getContextPath()%>/js/bootstrap-wysiwyg-master/external/google-code-prettify/prettify.css" rel="stylesheet">
584
<link href="<%=request.getContextPath()%>/js/bootstrap-wysiwyg-master/external/google-code-prettify/prettify.css" rel="stylesheet">
549
<!--<link href="<%=request.getContextPath()%>/js/bootstrap-wysiwyg-master/netdna/bootstrap-combined.no-icons.min.css" rel="stylesheet">-->
585
<!--<link href="<%=request.getContextPath()%>/js/bootstrap-wysiwyg-master/netdna/bootstrap-combined.no-icons.min.css" rel="stylesheet">-->
550
<%--<link href="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.1/css/bootstrap-responsive.min.css" rel="stylesheet">--%>
586
<%--<link href="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.1/css/bootstrap-responsive.min.css" rel="stylesheet">--%>
551
<link href="<%=request.getContextPath()%>/js/bootstrap-wysiwyg-master/netdna/font-awesome.css" rel="stylesheet">
587
<link href="<%=request.getContextPath()%>/js/bootstrap-wysiwyg-master/netdna/font-awesome.css" rel="stylesheet">
552
<%--<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script>--%>
588
<%--<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script>--%>
553
<script src="<%=request.getContextPath()%>/js/bootstrap-wysiwyg-master/external/jquery.hotkeys.js"></script>
589
<script src="<%=request.getContextPath()%>/js/bootstrap-wysiwyg-master/external/jquery.hotkeys.js"></script>
554
<%--<script src="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.1/js/bootstrap.min.js"></script>--%>
590
<%--<script src="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.1/js/bootstrap.min.js"></script>--%>
555
<script src="<%=request.getContextPath()%>/js/bootstrap-wysiwyg-master/external/google-code-prettify/prettify.js"></script>
591
<script src="<%=request.getContextPath()%>/js/bootstrap-wysiwyg-master/external/google-code-prettify/prettify.js"></script>
556
<link href="<%=request.getContextPath()%>/js/bootstrap-wysiwyg-master/index.css" rel="stylesheet">
592
<link href="<%=request.getContextPath()%>/js/bootstrap-wysiwyg-master/index.css" rel="stylesheet">
557
<script src="<%=request.getContextPath()%>/js/bootstrap-wysiwyg-master/bootstrap-wysiwyg.js"></script>
593
<script src="<%=request.getContextPath()%>/js/bootstrap-wysiwyg-master/bootstrap-wysiwyg.js"></script>
558
 
594
 
559
 
595
 
560
 
596
 
561
 
597
 
562
 
598
 
563
<script>
599
<script>
564
 
600
 
565
    function initToolbarBootstrapBindings() {
601
    function initToolbarBootstrapBindings() {
566
        var fonts = ['Serif', 'Sans', 'Arial', 'Arial Black', 'Courier',
602
        var fonts = ['Serif', 'Sans', 'Arial', 'Arial Black', 'Courier',
567
                    'Courier New', 'Comic Sans MS', 'Helvetica', 'Impact', 'Lucida Grande', 'Lucida Sans', 'Tahoma', 'Times',
603
                    'Courier New', 'Comic Sans MS', 'Helvetica', 'Impact', 'Lucida Grande', 'Lucida Sans', 'Tahoma', 'Times',
568
                    'Times New Roman', 'Verdana'],
604
                    'Times New Roman', 'Verdana'],
569
                fontTarget = $('[title=Font]').siblings('.dropdown-menu');
605
                fontTarget = $('[title=Font]').siblings('.dropdown-menu');
570
        $.each(fonts, function (idx, fontName) {
606
        $.each(fonts, function (idx, fontName) {
571
            fontTarget.append($('<li><a data-edit="fontName ' + fontName +'" style="font-family:\''+ fontName +'\'">'+fontName + '</a></li>'));
607
            fontTarget.append($('<li><a data-edit="fontName ' + fontName +'" style="font-family:\''+ fontName +'\'">'+fontName + '</a></li>'));
572
        });
608
        });
573
        $('a[title]').tooltip({container:'body'});
609
        $('a[title]').tooltip({container:'body'});
574
        $('.dropdown-menu input').click(function() {return false;})
610
        $('.dropdown-menu input').click(function() {return false;})
575
                .change(function () {$(this).parent('.dropdown-menu').siblings('.dropdown-toggle').dropdown('toggle');})
611
                .change(function () {$(this).parent('.dropdown-menu').siblings('.dropdown-toggle').dropdown('toggle');})
576
                .keydown('esc', function () {this.value='';$(this).change();});
612
                .keydown('esc', function () {this.value='';$(this).change();});
577
 
613
 
578
        $('[data-role=magic-overlay]').each(function () {
614
        $('[data-role=magic-overlay]').each(function () {
579
            var overlay = $(this), target = $(overlay.data('target'));
615
            var overlay = $(this), target = $(overlay.data('target'));
580
            overlay.css('opacity', 0).css('position', 'absolute').offset(target.offset()).width(target.outerWidth()).height(target.outerHeight());
616
            overlay.css('opacity', 0).css('position', 'absolute').offset(target.offset()).width(target.outerWidth()).height(target.outerHeight());
581
        });
617
        });
582
        if ("onwebkitspeechchange"  in document.createElement("input")) {
618
        if ("onwebkitspeechchange"  in document.createElement("input")) {
583
            var editorOffset = $('#editor').offset();
619
            var editorOffset = $('#editor').offset();
584
            $('#voiceBtn').css('position','absolute').offset({top: editorOffset.top, left: editorOffset.left+$('#editor').innerWidth()-35});
620
            $('#voiceBtn').css('position','absolute').offset({top: editorOffset.top, left: editorOffset.left+$('#editor').innerWidth()-35});
585
        } else {
621
        } else {
586
            $('#voiceBtn').hide();
622
            $('#voiceBtn').hide();
587
        }
623
        }
588
    };
624
    };
589
    function showErrorAlert (reason, detail) {
625
    function showErrorAlert (reason, detail) {
590
        var msg='';
626
        var msg='';
591
        if (reason==='unsupported-file-type') { msg = "Unsupported format " +detail; }
627
        if (reason==='unsupported-file-type') { msg = "Unsupported format " +detail; }
592
        else {
628
        else {
593
            console.log("error uploading file", reason, detail);
629
            console.log("error uploading file", reason, detail);
594
        }
630
        }
595
        $('<div class="alert"> <button type="button" class="close" data-dismiss="alert">&times;</button>'+
631
        $('<div class="alert"> <button type="button" class="close" data-dismiss="alert">&times;</button>'+
596
                '<strong>File upload error</strong> '+msg+' </div>').prependTo('#alerts');
632
                '<strong>File upload error</strong> '+msg+' </div>').prependTo('#alerts');
597
    };
633
    };
598
 
634
 
599
 
635
 
600
 
636
 
601
    //Wysywyg Editor Toolbar
637
    //Wysywyg Editor Toolbar
602
    $(document).ready(function(){
638
    $(document).ready(function(){
603
        initToolbarBootstrapBindings();
639
        initToolbarBootstrapBindings();
604
        $('#editor').wysiwyg({ fileUploadError: showErrorAlert} );
640
        $('#editor').wysiwyg({ fileUploadError: showErrorAlert} );
605
        window.prettyPrint && prettyPrint();
641
        window.prettyPrint && prettyPrint();
606
    });
642
    });
607
 
643
 
608
 
644
 
609
    /******
645
    /******
610
     * Function for Files Version service data.jsp
646
     * Function for Files Version service data.jsp
611
     *
647
     *
612
     */
648
     */
613
    function submitDataVersionForm()
649
    function submitDataVersionForm()
614
    {
650
    {
615
        $.post( "<%=request.getContextPath()%>/user/data.jsp?id=" + $("#filesVersionsId").val(), function( data ) {
651
        $.post( "<%=request.getContextPath()%>/user/data.jsp?id=" + $("#filesVersionsId").val(), function( data ) {
616
            $("#contentVersions").html($( data ).find("#contentVersions").html());
652
            $("#contentVersions").html($( data ).find("#contentVersions").html());
617
            evaluateTableSorters();
653
            evaluateTableSorters();
618
        });
654
        });
619
    }
655
    }
620
 
656
 
621
    function invoqueDataVersionForm(id)
657
    function invoqueDataVersionForm(id)
622
    {
658
    {
623
        $("#filesVersionsId").val(id);
659
        $("#filesVersionsId").val(id);
624
        submitDataVersionForm();
660
        submitDataVersionForm();
625
        $('#historyFilesModal').modal({
661
        $('#historyFilesModal').modal({
626
            show: 'true'
662
            show: 'true'
627
        });
663
        });
628
    }
664
    }
629
 
665
 
630
</script>
666
</script>
-
 
667
 
631
<%--O nosso estilo fica aqui para se sobrepor--%>
668
<%--O nosso estilo fica aqui para se sobrepor--%>
632
<link type="text/css" rel="stylesheet" href="<%=request.getContextPath()%>/css/style.css"/>
669
<link type="text/css" rel="stylesheet" href="<%=request.getContextPath()%>/css/style.css"/>
633
<link type="text/css" rel="stylesheet" href="<%=request.getContextPath()%>/css/<%=bacoTheme%>/style.css"/>
670
<link type="text/css" rel="stylesheet" href="<%=request.getContextPath()%>/css/<%=bacoTheme%>/style.css"/>
634
<link type="text/css" rel="stylesheet" href="<%=request.getContextPath()%>/css/<%=bacoTheme%>/stylePublicPortal.css"/>
671
<link type="text/css" rel="stylesheet" href="<%=request.getContextPath()%>/css/<%=bacoTheme%>/stylePublicPortal.css"/>
635
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
672
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
636
<meta charset="UTF-8">
673
<meta charset="UTF-8">
637
 
674
 
638
Generated by GNU Enscript 1.6.5.2.
675
Generated by GNU Enscript 1.6.5.2.
639
 
676
 
640
 
677