Rev 1337 | Rev 1387 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1312 | jmachado | 1 | <%@ page contentType="text/html; charset=UTF-8" language="java"%> |
2 | <%@ taglib uri="/WEB-INF/tlds/struts-html.tld" prefix="html" %> |
||
3 | <%@ taglib uri="/WEB-INF/tlds/struts-nested.tld" prefix="nested" %> |
||
4 | <%@ taglib uri="/WEB-INF/tlds/struts-logic.tld" prefix="logic" %> |
||
5 | <%@ taglib uri="/WEB-INF/tlds/struts-bean.tld" prefix="bean" %> |
||
6 | <%@ taglib uri="/WEB-INF/tlds/struts-tiles.tld" prefix="tiles" %> |
||
7 | |||
8 | <logic:present name="UserSession"> |
||
9 | INTRANET - (<bean:write name="UserSession" property="user.name"/> online) |
||
1320 | jmachado | 10 | |
11 | <div id="google_translate_element" class="pull-right"></div> |
||
12 | <script type="text/javascript"> |
||
13 | function googleTranslateElementInit() { |
||
14 | new google.translate.TranslateElement({pageLanguage: 'pt', includedLanguages: 'pt,en,es,fr', layout: google.translate.TranslateElement.InlineLayout.SIMPLE}, 'google_translate_element'); |
||
15 | } |
||
16 | </script> |
||
17 | <script type="text/javascript" src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script> |
||
1312 | jmachado | 18 | </logic:present> |
19 | |||
20 | <div class="modal fade" id="historyFilesModal" role="dialog" > |
||
21 | <div class="modal-dialog" data-width="960" style="display: block; width: 960px; margin-top: 50px;" aria-hidden="false"> |
||
22 | |||
23 | <!-- Modal content--> |
||
24 | <div class="modal-content"> |
||
25 | <div class="modal-header"> |
||
26 | <h1 class="modal-title"><bean:message key="data.history.title"/></h1> |
||
27 | </div> |
||
28 | <div class="modal-body"> |
||
29 | <div class="panel panel-default"> |
||
30 | <div class="panel-body" id="contentForm"> |
||
31 | <form class="form-horizontal" onsubmit="submitDataVersionForm();return false;"> |
||
32 | <div class="form-group"> |
||
33 | <label class="control-label col-sm-4" for="filesVersionsId"><bean:message key="data.history.form.input"/></label> |
||
34 | <div class="col-sm-6"> |
||
35 | <input type="text" id="filesVersionsId" class="form-control"/> |
||
36 | </div> |
||
37 | </div> |
||
38 | <input type="button" class="btn btn-default" onclick="submitDataVersionForm()" value="<bean:message key="submit"/>"/> |
||
39 | <button type="button" class="btn btn-danger" data-dismiss="modal"><bean:message key="cancel"/></button> |
||
40 | </form> |
||
41 | </div> |
||
42 | </div> |
||
43 | <div class="panel panel-default"> |
||
44 | <div class="panel-body" id="contentVersions"> |
||
45 | |||
46 | </div> |
||
47 | </div> |
||
48 | <button type="button" class="btn btn-danger" data-dismiss="modal"><bean:message key="cancel"/></button> |
||
49 | </div> |
||
50 | </div> |
||
51 | |||
52 | </div> |
||
53 | </div> |
||
1326 | jmachado | 54 | |
55 | |||
56 | |||
57 | <script> |
||
58 | $(document).ready(function(){ |
||
59 | $('.confirmModal').on('show.bs.modal', function(e) { |
||
60 | $(this).find('.btn-ok').attr('href', $(e.relatedTarget).data('href')); |
||
61 | $(this).find('.ConfirmMessageToUser').html($(e.relatedTarget).data('message')); |
||
62 | }); |
||
1332 | jmachado | 63 | |
64 | $('.dynamicInfoModal').on('show.bs.modal', function(e) |
||
65 | { |
||
66 | $(this).find('.InfoMessageToUser').html($(e.relatedTarget).data('message')); |
||
67 | }); |
||
1333 | jmachado | 68 | |
69 | $('.maximize-button').click(function(e) |
||
70 | { |
||
71 | $($(e.currentTarget).data("target")).toggleClass('fullscreen'); |
||
72 | }); |
||
73 | |||
1350 | jmachado | 74 | |
75 | |||
76 | |||
77 | $('.confirmModalFunction').on('show.bs.modal', function(e) { |
||
78 | callbackscript = $(e.relatedTarget).data('script'); |
||
79 | $(this).find('.btn-ok').unbind('click').click( |
||
80 | function(){ |
||
81 | eval(callbackscript); |
||
82 | } |
||
83 | ); |
||
84 | $(this).find('.ConfirmMessageToUser').html($(e.relatedTarget).data('message')); |
||
85 | }); |
||
86 | |||
87 | |||
88 | |||
89 | |||
1326 | jmachado | 90 | }); |
91 | </script> |
||
1333 | jmachado | 92 | <style> |
93 | .fullscreen{ |
||
94 | z-index: 9999; |
||
95 | width: 100%; |
||
96 | height: 100%; |
||
97 | position: fixed; |
||
98 | top: 0; |
||
99 | left: 0; |
||
100 | } |
||
101 | </style> |
||
102 | |||
1326 | jmachado | 103 | <div class="modal fade confirmModal" id="confirm-ModalGeneric" tabindex="-1" role="dialog" > |
104 | <div class="modal-dialog" data-width="450" style="display: block; width: 450px; margin-top: 50px;" aria-hidden="false"> |
||
105 | <div class="modal-content"> |
||
106 | <div class="modal-header"> |
||
107 | <h4 class="modal-title">Tem a certeza que deseja efectuar a seguinte operação?</h4> |
||
108 | </div> |
||
109 | <div class="modal-body"> |
||
110 | |||
111 | <p class="ConfirmMessageToUser"> |
||
112 | |||
113 | </p> |
||
114 | |||
115 | </div> |
||
116 | <div class="modal-footer"> |
||
117 | <button type="button" class="btn btn-default" data-dismiss="modal">Cancelar</button> |
||
1350 | jmachado | 118 | <button class="btn btn-danger btn-ok">Sim</button> |
119 | </div> |
||
120 | </div> |
||
121 | </div> |
||
122 | </div> |
||
123 | |||
124 | |||
125 | <div class="modal fade confirmModalFunction" id="confirm-ModalFunction" tabindex="-1" role="dialog" > |
||
126 | <div class="modal-dialog" data-width="450" style="display: block; width: 450px; margin-top: 50px;" aria-hidden="false"> |
||
127 | <div class="modal-content"> |
||
128 | <div class="modal-header"> |
||
129 | <h4 class="modal-title">Tem a certeza que deseja efectuar a seguinte operação?</h4> |
||
130 | </div> |
||
131 | <div class="modal-body"> |
||
132 | |||
133 | <p class="ConfirmMessageToUser"> |
||
134 | |||
135 | </p> |
||
136 | |||
137 | </div> |
||
138 | <div class="modal-footer"> |
||
139 | <button type="button" class="btn btn-default" data-dismiss="modal">Cancelar</button> |
||
1326 | jmachado | 140 | <a class="btn btn-danger btn-ok">Sim</a> |
141 | </div> |
||
142 | </div> |
||
143 | </div> |
||
144 | </div> |
||
1327 | jmachado | 145 | |
1332 | jmachado | 146 | <div class="modal fade dynamicInfoModal" id="dynamicInfo-ModalGeneric" tabindex="-1" role="dialog" > |
147 | <div class="modal-dialog" data-width="450" style="display: block; width: 450px; margin-top: 50px;" aria-hidden="false"> |
||
148 | <div class="modal-content"> |
||
149 | <div class="modal-header"> |
||
150 | <h4 class="modal-title">Informação</h4> |
||
151 | </div> |
||
152 | <div class="modal-body"> |
||
1327 | jmachado | 153 | |
1332 | jmachado | 154 | <p class="InfoMessageToUser"> |
155 | |||
156 | </p> |
||
157 | |||
158 | </div> |
||
159 | <div class="modal-footer"> |
||
160 | <button type="button" class="btn btn-default" data-dismiss="modal">Ok</button> |
||
161 | </div> |
||
162 | </div> |
||
163 | </div> |
||
164 | </div> |
||
165 | |||
166 | |||
1327 | jmachado | 167 | <script> |
168 | $(document).ready(function(){ |
||
169 | $('#modalAjaxRequest').on('show.bs.modal', function(e) |
||
170 | { |
||
171 | reloadAjaxRequestModal($(e.relatedTarget)); |
||
172 | }); |
||
173 | }); |
||
174 | function reloadAjaxRequestModal(target) |
||
175 | { |
||
176 | $("#modalAjaxRequest .modal-title .title-wrap").html($(target).data('title')); |
||
177 | $("#modalAjaxRequest .contentAjaxRequest").html('Pro favor aguarde ... <img src="<%=request.getContextPath()%>/imgs/wait.gif"/>'); |
||
178 | $.post($(target).data('href'), function(data) { |
||
179 | $("#modalAjaxRequest .contentAjaxRequest").html(data); |
||
180 | evaluateTableSortersInside("#modalAjaxRequest"); |
||
181 | $('#modalAjaxRequest .reloadAjaxRequestModal').on("click", |
||
182 | function(e){ |
||
183 | reloadAjaxRequestModal(e.currentTarget); |
||
184 | } |
||
185 | ); |
||
186 | }); |
||
187 | } |
||
188 | </script> |
||
189 | |||
190 | <div class="modal fade" id="modalAjaxRequest" role="dialog" > |
||
191 | <div class="modal-dialog" data-width="960" style="display: block; width: 960px; margin-top: 50px;" aria-hidden="false"> |
||
192 | |||
193 | <!-- Modal content--> |
||
194 | <div class="modal-content"> |
||
1337 | jmachado | 195 | <div class="modal-header clearfix"> |
1327 | jmachado | 196 | <h3 class="modal-title"> |
197 | <label class="title-wrap"></label> |
||
198 | <button type="button" class="btn btn-danger btn-xs pull-right" data-dismiss="modal"><span class="glyphicon glyphicon-remove small"></span></button> |
||
199 | </h3> |
||
200 | </div> |
||
201 | <div class="modal-body"> |
||
202 | <div class="contentAjaxRequest"> |
||
203 | |||
204 | </div> |
||
1332 | jmachado | 205 | <button type="button" class="btn btn-danger" data-dismiss="modal">Sair</button> |
1327 | jmachado | 206 | </div> |
207 | </div> |
||
208 | </div> |
||
209 | </div> |