fac_like toegevoegd aan mldafm YKPN#58326
svn path=/Website/branches/v2019.1/; revision=43244
This commit is contained in:
@@ -2,9 +2,69 @@
|
||||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxml="urn:schemas-microsoft-com:xslt" version="1.0">
|
||||
<xsl:import href="../../../appl/shared/default.xsl"/>
|
||||
|
||||
<xsl:variable name="xsrtnotificatiecode">CUST09</xsl:variable>
|
||||
<xsl:variable name="xsrtnotificatiecode">MLDAFM</xsl:variable>
|
||||
|
||||
<xsl:template match="bezoeker" mode="badge">
|
||||
<xsl:template name="fac_liketab">
|
||||
<table width="99%" style="border-collapse: collapse; border: 0px solid #000;">
|
||||
<tr height="20px"><td colspan="4"><hr/></td></tr>
|
||||
<tr>
|
||||
<td colspan="4">
|
||||
Uw mening wordt gewaardeerd. Geef uw persoonlijk oordeel over melding <xsl:value-of select="discipline/srtdiscipline/prefix"/><xsl:value-of select="key"/> en help ons mee onze dienstverlening te verbeteren.
|
||||
<br/>Klik op een van de beoordelingen om direct uw mening te geven.
|
||||
</td>
|
||||
</tr>
|
||||
<tr height="20px"><td colspan="4"/></tr>
|
||||
<xsl:call-template name="fac_like"><xsl:with-param name="stars">5</xsl:with-param><xsl:with-param name="emptystars">0</xsl:with-param></xsl:call-template>
|
||||
</table>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template name="fac_like">
|
||||
<xsl:param name="stars"></xsl:param>
|
||||
<xsl:param name="emptystars"></xsl:param>
|
||||
<xsl:variable name="liketext">
|
||||
<xsl:choose>
|
||||
<xsl:when test="$stars=1">Zeer slecht</xsl:when>
|
||||
<xsl:when test="$stars=2">Slecht</xsl:when>
|
||||
<xsl:when test="$stars=3">Neutraal</xsl:when>
|
||||
<xsl:when test="$stars=4">Goed</xsl:when>
|
||||
<xsl:when test="$stars=5">Zeer goed</xsl:when>
|
||||
<xsl:otherwise></xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:variable>
|
||||
<xsl:if test="$stars > 0">
|
||||
<tr>
|
||||
<td>
|
||||
<xsl:for-each select="(//node())[$stars >= position()]">
|
||||
<xsl:element name="a"><xsl:attribute name="href">https://<xsl:value-of select="$FacilitorRoot"/>?<xsl:value-of select="//bookmarks/faclikedeeplink"/>&oordeel=<xsl:number value="number($stars)*2"/></xsl:attribute><img>
|
||||
<xsl:attribute name="frc">M=MENU:F=star-on.png:R=R16x16</xsl:attribute>
|
||||
<xsl:attribute name="border">0</xsl:attribute>
|
||||
<xsl:attribute name="align">bottom</xsl:attribute>
|
||||
<xsl:attribute name="alt">*</xsl:attribute>
|
||||
</img>
|
||||
|
||||
</xsl:element>
|
||||
</xsl:for-each>
|
||||
<xsl:for-each select="(//node())[$emptystars >= position()]">
|
||||
<xsl:element name="a"><xsl:attribute name="href">https://<xsl:value-of select="$FacilitorRoot"/>?<xsl:value-of select="//bookmarks/faclikedeeplink"/>&oordeel=<xsl:number value="number($stars)*2"/></xsl:attribute><img>
|
||||
<xsl:attribute name="frc">M=MENU:F=star-off.png:R=R16x16</xsl:attribute>
|
||||
<xsl:attribute name="border">0</xsl:attribute>
|
||||
<xsl:attribute name="align">bottom</xsl:attribute>
|
||||
<xsl:attribute name="alt">*</xsl:attribute>
|
||||
</img>
|
||||
|
||||
</xsl:element>
|
||||
</xsl:for-each> <xsl:value-of select="$liketext"/>
|
||||
</td>
|
||||
</tr>
|
||||
<xsl:call-template name="fac_like">
|
||||
<xsl:with-param name="stars"><xsl:number value="number($stars)-1"/></xsl:with-param>
|
||||
<xsl:with-param name="emptystars"><xsl:number value="number($emptystars)+1"/></xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</xsl:if>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<xsl:template match="bezoeker" mode="badge">
|
||||
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" WIDTH="100%">
|
||||
<tr>
|
||||
<td style="text-align:left; font-size:10px; font-weight: normal;">Naam bezoeker:</td>
|
||||
@@ -675,6 +735,11 @@ END:VCALENDAR
|
||||
</xsl:attribute>hier.</xsl:element>
|
||||
</td>
|
||||
</tr>
|
||||
<xsl:if test="$srtnotificatiecode = 'MLDAFM'">
|
||||
<tr>
|
||||
<td colspan="4"><xsl:call-template name="fac_liketab"/></td>
|
||||
</tr>
|
||||
</xsl:if>
|
||||
</table>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
|
||||
Reference in New Issue
Block a user