<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  <xsl:import href="../../../appl/shared/default.xsl"/>
 	<xsl:import href="../../aaxx/xsl/default.xsl"/>
	<xsl:variable name="Rev">
		<!-- Revision van deze cust.xsl -->
		<xsl:value-of select="substring(translate('$Revision$', '$ ', ''), 10)"/>
	</xsl:variable>

	<xsl:template name="res_endtext">
		<tr>
			<td colspan="2" class="tekst"><br/><center><b>Voor storingen buiten kantoortijden dient u 60000 te bellen</b></center></td>
		</tr>
	</xsl:template>

	<xsl:template name="bez_endtext">
		<tr>
			<td colspan="2" class="tekst"><br/><center><b>Voor storingen buiten kantoortijden dient u 60000 te bellen</b></center></td>
		</tr>
	</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>
					<xsl:choose>
						<xsl:when test="not(boolean(rsv_ruimte))">
							<table>
								<tr>
									<td height="20"/>
								</tr>
								<tr>
									<td class="caption">Annulering</td>
								</tr>
								<tr>
									<td>
										<b>Op uw naam heeft een reservering<xsl:if test="key!=''"> onder nummer <xsl:value-of select="key"/></xsl:if> plaatsgevonden, die vervolgens direct weer is verwijderd.</b>
										<br/>
										<br/>Deze reservering wordt niet verder verwerkt.<br/><br/>
                  Wilt u toch een reservering aanmaken voeg dan een nieuwe reservering toe waarbij een zaal, voorziening of artikel gereserveerd is.</td>
								</tr>
							</table>
						</xsl:when>
						<xsl:otherwise>
							<!-- Bevestiging reservering -->

							<!-- 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" bordercolor="#ffffff" width="100%">
								<tr>
									<td class="caption" valign="top" colspan="2">
										<xsl:choose>
											<xsl:when test="@content='complete'">Reservering (reeks) <xsl:value-of select="key"/><br/></xsl:when>
											<xsl:otherwise>Reservering <xsl:value-of select="key"/> / <xsl:value-of select="$min_volgnr"/><br/></xsl:otherwise>
										</xsl:choose>
										<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">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">E-mail adres</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">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 width="20%" class="label">Afdeling</td>
									<td width="80%" class="value">: <xsl:value-of select="rsv_ruimte[volgnr=$min_volgnr]/contact_user/afdeling/omschrijving"/></td>
								</tr>
								<tr>
									<td width="20%" class="label">Gastheer/-vrouw</td>
									<td width="80%" class="value">: <xsl:value-of select="rsv_ruimte[volgnr=$min_volgnr]/host_user/naam_full"/></td>
								</tr>
								<tr>
									<td width="20%" class="label">Stamnummer</td>
									<td width="80%" class="value">: <xsl:value-of select="rsv_ruimte[volgnr=$min_volgnr]/host_user/nr"/></td>
								</tr>
								<tr>
									<td width="20%" class="label">FDC</td>
									<td width="80%" class="value">: <xsl:value-of select="rsv_ruimte[volgnr=$min_volgnr]/kostenplaats/nr"/>&#xA0;
										<xsl:value-of select="rsv_ruimte[volgnr=$min_volgnr]/kostenplaats/omschrijving"/>
									</td>
								</tr>
								<tr>
									<td width="20%" class="label">Costcenter</td>
									<td width="80%" class="value">: <xsl:value-of select="rsv_ruimte[volgnr=$min_volgnr]/ordernr"/></td>
								</tr>
								<tr>
									<td height="30px"/>
								</tr>
								<xsl:if test="rsv_ruimte[volgnr=$min_volgnr]/contact_user/key!=ingevoerd_user/key">
									<tr>
										<td width="20%" class="label">Behandeld door</td>
										<td width="80%" class="value">: <xsl:value-of select="ingevoerd_user/naam_full"/></td>
									</tr>
									<tr>
										<td width="20%" class="label">Datum</td>
										<td width="80%" class="value">: <xsl:value-of select="datum/datum"/></td>
									</tr>
									<tr>
										<td height="30px"/>
									</tr>
								</xsl:if>
								<tr>
									<td colspan="2" class="tekst">
										<xsl:choose>
											<xsl:when test="$srtnotificatiecode='RESNEW'"/>
											<xsl:when test="$srtnotificatiecode='RESDEL'">DE RESERVERING IS VERVALLEN</xsl:when>
											<xsl:otherwise>
												<xsl:call-template name="res_begintext"/>
											</xsl:otherwise>
										</xsl:choose>
									</td>
								</tr>
								<tr>
									<td height="10px"/>
								</tr>
								<tr>
									<td class="tekstkop" colspan="2" style="text-decoration:underline">Reserveringsgegevens</td>
								</tr>
								<tr>
									<td height="5px"/>
								</tr>
								<xsl:if test="string(rsv_ruimte[volgnr=$min_volgnr]/opmerking)!=''">
									<tr>
										<td colspan="2" class="label">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="volgnr" data-type="number"/>
												<xsl:call-template name="rsv_ruimte">
													<xsl:with-param name="min_volgnr" select="$min_volgnr"/>
												</xsl:call-template>
											</xsl:for-each>
											<!-- totaal reservering -->
											<tr>
												<td height="10px" style="border-style:solid;border-width:0px;"/>
											</tr>
											<tr>
												<td class="tekstkop" align="right" colspan="2" style="border-style:solid;border-width:0px;">Totaalprijs reservering:</td>
												<td class="tekstkop" style="text-align:right;border-style:solid;border-width:0px;">
													<xsl:call-template name="europrijs">
														<xsl:with-param name="prijs"
														                select="sum(rsv_ruimte/prijs[string(number(.))!='NaN'])+sum(rsv_ruimte/rsv_deel/prijs[string(number(.))!='NaN'])+sum(rsv_ruimte/rsv_artikel/prijs[string(number(.))!='NaN'])"/>
													</xsl:call-template>
												</td>
											</tr>
										</table>
									</td>
								</tr>
								<xsl:call-template name="res_endtext">
									<xsl:with-param name="min_volgnr" select="$min_volgnr"/>
								</xsl:call-template>
							</table>
							<!-- Bevestiging reservering -->
						</xsl:otherwise>
					</xsl:choose>
				</TD>
				<TD WIDTH="30" ROWSPAN="30" ID="RECHTERMARGE"/>
			</TR>
		</TABLE>
	</xsl:template>

	<!-- Klantspecifieke begintekst voor reserveringsgegevens op reserveringsbon -->
	<xsl:template name="res_begintext">
		<tr>
			<td colspan="2" class="tekst">
				<xsl:choose>
					<xsl:when test="$srtnotificatiecode = 'RESINF'">Geachte heer, mevrouw,
						<br/>
						<br/>Onderstaande reservering staat geregistreerd in ons systeem. 
            Indien deze reservering niet meer van toepassing is dient u deze binnen 1 werkdag te annuleren.
						<br/>
						<br/>Eventuele wijzigingen in uw reservering kunt u doorgeven aan de AAFM service desk
            (tel: 60000, e-mail: servicedesksdm@aa-fm.com) onder vermelding van bovenstaand reserveringsnummer.
            Aanvullende catering bestellingen kunt u doorgeven aan de cateraar op uw locatie.
            Aan catering bestellingen of vergaderfaciliteiten zijn kosten verbonden.
            Indien u niet tijdig annuleert worden deze in rekening gebracht.
						<br/>
						<br/>Wanneer de reservering gewoon doorgang vindt, hoeft u niet op deze herinnering te reageren.
						<br/>
					</xsl:when>
					<xsl:otherwise>
					</xsl:otherwise>
				</xsl:choose>
			</td>
		</tr>
	</xsl:template>


