aboutsummaryrefslogtreecommitdiff
path: root/pdf-as-web
diff options
context:
space:
mode:
authorAndreas Fitzek <andreas.fitzek@iaik.tugraz.at>2014-06-10 10:24:54 +0200
committerAndreas Fitzek <andreas.fitzek@iaik.tugraz.at>2014-06-10 10:24:54 +0200
commit8aaf35c6e1da8d49e1c36d9b691ae00fb3730804 (patch)
tree8daf7ad8dfa6b074c5967b578135bc87c46673c1 /pdf-as-web
parent68a6b55068c5d5a1a2656f642c6b870fbe3cd141 (diff)
downloadpdf-as-4-8aaf35c6e1da8d49e1c36d9b691ae00fb3730804.tar.gz
pdf-as-4-8aaf35c6e1da8d49e1c36d9b691ae00fb3730804.tar.bz2
pdf-as-4-8aaf35c6e1da8d49e1c36d9b691ae00fb3730804.zip
process locale Parameter and provide it to BKU4.0.0-RC3
Diffstat (limited to 'pdf-as-web')
-rw-r--r--pdf-as-web/src/main/resources/template_sl.html17
-rw-r--r--pdf-as-web/src/main/webapp/index.jsp10
2 files changed, 23 insertions, 4 deletions
diff --git a/pdf-as-web/src/main/resources/template_sl.html b/pdf-as-web/src/main/resources/template_sl.html
index 8399706c..5568ec7a 100644
--- a/pdf-as-web/src/main/resources/template_sl.html
+++ b/pdf-as-web/src/main/resources/template_sl.html
@@ -31,7 +31,17 @@ div.content {
}
</style>
<script language="javascript" type="text/javascript">
+ function adaptWindowSizes() {
+ var w = Math.max(document.documentElement.clientWidth, window.innerWidth || 221)
+ var h = Math.max(document.documentElement.clientHeight, window.innerHeight || 221)
+ var appletWidth = document.getElementById("appletWidth");
+ var appletHeight = document.getElementById("appletHeight");
+ appletWidth.value = w;
+ appletHeight.value = h;
+ }
+
function onAnmeldeSubmit() {
+ adaptWindowSizes();
document.CustomizedForm.submit();
document.CustomizedForm.Senden.disabled=true;
document.CustomizedForm.Senden.hidden = "hidden";
@@ -45,12 +55,15 @@ div.content {
<div class="frameTC">
<div class="content">
<form name="CustomizedForm" action="##BKU##" method="post"
- enctype="multipart/form-data">
+ enctype="multipart/x-www-form-urlencoded">
<input class="button" type="submit" value="Starte Anmeldung"
name="Senden"> <input type="hidden"
name="XMLRequest" value="##XMLRequest##"> <input
type="hidden" name="DataURL" value="##DataURL##">
- <input type="hidden" name="locale_" value="##LOCALE##" />
+ <input type="hidden" name="locale" value="##LOCALE##" />
+ <input type="hidden" name="iframe_" value="on" />
+ <input type="hidden" id="appletWidth" name="appletWidth" value="221" />
+ <input type="hidden" id="appletHeight" name="appletHeight" value="221" />
##ADDITIONAL##
</form>
<span id="spin" style="display:block;
diff --git a/pdf-as-web/src/main/webapp/index.jsp b/pdf-as-web/src/main/webapp/index.jsp
index 42f2a168..d8729e8f 100644
--- a/pdf-as-web/src/main/webapp/index.jsp
+++ b/pdf-as-web/src/main/webapp/index.jsp
@@ -7,8 +7,8 @@
<body>
<form action="Sign" method="POST"
enctype="multipart/form-data">
- <input type="hidden" name="source" id="source" value="internal" /> <input
- type="file" name="pdf-file" id="pdf-file" accept="application/pdf">
+ <input type="hidden" name="source" id="source" value="internal" />
+ <input type="file" name="pdf-file" id="pdf-file" accept="application/pdf">
<%
if (request.getAttribute("FILEERR") != null) {
%>
@@ -60,6 +60,12 @@
<%
}
%>
+
+ <select name="locale" id="locale" size="3">
+ <option>EN</option>
+ <option>DE</option>
+ </select>
+
</form>
<p><small>Version: <%= PdfAsHelper.getVersion() %> - <%= PdfAsHelper.getSCMRevision() %></small></p>