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 | |
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')
-rw-r--r-- | webapp/jsp/error.jsp | 26 | ||||
-rw-r--r-- | webapp/jsp/local_connection_page.jsp | 50 | ||||
-rw-r--r-- | webapp/jsp/null_request_page.jsp | 47 | ||||
-rw-r--r-- | webapp/jsp/redirect_refresh_page.jsp | 36 | ||||
-rw-r--r-- | webapp/jsp/results.jsp | 96 | ||||
-rw-r--r-- | webapp/jsp/signpreview.jsp | 91 | ||||
-rw-r--r-- | webapp/jsp/signupload.jsp | 81 | ||||
-rw-r--r-- | webapp/jsp/verifylist.jsp | 96 | ||||
-rw-r--r-- | webapp/jsp/verifypreview.jsp | 72 | ||||
-rw-r--r-- | webapp/jsp/verifyupload.jsp | 98 |
10 files changed, 693 insertions, 0 deletions
diff --git a/webapp/jsp/error.jsp b/webapp/jsp/error.jsp new file mode 100644 index 0000000..0d77ead --- /dev/null +++ b/webapp/jsp/error.jsp @@ -0,0 +1,26 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html>
+<head>
+<title>PDF-AS Amtssignaturen Resultat</title>
+<link rel="stylesheet" type="text/css" href="/pdf-as/css/styles.css" />
+</head>
+<body>
+<%
+ String error = (request.getAttribute("error") == null ? "" : request.getAttribute("error").toString());
+ String cause = (request.getAttribute("cause") == null ? "" : request.getAttribute("cause").toString());
+ %>
+<div class="maindiv">
+<h1>PDF-AS Amtssignaturen</h1>
+<div class="mainframe">
+<div class="errorheadline">Ein Fehler ist aufgetreten</div>
+<div class="contentsdiv">
+<%= error %><br />
+<br />Grund:
+<br />
+<strong><%= cause %></strong>
+</div>
+</div>
+<a class="big" href="/pdf-as/">Weiter...</a>
+</div>
+</body>
+</html>
\ No newline at end of file diff --git a/webapp/jsp/local_connection_page.jsp b/webapp/jsp/local_connection_page.jsp new file mode 100644 index 0000000..91ba403 --- /dev/null +++ b/webapp/jsp/local_connection_page.jsp @@ -0,0 +1,50 @@ +<%@ page contentType="text/html; charset=UTF-8" %>
+<%
+ String local_request_url = (String)request.getAttribute("local_request_url");
+ String quoted_request = (String)request.getAttribute("quoted_request");
+ String data_url = (String)request.getAttribute("data_url");
+ String redirect_url = (String)request.getAttribute("redirect_url");
+%>
+<!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 Lokale Verbindung</title>
+<link rel="stylesheet" type="text/css" href="/pdf-as/css/styles.css" />
+</head>
+
+<body onload="document.submitform.submit()">
+
+<div class="maindiv">
+
+<h1>PDF-AS Amtssignaturen</h1>
+
+<div class="mainframe">
+<div class="mainheadline">Verbindung zu BKU/A1</div>
+
+<div>Die Verbindung wird hergestellt.<br/>Bitte haben sie etwas Geduld.</div>
+
+
+<form action="<%= local_request_url %>"
+ name="submitform"
+ accept-charset="UTF-8"
+ method="post">
+<!-- enctype="multipart/form-data"-->
+
+
+
+<input type="hidden" name="XMLRequest" value="<%= quoted_request %>" />
+
+<input type="hidden" name="DataURL" value="<%= data_url %>" />
+<input type="hidden" name="RedirectURL" value="<%= redirect_url %>" />
+
+<input class="ip" type="submit" value="Abschicken..." />
+
+</form>
+
+
+</div>
+<a class="big" href="/pdf-as/">zurück</a>
+</div>
+</body>
+</html>
diff --git a/webapp/jsp/null_request_page.jsp b/webapp/jsp/null_request_page.jsp new file mode 100644 index 0000000..60e35a9 --- /dev/null +++ b/webapp/jsp/null_request_page.jsp @@ -0,0 +1,47 @@ +<%@ page contentType="text/html; charset=UTF-8" %>
+<%
+ String local_request_url = (String)request.getAttribute("local_request_url");
+ String data_url = (String)request.getAttribute("data_url");
+%>
+<!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 Lokale Verbindung</title>
+<link rel="stylesheet" type="text/css" href="/pdf-as/css/styles.css" />
+</head>
+
+<body onload="document.submitform.submit()">
+
+<div class="maindiv">
+
+<h1>PDF-AS Amtssignaturen</h1>
+
+<div class="mainframe">
+<div class="mainheadline">Verbindung zu BKU/A1</div>
+
+<div>Die Verbindung wird hergestellt.<br/>Bitte haben sie etwas Geduld.</div>
+
+
+<form action="<%= local_request_url %>"
+ name="submitform"
+ accept-charset="UTF-8"
+ method="post">
+<!-- enctype="multipart/form-data"-->
+
+
+
+<input type="hidden" name="XMLRequest" value="<?xml version='1.0' encoding='UTF-8'?><NullOperationRequest xmlns='http://www.buergerkarte.at/namespaces/securitylayer/1.2#'/>" />
+
+<input type="hidden" name="DataURL" value="<%= data_url %>" />
+
+<input class="ip" type="submit" value="Abschicken..." />
+
+</form>
+
+
+</div>
+<a class="big" href="/pdf-as/">zurück</a>
+</div>
+</body>
+</html>
diff --git a/webapp/jsp/redirect_refresh_page.jsp b/webapp/jsp/redirect_refresh_page.jsp new file mode 100644 index 0000000..ee047c9 --- /dev/null +++ b/webapp/jsp/redirect_refresh_page.jsp @@ -0,0 +1,36 @@ +<%@ page contentType="text/html; charset=UTF-8" %>
+<%
+ String refresh_url = (String)request.getAttribute("refresh_url");
+%>
+<!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" />
+
+<meta http-equiv="refresh" content="1"/>
+
+<title>PDF-AS Amtssignaturen Lokale Verbindung</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">Verbindung zu BKU/A1</div>
+
+<div>Bitte warten.<br/>Sobald ein Ergebnis vorliegt, wird es hier angezeigt.</div>
+
+<div>
+Diese Seite lädt sich automatisch neu.<br/>
+Sollte dies nicht funktionieren, so folgen Sie bitte diesem Link:<br/>
+<a href="<%= refresh_url %>"><%= refresh_url %></a>
+</div>
+
+</div>
+<a class="big" href="/pdf-as/">zurück</a>
+</div>
+</body>
+</html>
diff --git a/webapp/jsp/results.jsp b/webapp/jsp/results.jsp new file mode 100644 index 0000000..833c35a --- /dev/null +++ b/webapp/jsp/results.jsp @@ -0,0 +1,96 @@ +<%@ page contentType="text/html; charset=UTF-8" %>
+<%@ page import="java.util.List" %>
+<%@ page import="java.util.Iterator" %>
+<%@ page import="at.knowcenter.wag.egov.egiz.sig.SignatureResponse" %>
+<%
+ List results = (List) request.getAttribute("results");
+ Object bb = request.getAttribute("backbutton");
+ boolean backbutton = true;
+ if (bb != null && bb.equals("false"))
+ {
+ backbutton = false;
+ }
+%>
+<!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 Resultat</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">Resultat</div>
+
+<div class="contentsdiv">
+<%
+ Iterator resit = results.iterator();
+ while (resit.hasNext())
+ {
+ SignatureResponse result = (SignatureResponse) resit.next();
+%>
+
+
+
+
+<fieldset><legend><b>Zertifikat</b></legend>
+<table class="srt">
+ <tr><td>Signator:</td><td class="srtd"><%= result.getX509SubjectName() %></td></tr>
+ <tr><td>Aussteller:</td><td class="srtd"><%= result.getX509IssuerName() %></td></tr>
+ <tr><td>Seriennummer:</td><td class="srtd"><%= result.getX509SerialNumber() %></td></tr>
+
+<%
+ List public_properties = result.getPublicProperties();
+ Iterator propit = public_properties.iterator();
+ while (propit.hasNext())
+ {
+ String public_property = (String) propit.next();
+%>
+ <tr><td> Eigenschaft:</td><td class="srtd"><%= public_property %></td></tr>
+<%
+ }
+%>
+ <tr><td>Zertifikat:</td><td class="srcc_<%= result.getCertificateCheckCode() %>"><%= result.getCertificateCheckInfo() %></td></tr>
+
+</table>
+</fieldset>
+<fieldset><legend><b>Signatur-Check</b></legend>
+<div class="srsc_<%= result.getSignatureCheckCode() %>"><%= result.getSignatureCheckInfo() %></div>
+</fieldset>
+<fieldset><legend><b>Manifest-Check</b></legend>
+<div class="srmc_<%= result.getSignatureManifestCheckCode() %>"><%= result.getSignatureManifestCheckInfo() %></div>
+</fieldset>
+
+
+
+
+
+<%
+ if (resit.hasNext())
+ {
+%>
+ <br />
+<%
+ }
+ }
+%>
+</div>
+
+</div>
+<%
+ if (backbutton)
+ {
+%>
+<a class="big" href="/pdf-as/">zurück</a>
+<%
+ }
+%>
+</div>
+</body>
+</html>
+
+
+
+
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>
diff --git a/webapp/jsp/signupload.jsp b/webapp/jsp/signupload.jsp new file mode 100644 index 0000000..1474da5 --- /dev/null +++ b/webapp/jsp/signupload.jsp @@ -0,0 +1,81 @@ +<%@ page import="at.knowcenter.wag.egov.egiz.web.FormFields" %>
+<%@ page import="at.knowcenter.wag.egov.egiz.web.SessionAttributes" %>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html>
+<head>
+ <title>PDF-AS Amtssignaturen</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">Dokument Signatur erstellen</div>
+
+<form name="submitform"
+ enctype="multipart/form-data"
+ accept-charset="UTF-8"
+ method="post"
+ action="/pdf-as/Sign">
+
+<div class="contentsdiv">
+
+<!--
+<label class="uploadlabel">Name:</label><%= request.getSession().getAttribute(SessionAttributes.ATTRIBUTE_USER_NAME) %>
+-->
+<br />
+<br />
+
+<label class="uploadlabel">PDF Datei:</label>
+
+<input class="field" size="20" type="file" name="<%= FormFields.FIELD_UPLOAD %>" accept="application/pdf" />
+
+<br />
+
+<label class="uploadlabel">Signatur Typ:</label>
+
+<%= FormFields.generateTypeSelectBox() %>
+
+<br />
+
+<label class="uploadlabel">Signier Applikation:</label>
+
+<%= FormFields.generateConnectorSelectBox() %>
+
+<br />
+
+<label class="uploadlabel">Signier Modus:</label>
+
+<select name="<%= FormFields.FIELD_MODE %>" class="field">
+<option value="<%= FormFields.VALUE_MODE_BINARY %>" selected="selected">binär</option>
+<option value="<%= FormFields.VALUE_MODE_TEXTUAL %>">textuell</option>
+<option value="<%= FormFields.VALUE_MODE_DETACHED %>">detached</option>
+</select>
+
+<br />
+
+<label class="uploadlabel">Dokument:</label>
+<select name="<%= FormFields.FIELD_DOWNLOAD %>" class="field" >
+<option value="<%= FormFields.VALUE_DOWNLOAD_INLINE %>" selected="selected">im Browser anzeigen</option>
+<option value="<%= FormFields.VALUE_DOWNLOAD_ATTACHMENT %>">als Download</option>
+</select>
+
+
+<br />
+<br />
+
+
+<label class="uploadlabel"> </label>
+<input type="hidden" name="<%= FormFields.FIELD_PREVIEW %>" value="false" />
+<input class="button" type="submit" value="Signatur erstellen" />
+<input class="button" type="submit" value="Vorschau" onclick="document.submitform.<%= FormFields.FIELD_PREVIEW %>.value='true'" />
+
+
+</div>
+</form>
+
+</div>
+<a class="big" href="/pdf-as/">zurück</a>
+</div>
+</body>
+</html>
\ No newline at end of file diff --git a/webapp/jsp/verifylist.jsp b/webapp/jsp/verifylist.jsp new file mode 100644 index 0000000..b041c02 --- /dev/null +++ b/webapp/jsp/verifylist.jsp @@ -0,0 +1,96 @@ +<%@ page contentType="text/html; charset=UTF-8" %>
+<%@ page import="java.util.List" %>
+<%@ page import="at.knowcenter.wag.egov.egiz.pdf.SignatureHolder" %>
+<%@ 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.web.servlets.VerifyPreviewServlet" %>
+<%
+ SessionInformation si = (SessionInformation) request.getSession(false).getAttribute(SessionAttributes.ATTRIBUTE_SESSION_INFORMATION);
+ List signature_holders = si.signature_holders;
+
+%>
+<!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">
+<%
+ if (signature_holders.size() > 1)
+ {
+%>
+<div class="mainheadline">Extrahierte Signaturen</div>
+<%
+ }
+ else
+ {
+%>
+<div class="mainheadline">Extrahierte Signatur</div>
+<%
+ }
+%>
+
+
+<div class="contentsdiv">
+
+
+<%
+ for (int i = 0; i < signature_holders.size(); i++)
+ {
+ SignatureHolder holder = (SignatureHolder) signature_holders.get(i);
+%>
+
+
+<%= VerifyPreviewServlet.renderRequiredKeysText(holder.getSignatureObject()) %>
+
+<form action="<%= response.encodeURL(request.getContextPath() + "/VerifyPreview") %>"
+ accept-charset="UTF-8"
+ style="float:left;"
+ method="get"
+ target="_blank">
+<input type="hidden" name="<%= FormFields.FIELD_VERIFY_WHICH %>" value="<%= i %>" />
+<input type="hidden" name="<%= FormFields.FIELD_PREVIEW %>" value="false" />
+
+<input class="button" type="submit" value="Nur diese Signatur prüfen" />
+</form>
+
+<form action="<%= response.encodeURL(request.getContextPath() + "/VerifyPreview") %>"
+ accept-charset="UTF-8"
+ method="get"
+ style="float:left;"
+ target="_blank">
+<input type="hidden" name="<%= FormFields.FIELD_VERIFY_WHICH %>" value="<%= i %>" />
+<input type="hidden" name="<%= FormFields.FIELD_PREVIEW %>" value="true" />
+
+<input class="button" type="submit" value="Vorschau..." />
+</form>
+
+<hr style="clear:both;" />
+
+<%
+ }
+%>
+
+<form action="<%= response.encodeURL(request.getContextPath() + "/VerifyPreview") %>"
+ accept-charset="UTF-8"
+ method="get">
+<input type="hidden" name="<%= FormFields.FIELD_VERIFY_WHICH %>" value="<%= FormFields.VALUE_VERIFY_WHICH_ALL %>" />
+<input type="hidden" name="<%= FormFields.FIELD_PREVIEW %>" value="false" />
+
+<input class="button" type="submit" value="Alle prüfen" />
+</form>
+
+
+</div>
+
+</div>
+<a class="big" href="/pdf-as/">zurück</a>
+</div>
+</body>
+</html>
\ No newline at end of file diff --git a/webapp/jsp/verifypreview.jsp b/webapp/jsp/verifypreview.jsp new file mode 100644 index 0000000..cd4549c --- /dev/null +++ b/webapp/jsp/verifypreview.jsp @@ -0,0 +1,72 @@ +<%@ page contentType="text/html; charset=UTF-8" %>
+<%@ page import="java.util.List" %>
+<%@ page import="at.knowcenter.wag.egov.egiz.pdf.SignatureHolder" %>
+<%@ 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.web.servlets.VerifyPreviewServlet" %>
+<%
+ SessionInformation si = (SessionInformation) request.getSession(false).getAttribute(SessionAttributes.ATTRIBUTE_SESSION_INFORMATION);
+ List signature_holders = si.signature_holders;
+ Integer ver_wh = (Integer) request.getAttribute(FormFields.FIELD_VERIFY_WHICH);
+ int verify_which = ver_wh.intValue();
+ SignatureHolder signature_holder = (SignatureHolder) signature_holders.get(verify_which);
+%>
+<!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" />
+
+<script type="text/javascript">
+ function initSigValues()
+ {
+<%= VerifyPreviewServlet.renderRequiredKeysJavaScript(signature_holder.getSignatureObject(), "") %>
+ }
+</script>
+
+</head>
+
+<body onload="initSigValues()">
+<div class="maindiv">
+
+<h1>PDF-AS Amtssignaturen</h1>
+
+<div class="mainframe">
+<div class="mainheadline">Vorschau: Dokument Prüfen</div>
+
+<form action="<%= response.encodeURL(request.getContextPath() + "/VerifyPreview") %>"
+ name="submitform"
+ enctype="multipart/form-data"
+ accept-charset="UTF-8"
+ method="post">
+<div class="contentsdiv">
+
+
+<input type="hidden" name="<%= FormFields.FIELD_VERIFY_WHICH %>" value="<%= verify_which %>" />
+
+<div>Rekonstruktion der Signaturmarke:</div>
+<textarea class="previewfield" cols="80" rows="14" name="<%= FormFields.FIELD_RAW_DOCUMENT_TEXT %>"><%= signature_holder.getSignedText() %></textarea>
+
+<%= VerifyPreviewServlet.renderRequiredKeys(signature_holder.getSignatureObject(), "", false) %>
+
+<br />
+
+<input type="hidden" name="verify" value="false" />
+
+<input class="button" type="submit" value="Werte übernehmen" />
+
+<input class="button" type="submit" value="Werte übernehmen und prüfen" onclick="document.submitform.verify.value='true'" />
+
+<input class="button" type="submit" value="Abbrechen" onclick="window.close()" />
+
+</div>
+</form>
+
+</div>
+<!--<a class=\"big\" href="/pdf-as" onclick="window.close()">zurück</a>-->
+</div>
+</body>
+
+</html>
diff --git a/webapp/jsp/verifyupload.jsp b/webapp/jsp/verifyupload.jsp new file mode 100644 index 0000000..ab63e2f --- /dev/null +++ b/webapp/jsp/verifyupload.jsp @@ -0,0 +1,98 @@ +<%@ page import="at.knowcenter.wag.egov.egiz.web.FormFields" %>
+<%
+ boolean freetext_entry = false;
+ String parameter_freetext = (String)request.getParameter(FormFields.PARAMETER_FREE_TEXT_ENTRY);
+ if (parameter_freetext != null && parameter_freetext.equals(FormFields.VALUE_TRUE))
+ {
+ freetext_entry = true;
+ }
+%>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html>
+<head>
+ <title>PDF-AS Amtssignaturen</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">Dokument Signatur prüfen</div>
+
+
+<form name="submitform" enctype="multipart/form-data" method="post" action="/pdf-as/Verify">
+
+<div class="contentsdiv">
+
+<%
+ if (freetext_entry)
+ {
+%>
+<div>Vollständiger Dokumenttext:</div>
+<textarea class="previewfield" cols="80" rows="14" name="<%= FormFields.FIELD_UPLOAD %>">Hier bitte den vollständigen Dokumenttext samt Signaturblock eingeben.</textarea>
+<br />
+<%
+ }
+ else
+ {
+%>
+<br />
+
+<label class="uploadlabel">PDF Datei:</label>
+
+<input class="field" size="20" type="file" name="<%= FormFields.FIELD_UPLOAD %>" accept="application/pdf,text/plain" />
+<%
+ }
+%>
+
+<br />
+
+<label class="uploadlabel">Prüf Applikation:</label>
+
+<%= FormFields.generateConnectorSelectBox() %>
+
+<%
+ if (freetext_entry)
+ {
+%>
+
+<br />
+
+<label class="uploadlabel">Prüf Modus:</label>
+
+<span>textuell</span>
+<!--
+<input type="hidden" name="<%= FormFields.FIELD_MODE %>" value="<%= FormFields.VALUE_MODE_TEXTUAL %>" />
+-->
+<%
+ }
+ else
+ {
+%>
+<!--
+<select name="<%= FormFields.FIELD_MODE %>" class="field">
+<option value="<%= FormFields.VALUE_MODE_BINARY %>" selected="selected">binär</option>
+<option value="<%= FormFields.VALUE_MODE_TEXTUAL %>">textuell</option>
+</select>
+-->
+<%
+ }
+%>
+
+<br />
+<br />
+
+
+<label class="uploadlabel"> </label>
+<input type="hidden" name="<%= FormFields.FIELD_PREVIEW %>" value="false" />
+<input class="button" type="submit" value="Alle prüfen" />
+<input class="button" type="submit" value="Signaturen auflisten" onclick="document.submitform.<%= FormFields.FIELD_PREVIEW %>.value='true'" />
+
+</div>
+</form>
+
+</div>
+<a class="big" href="/pdf-as/">zurück</a>
+</div>
+</body>
+</html>
\ No newline at end of file |