<xsl:template match="printfg">
  <html>
  <xsl:comment>Facilitor Graphics default XSL template</xsl:comment>
  <!--mode FG0 A4 zonder legenda
      mode FG1 A4 met legenda links ervan
      mode FG2 A3 zonder legenda
      mode FG3 A3 met legenda links ervan
  -->
  <xsl:call-template name="htmlhead" />
    <script type="text/javascript">
      window.document.title="Facilitor Graphics: <xsl:value-of select="plaats/alg_locatie_code"/>-"
                                               +"<xsl:value-of select="plaats/alg_gebouw_code"/>-"
                                               +"<xsl:value-of select="plaats/alg_verdieping_omschrijving"/>"
                                    <xsl:if test="thema/CAD_THEMA_OMSCHRIJVING!=''">
                                               +"&#160;/Thema:&#160;<xsl:value-of select="thema/CAD_THEMA_OMSCHRIJVING"/>";
                                    </xsl:if>
    </script>
  <body style="background-color:white;margin:0;padding:0;" onload="window.print()">
  <table border="0" width="100%" cellpadding="2">
    <xsl:choose>
      <xsl:when test="$mode='FG0'">
          <tr>
            <td colspan="2">
                <xsl:element name='img'>
                    <xsl:attribute name="src">
                       <xsl:value-of select="pngURL"/>&amp;vKey=<xsl:value-of select="vKey"/>&amp;paperWidth=240&amp;paperHeight=155&amp;DWGScale=<xsl:value-of select="DWGScale"/>
                    </xsl:attribute>
                    <xsl:attribute name="style">width:240mm</xsl:attribute>
                    <xsl:attribute name="border">1</xsl:attribute>
                    <xsl:attribute name="galleryimg">false</xsl:attribute>
                </xsl:element>
            </td>
          </tr>
      </xsl:when>
      <xsl:when test="$mode='FG1'">
          <tr>
            <td><xsl:element name='iframe'>
                    <xsl:attribute name="frameborder">0</xsl:attribute>
                    <xsl:attribute name="style">width:50mm;height:150mm</xsl:attribute>
                    <xsl:attribute name="scrolling">no</xsl:attribute>
                    <xsl:attribute name="src">../CAD/legenda.asp?forPrint=1&amp;scenario_key=<xsl:value-of select="scenario"/>&amp;thema=<xsl:value-of select="THEMA_KEY"/>&amp;parentKey=<xsl:value-of select="vKey"/>&amp;mode=<xsl:value-of select="inoutMode"/>
                    </xsl:attribute>
                </xsl:element>
            </td>
            <td><xsl:element name='img'>
                    <xsl:attribute name="src">
                       <xsl:value-of select="pngURL"/>&amp;vKey=<xsl:value-of select="vKey"/>&amp;paperWidth=192&amp;paperHeight=155&amp;DWGScale=<xsl:value-of select="DWGScale"/>
                    </xsl:attribute>
                    <xsl:attribute name="style">width:192mm</xsl:attribute>
                    <xsl:attribute name="border">1</xsl:attribute>
                    <xsl:attribute name="galleryimg">false</xsl:attribute>
                </xsl:element>
            </td>
          </tr>
      </xsl:when>
      <xsl:when test="$mode='FG2'">
          <tr>
            <td colspan="2">
                <xsl:element name='img'>
                    <xsl:attribute name="src">
                       <xsl:value-of select="pngURL"/>&amp;vKey=<xsl:value-of select="vKey"/>&amp;paperWidth=360&amp;paperHeight=253&amp;DWGScale=<xsl:value-of select="DWGScale"/>
                    </xsl:attribute>
                    <xsl:attribute name="style">width:360mm</xsl:attribute>
                    <xsl:attribute name="border">1</xsl:attribute>
                    <xsl:attribute name="galleryimg">false</xsl:attribute>
                </xsl:element>
            </td>
          </tr>
      </xsl:when>
      <xsl:when test="$mode='FG3'">
          <tr>
            <td width="50mm"><xsl:element name='iframe'>
                    <xsl:attribute name="frameborder">0</xsl:attribute>
                    <xsl:attribute name="style">width:50mm;height:230mm</xsl:attribute>
                    <xsl:attribute name="scrolling">no</xsl:attribute>
                    <xsl:attribute name="src">../CAD/legenda.asp?forPrint=1&amp;scenario_key=<xsl:value-of select="scenario"/>&amp;thema=<xsl:value-of select="THEMA_KEY"/>&amp;parentKey=<xsl:value-of select="vKey"/>&amp;mode=<xsl:value-of select="inoutMode"/>
                    </xsl:attribute>
                </xsl:element>
            </td>
            <td>
                <xsl:element name='img'>
                    <xsl:attribute name="src">
                       <xsl:value-of select="pngURL"/>&amp;vKey=<xsl:value-of select="vKey"/>&amp;paperWidth=310&amp;paperHeight=233&amp;DWGScale=<xsl:value-of select="DWGScale"/>
                    </xsl:attribute>
                    <xsl:attribute name="style">width:310mm</xsl:attribute>
                    <xsl:attribute name="border">1</xsl:attribute>
                    <xsl:attribute name="galleryimg">false</xsl:attribute>
                </xsl:element>
            </td>
          </tr>
      </xsl:when>
      <xsl:otherwise>
        Unknown template <xsl:value-of select="$mode"/>
      </xsl:otherwise>
    </xsl:choose>

  </table>
		<table border="0" width="100%">
		<xsl:if test="thema/CAD_THEMA_OMSCHRIJVING!=''">
		<tr>
		<td style="text-align:center" colspan="4" class="tekstkop">
		Thema:&#160;<xsl:value-of select="thema/CAD_THEMA_OMSCHRIJVING"/>

        </td>
        </tr>
        <tr>
        <td colspan="4" style="height:30"/>
        </tr>
        </xsl:if>
			<tr>        
			<td width="55%">
        </td>
		<td style="text-align:left" width="12%" class="label">
						Building:
		</td>
		<td style="text-align:right" width="18%" class="value">			
        G <xsl:value-of select="plaats/alg_gebouw_code"/>
        </td>
        			<td  style="text-align:left" rowspan="2" WIDTH="15%">
			<xsl:element name="img">
								<xsl:attribute name="src">../../cust/aads/tmpl_logo_sm.gif</xsl:attribute>
							</xsl:element>
			</td>
        </tr>
        <tr>
        <td width="55%">
        </td>
        <td style="text-align:left" class="label">
		  Floor:
		</td>
        <td style="text-align:right" class="value">
        <xsl:value-of select="plaats/alg_verdieping_code"/>&#160;(<xsl:value-of select="plaats/alg_verdieping_omschrijving"/>)
        </td>
        </tr>
        <tr>
        <td width="55%">
        <td style="text-align:left" class="label">
        Date:
        </td>
        </td>
                <td style="text-align:right" class="value"><xsl:value-of select="//header/dateTime"/></td>

        </tr>
        <tr>
        <td colspan="4" style="height:25"/>
        </tr>
        <tr>
				<td align="right" valign="top" class="tiny" colspan="4">
					<b>Facilitor</b>&#160;<xsl:value-of select="//header/version"/>.<xsl:value-of select="$DefRev"/>.<xsl:value-of select="$Rev"/></td>
			</tr>
		</table>
  </body>
  </html>
