MNNL#51430 - mijn oordeel aan afmeld bon toegevoegd

svn path=/Website/branches/v2017.2/; revision=36178
This commit is contained in:
Dennis Hartmann
2017-12-01 08:51:36 +00:00
parent f5c5fe6120
commit b8cbf4b950

View File

@@ -6,7 +6,7 @@
<xsl:value-of select="substring(translate('$Revision$', '$ ', ''), 10)"/>
</xsl:variable>
<xsl:variable name="Xsrtnotificatiecode">CUST01</xsl:variable>
<xsl:variable name="Xsrtnotificatiecode">MLDAFM</xsl:variable>
<xsl:template match="bestelling" mode="include">
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" WIDTH="100%">
@@ -1298,6 +1298,79 @@
</xsl:choose>
</xsl:template>
<xsl:template name="fac_liketab">
<table width="99%">
<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">Beslist ontevreden</xsl:when>
<xsl:when test="$stars=2">Matig</xsl:when>
<xsl:when test="$stars=3">Ik verwacht niet anders</xsl:when>
<xsl:when test="$stars=4">Goed</xsl:when>
<xsl:when test="$stars=5">Perfect!</xsl:when>
<xsl:otherwise></xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:if test="$stars &gt; 0">
<tr>
<td style="padding:2px;">
<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"/>&amp;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"/>&amp;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">o</xsl:attribute>
</img>
</xsl:element>
</xsl:for-each>
&#xA0;
<xsl:element name="a">
<xsl:attribute name="href">
https://<xsl:value-of select="$FacilitorRoot"/>?<xsl:value-of select="//bookmarks/faclikedeeplink"/>&amp;oordeel=<xsl:number value="number($stars)*2"/>
</xsl:attribute>
<xsl:value-of select="$liketext"/>
</xsl:element>
</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="melding" mode="include">
<xsl:variable name="slatijd">
<xsl:choose>
@@ -1545,6 +1618,13 @@
</tr>
</xsl:for-each>
</xsl:if>
<!-- aanroep -->
<xsl:if test="$srtnotificatiecode = 'MLDAFM'">
<tr>
<td colspan="4"><xsl:call-template name="fac_liketab"/></td>
</tr>
</xsl:if>
</table>
</xsl:template>
@@ -1569,4 +1649,6 @@
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:stylesheet>