git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@766498 13f79535-47bb-0310-9956-ffa450edef68
180 lines
9.1 KiB
Plaintext
180 lines
9.1 KiB
Plaintext
<#--
|
|
Licensed to the Apache Software Foundation (ASF) under one
|
|
or more contributor license agreements. See the NOTICE file
|
|
distributed with this work for additional information
|
|
regarding copyright ownership. The ASF licenses this file
|
|
to you under the Apache License, Version 2.0 (the
|
|
"License"); you may not use this file except in compliance
|
|
with the License. You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing,
|
|
software distributed under the License is distributed on an
|
|
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
KIND, either express or implied. See the License for the
|
|
specific language governing permissions and limitations
|
|
under the License.
|
|
-->
|
|
|
|
<#assign docLangAttr = locale.toString()?replace("_", "-")>
|
|
<#assign langDir = "ltr">
|
|
<#if "ar.iw"?contains(docLangAttr?substring(0, 2))>
|
|
<#assign langDir = "rtl">
|
|
</#if>
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html lang="${docLangAttr}" dir="${langDir}" xmlns="http://www.w3.org/1999/xhtml">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
|
|
<title>${layoutSettings.companyName}: <#if (page.titleProperty)?has_content>${uiLabelMap[page.titleProperty]}<#else>${(page.title)?if_exists}</#if></title>
|
|
<#if layoutSettings.shortcutIcon?has_content>
|
|
<#assign shortcutIcon = layoutSettings.shortcutIcon/>
|
|
<#elseif layoutSettings.VT_SHORTCUT_ICON?has_content>
|
|
<#assign shortcutIcon = layoutSettings.VT_SHORTCUT_ICON.get(0)/>
|
|
</#if>
|
|
<#if shortcutIcon?has_content>
|
|
<link rel="shortcut icon" href="<@ofbizContentUrl>${shortcutIcon}</@ofbizContentUrl>" />
|
|
</#if>
|
|
<#if layoutSettings.javaScripts?has_content>
|
|
<#--layoutSettings.javaScripts is a list of java scripts. -->
|
|
<#-- use a Set to make sure each javascript is declared only once, but iterate the list to maintain the correct order -->
|
|
<#assign javaScriptsSet = Static["org.ofbiz.base.util.UtilMisc"].toSet(layoutSettings.javaScripts)/>
|
|
<#list layoutSettings.javaScripts as javaScript>
|
|
<#if javaScriptsSet.contains(javaScript)>
|
|
<#assign nothing = javaScriptsSet.remove(javaScript)/>
|
|
<script src="<@ofbizContentUrl>${javaScript}</@ofbizContentUrl>" type="text/javascript"></script>
|
|
</#if>
|
|
</#list>
|
|
</#if>
|
|
<#if layoutSettings.VT_HDR_JAVASCRIPT?has_content>
|
|
<#list layoutSettings.VT_HDR_JAVASCRIPT as javaScript>
|
|
<script src="<@ofbizContentUrl>${javaScript}</@ofbizContentUrl>" type="text/javascript"></script>
|
|
</#list>
|
|
</#if>
|
|
<#if layoutSettings.styleSheets?has_content>
|
|
<#--layoutSettings.styleSheets is a list of style sheets. So, you can have a user-specified "main" style sheet, AND a component style sheet.-->
|
|
<#list layoutSettings.styleSheets as styleSheet>
|
|
<link rel="stylesheet" href="<@ofbizContentUrl>${styleSheet}</@ofbizContentUrl>" type="text/css"/>
|
|
</#list>
|
|
</#if>
|
|
<#if layoutSettings.VT_STYLESHEET?has_content>
|
|
<#list layoutSettings.VT_STYLESHEET as styleSheet>
|
|
<link rel="stylesheet" href="<@ofbizContentUrl>${styleSheet}</@ofbizContentUrl>" type="text/css"/>
|
|
</#list>
|
|
</#if>
|
|
<#if layoutSettings.rtlStyleSheets?has_content && langDir == "rtl">
|
|
<#--layoutSettings.rtlStyleSheets is a list of rtl style sheets.-->
|
|
<#list layoutSettings.rtlStyleSheets as styleSheet>
|
|
<link rel="stylesheet" href="<@ofbizContentUrl>${styleSheet}</@ofbizContentUrl>" type="text/css"/>
|
|
</#list>
|
|
</#if>
|
|
<#if layoutSettings.VT_RTL_STYLESHEET?has_content && langDir == "rtl">
|
|
<#list layoutSettings.VT_RTL_STYLESHEET as styleSheet>
|
|
<link rel="stylesheet" href="<@ofbizContentUrl>${styleSheet}</@ofbizContentUrl>" type="text/css"/>
|
|
</#list>
|
|
</#if>
|
|
<#if layoutSettings.VT_EXTRA_HEAD?has_content>
|
|
<#list layoutSettings.VT_EXTRA_HEAD as extraHead>
|
|
${extraHead}
|
|
</#list>
|
|
</#if>
|
|
<#if lastParameters?exists><#assign parametersURL = "&" + lastParameters></#if>
|
|
</head>
|
|
<#if layoutSettings.headerImageLinkUrl?exists>
|
|
<#assign logoLinkURL = "${layoutSettings.headerImageLinkUrl}">
|
|
<#else>
|
|
<#assign logoLinkURL = "${layoutSettings.commonHeaderImageLinkUrl}">
|
|
</#if>
|
|
<body>
|
|
<div class="page-container">
|
|
<div class="hidden">
|
|
<a href="#column-container" title="${uiLabelMap.CommonSkipNavigation}" accesskey="2">
|
|
${uiLabelMap.CommonSkipNavigation}
|
|
</a>
|
|
</div>
|
|
<div id="masthead">
|
|
<ul>
|
|
<#if (userPreferences.COMPACT_HEADER)?default("N") == "Y">
|
|
<li class="logo-area">
|
|
<#if shortcutIcon?has_content>
|
|
<a href="<@ofbizUrl>${logoLinkURL}</@ofbizUrl>"><img src="<@ofbizContentUrl>${shortcutIcon}</@ofbizContentUrl>"/></a>
|
|
</#if>
|
|
</li>
|
|
<#if layoutSettings.topLines?has_content>
|
|
<#list layoutSettings.topLines as topLine>
|
|
<li>
|
|
<#if topLine.text?exists>
|
|
${topLine.text}<a href="<@ofbizUrl>${topLine.url?if_exists}</@ofbizUrl>">${topLine.urlText?if_exists}</a>
|
|
<#elseif topLine.dropDownList?exists>
|
|
<#include "component://common/webcommon/includes/insertDropDown.ftl"/>
|
|
<#else>
|
|
${topLine?if_exists}
|
|
</#if>
|
|
</li>
|
|
</#list>
|
|
<#else>
|
|
<li>${userLogin.userLoginId}</li>
|
|
</#if>
|
|
<li class="control-area">
|
|
<p class="collapsed">
|
|
<a href="<@ofbizUrl>logout</@ofbizUrl>">${uiLabelMap.CommonLogout}</a>
|
|
<a href="javascript:document.setUserPreferenceCompactHeaderN.submit()"> </a>
|
|
<form name="setUserPreferenceCompactHeaderN" method="post" action="<@ofbizUrl>setUserPreference</@ofbizUrl>" onSubmit="javascript:submitFormDisableSubmits(this)">
|
|
<input name="userPrefGroupTypeId" value="GLOBAL_PREFERENCES" type="hidden"/>
|
|
<input name="userPrefTypeId" value="COMPACT_HEADER" type="hidden"/>
|
|
<input name="userPrefValue" value="N" type="hidden"/>
|
|
</form
|
|
</p>
|
|
</li>
|
|
<#else>
|
|
<#if layoutSettings.headerImageUrl?exists>
|
|
<#assign headerImageUrl = layoutSettings.headerImageUrl>
|
|
<#elseif layoutSettings.commonHeaderImageUrl?exists>
|
|
<#assign headerImageUrl = layoutSettings.commonHeaderImageUrl>
|
|
<#elseif layoutSettings.VT_HDR_IMAGE_URL?exists>
|
|
<#assign headerImageUrl = layoutSettings.VT_HDR_IMAGE_URL.get(0)>
|
|
</#if>
|
|
<#if headerImageUrl?exists>
|
|
<li class="logo-area"><a href="<@ofbizUrl>${logoLinkURL}</@ofbizUrl>"><img alt="${layoutSettings.companyName}" src="<@ofbizContentUrl>${headerImageUrl}</@ofbizContentUrl>"/></a></li>
|
|
</#if>
|
|
<li class="control-area"<#if layoutSettings.headerRightBackgroundUrl?has_content> background="${layoutSettings.headerRightBackgroundUrl}"</#if>>
|
|
<#if userLogin?exists>
|
|
<p class="expanded">
|
|
<a href="<@ofbizUrl>logout</@ofbizUrl>">${uiLabelMap.CommonLogout}</a>
|
|
<a href="javascript:document.setUserPreferenceCompactHeaderY.submit()"> </a>
|
|
<form name="setUserPreferenceCompactHeaderY" method="post" action="<@ofbizUrl>setUserPreference</@ofbizUrl>" onSubmit="javascript:submitFormDisableSubmits(this)">
|
|
<input name="userPrefGroupTypeId" value="GLOBAL_PREFERENCES" type="hidden"/>
|
|
<input name="userPrefTypeId" value="COMPACT_HEADER" type="hidden"/>
|
|
<input name="userPrefValue" value="Y" type="hidden"/>
|
|
</form
|
|
</p>
|
|
<#if layoutSettings.topLines?has_content>
|
|
<#list layoutSettings.topLines as topLine>
|
|
<#if topLine.text?exists>
|
|
<p>${topLine.text}<a href="${topLine.url?if_exists}&externalLoginKey=${externalLoginKey}">${topLine.urlText?if_exists}</a></p>
|
|
<#elseif topLine.dropDownList?exists>
|
|
<p><#include "component://common/webcommon/includes/insertDropDown.ftl"/></p>
|
|
<#else>
|
|
<p>${topLine?if_exists}</p>
|
|
</#if>
|
|
</#list>
|
|
<#else>
|
|
<p>${userLogin.userLoginId}</p>
|
|
</#if>
|
|
<#else/>
|
|
<p>${uiLabelMap.CommonWelcome}! <a href="<@ofbizUrl>${checkLoginUrl}</@ofbizUrl>">${uiLabelMap.CommonLogin}</a></p>
|
|
</#if>
|
|
<ul id="preferences-menu">
|
|
<!-- <li class="first"><a href="<@ofbizUrl>Preferences</@ofbizUrl>">${uiLabelMap.CommonPreferences}</a></li> -->
|
|
<li class="first"><a href="<@ofbizUrl>LookupLocales</@ofbizUrl>">${uiLabelMap.CommonLanguageTitle} : ${locale.getDisplayName(locale)}</a></li>
|
|
<#if userLogin?exists>
|
|
<li><a href="<@ofbizUrl>LookupVisualThemes</@ofbizUrl>">${uiLabelMap.CommonVisualThemes}</a></li>
|
|
</#if>
|
|
<#include "component://common/webcommon/includes/helplink.ftl" />
|
|
</ul>
|
|
</li>
|
|
</#if>
|
|
</ul>
|
|
<br class="clear"/>
|
|
</div>
|