<?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: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 match="melding" mode="full"> in melding.xsl-->
    <!-- <xsl:template match="melding" mode="include">  in melding.xsl-->
	<xsl:template name="pageheader_opdr">
		<xsl:param name="opdr_type"/>
		<xsl:param name="opdr_nummer"/>
		<table border="0" width="100%">
			<tr>
				<td width="50%" bordercolor="#FFFFFF" 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/aads/tmpl_logo_sm.gif</xsl:attribute>
							</xsl:element>
						</xsl:otherwise>
					</xsl:choose>
				</td>
				<td width="50%" align="right" valign="bottom" style="text-align:right; font-size:18;">
					<b>
						<xsl:value-of select="$opdr_type"/>
					</b>
				</td>
			</tr>
			<tr>
				<td colspan="2" style="text-align:center;">
					<table border="1" bordercolor="#000000">
						<tr>
							<td>
								<xsl:choose>
									<xsl:when test="$opdr_type='Docket'">Docketnummer: <span class="tekstkop">AR&#xA0;<xsl:value-of select="$opdr_nummer"/></span><b> (Te vermelden op alle documenten m.b.t. deze order!!)</b></xsl:when>
									<xsl:when test="$opdr_type='Informatie verzoek'">Informatie verzoek: <span class="tekstkop">AR&#xA0;<xsl:value-of select="$opdr_nummer"/></span><b> (Te vermelden op alle documenten m.b.t. deze order!!)</b></xsl:when>
									<xsl:when test="$opdr_type='Klacht'">Klachtnummer: <span class="tekstkop">AR&#xA0;<xsl:value-of select="$opdr_nummer"/></span><b> (Te vermelden op alle documenten m.b.t. deze order!!)</b></xsl:when>
									<xsl:when test="$opdr_type='RFQ'">Offerte aanvraag: <span class="tekstkop">AR&#xA0;<xsl:value-of select="$opdr_nummer"/></span><b> (Te vermelden op alle documenten m.b.t. deze offerte!!)</b></xsl:when>
									<xsl:when test="$opdr_type='Contractorder (bijlage)'">Bijlage bij contractorder: <span class="tekstkop">AR&#xA0;<xsl:value-of select="$opdr_nummer"/></span></xsl:when>
									<xsl:otherwise>Ordernummer: <span class="tekstkop">AR&#xA0;<xsl:value-of select="$opdr_nummer"/></span><b> (Te vermelden op alle documenten m.b.t. deze order!!)</b></xsl:otherwise>
								</xsl:choose>
							</td>
						</tr>
					</table>
				</td>
			</tr>
		</table>
	</xsl:template>

	<xsl:template name="servicedesk">
		<table border="0" width="100%">
			<tr>
				<td>
					<span class="tekstkop">Servicedesk:</span>
					<br/>Tel nr: 00 31 (0)40 2332810<br/>
		 Postbus 80009<br/>
		 5600 JZ&#xA0;&#xA0;Eindhoven<br/>
		 E-mail: servicedeskarcadis@aa-fm.com<br/></td>
			</tr>
		</table>
	</xsl:template>

	<xsl:template name="voorwaarden">
		<xsl:param name="opdr_type"/>
		<table border="1" width="100%" bordercolor="#000000">
			<tr>
				<td>
					<span style="font-size:9">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:
						<a href="http://www.aa-fm.com">http://www.aa-fm.com</a>(onder afdeling Inkoop), met uitzondering van
met AAFM Facility Management BV overeengekomen schriftelijke contractuele afspraken.
						<xsl:if test="$opdr_type='RFQ'">
							<br/>
							<br/>Met de ondertekening van dit formulier door Leverancier verklaart deze hiermee accoord te gaan met de hierboven genoemde algemene
