aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pdf-as-web/src/main/webapp/sitemesh/standalone.jsp29
1 files changed, 26 insertions, 3 deletions
diff --git a/pdf-as-web/src/main/webapp/sitemesh/standalone.jsp b/pdf-as-web/src/main/webapp/sitemesh/standalone.jsp
index 0e21dbf..4b1ab94 100644
--- a/pdf-as-web/src/main/webapp/sitemesh/standalone.jsp
+++ b/pdf-as-web/src/main/webapp/sitemesh/standalone.jsp
@@ -50,6 +50,11 @@
String serverUrl=LocalRequestHelper.getLocalServerAddress(request,response);
String baseUrl=LocalRequestHelper.getLocalContextAddress(request,response);
+ /*if (serverUrl.contains("http")) {
+ serverUrl.replace("http","https");
+ baseUrl.replace("http","https");
+ }*/
+
String requestLang = (String)request.getParameter("lang");
String language = "";
@@ -113,8 +118,24 @@
}
}
}
+
}
+ //Insert sitemap
+ Element breadcrumbsDiv = source.getElementById("breadcrumbs");
+ if (breadcrumbsDiv!=null) {
+ String replaceString = "";
+ if (language.equals("de")) {
+ replaceString = "<div id=\"breadcrumbs\"><em>Sie sind hier:</em> <a href=\""+serverUrl+"index.de.php\"> Startseite </a> &gt; <a href=\""+serverUrl+"pdf-signatur.de.php\">PDF-Signatur</a> &gt; PDF-Signatur \n</div>";
+ }
+ else {
+ replaceString = "<div id=\"breadcrumbs\"><em>You are here:</em> <a href=\""+serverUrl+"index.en.php\"> Start page </a> &gt; <a href=\""+serverUrl+"pdf-signatur.en.php\">PDF-Signatures</a> &gt; PDF-Signature \n</div>";
+ }
+ phpHeader = phpHeader.replace(breadcrumbsDiv, replaceString);
+ }
+
+
+
//Insert a hidden language fake link, that is shown when the change of language is disabled
int positionToInsertLangLink = 0;
source = new Source(phpHeader);
@@ -141,6 +162,8 @@
phpHeader = firstPart+languagelink+secondPart;
+
+
%>
<title>PDF Signature</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
@@ -156,11 +179,11 @@
<meta name="Keywords" content="Citizen Card, Austrian Citizen Card, Citizen Card Austria" />
<decorator:head/>
<link rel="stylesheet" type="text/css" href="<%=baseUrl %>/css/pdfas-styles.css" />
- <link rel="shortcut icon" href="<%=serverUrl %>/dateien/favicon.ico" type="image/vnd.microsoft.icon" />
- <link rel="stylesheet" href="<%=serverUrl %>/style.css" type="text/css" />
+ <link rel="shortcut icon" href="<%=serverUrl %>dateien/favicon.ico" type="image/vnd.microsoft.icon" />
+ <link rel="stylesheet" href="<%=serverUrl %>style.css" type="text/css" />
</head>
- <body>
+ <body style="background:#e6f2fa">
<%= phpHeader %>
<!-- mitte -->
<div id="mitte">