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

	<xsl:template match="AccountManagement">
<!-- 		<xsl:param name="param_url">0</xsl:param> -->



		<xsl:variable name="param_url"><xsl:value-of select="@parameter" /></xsl:variable>
<!--		<xsl:variable name="var_get_AccountManagement">
			<xsl:call-template name="function_get_Management" >
				<xsl:with-param name="param_url"><xsl:value-of select="$param_url" /></xsl:with-param>
				<xsl:with-param name="param_kind">Account</xsl:with-param>
			</xsl:call-template>
		</xsl:variable>
		<xsl:variable name="var_get_edit">
			<xsl:call-template name="function_get_edit" >
				<xsl:with-param name="param_url"><xsl:value-of select="$param_url" /></xsl:with-param>
				<xsl:with-param name="param_kind">Account</xsl:with-param>
			</xsl:call-template>
		</xsl:variable>
		<xsl:variable name="var_get_changeAccountPassword">
			<xsl:call-template name="function_get_changeAccountPassword" >
				<xsl:with-param name="param_url"><xsl:value-of select="$param_url" /></xsl:with-param>
				<xsl:with-param name="param_kind">Account</xsl:with-param>
			</xsl:call-template>			
		</xsl:variable>-->
		<xsl:variable name="var_id"><xsl:value-of select="//XMLDisplay_UserData/single/account/ID" /></xsl:variable>

		<div id="AccountManagement">
			<div class="SubMenuBox">
				<span class="HeadLineFont">[<a href="{@parameter}"><xsl:value-of select="@label" /></a>]</span>
				<xsl:if test="Menu">
					<span class="LinkFont"><xsl:apply-templates select="Menu/Link" /></span><br/>
				</xsl:if>
			</div>

			<xsl:for-each select="p">
				<xsl:variable name="var_tmp_i"><xsl:value-of select="position()" /></xsl:variable>
				<xsl:choose>
					<xsl:when test="position()=last() and Parameter=$var_link_AccountManagement">
						<div class="ContentBox">
							<span class="ModulFunctionFont">Einzelansicht</span>
							<xsl:apply-templates select="../BasisElement" >
								<xsl:with-param name="param_url"><xsl:value-of select="$param_url" /></xsl:with-param>
							</xsl:apply-templates>
<!-- 							<xsl:apply-templates select="../single/account" /> -->
		
						</div>
					</xsl:when>
					<xsl:when test="Parameter=$var_link_makeNew and (../p[($var_tmp_i)-1]/Parameter=$var_link_AccountManagement)">
						<div class="ContentBox">
							<span class="ModulFunctionFont">neuen Account erstellen</span>
							<xsl:apply-templates select="../BasisElement" >
								<xsl:with-param name="param_url"><xsl:value-of select="$param_url" /></xsl:with-param>
							</xsl:apply-templates>							
<!-- 							<xsl:apply-templates select="../Formular/account" /> -->
<!-- 							<xsl:apply-templates select="../single/account" /> -->
						</div>
					</xsl:when>
					<xsl:when test="Parameter=$var_link_showSingle and (../p[($var_tmp_i)-1]/Parameter=$var_link_AccountManagement)">
<!--						<div class="ContentBox">
							<span class="ModulFunctionFont">zeige Account</span>
							<xsl:apply-templates select="../single/account" />
						</div>-->
						<div class="ContentBox">
							<span class="ModulFunctionFont">Einzelansicht <xsl:value-of select="BasisElement/@label" /></span>
							<xsl:apply-templates select="../BasisElement" >
								<xsl:with-param name="param_url"><xsl:value-of select="$param_url" /></xsl:with-param>
							</xsl:apply-templates>
						</div>
					</xsl:when>					
					<xsl:when test="Parameter=$var_link_edit and (../p[($var_tmp_i)-1]/Parameter=$var_link_AccountManagement)">
						<div class="ContentBox">
							<span class="ModulFunctionFont">bearbeite Account</span>