inkoopvoorwaarden. Andere voorwaarden worden hierbij nadrukkelijk verworpen, met uitzondering van met AAFM Facility Management BV overeengekomen schriftelijke contractuele afspraken.</xsl:if>

						<br/>
						<br/>
						<div style="text-align:center">Trade register no. 09130306</div>
					</span>
				</td>
			</tr>
		</table>
	</xsl:template>

	<xsl:template name="gereedmelden">
		<table border="0" width="100%">
			<tr>
				<td>
					<br/>S.v.p. gereedmelden via Facilitor, wanneer u geen toegang heeft kan dit per mail naar de Servicedesk.</td>
			</tr>
		</table>
	</xsl:template>

	<xsl:template name="factuuradres">
		<table border="0" width="100%">
			<tr>
				<td>
					<span class="tekstkop">Factuuradres:</span>
					<br/>AAFM Facility Management BV<br/>
		 t.a.v. Crediteurenadministratie account Arcadis NL (MCG)<br/>
		 Postbus 80009<br/>
		 5600 JZ&#xA0;&#xA0;Eindhoven<br/><br/>
		 invoices.mcg@aa-fm.com</td>
			</tr>
		</table>
	</xsl:template>

	<xsl:template match="bedrijf">
		<table border="0" width="100%">
			<tr>
				<td>
					<span class="tekstkop">Leverancier:</span>
					<br/>
					<xsl:value-of select="naam"/>
					<br/>
					<xsl:value-of select="post_adres"/>
					<br/>
					<xsl:value-of select="post_postcode"/>&#xA0;&#xA0;<xsl:value-of select="post_plaats"/> <br/>
		 Tel nr: <xsl:value-of select="telefoon"/> <br/>
		 Fax nr: <xsl:value-of select="fax"/></td>
			</tr>
		</table>
	</xsl:template>

	<xsl:template match="afleveradres">
		<table border="0" width="100%">
			<tr>
				<td>
					<span class="tekstkop">Lokatie/afleveradres:</span>
					<br/>Ref. Nr. Supplier: <xsl:value-of select="key"/>
					<br/>
					<xsl:value-of select="naam"/>
					<br/>
					<xsl:if test="/facilitor/bestelopdracht/bestelling/plaats != ''">
						<xsl:value-of select="/facilitor/bestelopdracht/bestelling/plaats"/>
						<br/>
					</xsl:if>
					<xsl:value-of select="bezoek_adres"/>
					<br/>
					<xsl:value-of select="bezoek_postcode"/>&#xA0;&#xA0;
					<xsl:value-of select="bezoek_plaats"/>
				</td>
			</tr>
		</table>
	</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!=''">+"&#xA0;/Thema:&#xA0;<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:250mm</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=253&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%">
					<tr>
						<td rowspan="3">
							<xsl:element name="img">
								<xsl:attribute name="src">../../cust/aads/tmpl_logo_sm.gif</xsl:attribute>
							</xsl:element>
						</td>
						<td style="text-align:right">
							<strong>
								<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!=''">/Thema:&#xA0;<xsl:value-of select="thema/CAD_THEMA_OMSCHRIJVING"/></xsl:if>
							</strong>
						</td>
					</tr>
					<tr>
						<td style="text-align:right">
							<xsl:value-of select="//header/dateTime"/>
						</td>
					</tr>
					<tr>
						<td align="right" valign="top" class="tiny">
							<b>Facilitor</b>&#xA0;<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="full">
		<xsl:choose>
			<xsl:when test="$mode='summary'"></xsl:when>
			<xsl:otherwise>
				<html>
					<xsl:comment>================================ OPDRACHTEN ==============================</xsl:comment>
					<xsl:comment>Facilitor new style default XSL template for opdracht</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_opdr">
							<xsl:with-param name="opdr_type" select="'Bestelopdracht'"/>
							<xsl:with-param name="opdr_nummer" select="id"/>
						</xsl:call-template>
						<table border="0" width="100%">
							<tr>
								<td width="50%">
									<span class="tekstkop">&#xA0;Prijsconditie:&#xA0;</span>B.T.W. Exclusief</td>
								<td width="50%">
									<span class="tekstkop">&#xA0;Betalingsconditie:&#xA0;</span>60 dagen na einde maand</td>
							</tr>
						</table>
						<table border="1" width="100%" bordercolor="#000000">
							<tr>
								<td width="50%" height="100%" rowspan="4" style="border-left-style:none">
									<table border="0" height="100%">
										<tr>
											<td height="50%">
												<xsl:apply-templates select="bedrijf"/>
											</td>
										</tr>
										<tr>
											<td height="50%">
												<xsl:apply-templates select="afleveradres"/>
											</td>
										</tr>
									</table>
								</td>
								<td width="50%" style="border-right-style:none">
									<xsl:call-template name="servicedesk"/>
									<xsl:if test="opdrachttype/omschrijving!='Contractorder' ">
										<xsl:call-template name="gereedmelden"/>
									</xsl:if>
								</td>
							</tr>
							<tr>
								<td style="border-right-style:none">
									<xsl:call-template name="factuuradres">
										<xsl:with-param name="opdr_type" select="opdrachttype/omschrijving"/>
									</xsl:call-template>
								</td>
							</tr>
							<tr>
								<td style="border-right-style:none">
									<table border="0" width="100%" cellspacing="0">
										<tr>
											<td>
												<span class="tekstkopsmall">Verzenden binnen:</span>
											</td>
											<td>
												<xsl:value-of select="bestelopdrachtitem/bestelitem/srtdeel/srtgroep/discipline/bes/leverdagen"/>&#xA0;werkdag(en)</td>
										</tr>
										<tr>
											<td>
												<span class="tekstkopsmall">Datum uitgegeven:</span>
											</td>
											<td>
												<xsl:value-of select="bestelling/datum/datum"/>
											</td>
										</tr>
										<tr>
											<td>
												<span class="tekstkopsmall">Uitgegeven door:</span>
											</td>
											<td>
												<xsl:value-of select="besteller/naam_full"/>
											</td>
										</tr>
										<tr>
											<td>
												<span class="tekstkopsmall">Ordernummer:</span>
											</td>
											<td>LB <xsl:value-of select="id"/></td>
										</tr>
										<tr>
											<td>
												<span class="tekstkopsmall">Aanvrager:</span>
											</td>
											<td>
												<xsl:value-of select="bestelling/aanvrager/naam_full"/>
											</td>
										</tr>
										<tr>
											<td>
												<span class="tekstkopsmall">Telefoonnummer:</span>
											</td>
											<td>
												<xsl:value-of select="bestelling/aanvrager/telefoonnr"/>
											</td>
										</tr>
									</table>
								</td>
							</tr>
						</table>
						<table border="0" height="300">

							<TR>
								<TD colspan="5">
									<TABLE cellpadding="0" cellspacing="0" border="1" bordercolor="#303030" width="100%">
										<tr>
											<th>Regel</th>
											<th>Artikelnr</th>
											<th>Omschrijving</th>
											<th>Eenheid</th>
											<th style="text-align:right">Aantal</th>
											<xsl:if test="aantal_geleverd &gt; 0">
												<th style="text-align:right">Delivered</th>
											</xsl:if>
											<th style="text-align:right">Prijs</th>
											<th style="text-align:right">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>
												<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>
											</tr>
										</xsl:for-each>
										<tr>
											<td colspan="6"/>
											<xsl:if test="aantal_geleverd &gt; 0">
												<td/>
											</xsl:if>
											<td style="text-align:right">
												<b>
													<xsl:value-of select="format-number(sum(bestelopdrachtitem/totaal), '0,00', 'european')"/>
												</b>
											</td>
										</tr>
									</TABLE>
								</TD>
							</TR>
							<xsl:if test="bestelling/kenmerk">
								<tr>
									<td colspan="5" style="height:20"/>
									<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>
							</xsl:if>
						</table>

						<table border="0" width="100%" bordercolor="#000000">
							<tr>
								<td>
									<xsl:call-template name="voorwaarden">
										<xsl:with-param name="opdr_type" select="opdrachttype/omschrijving"/>
									</xsl:call-template>
								</td>
							</tr>
						</table>
						<xsl:call-template name="pagefooter"/>
					</xsl:element>
				</html>
			</xsl:otherwise>
		</xsl:choose>
	</xsl:template>


	<xsl:template match="rapport" mode="cust">
		<xsl:if test="@view='aaar_v_rap_bezoekers' or @view='AAAR_V_RAP_BEZOEKERS'">
			<html>
				<head>
					<link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Open+Sans:300normal,300italic,200italic"/>
					<style>body {
         margin-top: 10;
				 margin-left: 10;
			}
		.title {
         font-family: 'Open Sans', serif;
         font-style:  italic;
         font-weight: 800;
         font-size: 36pt;
				 color: #087ea4;
				 text-align: center;
      }
     th {
         font-family: 'Open Sans', serif;
         font-style:  normal;
         font-weight: 200;
         font-size: 18pt;
				 color: #808080;
				 background-color:#FFFFFF;
         border-bottom-style: solid; 
         border-bottom-width:4px;
         border-bottom-color:#808080;
				 text-align: left;
      }
     td .normal {
         font-family: 'Open Sans', serif;
         font-style:  normal;
         font-weight: 400;
         font-size: 22pt;
				 height: 100px;
      }</style>
					<script language="javascript">var count=1;
