Subversion Repositories bacoAlunos

Rev

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