NMPC#39478 -- Badgeprint voor bezoekers

svn path=/Website/branches/v2017.2/; revision=36518
This commit is contained in:
Arthur Egberink
2018-01-09 12:44:03 +00:00
parent e33c1d2cb0
commit a9a85e5ab8
2 changed files with 82 additions and 0 deletions

View File

@@ -638,6 +638,88 @@
</TABLE> </TABLE>
</xsl:template> </xsl:template>
<xsl:template match="bezoeker" mode="full">
<xsl:choose>
<xsl:when test="$mode='summary'"></xsl:when>
<xsl:otherwise>
<xsl:choose>
<xsl:when test="$srtnotificatiecode = 'BEZBAD'">
<xsl:apply-templates select="." mode="badge"/>
</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:call-template name="pageheader"/>
<xsl:apply-templates select="." mode="include"/>
<xsl:call-template name="pagefooter"/>
</xsl:element>
</html>
</xsl:otherwise>
</xsl:choose>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template match="bezoeker" mode="badge">
<html>
<xsl:call-template name="htmlhead"/>
<style>@page { size: auto; /* auto is the initial value */
margin: 0mm 0mm 0mm 5mm;
}</style>
<xsl:element name="body">
<xsl:if test="$mode!='email'">
<xsl:attribute name="onload">window.print();</xsl:attribute>
</xsl:if>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" WIDTH="300px">
<tr>
<td colspan="4" style="text-align:left;">
<xsl:element name="img">
<xsl:attribute name="width">300px</xsl:attribute>
<xsl:attribute name="src">../../cust/<xsl:value-of select="//header/custId"/>/xsl/nid.png</xsl:attribute>
</xsl:element>
</td>
<tr>
<td>&#xA0;</td>
<td style="height: 1px"><hr color="#000000"/></td>
</tr>
</tr>
<tr>
<td style="text-align:right; font-size:12px; font-weight: normal;">Visitor:&#xA0;&#xA0;</td>
<td style="text-align:left; font-size:12px; font-weight: bold;"><xsl:value-of select="naam"/></td>
</tr>
<tr>
<td style="height: 1px"></td>
</tr>
<tr>
<td style="text-align:right; font-size:12px; font-weight: normal;">Company:&#xA0;&#xA0;</td>
<td style="text-align:left; font-size:12px; font-weight: bold;"><xsl:value-of select="bedrijf"/></td>
</tr>
<tr>
<td style="height: 1px"></td>
</tr>
<tr>
<td style="text-align:right; font-size:12px; font-weight: normal;">Host:&#xA0;&#xA0;</td>
<td style="text-align:left; font-size:12px; font-weight: bold;"><xsl:value-of select="afspraak/host_user/naam_full"/></td>
</tr>
<tr>
<td style="height: 5px"></td>
</tr>
<tr>
<td/>
<td style="text-align:left; font-size:22px; color:#000000;font-weight: bold; normal;">
Guest / Visitor
</td>
</tr>
</TABLE>
</xsl:element>
</html>
</xsl:template>
<xsl:template match="key"> <xsl:template match="key">
</xsl:template> </xsl:template>

BIN
CUST/NMPC/xsl/nid.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 94 KiB