aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrpiazzi <rpiazzi@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c>2011-10-06 11:18:29 +0000
committerrpiazzi <rpiazzi@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c>2011-10-06 11:18:29 +0000
commit3975b0ce5bdeb448e7b3049b2b30c67866ccb8f3 (patch)
tree3d8ef6b5174d6a564176e9d4dc45e4706a6e1f9a
parent78c6b0e57cd3bda51254384a98006ebc6983d52e (diff)
downloadpdf-as-3-3975b0ce5bdeb448e7b3049b2b30c67866ccb8f3.tar.gz
pdf-as-3-3975b0ce5bdeb448e7b3049b2b30c67866ccb8f3.tar.bz2
pdf-as-3-3975b0ce5bdeb448e7b3049b2b30c67866ccb8f3.zip
Corrected reference path error
git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@852 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c
-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">