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