<%@ 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-Signaturen</title>
  <% session.removeAttribute(SessionAttributes.SIGNED_PDF_DOCUMENT); %>
</head>
<body>
<h1>PDF-Signaturen</h1>
<h2>Dokument Signatur erstellen</h2>
<div class="pdfasnote">Bitte w&auml;hlen Sie die zu signierende PDF-Datei. Diese wird mit Ihrer B&uuml;rgerkarte signiert.</div>
<form name="submitform"
      enctype="multipart/form-data"
      accept-charset="UTF-8"
      method="post"
      action="/pdf-as/Sign">
	<table border="0" cellspacing="0" cellpadding="4" id="pdfasupperformtable">
		<tr>
			<td nowrap="nowrap"><label>PDF Datei:</label></td>
			<td><input size="50" type="file" name="<%= FormFields.FIELD_UPLOAD %>" accept="application/pdf" /></td>
		</tr>
		<tr>
			<td nowrap="nowrap"><label>Signatur Typ:</label></td>
			<td>
				<select class="field" name="sig_type">
					<option value="SIGNATURBLOCK_DE" selected="selected">Standardsignatur Deutsch</option>
					<option value="SIGNATURBLOCK_EN" >Standardsignatur Englisch</option>
				</select>			
				<!-- %= // FormFields.generateTypeSelectBox() % -->
			</td>
		</tr>
		<tr>
			<td nowrap="nowrap"><label>Signatur Modus:</label></td>
			<td>
				<select name="<%= FormFields.FIELD_MODE %>">
				<option value="<%= FormFields.VALUE_MODE_BINARY %>">bin&auml;r</option>
				<option value="<%= FormFields.VALUE_MODE_TEXTUAL %>" selected="selected">textuell</option>
					<!--
						<option value="<%= FormFields.VALUE_MODE_DETACHED %>">detached</option>
					-->
				</select>
			</td>
		</tr>
	</table>
	<div class="pdfasnote"><span class="pdfasemphasis">Bitte beachten Sie:</span> Im textuellen Modus signierte Dokumente k&ouml;nnen nur dann gepr&uuml;ft werden, wenn das Zertifikat in einem Verzeichnisdienst verf&uuml;gbar ist.</div>

	<input type="hidden" name="connector" value="bku"/>
	<input type="hidden" name="<%= FormFields.FIELD_DOWNLOAD %>" value="<%= FormFields.VALUE_DOWNLOAD_ATTACHMENT %>"/>
	<input type="hidden" name="<%= FormFields.FIELD_PREVIEW %>" value="false" />

	<div class="pdfasverticalspace"></div>
	
	<jsp:include page="SIGNATURBLOCK_DE.jsp"/>
	
	<div class="pdfasnote">Das Erscheinungsbild der Signaturmarke kann abh&auml;ngig vom Signatur Typ, vom Signatur Modus, von der verwendeten B&uuml;rgerkarte, sowie von der verwendeten B&uuml;rgerkartenumgebung variieren.</div>
	<div>
		<!-- =============================================== Start BKU-Erkennung -->
		<iframe src="/pdf-as/bku-erkennung/bku-erkennung_iframe.html" width="152" height="57" id="sep_iframe" scrolling="no" marginheight="0" marginwidth="0" frameborder="0" allowtransparency="true"></iframe>
		<!-- ================================================ Stop BKU-Erkennung -->
	</div>
	<input type="submit" value="Signatur erstellen" />
	<input type="submit" value="Vorschau" onclick="document.submitform.<%= FormFields.FIELD_PREVIEW %>.value='true'" />
	
</form>

</body>
</html>