</xsl:template>

	<xsl:template match="bestelopdracht" mode="include">
		<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" WIDTH="100%">
			<TR>
				<TD WIDTH="40" ROWSPAN="30" ID="LINKERMARGE"></TD>
				<TD>
					<!-- Bestelopdracht -->
					<table border="0" bordercolor="#ffffff" width="100%">
						<tr>
							<td colspan="5" class="caption" style="text-align:center">
								<b><xsl:value-of select="//lcl/BES/inkooporder"/></b>
							</td>
						</tr>
						<tr>
							<td colspan="5" style="height:30"/>
						</tr>
						<tr>
							<td colspan="2" style="width:47%">
								<b><xsl:value-of select="//lcl/BES/factuur_aan"/>:</b>
							</td>
							<td style="width:6%"></td>
							<td colspan="2" style="width:47%">
								<b><xsl:value-of select="//lcl/BES/leverancier"/>:</b>
							</td>
						</tr>
						<tr>
							<td colspan="2">
								AAFM Facility Management BV
								<br/>
								t.a.v. Crediteurenadministratie account DSM
								<br/>
								Postbus 80009
								<br/>
								5600 JZ&#xA0;
								Eindhoven
							</td>
							<td/>
							<td colspan="2">
								<xsl:value-of select="bedrijf/naam"/>
								<br/>
								<xsl:value-of select="bedrijf/post_adres"/>
								<br/>
								<xsl:value-of select="bedrijf/post_postcode"/>&#xA0;
								<xsl:value-of select="bedrijf/post_plaats"/>
								<br/>
								<xsl:value-of select="bedrijf/post_land"/>
							</td>
						</tr>
						<tr>
							<td colspan="5" style="height:20"/>
						</tr>
						<tr>
							<td colspan="2">
								<b><xsl:value-of select="//lcl/FAC/contactgegevens"/>:</b>
							</td>
							<td/>
							<td colspan="2">
								<b/>
							</td>
						</tr>
						<tr>
							<td colspan="2" style="vertical-align:top">
								<b><xsl:value-of select="//lcl/BES/besteller"/>:&#xA0;</b>
								<xsl:value-of select="bestelling/aanvrager/naam_full"/>
								<br/>
								<b><xsl:value-of select="//lcl/FAC/e-mail"/>:&#xA0;</b>
								<xsl:value-of select="bestelling/aanvrager/email"/>
								<br/>
								<b><xsl:value-of select="//lcl/FAC/telefoon"/>:&#xA0;</b>
								<xsl:value-of select="bestelling/aanvrager/telefoonnr"/>
								<br/>
								<b><xsl:value-of select="//lcl/FAC/kostenplaats"/>:&#xA0;</b>
								<xsl:value-of select="bestelling/kostenplaats/nr"/>
								<br/>
								<b><xsl:value-of select="//lcl/FAC/werkplek"/>:&#xA0;</b>
								<xsl:value-of select="bestelling/plaats"/>
							</td>
							<td/>
							<td colspan="2" style="vertical-align:top">
								<b><xsl:value-of select="//lcl/BES/aanvraagnummers"/>:&#xA0;</b>
								<xsl:value-of select="bestelling/key"/>
								<br/>
								<b><xsl:value-of select="//lcl/BES/opdrachtnummer"/>:&#xA0;</b>
								BE <xsl:value-of select="id"/>
								<br/>
								<b><xsl:value-of select="//lcl/BES/orderdatum"/>:&#xA0;</b>
								<xsl:value-of select="datum/datum"/>
							</td>
						</tr>
						<tr>
							<td colspan="5" style="height:20"/>
						</tr>
						<tr>
							<td colspan="2">
								<b><xsl:value-of select="//lcl/BES/afleveradres"/>:</b>
							</td>
							<td/>
							<td colspan="2">
								<b/>
							</td>
						</tr>
						<tr>
							<td colspan="2" style="vertical-align:top">
								<xsl:value-of select="afleveradres/naam"/>
								<br/>
								<xsl:value-of select="afleveradres/bezoek_adres"/>
								<br/>
								<xsl:value-of select="afleveradres/bezoek_postcode"/>&#xA0;
								<xsl:value-of select="afleveradres/bezoek_plaats"/>
								<br/>
								<xsl:value-of select="afleveradres/bezoek_land"/>
							</td>
							<td/>
							<td colspan="2" style="vertical-align:top">
								<xsl:for-each select="bestelling/kenmerk">
								<xsl:if test="(@type!='L' and @type!='l')">
									<b>
										<xsl:value-of select="@naam"/>:</b>
									<xsl:value-of select="."/>
									<br/>
								</xsl:if>	
								</xsl:for-each>&#xA0;</td>
						</tr>
						<tr>
							<td colspan="5" style="height:20"/>
						</tr>
						<TR>
							<TD colspan="5">
								<TABLE cellpadding="0" cellspacing="0" border="1" bordercolor="#303030" width="100%">
									<tr>
										<th style="width:20"><xsl:value-of select="//lcl/BES/regel"/></th>
										<th style="width:20"><xsl:value-of select="//lcl/BES/artikelnr"/></th>
										<th style="width:200"><xsl:value-of select="//lcl/FAC/omschrijving"/></th>
										<th style="width:20"><xsl:value-of select="//lcl/FAC/eenheid"/></th>
										<th style="width:20; text-align:right"><xsl:value-of select="//lcl/FAC/aantal"/></th>
										<xsl:if test="aantal_geleverd &gt; 0">
											<th style="width:20; text-align:right"><xsl:value-of select="//lcl/BES/geleverd"/></th>
										</xsl:if>
										<th style="width:20; text-align:right"><xsl:value-of select="//lcl/FAC/prijs"/></th>
										<th style="width:20; text-align:right"><xsl:value-of select="//lcl/FAC/totaal"/></th>
									</tr>
									<xsl:for-each select="bestelopdrachtitem">
										<xsl:sort select="srtdeel/omschrijving"/>
										<xsl:sort select="posnr" data-type="number"/>
										<tr>
											<td class="result">
												<xsl:value-of select="posnr"/>
											</td>
											<td class="result">
												<xsl:value-of select="bestelitem/srtdeel/artikel_nummer"/>
											</td>
											<td class="result">
												<xsl:value-of select="bestelitem/srtdeel/omschrijving"/>&#xA0;
												<xsl:for-each select="bestelitem/kenmerk">		
												<xsl:if test="(@type!='L' and @type!='l')">									
													<br/>
													<xsl:value-of select="@naam"/>: <xsl:value-of select="."/>
													</xsl:if>
													</xsl:for-each>
											</td>
											<td class="result">
												<xsl:value-of select="bestelitem/srtdeel/eenheid"/>
											</td>
											<td class="result" style="text-align:right">
												<xsl:value-of select="aantal"/>
											</td>
											<xsl:if test="../aantal_geleverd &gt; 0">
												<td class="result" style="text-align:right">
													<xsl:value-of select="aantalontv"/>
												</td>
											</xsl:if>
											<xsl:choose>
												<xsl:when test="inkprijs!=''">
													<td class="result" style="text-align:right">
														<xsl:value-of select="format-number(inkprijs, '0,00', 'european')"/>
													</td>
													<td class="result" style="text-align:right">
														<xsl:value-of select="format-number(inktotaal, '0,00', 'european')"/>
													</td>
												</xsl:when>
												<xsl:otherwise>
													<td class="result" style="text-align:right">
														<xsl:value-of select="format-number(prijs, '0,00', 'european')"/>
													</td>
													<td class="result" style="text-align:right">
														<xsl:value-of select="format-number(totaal, '0,00', 'european')"/>
													</td>
												</xsl:otherwise>
											</xsl:choose>
										</tr>
									</xsl:for-each>
									<tr>
										<td colspan="6" style="border:0; text-align:right">excl BTW&#xA0;</td>
										<xsl:if test="aantal_geleverd &gt; 0">
											<td/>
										</xsl:if>
										<td style="text-align:right">
											<b>
												<xsl:choose>
													<xsl:when test="bestelopdrachtitem/inktotaal !=''">
														<xsl:value-of select="format-number(sum(bestelopdrachtitem/inktotaal), '0,00', 'european')"/>
													</xsl:when>
													<xsl:otherwise>
														<xsl:value-of select="format-number(sum(bestelopdrachtitem/totaal), '0,00', 'european')"/>
													</xsl:otherwise>
												</xsl:choose>
											</b>
										</td>
									</tr>
								</TABLE>
							</TD>
						</TR>
						<tr>
							<td colspan="5" style="height:40"/>
						</tr>
						<xsl:if test="aantal_geleverd &gt; 0">
							<tr>
								<td colspan="5"><xsl:value-of select="//lcl/BES/order_geleverd_op1"/><xsl:value-of select="leverdatum"/><xsl:value-of select="//lcl/BES/order_geleverd_op2"/></td>
							</tr>
							<tr>
								<td colspan="5"><xsl:value-of select="//lcl/BES/order_status_is"/><xsl:value-of select="status"/></td>
							</tr>
							<tr>
								<td colspan="5" style="height:40"/>
							</tr>
						</xsl:if>
						<tr>
							<td colspan="5" style="text-align:center; font-size:9px">Op alle door AAFM Facility Management BV verstrekte offerteaanvragen en opdrachten zullen uitsluitend en onverkort de algemene inkoopvoorwaarden, versie d.d. 01 januari 2010 van AAFM Facility Management BV van toepassing zijn, op te vragen via: http://www.aa-fm.com(onder afdeling Inkoop), met uitzondering van met AAFM Facility Management BV overeengekomen schriftelijke contractuele afspraken. Facturen zonder vermelding van het opdrachtnummer (BE <xsl:value-of select="id"/>) worden niet in behandeling genomen. Betalingsconditie: 90 dagen einde maand.</td>
						</tr>
					</table>
				</TD>
				<TD WIDTH="30" ROWSPAN="30" ID="RECHTERMARGE"/>
			</TR>
		</TABLE>
	</xsl:template>

	<xsl:template match="perslid" mode="full">
       <xsl:choose>
            <xsl:when test="$mode='summary'"></xsl:when>
       <xsl:otherwise>
		<html>
			<xsl:comment>================================ PERSONEN ==============================</xsl:comment>
			<xsl:comment>Facilitor new style default XSL template for perslid</xsl:comment>
			<xsl:call-template name="htmlhead"/>
				<xsl:apply-templates select="." mode="include"/>
		</html>
       </xsl:otherwise>
      </xsl:choose>
	</xsl:template>

	<xsl:template match="perslid" mode="include">