function startAutoRefreshTim() {
  // verwijder scrollbar
  parent.document.body.style.overflow="hidden";
  return;
}</script>
				</head>
				<xsl:variable name="bezoekers">
					<xsl:for-each select="rapport_data/data_row">
						<xsl:sort select="TIJD_VAN"/>
						<xsl:sort select="ITEM_KEY"/>
						<xsl:if test="OFFSET &gt; -60 and OFFSET &lt; 30 and BEZOEK_STATUS='expected' and BEZOEKER != ''">
							<xsl:copy-of select="."/>
						</xsl:if>
					</xsl:for-each>
				</xsl:variable>

				<body topmargin="5" leftmargin="5" onLoad="startAutoRefreshTim();parent.Activate();">
					<table cellspacing="0" cellpadding="0" width="100%">
						<tr>
							<td class="title" width="40%">
								<img src="../../cust/aaar/vis_logo.jpg"/>
							</td>
							<td class="title" width="60%">
								<br/>Verwelkomt<br/><br/></td>
						</tr>
					</table>
					<table cellspacing="0" cellpadding="0" width="100%">
						<tr>
							<td width="100%" valign="top" style="padding: 40px 40px; ">
								<table width="100%">
									<tr>
										<td colspan="3" class="title"></td>
									</tr>
									<tr>
										<th>De heer/mevrouw</th>
										<th>Aankomsttijd</th>
										<th>Uw gastheer/vrouw</th>
									</tr>

									<xsl:for-each select="msxml:node-set($bezoekers)/data_row">
										<tr>
											<td class="normal">
												<xsl:value-of select="BEZOEKER"/>
												<br/>&#xA0;
										&#xA0;&#xA0;&#xA0;&#xA0;&#xA0;<i><xsl:value-of select="BEDRIJF"/></i></td>
											<td class="normal">
												<xsl:value-of select="TIJD_VAN"/>
											</td>
											<td class="normal">
												<xsl:value-of select="GASTHEER"/>
											</td>
										</tr>
									</xsl:for-each>
								</table>
							</td>
						</tr>
					</table>
					<input type="hidden" name="timeID2" value="-1"/>
				</body>
			</html>
		</xsl:if>
	</xsl:template>
</xsl:stylesheet><!-- Stylesheet edited using Stylus Studio - (c) 2004-2007. Progress Software Corporation. All rights reserved. -->