Subversion Repositories bacoAlunos

Rev

Rev 1320 | Rev 1328 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

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