AASA#34404: Warm welkom bezoekers

svn path=/Website/branches/v2015.1/; revision=26983
This commit is contained in:
Daniëlle Tolner
2015-11-12 08:35:16 +00:00
parent 1321e4fa77
commit 9410465f13

126
CUST/AASA/xsl/bezoeker.xsl Normal file
View File

@@ -0,0 +1,126 @@
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxml="urn:schemas-microsoft-com:xslt" version="1.0">
<xsl:import href="./cust.xsl"/>
<xsl:template match="bezoeker" mode="include">
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" WIDTH="100%">
<TR>
<TD WIDTH="40" ROWSPAN="30" ID="LINKERMARGE"/>
<TD>
<table border="0" bordercolor="#ffffff" width="100%">
<tr>
<td class="caption" valign="top" colspan="2"><xsl:value-of select="//lcl/BEZ/bezoeker"/>&#xA0;<xsl:value-of select="naam"/><br/></td>
</tr>
<tr>
<td class="label" width="20%"><xsl:value-of select="//lcl/FAC/bedrijf"/></td>
<td class="value">: <xsl:value-of select="bedrijf"/></td>
</tr>
<xsl:for-each select="kenmerk[@type!='L' and @type!='l' and @type!='Q' and count(@xmlnode)=0]">
<xsl:sort select="@volgnummer" data-type="number"/>
<xsl:if test=".!=''">
<tr>
<td class="label"><xsl:value-of select="@naam"/>:</td>
<td class="value">: <xsl:value-of select="."/></td>
</tr>
</xsl:if>
</xsl:for-each>
<xsl:if test="deel"><tr><td></td><td class="value">: <xsl:value-of select="//lcl/BEZ/parkeerplaats_gereserveerd"/></td></tr></xsl:if>
<tr>
<td class="label" width="20%"><xsl:value-of select="//lcl/BEZ/op_bezoek_bij"/></td>
<td class="value" width="80%">: <xsl:value-of select="afspraak/host_user/naam_full"/></td>
</tr>
<xsl:if test="done"><tr></tr><tr><td class="label"><xsl:value-of select="//lcl/BEZ/tijd_bezoek"/></td><td class="value">: <xsl:value-of select="done/datum"/>&#xA0;<xsl:value-of select="done/tijd"/> - <xsl:value-of select="out/datum"/>&#xA0;<xsl:value-of select="out/tijd"/></td></tr></xsl:if>
</table>
</TD>
<TD WIDTH="30" ROWSPAN="30" ID="RECHTERMARGE"/>
</TR>
</TABLE>
</xsl:template>
<xsl:template match="bezoeker" mode="badge">
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" width="480px">
<tr>
<td colspan="3" style="text-align:center; font-size:32px; font-weight: bold; height:60px;">Bezoeker</td>
</tr>
<tr>
<td colspan="3" style="text-align:left; font-size:16px; font-weight: bold; height:20px; font-variant: small-caps;">
<xsl:value-of select="naam"/>
</td>
</tr>
<tr>
<td colspan="3" style="text-align:left; font-size:16px; font-weight: bold; font-variant: small-caps;">
<xsl:value-of select="bedrijf"/>
</td>
</tr>
<tr>
<td height="20px">&#xA0;</td>
</tr>
<tr>
<td style="font-weight: bold;">Date:</td>
<td style="font-weight: bold;">
<xsl:value-of select="done/datum"/>
</td>
<!--<td rowspan="2" style="text-align:right;">
<xsl:element name="img">
<xsl:attribute name="src">../../cust/<xsl:value-of select="//header/custId"/>/vis_logo.gif</xsl:attribute>
</xsl:element>
</td> -->
</tr>
<tr>
<td style="font-weight: bold;">Guest of:</td>
<td style="font-weight: bold; font-variant: small-caps;">
<xsl:value-of select="afspraak/host_user/naam_full"/>
</td>
</tr>
</TABLE>
</xsl:template>
<xsl:template match="bezoeker" mode="full">
<xsl:choose>
<xsl:when test="$mode='summary'"></xsl:when>
<xsl:otherwise>
<html>
<xsl:comment>================================ BEZOEKER ==============================</xsl:comment>
<xsl:comment>FACILITOR default XSL template for bezoeker</xsl:comment>
<xsl:call-template name="htmlhead"/>
<xsl:element name="body">
<xsl:if test="$mode!='email'">
<xsl:attribute name="onload">window.print();</xsl:attribute>
</xsl:if>
<xsl:choose>
<xsl:when test="$srtnotificatiecode = 'BEZBAD'">
<xsl:apply-templates select="." mode="badge"/>
</xsl:when>
<xsl:otherwise>
<xsl:call-template name="pageheader"/>
<xsl:apply-templates select="." mode="include"/>
<xsl:call-template name="pagefooter"/>
</xsl:otherwise>
</xsl:choose>
</xsl:element>
</html>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:stylesheet>