Files
Facilitor/CUST/LOGI/xsl/cust.xsl
Robin Stoker fe35b1de6b LOGI#40234
svn path=/Website/branches/v2016.3/; revision=33958
2017-05-22 14:35:33 +00:00

1426 lines
60 KiB
XML
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?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="../../../appl/shared/default.xsl"/>
<xsl:variable name="Rev">
<!-- Revision van deze cust.xsl -->
<xsl:value-of select="substring(translate('$Revision$', '$ ', ''), 10)"/>
</xsl:variable>
<xsl:template name="pageheader">
<table border="0" width="100%" cellspacing="0" bgcolor="#FFFFFF">
<tr><td>
<table border="0" width="100%">
<tr>
<td width="34%" rowspan="2" align="center">
<xsl:choose>
<xsl:when test="$mode='email'">
<img src="cid:tmpl_logo.gif"/>
</xsl:when>
<xsl:otherwise>
<xsl:element name="img">
<xsl:attribute name="src">../../cust/<xsl:value-of select="//header/custId"/>/tmpl_logo.gif</xsl:attribute>
</xsl:element>
</xsl:otherwise>
</xsl:choose>
</td>
<td width="66%" align="right" valign="bottom" style="text-align:right">
<b><xsl:value-of select="//lcl/FAC/printdatum"/>&#xA0;</b>
<xsl:value-of select="//header/dateTime"/>
</td></tr><tr><td class="caption" style="padding-top:10px;padding-bottom:10px">
<xsl:choose>
<xsl:when test="/facilitor/melding">
<b>Call <xsl:value-of select="discipline/srtdiscipline/prefix"/><xsl:value-of select="key"/></b>
<xsl:if test="geprint = 1">(copy)</xsl:if>
</xsl:when>
<xsl:when test="/facilitor/opdracht">
<b>
<xsl:value-of select="opdrachttype/omschrijving"/>&#160;
<xsl:value-of select="melding/discipline/srtdiscipline/prefix"/>
<xsl:value-of select="melding/key"/>/<xsl:value-of select="bedrijfopdr_volgnr"/></b>
<xsl:if test="geprint = 1">(copy)</xsl:if>
</xsl:when>
</xsl:choose>
</td>
</tr>
</table>
</td></tr></table>
</xsl:template>
<xsl:template name="rsv_ruimte">
<xsl:param name="min_volgnr"/>
<tr>
<xsl:choose>
<xsl:when test="res_ruimte!=''">
<td class="tekstkop" colspan="10" frame="box" style="border-style:solid;border-width:0px;">
<br/><xsl:value-of select="van/datum"/>&#xA0;<xsl:if test="dirtlevel!='0'"><span class="fatal"><xsl:value-of select="//lcl/RES/ongeldig"/></span>&#xA0;</xsl:if><xsl:value-of select="//lcl/RES/deelreservering"/> <xsl:value-of select="volgnr"/>&#xA0;
<xsl:if test="string(res_activiteit/omschrijving)!=''">(<xsl:value-of select="res_activiteit/omschrijving"/>)&#xA0;</xsl:if>
<xsl:value-of select="res_ruimte/plaats/regio/district/locatie/omschrijving"/>
</td>
</xsl:when>
<!-- "roomservice" -->
<xsl:otherwise>
<td class="tekstkop" colspan="10" frame="box" style="border-style:solid;border-width:0px;">
<br/><xsl:value-of select="van/datum"/><xsl:if test="string(van/datum)!=string(tot/datum)">&#xA0;-&#xA0;<xsl:value-of select="tot/datum"/></xsl:if>&#xA0;<xsl:if test="dirtlevel!='0'"><span class="fatal"><xsl:value-of select="//lcl/RES/ongeldig"/></span>&#xA0;</xsl:if><xsl:value-of select="//lcl/RES/deelreservering"/> <xsl:value-of select="volgnr"/>&#xA0;
<xsl:value-of select="plaats/plaatsaanduiding"/>
</td>
</xsl:otherwise>
</xsl:choose>
</tr>
<xsl:if test="string(omschrijving)!=string(//reservering/rsv_ruimte[volgnr=$min_volgnr]/omschrijving)">
<tr>
<td class="label" frame="box" style="border-style:solid;border-width:0px;">- <xsl:value-of select="//lcl/FAC/omschrijving"/>:</td>
<td class="value" colspan="9" frame="box" style="border-style:solid;border-width:0px;">
<xsl:value-of select="omschrijving"/>
</td>
</tr>
</xsl:if>
<xsl:if test="string(opmerking)!=string(//reservering/rsv_ruimte[volgnr=$min_volgnr]/opmerking)">
<tr>
<td class="label" frame="box" style="border-style:solid;border-width:0px;">- <xsl:value-of select="//lcl/FAC/opmerking"/>:</td>
<td class="value" colspan="9" frame="box" style="border-style:solid;border-width:0px;">
<xsl:call-template name="linebreaks">
<xsl:with-param name="string" select="opmerking"/>
</xsl:call-template>
</td>
</tr>
</xsl:if>
<xsl:if test="string(contact_user/naam_full)!=string(//reservering/rsv_ruimte[volgnr=$min_volgnr]/contact_user/naam_full)">
<tr>
<td class="label" frame="box" style="border-style:solid;border-width:0px;">- <xsl:value-of select="//lcl/FAC/aanvrager"/>:</td>
<td class="value" colspan="9" frame="box" style="border-style:solid;border-width:0px;">
<xsl:value-of select="contact_user/naam_full"/>/ <xsl:value-of select="contact_user/werkplek/plaats/regio/district/locatie/omschrijving"/></td>
</tr>
</xsl:if>
<xsl:if test="string(host_user/naam_full)!=string(//reservering/rsv_ruimte[volgnr=$min_volgnr]/host_user/naam_full)">
<tr>
<td class="label" frame="box" style="border-style:solid;border-width:0px;">- <xsl:value-of select="//lcl/RES/gastheer_vrouw"/>:</td>
<td class="value" colspan="9" frame="box" style="border-style:solid;border-width:0px;">
<xsl:value-of select="host_user/naam_full"/>
</td>
</tr>
</xsl:if>
<xsl:if test="string(kostenplaats/nr)!=string(//reservering/rsv_ruimte[volgnr=$min_volgnr]/kostenplaats/nr)">
<tr>
<td class="label" frame="box" style="border-style:solid;border-width:0px;">- <xsl:value-of select="//lcl/FAC/kostenplaats"/>:</td>
<td class="value" colspan="9" frame="box" style="border-style:solid;border-width:0px;">
<xsl:value-of select="kostenplaats/nr"/>&#xA0;<xsl:value-of select="kostenplaats/omschrijving"/></td>
</tr>
</xsl:if>
<tr>
<th><xsl:value-of select="//lcl/FAC/omschrijving"/></th>
<th><xsl:value-of select="//lcl/RES/aantal"/></th>
<th style="text-align:right"><xsl:value-of select="//lcl/RES/prijs"/></th>
<!--<th width="80">Datum</th>-->
<th style="text-align:right"><xsl:value-of select="//lcl/RES/begintijd"/></th>
<th style="text-align:right"><xsl:value-of select="//lcl/RES/eindtijd"/></th>
<th><xsl:value-of select="//lcl/RES/status"/></th>
<th><xsl:value-of select="//lcl/RES/opstelling"/></th>
</tr>
<xsl:if test="res_ruimte!=''">
<tr>
<td class="result" style="text-align:left"><xsl:if test="dirtlevel!='0'"><span class="fatal"><xsl:value-of select="//lcl/RES/ongeldig"/></span>&#xA0;</xsl:if>
<xsl:value-of select="res_ruimte/nr"/>
<br/>(max. <xsl:value-of select="res_ruimte/bezoekers"/> <xsl:value-of select="//lcl/FAC/personen"/>)</td>
<td class="result" style="text-align:left">
<xsl:value-of select="bezoekers"/>&#xA0;<xsl:value-of select="//lcl/FAC/personen"/></td>
<td class="result" style="text-align:right">
<xsl:call-template name="europrijs">
<xsl:with-param name="prijs" select="prijs"/>
</xsl:call-template>
</td>
<!--<td class="result" style="text-align:right">
<xsl:value-of select="van/datum"/>
</td>-->
<td class="result" style="text-align:right">
<xsl:value-of select="van/tijd"/>
</td>
<td class="result" style="text-align:right">
<xsl:value-of select="tot/tijd"/>
</td>
<td class="result" style="text-align:left">
<xsl:value-of select="status_fo"/>
</td>
<td class="result" style="text-align:left">
<xsl:value-of select="res_ruimte/opstelling"/>
</td>
</tr>
</xsl:if>
<!-- rsv_deel-lijst gesorteerd op van-tijd -->
<xsl:for-each select="rsv_deel">
<xsl:sort select="van/tijd"/>
<tr>
<td class="result"><xsl:if test="dirtlevel!='0'"><span class="fatal"><xsl:value-of select="//lcl/RES/ongeldig"/></span>&#xA0;</xsl:if>
<xsl:value-of select="res_deel/deel/omschrijving"/>
</td>
<td class="result">
<xsl:value-of select="aantal"/>
</td>
<td class="result" style="text-align:right">
<xsl:call-template name="europrijs">
<xsl:with-param name="prijs" select="prijs"/>
</xsl:call-template>
</td>
<!--<td class="result" style="text-align:right">
<xsl:value-of select="van/datum"/>
</td>-->
<td class="result" style="text-align:right">
<xsl:value-of select="van/tijd"/>
</td>
<td class="result" style="text-align:right">
<xsl:value-of select="tot/tijd"/>
</td>
</tr>
</xsl:for-each>
<!-- rsv_artikel-lijst gesorteerd op van-tijd -->
<xsl:for-each select="rsv_artikel">
<xsl:sort select="levering/tijd"/>
<tr>
<td class="result">
<xsl:value-of select="res_artikel/omschrijving"/>
</td>
<td class="result">
<xsl:value-of select="aantal"/>
</td>
<td class="result" style="text-align:right">
<xsl:call-template name="europrijs">
<xsl:with-param name="prijs" select="prijs"/>
</xsl:call-template>
</td>
<!--<td class="result" style="text-align:right">
<xsl:value-of select="levering/datum"/>
</td>-->
<td class="result" style="text-align:right">
<xsl:value-of select="levering/tijd"/>
</td>
</tr>
</xsl:for-each>
<!-- totaal per deelreservering -->
<tr>
<td class="tekst" colspan="2" style="border-style:solid;border-width:0px;"><xsl:value-of select="//lcl/RES/totaal_deelreservering"/></td>
<td class="tekst" style="text-align:right;border-style:solid;border-width:0px;">
<xsl:call-template name="europrijs">
<xsl:with-param name="prijs" select="sum(prijs[string(number(.))!='NaN'])+sum(rsv_deel/prijs[string(number(.))!='NaN'])+sum(rsv_artikel/prijs[string(number(.))!='NaN'])"/>
</xsl:call-template>
</td>
</tr>
<!-- afspraak-lijst gesorteerd op naam -->
<xsl:for-each select="afspraak/bez_bezoeker">
<xsl:sort select="naam"/>
<xsl:choose>
<xsl:when test="position() = 1">
<tr>
<td class="tekst" style="border-style:solid;border-width:0px;">
<br/><xsl:value-of select="//lcl/BEZ/bezoekers"/></td>
</tr>
<tr>
<th><xsl:value-of select="//lcl/FAC/naam"/></th>
<th colspan="3"><xsl:value-of select="//lcl/FAC/bedrijf"/></th>
<th colspan="4"><xsl:value-of select="//lcl/BEZ/parkeerplaats"/></th>
</tr>
</xsl:when>
</xsl:choose>
<tr>
<td class="result">
<xsl:value-of select="naam"/>
</td>
<td class="result" colspan="3">
<xsl:value-of select="bedrijf"/>
</td>
<td class="result" colspan="4">
<xsl:value-of select="deel/omschrijving"/>
</td>
</tr>
</xsl:for-each>
<!-- kenmerk -->
<xsl:if test="kenmerk">
<tr>
<td colspan="5">
<table>
<xsl:for-each select="kenmerk[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>
</table>
</td>
</tr>
</xsl:if>
</xsl:template>
<xsl:template match="reservering" mode="include">
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" WIDTH="100%">
<TR>
<TD WIDTH="40" ROWSPAN="30" ID="LINKERMARGE"/>
<TD>
<!-- De algemene gegevens van de deelreservering met het laagste volgnummer worden gebruikt als referentie gegevens! -->
<xsl:variable name="min_volgnr">
<xsl:value-of select="//reservering/rsv_ruimte/volgnr[not(. &gt; //reservering/rsv_ruimte/volgnr)]"/>
</xsl:variable>
<table border="0" width="100%" bordercolor="#FFFFFF">
<tr><td height="20px"/></tr>
<xsl:choose>
<xsl:when test="$srtnotificatiecode='RESNEW'">
<xsl:if test="rsv_ruimte/status_fokey=1">
<td colspan="2" class="label">
<b>PLEASE NOTE: the status of the reservation is option. This means it can be changed or deleted until 1 day before the reservation begins.</b>
</td>
</xsl:if>
</xsl:when>
<xsl:when test="$srtnotificatiecode='RESUPD'">
<xsl:variable name="tracking_RESUPD">
<xsl:for-each select="rsv_ruimte/tracking/track[@code='RESUPD']">
<xsl:sort select="datum/timestamp" order="descending"/>
<xsl:if test="position()=1">
<xsl:if test="user/voornaam!=''"><xsl:copy-of select="user/voornaam"/><xsl:text> </xsl:text></xsl:if><xsl:if test="user/tussenvoegsel!=''"><xsl:copy-of select="user/tussenvoegsel"/><xsl:text> </xsl:text></xsl:if><xsl:if test="user/naam!=''"><xsl:copy-of select="user/naam"/></xsl:if>
</xsl:if>
</xsl:for-each>
</xsl:variable>
<tr>
<td colspan="2" class="label">
Dear <xsl:value-of select="rsv_ruimte[volgnr=$min_volgnr]/contact_user/voornaam"/>,<br/><br/>
Your reservation has been changed <xsl:if test="$tracking_RESUPD!=''">by <xsl:value-of select="$tracking_RESUPD"/></xsl:if>, reasons may be:<br/>
<li>on your request.</li>
<li>because the room was not used (No Show).</li>
<li>because of urgency.</li><br/><br/>
To make optimal use of available meeting rooms, it is important that the meeting room is reserved only if it is actually used.<br/>
Please adjust or delete your reservation in the reservation system if meeting times change or if your meeting is cancelled.
</td>
</tr>
<tr><td height="20px"/></tr>
</xsl:when>
<xsl:when test="$srtnotificatiecode='RESINF'">
<tr>
<td colspan="2" class="tekst">
Dear <xsl:value-of select="rsv_ruimte[volgnr=$min_volgnr]/contact_user/voornaam"/>,<br/><br/>
On <xsl:value-of select="rsv_ruimte[volgnr=$min_volgnr]/van/datum"/> from <xsl:value-of select="rsv_ruimte[volgnr=$min_volgnr]/van/tijd"/> until <xsl:value-of select="rsv_ruimte[volgnr=$min_volgnr]/tot/tijd"/> room <xsl:value-of select="rsv_ruimte[volgnr=$min_volgnr]/omschrijving"/> has been booked.<br/><br/>
To make optimal use of available meeting rooms, it is important that the meeting room is reserved only if it is actually used.<br/>
Please adjust or delete your reservation in the reservation system if meeting times change or if your meeting is cancelled.
</td>
</tr>
<tr><td height="20px"/></tr>
</xsl:when>
<xsl:when test="$srtnotificatiecode='RESDEL'">
<xsl:variable name="tracking_RESDEL">
<xsl:for-each select="rsv_ruimte/tracking/track[@code='RESDEL']">
<xsl:sort select="datum/timestamp" order="descending"/>
<xsl:if test="position()=1">
<xsl:if test="user/voornaam!=''"><xsl:copy-of select="user/voornaam"/><xsl:text> </xsl:text></xsl:if><xsl:if test="user/tussenvoegsel!=''"><xsl:copy-of select="user/tussenvoegsel"/><xsl:text> </xsl:text></xsl:if><xsl:if test="user/naam!=''"><xsl:copy-of select="user/naam"/></xsl:if>
</xsl:if>
</xsl:for-each>
</xsl:variable>
<tr>
<td colspan="2" class="tekst">
Dear <xsl:value-of select="rsv_ruimte[volgnr=$min_volgnr]/contact_user/voornaam"/>,<br/><br/>
Your reservation is deleted <xsl:if test="$tracking_RESDEL!=''">by <xsl:value-of select="$tracking_RESDEL"/></xsl:if>, reasons may be:<br/>
<li>on your request.</li>
<li>because the room was not used (No Show).</li>
<li>because of urgency.</li><br/><br/>
The reservation system will periodically check and adjust reserverions in the following cases:<br/>
1. <u>Simultaneous</u> 2 or more workplaces have been booked on your name; <i> only the last reservation will remain.</i><br/>
2. A (repeated) reservation has been booked <u>more than 14 days</u> in advance; <i>reservation up to 14 days in advance will remain.</i><br/><br/>
If you have any questions regarding the cancellation please contact the person that deleted your reservation.
</td>
</tr>
<tr><td height="20px"/></tr>
</xsl:when>
<xsl:otherwise>
<xsl:call-template name="res_begintext"/>
</xsl:otherwise>
</xsl:choose>
<tr>
<td colspan="2" class="caption" valign="top">
<xsl:choose>
<xsl:when test="@content='complete'"><xsl:value-of select="//lcl/RES/reservering"/>&#xA0;<xsl:value-of select="key"/></xsl:when>
<xsl:otherwise><xsl:value-of select="//lcl/RES/deelreservering"/>&#xA0;<xsl:value-of select="key"/> / <xsl:value-of select="$min_volgnr"/></xsl:otherwise>
</xsl:choose><br/>
<xsl:if test="string(rsv_ruimte[volgnr=$min_volgnr]/omschrijving)!=''">(<xsl:value-of select="rsv_ruimte[volgnr=$min_volgnr]/omschrijving"/>)</xsl:if>&#xA0;
</td>
</tr>
<tr>
<td width="20%" class="label"><xsl:value-of select="//lcl/FAC/aanvrager"/></td>
<td width="80%" class="value">: <xsl:value-of select="rsv_ruimte[volgnr=$min_volgnr]/contact_user/naam_full"/></td>
</tr>
<tr>
<td width="20%" class="label"><xsl:value-of select="//lcl/FAC/e-mail"/></td>
<td width="80%" class="value">: <xsl:value-of select="rsv_ruimte[volgnr=$min_volgnr]/contact_user/email"/></td>
</tr>
<tr>
<td width="20%" class="label"><xsl:value-of select="//lcl/FAC/locatie"/></td>
<td width="80%" class="value">: <xsl:value-of select="rsv_ruimte[volgnr=$min_volgnr]/contact_user/werkplek/plaats/regio/district/locatie/omschrijving"/></td>
</tr>
<tr><td height="20px"/></tr>
<xsl:if test="rsv_ruimte[volgnr=$min_volgnr]/contact_user/key!=ingevoerd_user/key">
<tr>
<td width="20%" class="label"><xsl:value-of select="//lcl/RES/behandeld_door"/></td>
<td width="80%" class="value">: <xsl:value-of select="ingevoerd_user/naam_full"/></td>
</tr>
<tr>
<td width="20%" class="label"><xsl:value-of select="//lcl/FAC/datum"/></td>
<td width="80%" class="value">: <xsl:value-of select="datum/datum"/></td>
</tr>
<tr><td height="20px"/></tr>
</xsl:if>
<tr><td colspan="2" class="tekstkop" style="text-decoration:underline"><xsl:value-of select="//lcl/RES/reserveringsgegevens"/></td></tr>
<tr><td height="5px"/></tr>
<xsl:if test="string(rsv_ruimte[volgnr=$min_volgnr]/opmerking)!=''">
<tr><td colspan="2" class="label"><xsl:value-of select="//lcl/FAC/opmerking"/></td></tr>
<tr><td colspan="2" class="value"><xsl:call-template name="linebreaks"><xsl:with-param name="string" select="rsv_ruimte[volgnr=$min_volgnr]/opmerking"/></xsl:call-template></td></tr>
<tr><td height="5px"/></tr>
</xsl:if>
<tr>
<td colspan="2">
<table cellpadding="0" cellspacing="0" border="1" bordercolor="#000000" frame="box">
<!-- rsv_ruimte -->
<xsl:for-each select="rsv_ruimte">
<xsl:sort select="van/timestamp"/>
<tr>
<xsl:choose>
<xsl:when test="res_ruimte!=''">
<td class="tekstkop" colspan="10" frame="box" style="border-style:solid;border-width:0px;">
<br/><xsl:value-of select="van/datum"/>&#xA0;<xsl:if test="dirtlevel!='0'"><span class="fatal"><xsl:value-of select="//lcl/RES/ongeldig"/></span>&#xA0;</xsl:if>
<xsl:value-of select="//lcl/RES/deelreservering"/>&#xA0;<xsl:value-of select="volgnr"/>&#xA0;<xsl:if test="string(res_activiteit/omschrijving)!=''">(<xsl:value-of select="res_activiteit/omschrijving"/>)&#xA0;</xsl:if><xsl:value-of select="res_ruimte/plaats/regio/district/locatie/omschrijving"/>
</td>
</xsl:when>
<!-- "roomservice" -->
<xsl:otherwise>
<td class="tekstkop" colspan="10" frame="box" style="border-style:solid;border-width:0px;">
<br/><xsl:value-of select="van/datum"/><xsl:if test="string(van/datum)!=string(tot/datum)">&#xA0;-&#xA0;<xsl:value-of select="tot/datum"/></xsl:if>&#xA0;<xsl:if test="dirtlevel!='0'"><span class="fatal"><xsl:value-of select="//lcl/RES/ongeldig"/></span>&#xA0;</xsl:if>
<xsl:value-of select="//lcl/RES/deelreservering"/>&#xA0;<xsl:value-of select="volgnr"/>&#xA0;<xsl:value-of select="plaats/plaatsaanduiding"/>
</td>
</xsl:otherwise>
</xsl:choose>
</tr>
<xsl:if test="string(omschrijving)!=string(//reservering/rsv_ruimte[volgnr=$min_volgnr]/omschrijving)">
<tr>
<td class="label" frame="box" style="border-style:solid;border-width:0px;">- <xsl:value-of select="//lcl/FAC/omschrijving"/>:</td>
<td class="value" colspan="9" frame="box" style="border-style:solid;border-width:0px;"><xsl:value-of select="omschrijving"/></td>
</tr>
</xsl:if>
<xsl:if test="string(opmerking)!=string(//reservering/rsv_ruimte[volgnr=$min_volgnr]/opmerking)">
<tr>
<td class="label" frame="box" style="border-style:solid;border-width:0px;">- <xsl:value-of select="//lcl/FAC/opmerking"/>:</td>
<td class="value" colspan="9" frame="box" style="border-style:solid;border-width:0px;"><xsl:call-template name="linebreaks"><xsl:with-param name="string" select="opmerking"/></xsl:call-template></td>
</tr>
</xsl:if>
<xsl:if test="string(contact_user/naam_full)!=string(//reservering/rsv_ruimte[volgnr=$min_volgnr]/contact_user/naam_full)">
<tr>
<td class="label" frame="box" style="border-style:solid;border-width:0px;">- <xsl:value-of select="//lcl/FAC/aanvrager"/>:</td>
<td class="value" colspan="9" frame="box" style="border-style:solid;border-width:0px;"><xsl:value-of select="contact_user/naam_full"/>/ <xsl:value-of select="contact_user/werkplek/plaats/regio/district/locatie/omschrijving"/></td>
</tr>
</xsl:if>
<xsl:if test="string(host_user/naam_full)!=string(//reservering/rsv_ruimte[volgnr=$min_volgnr]/host_user/naam_full)">
<tr>
<td class="label" frame="box" style="border-style:solid;border-width:0px;">- <xsl:value-of select="//lcl/RES/gastheer_vrouw"/>:</td>
<td class="value" colspan="9" frame="box" style="border-style:solid;border-width:0px;"><xsl:value-of select="host_user/naam_full"/></td>
</tr>
</xsl:if>
<xsl:if test="string(kostenplaats/nr)!=string(//reservering/rsv_ruimte[volgnr=$min_volgnr]/kostenplaats/nr)">
<tr>
<td class="label" frame="box" style="border-style:solid;border-width:0px;">- <xsl:value-of select="//lcl/FAC/kostenplaats"/>:</td>
<td class="value" colspan="9" frame="box" style="border-style:solid;border-width:0px;"><xsl:value-of select="kostenplaats/nr"/>&#xA0;<xsl:value-of select="kostenplaats/omschrijving"/></td>
</tr>
</xsl:if>
<tr>
<th><xsl:value-of select="//lcl/FAC/omschrijving"/></th>
<th><xsl:value-of select="//lcl/RES/aantal"/></th>
<!--<th width="80">Datum</th>-->
<th style="text-align:right"><xsl:value-of select="//lcl/RES/begintijd"/></th>
<th style="text-align:right"><xsl:value-of select="//lcl/RES/eindtijd"/></th>
<th><xsl:value-of select="//lcl/RES/status"/></th>
<th><xsl:value-of select="//lcl/RES/opstelling"/></th>
</tr>
<xsl:if test="res_ruimte!=''">
<tr>
<td class="result">
<xsl:if test="dirtlevel!='0'"><span class="fatal"><xsl:value-of select="//lcl/RES/ongeldig"/></span>&#xA0;</xsl:if><xsl:value-of select="res_ruimte/nr"/><br/>
(max. <xsl:value-of select="res_ruimte/bezoekers"/>&#xA0;<xsl:value-of select="//lcl/FAC/personen"/>)
</td>
<td class="result"><xsl:value-of select="bezoekers"/>&#xA0;<xsl:value-of select="//lcl/FAC/personen"/></td>
<!--<td class="result" style="text-align:right"><xsl:value-of select="van/datum"/></td>-->
<td class="result" style="text-align:right"><xsl:value-of select="van/tijd"/></td>
<td class="result" style="text-align:right"><xsl:value-of select="tot/tijd"/></td>
<td class="result"><xsl:value-of select="status_fo"/></td>
<td class="result"><xsl:value-of select="res_ruimte/opstelling"/></td>
</tr>
</xsl:if>
<!-- rsv_deel-lijst gesorteerd op van-tijd -->
<xsl:for-each select="rsv_deel">
<xsl:sort select="van/tijd"/>
<tr>
<td class="result">
<xsl:if test="dirtlevel!='0'"><span class="fatal"><xsl:value-of select="//lcl/RES/ongeldig"/></span>&#xA0;</xsl:if><xsl:value-of select="res_deel/deel/omschrijving"/>
</td>
<td class="result"><xsl:value-of select="aantal"/></td>
<!--<td class="result" style="text-align:right"><xsl:value-of select="van/datum"/></td>-->
<td class="result" style="text-align:right"><xsl:value-of select="van/tijd"/></td>
<td class="result" style="text-align:right"><xsl:value-of select="tot/tijd"/></td>
</tr>
</xsl:for-each>
<!-- rsv_artikel-lijst gesorteerd op van-tijd -->
<xsl:for-each select="rsv_artikel">
<xsl:sort select="levering/tijd"/>
<tr>
<td class="result"><xsl:value-of select="res_artikel/omschrijving"/></td>
<td class="result"><xsl:value-of select="aantal"/></td>
<!--<td class="result" style="text-align:right"><xsl:value-of select="levering/datum"/></td>-->
<td class="result" style="text-align:right"><xsl:value-of select="levering/tijd"/></td>
</tr>
</xsl:for-each>
<!-- afspraak-lijst gesorteerd op naam -->
<xsl:for-each select="afspraak/bezoeker">
<xsl:sort select="naam"/>
<xsl:choose>
<xsl:when test="position() = 1">
<tr>
<td class="tekst" style="border-style:solid;border-width:0px;"><br/><xsl:value-of select="//lcl/BEZ/bezoekers"/></td>
</tr>
<tr>
<th><xsl:value-of select="//lcl/FAC/naam"/></th>
<th colspan="3"><xsl:value-of select="//lcl/FAC/bedrijf"/></th>
<th colspan="4"><xsl:value-of select="//lcl/BEZ/parkeerplaats"/></th>
</tr>
</xsl:when>
</xsl:choose>
<tr>
<td class="result"><xsl:value-of select="naam"/></td>
<td class="result" colspan="3"><xsl:value-of select="bedrijf"/></td>
<td class="result" colspan="4"><xsl:value-of select="deel/omschrijving"/></td>
</tr>
</xsl:for-each>
<!-- kenmerk-lijst -->
<xsl:if test="kenmerk">
<tr><td colspan="5">
<table>
<xsl:for-each select="kenmerk[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>
</table>
</td></tr>
</xsl:if>
</xsl:for-each>
</table>
</td>
</tr>
<xsl:choose>
<xsl:when test="rsv_ruimte[volgnr=$min_volgnr]/res_ruimte/key='241' or rsv_ruimte[volgnr=$min_volgnr]/res_ruimte/key='341'">
<tr>
<td colspan="2" style="border-style:solid;border-width:0px;">
<br/>
<br/><b style="color:red">LET OP !!</b>
<span style="color:red">
<br/>Lunchen met grote groepen in het Bedrijfsrestaurant is tussen 12:00 uur en 13:00 uur niet toegestaan.
<br/>Gelieve hier bij het maken van de planning rekening mee te houden.
</span>
<br/>
<br/>Het pand sluit om 21.00 uur. Wil je langer aanwezig zijn kun je dit aanvragen via het <a href="http://ws2.global.logica.com/sites/011714/keesomlaan/00%20Shared%20Documents/Formulier%20voor%20extra%20openingen%20en%20sluitingen%20V1.1.doc">Aanvraagformulier Overwerken</a>.
<br/>
<br/>• Facilitaire ondersteuning kun je via: <a href="http://goto/ask-fls">http://goto/ask-fls</a> aanvragen. (Product / Dienstgroep: Event Ondersteuning)
<br/>• Event Checklist: <a href="http://ws2.global.logica.com/sites/011714/keesomlaan/00%20Shared%20Documents/Checklists%20Events/Checklist%20events%20Keesomlaan%2020060221%20V1.0.xls">Klik Hier</a>
<br/>• Voor aanvullende informatie over deze locatie (Routebeschrijving etc.): <a href="http://ws2.global.logica.com/sites/011714/keesomlaan/00%20Shared%20Documents/Route/Route_Amstelveen_Keesomlaan_NL.pdf">Klik Hier</a>
<br/>• De cateringmogelijkheden kun je bekijken in de <a href="http://ws2.global.logica.com/sites/011714/keesomlaan/00%20Shared%20Documents/Bedrijfsrestaurant/Banquetingmap%20Prorest%20Keesomlaan 20100901.docx">banquetingmap</a> van Prorest.
<br/>• Bestellingen kunnen worden ingevuld op het <a href="http://ws2.global.logica.com/sites/011714/keesomlaan/00 Shared Documents/Bedrijfsrestaurant/Bestelformulier%20Prorest%20Keesomlaan 20100825.xlsx">bestelformulier</a>.
<br/>• Vervolgens het formulier mailen naar: <a href="mailto:bedrijfsrestaurant.keesomlaan@logica.com">NL Bedrijfsrestaurant Keesomlaan</a>
</td>
</tr>
</xsl:when>
<xsl:when test="rsv_ruimte[volgnr=$min_volgnr]/res_ruimte/key='321'">
<tr>
<td colspan="2" style="border-style:solid;border-width:0px;">
<br/>
<br/><b style="color:red">Aan het gebruik van de bar zijn kosten verbonden. Neem s.v.p. contact op met de facilitair Locatie Manager (FLM) via mailadres: </b><a href="mailto:Facilities.Keesomlaan@logica.com">NL Facilities Keesomlaan</a>
<br/>
<br/>Het pand sluit om 21.00 uur. Wil je langer aanwezig zijn kun je dit aanvragen via het <a href="http://ws2.global.logica.com/sites/011714/keesomlaan/00%20Shared%20Documents/Formulier%20voor%20extra%20openingen%20en%20sluitingen%20V1.1.doc">Aanvraagformulier Overwerken</a>.
<br/>
<br/>• Facilitaire ondersteuning kun je via: <a href="http://goto/ask-fls">http://goto/ask-fls</a> aanvragen. (Product / Dienstgroep: Event Ondersteuning)
<br/>• Event Checklist: <a href="http://ws2.global.logica.com/sites/011714/keesomlaan/00%20Shared%20Documents/Checklists%20Events/Checklist%20events%20Keesomlaan%2020060221%20V1.0.xls">Klik Hier</a>
<br/>• Voor aanvullende informatie over deze locatie (Routebeschrijving etc.): <a href="http://ws2.global.logica.com/sites/011714/keesomlaan/00%20Shared%20Documents/Route/Route_Amstelveen_Keesomlaan_NL.pdf">Klik Hier</a>
<br/>• De cateringmogelijkheden kun je bekijken in de <a href="http://ws2.global.logica.com/sites/011714/keesomlaan/00%20Shared%20Documents/Bedrijfsrestaurant/Banquetingmap%20Prorest%20Keesomlaan 20100901.docx">banquetingmap</a> van Prorest.
<br/>• Bestellingen kunnen worden ingevuld op het <a href="http://ws2.global.logica.com/sites/011714/keesomlaan/00 Shared Documents/Bedrijfsrestaurant/Bestelformulier%20Prorest%20Keesomlaan 20100825.xlsx">bestelformulier</a>.
<br/>• Vervolgens het formulier mailen naar: <a href="mailto:bedrijfsrestaurant.keesomlaan@logica.com">NL Bedrijfsrestaurant Keesomlaan</a>
</td>
</tr>
</xsl:when>
<xsl:otherwise/>
</xsl:choose>
<xsl:call-template name="res_endtext">
<xsl:with-param name="min_volgnr" select="$min_volgnr"/>
</xsl:call-template>
</table>
</TD>
<TD WIDTH="30" ROWSPAN="30" ID="RECHTERMARGE"/>
</TR>
</TABLE>
</xsl:template>
<xsl:template match="melding" mode="include">
<table border="0" width="100%" cellpadding="2">
<xsl:choose>
<xsl:when test="/facilitor/opdracht">
<tr>
<td colspan="2" class="caption" style="padding-top:20px;padding-bottom:20px">
<b>Melding <xsl:value-of select="discipline/srtdiscipline/prefix"/><xsl:value-of select="key"/></b>
<xsl:if test="geprint = 1">(copy)</xsl:if>
</td>
</tr>
</xsl:when>
<xsl:otherwise>
<tr height="20"><td></td></tr>
</xsl:otherwise>
</xsl:choose>
<xsl:if test="not(//opdracht/extra_key) and extra_key">
<xsl:variable name="mx_key"><xsl:value-of select="extra_key"/></xsl:variable>
<tr>
<td align="right" valign="top" style="padding-top:10px;">
<b><xsl:value-of select="//lcl/FAC/bericht"/>:</b>
</td>
<td colspan="3" style="padding-top:10px;">
<xsl:call-template name="linebreaks">
<xsl:with-param name="string" select="notes/note[key=$mx_key]/omschrijving"/>
</xsl:call-template>
</td>
</tr>
<tr>
<td colspan="4" style="padding-bottom:20px;">
<hr/>
</td>
</tr>
</xsl:if>
<tr>
<td align="right" width="16%">
<b><xsl:value-of select="//lcl/FAC/aanvrager"/>:</b>
</td>
<td align="left" width="34%">
<xsl:value-of select="voor/naam_full"/>
</td>
<td align="right" width="16%">
<b><xsl:value-of select="//lcl/FAC/telefoon"/>:</b>
</td>
<td align="left" width="34%">
<xsl:if test="voor/telefoonnr=''">-</xsl:if>
<xsl:value-of select="voor/telefoonnr"/>
</td>
</tr>
<tr>
<td align="right">
<b><xsl:value-of select="//lcl/FAC/locatie"/>:</b>
</td>
<td align="left">
<xsl:value-of select="voor/werkplek/plaats/regio/district/locatie/code"/>&#xA0;
<xsl:if test="voor/werkplek/plaats/regio/district/locatie/omschrijving!=''">(<xsl:value-of select="voor/werkplek/plaats/regio/district/locatie/omschrijving"/>)</xsl:if>
</td>
<td align="right" valign="top">
<b><xsl:value-of select="//lcl/FAC/afdeling"/>:</b>
</td>
<td align="left">
<xsl:value-of select="voor/afdeling/omschrijving"/>
</td>
</tr>
<tr height="40px">
<td colspan="4">
<hr/>
</td>
</tr>
<tr>
<td align="right">
<b><xsl:value-of select="//lcl/FAC/locatie"/>:</b>
</td>
<td align="left">
<xsl:value-of select="plaats/regio/district/locatie/adres"/><br/>
<xsl:value-of select="plaats/regio/district/locatie/postcode"/>&#xA0;&#xA0;
<xsl:value-of select="plaats/regio/district/locatie/plaats"/>
</td>
<td align="right">
<b><xsl:value-of select="//lcl/MLD/melddatum"/>:</b>
</td>
<td align="left">
<xsl:value-of select="gemeld/datum"/>&#xA0;
<xsl:value-of select="gemeld/tijd"/>
</td>
</tr>
<tr>
<xsl:choose>
<xsl:when test="plaats/@type='T'">
<td align="right">
<b><xsl:value-of select="//lcl/FAC/terrein"/>:</b>
</td>
<td align="left">
<xsl:value-of select="plaats/regio/district/locatie/terrein/code"/>-<xsl:value-of select="plaats/regio/district/locatie/terrein/naam"/></td>
</xsl:when>
<xsl:otherwise>
<td align="right">
<b><xsl:value-of select="//lcl/FAC/gebouw"/>:</b>
</td>
<td align="left">
<xsl:value-of select="plaats/regio/district/locatie/gebouw/code"/>-<xsl:value-of select="plaats/regio/district/locatie/gebouw/naam"/></td>
</xsl:otherwise>
</xsl:choose>
<td align="right">
<b><xsl:value-of select="//lcl/MLD/ordernr"/>:</b>
</td>
<td align="left">
<xsl:value-of select="kenmerk[@naam='Ordernr']"/>
</td>
</tr>
<tr>
<xsl:if test="plaats/@type='T' or plaats/@type='G'">
<td colspan="2"/>
</xsl:if>
<xsl:if test="plaats/@type!='T' and plaats/@type!='G'">
<td align="right">
<b><xsl:value-of select="//lcl/FAC/bouwlaag"/>:</b>
</td>
<td align="left">
<xsl:value-of select="plaats/regio/district/locatie/gebouw/verdieping/code"/>&#xA0;
<xsl:if test="plaats/regio/district/locatie/gebouw/verdieping/omschrijving!=''">(<xsl:value-of select="plaats/regio/district/locatie/gebouw/verdieping/omschrijving"/>)</xsl:if>
</td>
</xsl:if>
<td align="right">
<b>Scheduled completion date:</b>
</td>
<td align="left">
<xsl:value-of select="datum_gepland/datum"/></td>
</tr>
<tr>
<xsl:if test="plaats/@type='R'">
<td align="right" valign="top">
<b><xsl:value-of select="//lcl/FAC/ruimte"/>:</b>
</td>
<td align="left">
<xsl:value-of select="plaats/regio/district/locatie/gebouw/verdieping/ruimte/nr"/>&#xA0;
<xsl:if test="plaats/regio/district/locatie/gebouw/verdieping/ruimte/omschrijving!=''">(<xsl:value-of select="plaats/regio/district/locatie/gebouw/verdieping/ruimte/omschrijving"/>)</xsl:if>
</td>
</xsl:if>
<xsl:if test="plaats/@type!='R'">
<td colspan="2"/>
</xsl:if>
<td align="right">
<b><xsl:value-of select="//lcl/MLD/status"/>:</b>
</td>
<td align="left">
<xsl:value-of select="status"/>
</td>
</tr>
<tr height="30px">
<td colspan="4"/>
</tr>
<tr>
<td align="right">
<b><xsl:value-of select="//lcl/MLD/stdmelding"/>:</b>
</td>
<td align="left">
<xsl:if test="stdmelding/omschrijving=''">-</xsl:if>
<xsl:value-of select="stdmelding/omschrijving"/>
</td>
<td align="right">
<b>Product / service group:</b>
</td>
<td align="left">
<xsl:if test="discipline/omschrijving=''">-</xsl:if>
<xsl:value-of select="discipline/omschrijving"/>
</td>
</tr>
<xsl:comment>als we binnen een opdracht zijn, tonen we de meldingtekst niet</xsl:comment>
<tr>
<td align="right" valign="top">
<b><xsl:value-of select="//lcl/FAC/omschrijving"/>:</b>
</td>
<td align="left" colspan="3">
<xsl:call-template name="linebreaks">
<xsl:with-param name="string" select="omschrijving"/>
</xsl:call-template>
</td>
</tr>
<xsl:for-each select="kenmerk[@type!='L' and @type!='Q']">
<xsl:sort select="@volgnummer" data-type="number"/>
<xsl:if test=".!=''">
<tr>
<td align="right">
<b>
<xsl:value-of select="@naam"/>:</b>
</td>
<td colspan="3">
<xsl:value-of select="."/>
</td>
</tr>
</xsl:if>
</xsl:for-each>
<xsl:if test="count(deel)&gt;0">
<xsl:for-each select="deel">
<xsl:sort select="omschrijving"/>
<tr>
<xsl:choose>
<xsl:when test="position()=1">
<td align="right" valign="top">
<b><xsl:value-of select="//lcl/MLD/objecten"/>:</b>
</td>
</xsl:when>
<xsl:otherwise>
<td/>
</xsl:otherwise>
</xsl:choose>
<td align="left" valign="top">
<xsl:value-of select="omschrijving"/>
</td>
<td colspan="2" valign="top">
<xsl:comment>NADER TE DEFINIEREN</xsl:comment>
</td>
</tr>
</xsl:for-each>
<xsl:for-each select="deel">
<xsl:sort select="omschrijving"/>
<tr>
<xsl:if test="string-length(substring-after(omschrijving, '(')) != 0 ">
<td align="right" valign="top">
<b>Machine number:</b>
</td>
<td align="left" valign="top">
<xsl:value-of select="kenmerk[@naam='Machine number'] "/>
</td>
</xsl:if>
<td colspan="2" valign="top">
<xsl:comment>NADER TE DEFINIEREN</xsl:comment>
</td>
</tr>
</xsl:for-each>
</xsl:if>
<xsl:if test="behandelwijze=2">
<xsl:for-each select="notes/note[flag=1]">
<xsl:sort select="aanmaak/timestamp" order="ascending"/>
<tr>
<xsl:choose>
<xsl:when test="position() = 1">
<td align="right" valign="top">
<b><xsl:value-of select="//lcl/MLD/behandeling"/>:</b>
</td>
</xsl:when>
<xsl:otherwise>
<td/>
</xsl:otherwise>
</xsl:choose>
<td colspan="3">
<span class="mldbeh"><xsl:value-of select="aanmaak/datum"/>&#xA0;<xsl:value-of select="aanmaak/tijd"/>&#xA0;-&#xA0;<xsl:value-of select="noteur/naam_friendly"/></span>&#xA0;
<xsl:call-template name="linebreaks">
<xsl:with-param name="string" select="omschrijving"/>
</xsl:call-template>
</td>
</tr>
</xsl:for-each>
</xsl:if>
<xsl:if test="opmerking!='' and not(/facilitor/opdracht)">
<tr>
<td align="right" valign="top">
<b><xsl:value-of select="//lcl/MLD/afhandeling"/>:</b>
</td>
<td colspan="3">
<xsl:call-template name="linebreaks">
<xsl:with-param name="string" select="opmerking"/>
</xsl:call-template>
</td>
</tr>
</xsl:if>
</table>
</xsl:template>
<xsl:template match="opdracht" mode="include">
<table border="0" width="100%" cellpadding="2">
<tr height="20"><td></td></tr>
<xsl:if test="extra_key">
<xsl:variable name="ox_key"><xsl:value-of select="extra_key"/></xsl:variable>
<tr>
<td align="right" valign="top" style="padding-top:15px;padding-bottom:10px;">
<b><xsl:value-of select="//lcl/FAC/bericht"/>:</b>
</td>
<td colspan="3" style="padding-top:15px;padding-bottom:10px;">
<xsl:call-template name="linebreaks">
<xsl:with-param name="string" select="notes/note[key=$ox_key]/omschrijving"/>
</xsl:call-template>
</td>
</tr>
<tr>
<td colspan="4" style="padding-bottom:15px;">
<hr/>
</td>
</tr>
</xsl:if>
<tr>
<td width="16%"/>
<td width="34%"/>
<td width="16%" align="right">
<b><xsl:value-of select="//lcl/FAC/bedrijf"/>:</b>
</td>
<td width="34%">
<xsl:value-of select="uitvoerende/bedrijf/naam"/>
</td>
</tr>
<tr>
<td colspan="2"/>
<td align="right">
<b><xsl:value-of select="//lcl/FAC/contactpersoon"/>:</b>
</td>
<td>
<xsl:value-of select="contactpersoon/naam_full"/>
</td>
</tr>
<tr>
<td colspan="2"/>
<td align="right">
<b><xsl:value-of select="//lcl/FAC/telefoon"/>:</b>
</td>
<td>
<xsl:value-of select="contactpersoon/telefoon1"/>
</td>
</tr>
<tr>
<td colspan="2"/>
<td align="right">
<b><xsl:value-of select="//lcl/FAC/adres"/>:</b>
</td>
<td>
<xsl:value-of select="uitvoerende/bedrijf/post_adres"/>
</td>
</tr>
<tr>
<td colspan="2"/>
<td align="right">
<b><xsl:value-of select="//lcl/FAC/plaats"/>:</b>
</td>
<td>
<xsl:value-of select="uitvoerende/bedrijf/post_plaats"/>
</td>
</tr>
<tr>
<td align="right">
<b><xsl:value-of select="//lcl/FAC/contactpersoon"/>:</b>
</td>
<td align="left">
<xsl:value-of select="backoffice_contact/naam_full"/>
</td>
<td colspan="2"/>
</tr>
<tr>
<td align="right">
<b><xsl:value-of select="//lcl/FAC/telefoon"/>:</b>
</td>
<td align="left">
<xsl:value-of select="backoffice_contact/telefoonnr"/>
</td>
<td colspan="2"/>
</tr>
<tr>
<td colspan="2"/>
<td align="right">
<b><xsl:value-of select="//lcl/MLD/datum_gereed"/>:</b>
</td>
<td align="left">
<xsl:value-of select="datumgereed/datum"/>
</td>
</tr>
<tr>
<td colspan="2"/>
<td align="right">
<b><xsl:value-of select="//lcl/MLD/datum_verzonden"/>:</b>
</td>
<td align="left">
<xsl:value-of select="datumverzonden/datum"/>
</td>
</tr>
<tr>
<td colspan="2"/>
<td align="right">
<b><xsl:value-of select="//lcl/MLD/status"/>:</b>
</td>
<td align="left">
<xsl:value-of select="status"/>
</td>
</tr>
<tr>
<td align="right" valign="top">
<b><xsl:value-of select="//lcl/FAC/omschrijving"/>:</b>
</td>
<td align="left" colspan="3">
<xsl:call-template name="linebreaks">
<xsl:with-param name="string" select="omschrijving"/>
</xsl:call-template>
</td>
</tr>
<tr>
<td colspan="4">
</td>
</tr>
<xsl:if test="opmerking !=''">
<tr>
<td align="right" valign="top">
<b><xsl:value-of select="//lcl/MLD/afhandeling"/>:</b>
</td>
<td align="left" colspan="3">
<xsl:call-template name="linebreaks">
<xsl:with-param name="string" select="opmerking"/>
</xsl:call-template>
</td>
</tr>
<tr>
<td colspan="4">
<hr/>
</td>
</tr>
</xsl:if>
<tr>
<td colspan="4" align="center">
<table width="100%" style="background-color:#EEEEEE;border: 1px solid blue">
<tr>
<td>
<xsl:apply-templates select="melding" mode="include"/>
</td>
</tr>
</table>
</td>
</tr>
</table>
</xsl:template>
<xsl:template match="deel" mode="include">
<table border="0" cellpadding="1" width="100%">
<xsl:choose>
<xsl:when test="$srtnotificatiecode='CUST01'">
<tr>
<td>
This is an automatically generated reminder to remind you that one or more objects under your responsibility need to be inspected (within 1-2 weeks).
The specific objects can be found in FACILITOR at the Facilities tab under Management->Inspections (yellow rows).
</td>
</tr>
</xsl:when>
<xsl:when test="$srtnotificatiecode='CUST02'">
<tr>
<td>
This is an automatically generated reminder to remind you that one or more objects under your responsibility should have been inspected!.
The specific objects can be found in FACILITOR at the Facilities tab under Management->Inspections (red rows).
</td>
</tr>
</xsl:when>
<xsl:otherwise>
<tr>
<td colspan="3" class="caption">
<strong><xsl:value-of select="srtdeel/omschrijving"/>&#160;<xsl:value-of select="omschrijving"/></strong>
</td>
<td style="text-align:right">
<xsl:element name="img">
<xsl:attribute name="width">140px</xsl:attribute>
<xsl:attribute name="src">../../appl/shared/barcode.asp?text=<xsl:value-of select="key"/>&amp;height=50&amp;narrow=1&amp;wide=3</xsl:attribute>
</xsl:element>
</td>
</tr>
<tr>
<td class="label"><xsl:value-of select="//lcl/CNT/groep"/></td>
<td class="value"><xsl:value-of select="srtdeel/srtgroep/omschrijving"/></td>
<td colspan="2" width="50%"></td>
</tr>
<xsl:if test="binding='R'">
<tr>
<td class="label"><xsl:value-of select="//lcl/CNT/plaats"/></td>
<td class="value">
<xsl:value-of select="plaats/plaatsaanduiding"/>&#160;
<xsl:value-of select="plaats/regio/district/locatie/gebouw/verdieping/ruimte/omschrijving"/>
</td>
</tr>
</xsl:if>
<xsl:if test="binding='T'">
<tr>
<td class="label"><xsl:value-of select="//lcl/CNT/plaats"/></td>
<td class="value"><xsl:value-of select="terreinsector/naam"/></td>
</tr>
</xsl:if>
<xsl:if test="binding='P'">
<tr>
<td class="label"><xsl:value-of select="//lcl/CNT/eigenaar"/></td>
<td class="value"><xsl:value-of select="persoon/naam_full"/></td>
</tr>
</xsl:if>
<xsl:if test="binding='A'">
<tr>
<td class="label"><xsl:value-of select="//lcl/CNT/eigenaar"/></td>
<td class="value"><xsl:value-of select="afdeling/omschrijving"/></td>
</tr>
</xsl:if>
<xsl:if test="binding='W'">
<tr>
<td class="label"><xsl:value-of select="//lcl/CNT/plaats"/></td>
<td class="value"><xsl:value-of select="werkplek/plaats/plaatsaanduiding"/>/<xsl:value-of select="werkplek/volgnr"/></td>
</tr>
</xsl:if>
<xsl:for-each select="kenmerk">
<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>
<tr>
<td></td>
<td colspan="3">
<table border="1">
<xsl:for-each select="deel">
<xsl:apply-templates select="." mode="include"/>
</xsl:for-each>
</table>
</td>
</tr>
</xsl:otherwise>
</xsl:choose>
</table>
</xsl:template>
<xsl:template name="qrc_ins_new_page">
<xsl:param name="p_page"/>
<xsl:param name="p_rows"/>
<xsl:param name="p_cols"/>
<table>
<xsl:for-each select="//facilitor/rapport/rapport_data/data_row">
<xsl:sort select="FCLT_F_GEBOUW"/>
<xsl:sort select="FCLT_F_VERDIEPING"/>
<xsl:sort select="PLAATS"/>
<xsl:if test="position() &gt;= (($p_page - 1) * ($p_rows * $p_cols) + 1) and position() &lt;= ($p_page * ($p_rows * $p_cols))">
<xsl:if test="(position() mod $p_cols) = 0">
<xsl:comment>=== Na elke 1 records (1x1 passen op 1 regel) ===</xsl:comment>
<xsl:call-template name="qrc_ins_new_tr">
<xsl:with-param name="p_pos" select="position() - $p_cols + 1"/>
<xsl:with-param name="p_cols" select="$p_cols"/>
</xsl:call-template>
</xsl:if>
<xsl:if test="(position() = last()) and (position() mod $p_cols) != 0">
<xsl:comment>=== Na elke 1 records (1x1 passen op 1 regel) ===</xsl:comment>
<xsl:call-template name="qrc_ins_new_tr">
<xsl:with-param name="p_pos" select="floor(position() div $p_cols) * $p_cols + 1"/>
<xsl:with-param name="p_cols" select="$p_cols"/>
</xsl:call-template>
</xsl:if>
</xsl:if>
</xsl:for-each>
</table>
</xsl:template>
<xsl:template name="qrc_ins_new_tr">
<xsl:param name="p_pos"/>
<xsl:param name="p_cols"/>
<tr height="80px">
<xsl:for-each select="//facilitor/rapport/rapport_data/data_row">
<xsl:sort select="FCLT_F_SOORTMELDING"/>
<xsl:sort select="FCLT_F_LOCATIE"/>
<xsl:sort select="FCLT_F_GEBOUW"/>
<xsl:sort select="FCLT_F_VERDIEPING"/>
<xsl:sort select="PLAATS"/>
<xsl:sort select="FCLT_F_OBJECTGROEP"/>
<xsl:sort select="FCLT_F_OBJECTSOORT"/>
<xsl:sort select="DEEL_OMSCHRIJVING"/>
<xsl:if test="position() &gt;= $p_pos and position() &lt;= $p_pos + $p_cols - 1">
<xsl:choose>
<xsl:when test="VARIABELE = 'INS_KEY'">
<td width="25%" style="text-align:center">
<xsl:element name="img">
<xsl:attribute name="style">height: 5cm</xsl:attribute>
<xsl:attribute name="src">
../../appl/shared/qrcode.asp?size=16&amp;text=%3Fu%3D<xsl:value-of select="HIDE_F_BOOKMARK_ID"/>%26ins_key%3D<xsl:value-of select="DEEL_KEY"/>
</xsl:attribute>
</xsl:element>
<br/>
</td>
</xsl:when>
<xsl:when test="VARIABELE = 'RUIMTE_KEY'">
<td width="25%" style="text-align:center">
<xsl:element name="img">
<xsl:attribute name="style">height: 5cm</xsl:attribute>
<xsl:attribute name="src">
../../appl/shared/qrcode.asp?size=16&amp;text=%3Fu%3D<xsl:value-of select="HIDE_F_BOOKMARK_ID"/>%26ruimte_key%3D<xsl:value-of select="RUIMTE_KEY"/>
</xsl:attribute>
</xsl:element>
<br/>
</td>
</xsl:when>
<xsl:when test="VARIABELE = 'GEBOUW_KEY'">
<td width="25%" style="text-align:center">
<xsl:element name="img">
<xsl:attribute name="style">height: 5cm</xsl:attribute>
<xsl:attribute name="src">
../../appl/shared/qrcode.asp?size=16&amp;text=%3Fu%3D<xsl:value-of select="HIDE_F_BOOKMARK_ID"/>%26gebouw_key%3D<xsl:value-of select="RUIMTE_KEY"/>
</xsl:attribute>
</xsl:element>
<br/>
</td>
</xsl:when>
<xsl:when test="VARIABELE = 'RES_RUIMTE_KEY'">
<td width="25%" style="text-align:center">
<xsl:element name="img">
<xsl:attribute name="style">height: 5cm</xsl:attribute>
<xsl:attribute name="src">
../../appl/shared/qrcode.asp?size=16&amp;text=%3Fu%3D<xsl:value-of select="HIDE_F_BOOKMARK_ID"/>%26res_ruimte_key%3D<xsl:value-of select="RUIMTE_KEY"/>
</xsl:attribute>
</xsl:element>
<br/>
</td>
</xsl:when>
<xsl:otherwise>
</xsl:otherwise>
</xsl:choose>
</xsl:if>
</xsl:for-each>
</tr>
<tr height="80px">
<xsl:for-each select="//facilitor/rapport/rapport_data/data_row">
<xsl:sort select="FCLT_F_SOORTMELDING"/>
<xsl:sort select="FCLT_F_LOCATIE"/>
<xsl:sort select="FCLT_F_GEBOUW"/>
<xsl:sort select="FCLT_F_VERDIEPING"/>
<xsl:sort select="PLAATS"/>
<xsl:sort select="FCLT_F_OBJECTGROEP"/>
<xsl:sort select="FCLT_F_OBJECTSOORT"/>
<xsl:sort select="DEEL_OMSCHRIJVING"/>
<xsl:if test="position() &gt;= $p_pos and position() &lt;= $p_pos + $p_cols - 1">
<td width="25%" style="text-align:center">
<xsl:value-of select="FCLT_F_SOORTMELDING"/>
<br/>
<xsl:value-of select="FCLT_F_LOCATIE"/>
<br/>
<xsl:value-of select="PLAATS"/>
<br/>
<xsl:value-of select="FCLT_F_OBJECTGROEP"/>
<br/>
<xsl:value-of select="FCLT_F_OBJECTSOORT"/>
<br/>
<xsl:value-of select="DEEL_OMSCHRIJVING"/>
<br/>
</td>
</xsl:if>
</xsl:for-each>
</tr>
</xsl:template>
<!--===================================================================================================-->
<!-- RAPPORT - RAPPORT - RAPPORT - RAPPORT - RAPPORT - RAPPORT - RAPPORT - RAPPORT - RAPPORT - RAPPORT -->
<!--===================================================================================================-->
<xsl:template match="rapport">
<xsl:if test="@view='logi_v_rap_res_infobord' or @view='LOGI_V_RAP_RES_INFOBORD' or @view='res_v_rap_infobord' or @view='RES_V_RAP_INFOBORD'">
<html>
<head>
<style>th {
font-family: Verdana;
font-weigth: bold;
font-size: 14pt;
padding: 3px;
}
td {
font-family: Verdana;
font-size: 14pt;
padding: 3px;
}
.odd {
background-color: #f6f6f6;
}
.even {
background-color: #ffffff;
}
p {
font-family: Verdana;
font-size: 30pt;
text-align: center;
}
body {
margin: 0;
overflow: hidden;
}</style>
<script language="javascript">
<xsl:variable name="sorted">
<xsl:for-each select="rapport_data/data_row">
<xsl:sort select="REGELS" order="ascending"/>
<xsl:copy-of select="."/>
</xsl:for-each>
</xsl:variable>
<xsl:variable name="regels">
<xsl:for-each select="msxml:node-set($sorted)/data_row">
<xsl:if test="not(preceding-sibling::data_row[1]/REGELS) and REGELS!=''">
<xsl:value-of select="REGELS"/>
</xsl:if>
</xsl:for-each>
</xsl:variable>
var count = 1;
var screenlength = 20;
<xsl:if test="$regels!=''">screenlength=<xsl:value-of select="$regels"/>;</xsl:if>
var line_refresh = 5; // refresh time in seconds
function alternate(){
if (document.getElementsByTagName){
var table = document.getElementById("result");
var rows = table.getElementsByTagName("tr");
for (i = 0; i &lt; rows.length; i++) {
//manipulate rows
if (i % 2 == 0) {
rows[i].className = "even";
}
else {
rows[i].className = "odd";
}
}
}
}
function startAutoRefreshTim() {
// verwijder scrollbar
parent.document.body.style.overflow = "hidden";
if (document.all.timeID2.value > 0) {
clearInterval(document.all.timeID2.value);
document.all.timeID2.value = -1;
}
var table = document.getElementById("result");
var rows = table.getElementsByTagName("tr");
if (count &lt; rows.length - screenlength) {
// hide top line
trnr = document.getElementById("tr"+count);
if (trnr) trnr.style.display = "none";
count = count + 1;
}
else {
for (i = 0; i &lt; rows.length; i++) {
//unhide rows
rows[i].style.display = "block"
count = 1;
}
}
document.all.timeID2.value = setInterval('startAutoRefreshTim();', line_refresh * 1000);
}</script>
</head>
<xsl:variable name="locatie">
<xsl:if test="contains(where,'locatie_code')">
<xsl:for-each select="rapport_data/data_row">
<xsl:if test="position()=1">Welkom in <xsl:value-of select="LOCATIE_OMSCHRIJVING"/></xsl:if>
</xsl:for-each>
</xsl:if>
</xsl:variable>
<xsl:variable name="sorted">
<xsl:for-each select="rapport_data/data_row">
<xsl:sort select="TIJD_VAN"/>
<xsl:sort select="RUIMTE"/>
<xsl:if test="(OFFSET &lt; 60 and OFFSET &gt; -60) or AKTIEF = 'active'">
<xsl:copy-of select="."/>
</xsl:if>
</xsl:for-each>
</xsl:variable>
<body onLoad="alternate();startAutoRefreshTim();parent.Activate();parent.document.body.style.overflow='hidden';">
<div align="center">
<xsl:element name="img">
<xsl:attribute name="src">../../cust/<xsl:value-of select="//header/custId"/>/infobord/logo_infobord.gif?1</xsl:attribute>
</xsl:element>
</div>
<!--table width="100%" cellpadding="0" cellspacing="0"-->
<table border="0" style="width:100%;border-collapse:collapse;" cellpadding="0" cellspacing="0">
<tr><td colspan="5" text-align="center"><p><xsl:if test="$locatie=''">Welkom</xsl:if><xsl:value-of select="$locatie"/></p></td></tr>
<tr height="20px"><td colspan="5"/></tr>
<tr>
<th style="width:1%;text-align:left"></th>
<th style="width:9%;text-align:left">Van</th>
<th style="width:10%;text-align:left">Tot</th>
<th style="width:30%;text-align:left">Ruimte</th>
<th style="width:50%;text-align:left">Omschrijving</th>
</tr>
</table>
<!--table id="result" width="100%" cellpadding="0" cellspacing="0"-->
<table id="result" border="0" style="width:100%;border-collapse:collapse;" cellpadding="0" cellspacing="0">
<xsl:for-each select="msxml:node-set($sorted)/data_row">
<xsl:element name="tr">
<xsl:attribute name="id">tr<xsl:value-of select="position()"/></xsl:attribute>
<td style="width:1%;text-align:left"/>
<td style="width:9%;text-align:left"><xsl:value-of select="TIJD_VAN"/></td>
<td style="width:10%;text-align:left"><xsl:value-of select="TIJD_TOT"/></td>
<td style="width:30%;text-align:left"><xsl:value-of select="RUIMTE"/></td>
<td style="width:50%;text-align:left"><xsl:value-of select="OMSCHRIJVING"/></td>
</xsl:element>
</xsl:for-each>
</table>
<input type="hidden" name="timeID2" value="-1"/>
</body>
</html>
</xsl:if>
<!--De generatie van QR-codes (meldingen/objecten/reserveringen)-->
<xsl:if test="@view='logi_v_rap_mldinsres_qrc' or @view='LOGI_V_RAP_MLDINSRES_QRC'">
<xsl:variable name="p_rows" select="3"/>
<xsl:variable name="p_cols" select="2"/>
<table>
<tr height="200">
<td width="50%" align="center">
<span style="font-size:24pt;color:#000000">QR-codes</span>
</td>
</tr>
<tr height="200">
<td width="50%" align="center">
<span style="font-size:24pt;color:#000000">object-meldingen</span>
</td>
</tr>
<tr height="200">
<td width="50%" align="center">
<span style="font-size:24pt;color:#000000">(startpagina tbv. uitlijning)</span>
</td>
</tr>
</table>
<xsl:for-each select="//facilitor/rapport/rapport_data/data_row">
<xsl:sort select="FCLT_F_SOORTMELDING"/>
<xsl:sort select="FCLT_F_LOCATIE"/>
<xsl:sort select="FCLT_F_GEBOUW"/>
<xsl:sort select="FCLT_F_VERDIEPING"/>
<xsl:sort select="PLAATS"/>
<xsl:sort select="FCLT_F_OBJECTGROEP"/>
<xsl:sort select="FCLT_F_OBJECTSOORT"/>
<xsl:sort select="DEEL_OMSCHRIJVING"/>
<xsl:if test="position() mod ($p_rows * $p_cols) = 0">
<div style="page-break-before:always">&#160;</div>
<xsl:comment>=== Na elke 2 records (2x1 passen op 1 A4) =====</xsl:comment>
<xsl:call-template name="qrc_ins_new_page">
<xsl:with-param name="p_page" select="floor(position() div ($p_rows * $p_cols))"/>
<xsl:with-param name="p_rows" select="$p_rows"/>
<xsl:with-param name="p_cols" select="$p_cols"/>
</xsl:call-template>
</xsl:if>
<xsl:if test="position() = last() and position() mod ($p_rows * $p_cols) != 0 ">
<div style="page-break-before:always">&#160;</div>
<xsl:comment>=== De laatste paar, zijn minder dan 2 =====</xsl:comment>
<xsl:call-template name="qrc_ins_new_page">
<xsl:with-param name="p_page" select="floor((position() div ($p_rows * $p_cols)) + 1)"/>
<xsl:with-param name="p_rows" select="$p_rows"/>
<xsl:with-param name="p_cols" select="$p_cols"/>
</xsl:call-template>
</xsl:if>
</xsl:for-each>
</xsl:if>
<style>.pagebreak {page-break-after:always;}</style>
</xsl:template>
</xsl:stylesheet>