diff options
author | knowcenter <knowcenter@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c> | 2007-05-17 15:25:10 +0000 |
---|---|---|
committer | knowcenter <knowcenter@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c> | 2007-05-17 15:25:10 +0000 |
commit | 0184c140614b99a5037cbd8f969b7512888cd37d (patch) | |
tree | 9f2f3ea1edf14e05df735a4ebe9402e3f5e00d6c /webapp/jsp/signpreview.jsp | |
parent | a3ecdb4630518b8dc00d0183bed435d8131b578c (diff) | |
download | pdf-as-3-0184c140614b99a5037cbd8f969b7512888cd37d.tar.gz pdf-as-3-0184c140614b99a5037cbd8f969b7512888cd37d.tar.bz2 pdf-as-3-0184c140614b99a5037cbd8f969b7512888cd37d.zip |
webapp
git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@86 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c
Diffstat (limited to 'webapp/jsp/signpreview.jsp')
-rw-r--r-- | webapp/jsp/signpreview.jsp | 91 |
1 files changed, 91 insertions, 0 deletions
diff --git a/webapp/jsp/signpreview.jsp b/webapp/jsp/signpreview.jsp new file mode 100644 index 0000000..4b9189a --- /dev/null +++ b/webapp/jsp/signpreview.jsp @@ -0,0 +1,91 @@ +<%@ page import="at.knowcenter.wag.egov.egiz.web.FormFields" %>
+<%@ page import="at.knowcenter.wag.egov.egiz.web.SessionAttributes" %>
+<%@ page import="at.knowcenter.wag.egov.egiz.web.SessionInformation" %>
+<%@ page import="at.knowcenter.wag.egov.egiz.sig.SignatureData" %>
+<%
+ SessionInformation si = (SessionInformation) session.getAttribute(SessionAttributes.ATTRIBUTE_SESSION_INFORMATION);
+
+ String submit_url = (String)request.getAttribute("submit_url");
+
+ String signature_data_url = (String)request.getAttribute("signature_data_url");
+
+ String document_text = null;
+ if (si.mode.equals(FormFields.VALUE_MODE_TEXTUAL))
+ {
+ SignatureData data = si.iui.signature_data;
+ document_text = new String(data.getData(), data.getCharacterEncoding());
+ }
+%>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html>
+<head>
+ <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
+ <title>PDF-AS Amtssignaturen Vorschau</title>
+ <link rel="stylesheet" type="text/css" href="/pdf-as/css/styles.css" />
+</head>
+<body>
+<div class="maindiv">
+<h1>PDF-AS Amtssignaturen</h1>
+<div class="mainframe">
+<div class="mainheadline">Vorschau: Dokument Signieren</div>
+
+
+<%
+ if (si.mode.equals(FormFields.VALUE_MODE_TEXTUAL))
+ {
+%>
+<form action="<%= submit_url %>"
+ name="submitform"
+ enctype="multipart/form-data"
+ accept-charset="UTF-8"
+ method="get">
+<div class="contentsdiv">
+
+
+<pre class="nt"><%= document_text %></pre>
+
+<br />
+
+<input class="button" type="submit" value="Signieren..." />
+
+</div>
+</form>
+
+
+<%
+ }
+ else
+ {
+%>
+
+<form action="<%= signature_data_url %>"
+ method="get"
+ target="blank_">
+<div class="contentsdiv">
+
+<input class="button" type="submit" value="Vorschaudokument anzeigen..." />
+
+</div>
+</form>
+
+<br />
+
+<form action="<%= submit_url %>"
+ method="get">
+<div class="contentsdiv">
+
+<input class="button" type="submit" value="Signieren..." />
+
+</div>
+</form>
+
+<%
+ }
+%>
+
+
+</div>
+<a class="big" href="/pdf-as/">zurück</a>
+</div>
+</body>
+</html>
|