<?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:variable name="xsrtnotificatiecode">CUST01</xsl:variable>

	<xsl:template name="stylesheet">
		<style>body {
       font-family: Verdana;
       background-color: rgb(255, 255, 255);
       margin-left:8;
       margin-top:8;
       cursor: auto;
    }

    p {
      font-family: Verdana;
      font-style: normal;
      font-size: 9pt;
      font-weight: normal;
      color:  #000000;
      text-align: left;
      vertical-align: top;
    }

    table {
      border: 0;
    }

    table.details {
      background-color: "#31398C";
    }

    th {
      font-family: Verdana;
      font-size: 9pt;
      font-weight: normal;
      color: #ffffff;
      text-decoration: none;
      padding-left:  3px;
      padding-right: 3px;
      padding-top: 3px;
      padding-bottom: 3px;
      background-color: #31398C;
    }

    td {
      font-family: Verdana;
      font-style: normal;
      font-size: 8pt;
      font-weight: normal;
      color:  #000000;
      text-align: left;
      vertical-align: top;
    }

    td.result {
      text-decoration: none;
      padding-bottom: 2px;
      padding-top: 2px;
      padding-left: 2px;
      padding-right: 2px;
      background-color: #D6D8E8;
    }

    td.sec_heading {
      font-size: 9pt;
      text-decoration: none;
      padding-bottom: 2px;
      padding-top: 2px;
      padding-left: 2px;
      padding-right: 2px;
      text-align: left;
      background-color: #d0d0d0;
    }

    td.caption {
      font-size:   18pt;
      padding-bottom: 30px;
      padding-top: 40px;
    }

    td.subcaption {
      font-size: 10pt;
      font-weight: bold;
      text-decoration: underline;
    }

    td.label {
      font-size: 10pt;
    }

    td.value {
      font-style: italic;
      font-size: 10pt;
    }

    td.tekst {
      font-size: 10pt;
    }

    td.adres {
      font-size: 8pt;
      text-align: right;
    }

    td.tekstkop {
      font-weight: bold;
      font-size: 10pt;
    }

    td.tiny {
      font-size: 6pt;
      text-align: right;
    }

	span.tekstkop {
      font-weight: bold;
      font-size: 9pt;
	}
	span.tekstkopsmall {
      font-weight: bold;
      font-size: 8pt;
	}</style>
	</xsl:template>
	
	    <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/<xsl:value-of select="//header/custId"/>/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"><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"><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"><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"><xsl:value-of select="$opdr_nummer"/></span></xsl:when>
                                    <xsl:otherwise>Ordernummer: <span class="tekstkop"><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)88 0081121<br/>
         Postbus 4028<br/>
         3502 HM  Utrecht<br/>
         E-mail: facilitydeskns@aa-fm.com<br/>
                    </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 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 B.V.<br/>
         T.a.v. Crediteurenadministratie NS account<br/>
         Postbus 80009<br/>
         5600 JZ  Eindhoven</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 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, met uitzondering van met AAFM Facility Management BV overeengekomen schriftelijke contractuele afspraken.</xsl:if>
                    </span>
                    <br/>
                    <table border="0" width="100%">
                    <tr><td style="text-align:center">
                    <span style="font-size:9; font-weight:bold">Trade register no. 09130306</span>
                    </td></tr>
                    </table>
                </td>
            </tr>
        </table>
    </xsl:template>        
	
	<xsl:decimal-format name="euro"
 decimal-separator="," grouping-separator="."/>

	<xsl:template match="cust" mode="full">
		<html>
			<xsl:comment>================================ CUSTOMER ==============================</xsl:comment>
			<xsl:comment>Facilitor new style default XSL template for customer nodes</xsl:comment>
			<xsl:call-template name="htmlhead"/>
			<style>td.rs {
	        		font-size: 8pt;
        		}
        		tr.rs {
          			background-color: #D6D8E8;
          			border: 1px solid rgb(255, 255, 255);
          			padding: 3px 3px 3px 3px;
		  			font-family: Verdana;
        		}
        		th.rs {
          			font-size: 9pt;
          			color: #ffffff;
          			background-color: #31398C;
		  			font-family: Verdana;
        		}</style>
			<xsl:element name="body">
				<xsl:if test="$mode!='email'">
					<xsl:attribute name="onload">window.print();</xsl:attribute>
				</xsl:if>
				<xsl:call-template name="pageheader"/>
				<xsl:for-each select="res_overview">
					<p>LS,</p>
					<p>Bijgaand ontvangt u een overzicht van reserveringen ingevoerd in Facilitor voor de komende werkdag.
						<br/>
					</p>
					<table>
						<tr>
							<th class="rs">Locatie</th>
							<th class="rs">Ruimte</th>
							<th class="rs">Datum</th>
							<th class="rs">Van</th>
							<th class="rs">Tot</th>
							<th class="rs">pers</th>
							<th class="rs">Voorziening/Opstelling</th>
							<th class="rs">Gastheer</th>
							<th class="rs">Aanvrager</th>
							<th class="rs">FDC</th>
							<th class="rs">Omschrijving</th>
							<th class="rs">Opmerking</th>
						</tr>
						<xsl:for-each select="record">
							<tr class="rs">
								<td class="rs">
									<xsl:value-of select="locatie"/>
								</td>
								<td class="rs">
									<xsl:value-of select="res_ruimte_nr"/>
								</td>
								<td class="rs">
									<xsl:value-of select="datum"/>
								</td>
								<td class="rs">
									<xsl:value-of select="tijd"/>
								</td>
								<td class="rs">
									<xsl:value-of select="tot"/>
								</td>
								<td class="rs">
									<xsl:value-of select="bezoekers"/>
								</td>
								<td class="rs">
									<xsl:value-of select="voorziening"/>
								</td>
								<td class="rs">
									<xsl:value-of select="gastheer"/>
								</td>
								<td class="rs">
									<xsl:value-of select="aanvrager"/>
								</td>
								<td class="rs">
									<xsl:value-of select="kostenplaats"/>
								</td>
								<td class="rs">
									<xsl:value-of select="omschrijving"/>
								</td>
								<td class="rs">
									<xsl:value-of select="opmerking"/>
								</td>
							</tr>
						</xsl:for-each>
					</table>
				</xsl:for-each>
				<xsl:call-template name="pagefooter"/>
			</xsl:element>
		</html>
	</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">			
        <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/aans/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: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="file:///m:/OrderTemplatesAAXX/ContractOrder.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>
-->