<%@ 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&auml;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">&nbsp;</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>