<!-- 							<xsl:apply-templates select="../Formular/account" /> -->
<!-- 							<xsl:apply-templates select="../single/account" /> -->
							<xsl:apply-templates select="../BasisElement" >
								<xsl:with-param name="param_url"><xsl:value-of select="$param_url" /></xsl:with-param>
							</xsl:apply-templates>
						</div>
					</xsl:when>
					<xsl:when test="Parameter=$var_link_changePassword and (../p[($var_tmp_i)-1]/Parameter=$var_link_AccountManagement)">
						<div class="ContentBox">
							<span class="ModulFunctionFont">ändere das Passwort</span>
							<xsl:apply-templates select="../Formular/password" />
						</div>
					</xsl:when>
				</xsl:choose>
			</xsl:for-each>
		</div>
	</xsl:template>

<!--	<xsl:template match="single/account">
		<xsl:param name="param_url">0</xsl:param>

		<div class="Account">
			<xsl:variable name="AccountEMail"><xsl:value-of select="EMail" /></xsl:variable>
			<xsl:variable name="ProfileEMail"><xsl:value-of select="profile/EMail" /></xsl:variable>
			
			<span class="SubjectFont">
				<xsl:value-of select="FirstName" /> <xsl:text disable-output-escaping="no">&#160;</xsl:text> <xsl:value-of select="Name" />
			</span>
			<span class="TextFont">				
				<xsl:value-of select="address/Street" />
				<xsl:text disable-output-escaping="no">&#160;</xsl:text>
				<xsl:value-of select="address/Streetnumber" /><br/>
				<xsl:value-of select="address/ZipCode" />
				<xsl:text disable-output-escaping="no">&#160;</xsl:text>
				<xsl:value-of select="address/City" /><br/> 
			
				online mit ID <xsl:value-of select="ID" />

				als
				<xsl:apply-templates select="BasisElement/Headline/Element" >
					<xsl:with-param name="param_url"><xsl:value-of select="$param_url" /></xsl:with-param>
					<xsl:with-param name="param_withoutLabel">true</xsl:with-param>
				</xsl:apply-templates>
				
			</span>
		</div>
		<div class="ContentBox">
			<span class="ModulFunctionFont">Einzelansicht <xsl:value-of select="BasisElement/@label" /></span>
			<xsl:apply-templates select="BasisElement" >
				<xsl:with-param name="param_url"><xsl:value-of select="$param_url" /></xsl:with-param>
			</xsl:apply-templates>
		</div>
	</xsl:template>-->


	<xsl:template match="Formular/password">
		<xsl:variable name="maxlength"> <xsl:value-of select="Password/@maxlength" /> </xsl:variable>
		<xsl:variable name="Function"> <xsl:value-of select="@function" /> </xsl:variable>

		<div class="formbox">
			<form name="Formular" method="post" action="" onsubmit="return chkFormular()">
				<div class="row">
					<span class="label">altes Passwort</span>
					<span class="element"><input type="password" name="oldpassword" size="11" maxlength="{$maxlength}" /></span>
				</div>
				<div class="row">
					<span class="label">neues Passwort</span>
					<span class="element"><input type="password" name="newpassword1" size="11" maxlength="{$maxlength}" /></span>
				</div>
				<div class="row">
					<span class="label">Wiederholung</span>
					<span class="element"><input type="password" name="newpassword2" size="11" maxlength="{$maxlength}" /></span>
				</div>								
				<input type="hidden" name="function" value="{$Function}"  />
				<div class="row">
					<span class="element">
						<span class="button"><input type="reset" value="Cancel" /></span>
						<span class="button"><input type="submit" name="Submit" value="OK" /></span>
					</span>
				</div>	
			</form>
		</div>
	</xsl:template>


