diff options
author | rpiazzi <rpiazzi@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c> | 2011-10-06 11:18:29 +0000 |
---|---|---|
committer | rpiazzi <rpiazzi@7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c> | 2011-10-06 11:18:29 +0000 |
commit | 3975b0ce5bdeb448e7b3049b2b30c67866ccb8f3 (patch) | |
tree | 3d8ef6b5174d6a564176e9d4dc45e4706a6e1f9a /pdf-as-web/src/main/webapp/sitemesh/standalone.jsp | |
parent | 78c6b0e57cd3bda51254384a98006ebc6983d52e (diff) | |
download | pdf-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
Diffstat (limited to 'pdf-as-web/src/main/webapp/sitemesh/standalone.jsp')
-rw-r--r-- | pdf-as-web/src/main/webapp/sitemesh/standalone.jsp | 29 |
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> > <a href=\""+serverUrl+"pdf-signatur.de.php\">PDF-Signatur</a> > PDF-Signatur \n</div>";
+ }
+ else {
+ replaceString = "<div id=\"breadcrumbs\"><em>You are here:</em> <a href=\""+serverUrl+"index.en.php\"> Start page </a> > <a href=\""+serverUrl+"pdf-signatur.en.php\">PDF-Signatures</a> > 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">
|