default.xsl 6.01 KB
<?xml version="1.0" encoding="utf-8"?>

<xsl:stylesheet version="1.0" 	xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
								xmlns:php="http://php.net/xsl" >

	<xsl:import href="../../../../../System/xsl/default_Global.xsl"/>
	<xsl:import href="../../../../../System/xsl/default_Tools.xsl"/>
	<xsl:import href="../../../../../System/xsl/default_AccountManagement.xsl"/>
	<xsl:import href="../../../../../System/xsl/default_BasisElement.xsl"/>
	<xsl:import href="../../../../../System/xsl/default_BasisClipboard.xsl"/>
	<xsl:import href="../../../../../System/xsl/default_BasisElementAddons.xsl"/>

	<xsl:output method="html" encoding="utf-8"  indent="no" />

	<xsl:template match="/">
		<html>
			<head>
				<xsl:apply-templates select="//XMLSite_Head" />
				<script language="javascript" src="include/System/jscripts/fnc_Go.inc.js" type="text/javascript">intern</script>
				<script language="javascript" src="include/System/jscripts/fnc_makeDivElementVisible.inc.js" type="text/javascript">intern</script>
			</head>
			<body>
				<div class="Site">
					<xsl:apply-templates select="//XMLSite_Top" />
					<xsl:apply-templates select="//XMLSite_Left" />
					<xsl:apply-templates select="//XMLSite_Display" />
					<xsl:apply-templates select="//XMLSite_Right" />
				</div>
			</body>
		</html>
	</xsl:template>

	<xsl:template match="XMLSite_Head">
		<xsl:variable name="href"> <xsl:value-of select="XMLStylesheet/href" /> </xsl:variable>
		<xsl:variable name="name"> <xsl:value-of select="XMLStylesheet/name" /> </xsl:variable>
		<title><xsl:value-of select="title" /></title>
		<link rel="stylesheet" type="text/css" href="{$href}" title="{$name}" />
		<xsl:for-each select="/content/XMLSite_Display/BasisClipboard/Menu/Services/Link">
			<link rel="alternate" type="application/rss+xml" title="{@label}" href="{@url}?{@parameter}" />
		</xsl:for-each>
	</xsl:template>

	<xsl:template match="XMLSite_Top">
		<div class="Top">
			<div class="TopLeft">
				<a href="index.php"><img src="../../include/Forest/LocationPage/Design/default/Images/logo.jpg" alt="Location Logo" border="0" /></a>
			</div>
			<div class="TopRight">
				<h1><xsl:value-of select="@Subject" /></h1>
			</div>
		</div>
	</xsl:template>

	<xsl:template match="XMLSite_Left">
		<div class="Left">
			<!--<xsl:apply-templates select="XMLMenu_ProfileBC" />
				<h1><xsl:value-of select="@Subject" /></h1>-->
				<xsl:apply-templates select="XMLMenu_SubPages" />
		</div>
	</xsl:template>

	<xsl:template match="XMLSite_Display">
		<div class="Display">
			<xsl:if test="BasisClipboard">
				<div class="SubMenuBox">
					<h2><xsl:value-of select="BasisClipboard/@label" /></h2>
					<xsl:apply-templates select="BasisClipboard/Menu/Services/Link" />
				</div>
				<xsl:for-each select="BasisClipboard/List">
					<xsl:call-template name="function_listBasisElement" ><xsl:with-param name="param_url">?</xsl:with-param></xsl:call-template>
				</xsl:for-each>
<!-- 				<xsl:apply-templates select="BasisClipboard" /> -->
			</xsl:if>
			<xsl:if test="BasisElement">
				<div class="SubMenuBox">
					<h2>Einzelansicht</h2>
				</div>
				<div class="ContentBox">
					<xsl:apply-templates select="BasisElement" ></xsl:apply-templates>
				</div>
			</xsl:if>
		</div>
	</xsl:template>

	<xsl:template match="Menu/Services/Link">
		<a href="{@url}?{@parameter}"><img src="{@image}" alt="{@label}" border="0" /></a>
	</xsl:template>

	<xsl:template match="XMLSite_Right">
		<div class="Right">
			<div class="ShortBox">
			<h2><xsl:value-of select="BasisClipboard/@label" /></h2>
			<xsl:apply-templates select="BasisClipboard/Menu/Services/Link" />
				<xsl:for-each select="BasisClipboard/List/BasisElement">
					<!--<a href="{Link/@url}?{Link/@parameter}">-->
					<a href="{Link/@url}?&amp;p[0]=showSingle&amp;p[1]=ID&amp;p[2]={ID}" title="{Subheading/Element}">
						<h3>
							<xsl:for-each select="Subheading/Element">
								<xsl:choose>
									<xsl:when test="@objvar='Start'">
										<xsl:value-of select="@day" />.<xsl:value-of select="@month" />.<xsl:value-of select="@year" /><![CDATA[ ]]>
										<xsl:value-of select="@hour" />:<xsl:value-of select="@minute" />
									</xsl:when>
								</xsl:choose>
							</xsl:for-each>
						</h3>
						<xsl:value-of select="Headline/Element" />
					</a>
				</xsl:for-each>
			</div>
		</div>
	</xsl:template>

	<xsl:template match="XMLMenu_SubPages">
		<div class="ShortBox">
			<xsl:if test="BasisClipboard">
				<h2><xsl:value-of select="BasisClipboard/@label" /></h2>
				<xsl:for-each select="BasisClipboard/List/BasisElement">
					<!--[<a href="{Link/@url}?{Link/@parameter}"><xsl:value-of select="Headline/Element" /></a>]-->
					<!--<a href="{Link/@url}?{Link/@parameter}" title="{Subheading/Element}"><xsl:value-of select="Headline/Element" /></a><br/>-->
					<a href="{Link/@url}?&amp;p[0]=showSingle&amp;p[1]=ID&amp;p[2]={ID}" title="{Subheading/Element}"><xsl:value-of select="Headline/Element" /></a><br/>

				</xsl:for-each>
			</xsl:if>
		</div>
	</xsl:template>

	<xsl:template name="loop_FormularOption">
		<xsl:param name="index">0</xsl:param>
		<xsl:param name="max">0</xsl:param>
		<xsl:param name="selected"></xsl:param>

		<xsl:if test="$index &lt; $max">
			<xsl:choose>
				<xsl:when test="$index=$selected"><xsl:value-of select="php:function('XSLPHPFunction::getStartTagSelectOptionSelected', . )" disable-output-escaping="yes" /></xsl:when>
				<xsl:otherwise><xsl:value-of select="php:function('XSLPHPFunction::getStartTagSelectOption', . )" disable-output-escaping="yes" /></xsl:otherwise>
			</xsl:choose>
			<xsl:if test="$index &lt; 10">0</xsl:if>
			<xsl:value-of select="$index"/>
			<xsl:value-of select="php:function('XSLPHPFunction::getEndTagSelectOption', . )" disable-output-escaping="yes" />
			<xsl:call-template name="loop_FormularOption">
				<xsl:with-param name="index"><xsl:value-of select="$index + 1"/></xsl:with-param>
				<xsl:with-param name="max"><xsl:value-of select="$max"/></xsl:with-param>
				<xsl:with-param name="selected"><xsl:value-of select="$selected"/></xsl:with-param>
			</xsl:call-template>
		</xsl:if>
	</xsl:template>
</xsl:stylesheet>