<!--	<xsl:template match="Formular/account">
		<xsl:variable name="Function"><xsl:value-of select="../@function" /></xsl:variable>

		<xsl:variable name="FirstName"> <xsl:value-of select="FirstName" /> </xsl:variable>
		<xsl:variable name="Name"> <xsl:value-of select="Name" /> </xsl:variable>
		<xsl:variable name="EMail"> <xsl:value-of select="EMail" /> </xsl:variable>
		<xsl:variable name="Street"> <xsl:value-of select="address/Street" /> </xsl:variable>
		<xsl:variable name="Streetnumber"> <xsl:value-of select="address/Streetnumber" /> </xsl:variable>
		<xsl:variable name="ZipCode"> <xsl:value-of select="address/ZipCode" /> </xsl:variable>
		<xsl:variable name="City"> <xsl:value-of select="address/City" /> </xsl:variable>

		<xsl:variable name="FirstName_maxlength"> <xsl:value-of select="FirstName/@maxlength" /> </xsl:variable>
		<xsl:variable name="Name_maxlength"> <xsl:value-of select="Name/@maxlength" /> </xsl:variable>
		<xsl:variable name="EMail_maxlength"> <xsl:value-of select="EMail/@maxlength" /> </xsl:variable>
		<xsl:variable name="Street_maxlength"> <xsl:value-of select="address/Street/@maxlength" /> </xsl:variable>
		<xsl:variable name="Streetnumber_maxlength"> <xsl:value-of select="address/Streetnumber/@maxlength" /> </xsl:variable>
		<xsl:variable name="City_maxlength"> <xsl:value-of select="address/City/@maxlength" /> </xsl:variable>
		<xsl:variable name="ZipCode_maxlength"> <xsl:value-of select="address/ZipCode/@maxlength" /> </xsl:variable>
		
		<div class="formbox">
			<form name="Formular" method="post" action="" onsubmit="return chkFormular()">
				<div class="row">
					<span class="label">Vorname:</span>
					<span class="element"><input name="FirstName" type="text" class="width" maxlength="{$FirstName_maxlength}" value="{$FirstName}" /></span>
				</div>
				<div class="row">
					<span class="label">Name:</span>
					<span class="element"><input name="Name" type="text" class="width" maxlength="{$Name_maxlength}" value="{$Name}" /></span>
				</div>
				<div class="row">
					<span class="label">EMail:</span>
					<span class="element"><input name="EMail" type="text" class="width" maxlength="{$EMail_maxlength}" value="{$EMail}" /></span>
				</div>
				<div class="row">
					<span class="label">Strasse:</span>
					<span class="element"><input name="Street" type="text" class="width" maxlength="{$Street_maxlength}" value="{$Street}" /></span>
				</div>
				<div class="row">
					<span class="label">Hausnummer:</span>
					<span class="element"><input name="Streetnumber" type="text"  class="width" maxlength="{$Streetnumber_maxlength}" value="{$Streetnumber}" /></span>
				</div>
				<div class="row">
					<span class="label">Postleitzahl:</span>
					<span class="element"><input name="ZipCode" type="text"  class="width" maxlength="{$ZipCode_maxlength}" value="{$ZipCode}" /></span>
				</div>
				<div class="row">
					<span class="label">Stadt:</span>
					<span class="element"><input name="City" type="text"  class="width" maxlength="{$City_maxlength}" value="{$City}" /></span>
				</div>	
				<xsl:if test="NewPassword">
					<xsl:variable name="Password_maxlength"><xsl:value-of select="NewPassword/@maxlength" /></xsl:variable>
					<div class="row">
						<span class="label">Passwort:</span>
						<span class="element"><input type="password" name="password2" class="width" maxlength="{$Password_maxlength}" /></span>
					</div>
					<div class="row">
						<span class="label">Wiederholung:</span>
						<span class="element"><input type="password" name="password1" class="width" maxlength="{$Password_maxlength}" /></span>
					</div>								
				</xsl:if>
				<xsl:if test="Delete">
					<div class="row">
						<span class="label">Löschen:</span>
						<span class="element">
							<input type="checkbox" name="Delete" value="TRUE" />
							Account wird gelöscht
						</span>
					</div>
				</xsl:if>
				<input type="hidden" name="function" value="{$Function}"  />
				<div class="row">
					<span class="element">
						<span class="button"><input type="reset" value="Abbrechen" /></span>
						<span class="button"><input type="submit" name="Submit" value="OK" /></span>
					</span>
				</div>												
			</form>
		</div>
		<div class="ContentBox">
			<span class="ModulFunctionFont">Einzelansicht <xsl:value-of select="BasisElement/@label" /></span>
			<xsl:apply-templates select="BasisElement" >
			</xsl:apply-templates>
		</div>		
	</xsl:template>-->

</xsl:stylesheet>