From 39c357e5cfa5223f6126644d8a0dbc6ea203d09e Mon Sep 17 00:00:00 2001 From: rpiazzi Date: Fri, 23 Sep 2011 15:05:02 +0000 Subject: Comprehensive changes due to reorganization of user interface. JavaScripts added for styling reasons, then also added the same layout as with the start page and last the possibility to visualize the page differently when the whole application is called within an IFrame of an extern application (see also other jsp's). git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@818 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c --- pdf-as-web/src/main/webapp/jsp/download.jsp | 181 ++++++++++++++++++++++++---- 1 file changed, 158 insertions(+), 23 deletions(-) (limited to 'pdf-as-web') diff --git a/pdf-as-web/src/main/webapp/jsp/download.jsp b/pdf-as-web/src/main/webapp/jsp/download.jsp index 1b56f93..e0c1cc4 100644 --- a/pdf-as-web/src/main/webapp/jsp/download.jsp +++ b/pdf-as-web/src/main/webapp/jsp/download.jsp @@ -4,41 +4,176 @@ <%@ page import="at.gv.egiz.pdfas.web.session.SessionAttributes" %> <%@ page import="at.gv.egiz.pdfas.web.helper.LocalRequestHelper" %> +<%@ page import="at.gv.egiz.pdfas.web.servlets.SignServlet" %> +<%@ page import="at.gv.egiz.pdfas.api.commons.Constants" %> +<%@page import="at.gv.egiz.pdfas.web.FormFields"%> <% - String downloadURL = (String) session.getAttribute(SessionAttributes.DOWNLOAD_URL_FOR_SIGNED_PDF_DOCUMENT); + String downloadURL = (String) session.getAttribute(SessionAttributes.DOWNLOAD_URL_FOR_SIGNED_PDF_DOCUMENT); + + String connector = (String)session.getAttribute(SignServlet.SUBMITFORM_SIGNATURE_DEVICE_KEY); + + session.setAttribute(SignServlet.SUBMITFORM_SIGNATURE_MODE_KEY, null); + session.setAttribute(SignServlet.SUBMITFORM_SOURCE_KEY, null); + session.setAttribute(SignServlet.SUBMITFORM_SIGNATURE_TYPE_KEY, null); + session.setAttribute(SignServlet.SUBMITFORM_PDFA_KEY, null); + session.setAttribute(SignServlet.SUBMITFORM_NOTE_KEY, null); + session.setAttribute(SignServlet.SUBMITFORM_FREETEXT_KEY, null); + session.setAttribute(SignServlet.SUBMITFORM_SIGNATURE_DEVICE_KEY, null); + session.setAttribute(SignServlet.SUBMITFORM_FILE_KEY, null); + session.setAttribute(SignServlet.SUBMITFORM_FILENAME_KEY, null); + session.setAttribute(SessionAttributes.ATTRIBUTE_SESSION_INFORMATION, null); + session.setAttribute(SignServlet.ERROR_WITHIN_IFRAME, null); + + String height = (String)session.getAttribute(SignServlet.HEIGHT_SIGN_DIV); + + String language = (String)session.getAttribute(SessionAttributes.LANGUAGE); + boolean german = true; + + //Check if application is started within an iframe from an extern application + boolean startedFromIFrame = false; + String extern = (String)session.getAttribute("extern"); + if (extern!=null) { + if (extern.equals("yes")) { + startedFromIFrame = true; + } + } + // + %> + <% if (language!=null) { %> + <% if (language.equals("de")) { %> + + <% } else { + german = false; %> + + <% } %> + <% } else { %> + + <% } %> + + + <% if (!startedFromIFrame) { + if (german) { %> + + <% } else { %> + + <% } %> + + + <% } else { %> + + <% } %> + + + + + + <fmt:message key="download.title"/> - - - -

-

-
-
-
- " onclick="return hitButton();"/> -
-
- "> - + + <% if (!startedFromIFrame) { %> +

+ +

+
+ +
+
+ <% } %> +
+ +
+
+ +
+ Handy +
+ +
+ " alt="Signatur mit Handy" disabled="disabled"/> +
+
+
+
+ <% if (!startedFromIFrame) { %> + + + + <% } %> + + + -- cgit v1.2.3