<p>Onderwerp: <b>Inloggegevens Online Servicedesk</b></p>
<br/>
<p>Beste lezer,</p>
<p>Per 1 juli a.s. is de Online Servicedesk beschikbaar vanaf een nieuw adres.
De Online Servicedesk is terug te vinden op 
<xsl:choose>
<xsl:when test="contains(email, 'dsm.com')">https://aads.facilitor.nl</xsl:when>
<xsl:when test="contains(email, 'sitech.nl')">https://aasi.facilitor.nl</xsl:when>
<xsl:otherwise>https://aach.facilitor.nl</xsl:otherwise>
</xsl:choose>
</p>
<p>Uw persoonlijke loginnaam en wachtwoord zijn:</p>
<p>Gebruikersnnaam: <xsl:value-of select="oslogin"/></p>
<p>Wachtwoord: Welkom<xsl:value-of select="key"/></p>
<p>U kunt bij de Online Servicedesk terecht voor aanvragen en meldingen zoals:</p>
<ul>
<li>melden van storingen aangaande, koffieautomaten, beamers, gebouwgebonden zaken, etc;</li>
<li>aanvragen zoals verhuizingen, meubilair, kleine bouwkundige ondersteuning, handyman, post &amp; repro, etc;</li>
<li>melden van klachten over de facilitaire dienstverlening.</li>
</ul>
<p>Mocht u verder vragen hebben hierover neem dan contact op met uw Facility Manager</p>
<p>Met vriendelijke groet namens,<br/>
AAFM Servicedesk</p> 
	</xsl:template>


</xsl:stylesheet><!-- Stylus Studio meta-information - (c) 2004-2007. Progress Software Corporation. All rights reserved.
<metaInformation>
<scenarios ><scenario default="yes" name="Scenario1" userelativepaths="yes" externalpreview="no" url="..\..\..\TEMP\AAAR_files\melding121055_20150205132902.xml" htmlbaseurl="" outputurl="" processortype="internal" useresolver="yes" profilemode="0" profiledepth="" profilelength="" urlprofilexml="" commandline="" additionalpath="" additionalclasspath="" postprocessortype="none" postprocesscommandline="" postprocessadditionalpath="" postprocessgeneratedext="" validateoutput="no" validator="internal" customvalidator=""/></scenarios><MapperMetaTag><MapperInfo srcSchemaPathIsRelative="yes" srcSchemaInterpretAsXML="no" destSchemaPath="" destSchemaRoot="" destSchemaPathIsRelative="yes" destSchemaInterpretAsXML="no"/><MapperBlockPosition></MapperBlockPosition><TemplateContext></TemplateContext><MapperFilter side="source"></MapperFilter></MapperMetaTag>
</metaInformation>
-->