<?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:template match="melding" mode="include">
		<table border="0" width="100%" cellpadding="2">
			<tr>
				<td colspan="2" class="caption" style="padding-top:20px;padding-bottom:20px">
					<b><xsl:value-of select="//lcl/MLD/melding"/>&#160;<xsl:value-of select="discipline/srtdiscipline/prefix"/><xsl:value-of select="key"/></b>
				</td>
				<td colspan="2" class="caption" style="padding-top:20px;padding-bottom:20px">
					<xsl:if test="spoed&lt;3">
						<b><xsl:value-of select="//lcl/MLD/spoed"/></b>
					</xsl:if>
				</td>
			</tr>
			<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>
			<xsl:if test="voor/mobiel != ''">
			<tr>
				<td align="right" width="16%">&#160;</td>
				<td align="left" width="34%">&#160;</td>
				<td align="right" width="16%">
					<b>Mobiel:</b>
				</td>
				<td align="left" width="34%">
					<xsl:value-of select="voor/mobiel"/>
				</td>
			</tr>
			</xsl:if>
			<xsl:if test="plaats/regio/district/locatie/kenmerk[@key=1001]!=''">
			<tr>
				<td align="right" valign="top">
					<b>Werkmaatschappij:</b>
				</td>
				<td align="left">
					<xsl:value-of select="plaats/regio/district/locatie/kenmerk[@key=1001]"/>
				</td>
				<td colspan="2"/>
			</tr>
			</xsl:if>
				<xsl:for-each select="kenmerk[@type!='L' and @type!='Q' and count(@xmlnode)=0]">
				<xsl:sort select="@volgnummer" data-type="number"/>
				<xsl:if test=".!='' and @naam!='Meldinglocatie'">
					<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>
			<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"/>
							<xsl:for-each select="kenmerk[@type!='L' and @type!='Q' and count(@xmlnode)=0]">
				<xsl:sort select="@volgnummer" data-type="number"/>
				<xsl:if test=".!='' and @naam='Meldinglocatie'">
							<br/><xsl:value-of select="."/>
				</xsl:if>
			</xsl:for-each>
				</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>
				<td>&#160;</td>
				<td>&#160;</td>
				<td align="right">
					<b><xsl:value-of select="//lcl/MLD/datum_gereed"/>:</b>
				</td>
				<td align="left">
					<xsl:value-of select="datum_gepland/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 height="30px">
				<td colspan="4"/>
			</tr>
			<tr>
				<td align="right">
					<b><xsl:value-of select="//lcl/MLD/vakgroep"/>:</b>
				</td>
				<td align="left">
					<xsl:if test="discipline/omschrijving=''">-</xsl:if>
					<xsl:value-of select="discipline/omschrijving"/>
				</td>
			</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>
			</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: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:if>
			<xsl:if test="opmerking!=''">
				<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="melding" mode="kto">
      <br/>Geachte heer/mevrouw <xsl:value-of select="voor/tussenvoegsel"/>&#xA0;<xsl:value-of select="voor/naam"/>,<br/><br/>
   	<br/>De melding <xsl:value-of select="discipline/srtdiscipline/prefix"/><xsl:value-of select="key"/> (<xsl:value-of select="stdmelding/omschrijving"/>) is onlangs verwerkt.
   	<br/>Om je in de toekomst nog beter van dienst te kunnen zijn is je mening omtrent de uitgevoerde werkzaamheden van belang.
   	<br/>Wij verzoeken je
   	<xsl:call-template name="kto_url">
   		<xsl:with-param name="bmr">m</xsl:with-param>
   	</xsl:call-template> te volgen en je reactie te geven. Het invullen van dit formulier duurt ongeveer 2 minuten.
   	<br/>Bij voorbaat hartelijk dank voor je medewerking.
		<br/>
		<br/>Facilitair Service Centre
		<br/>
      <br/>Onderstaand tref je de gegevens van deze melding nogmaals aan:<br/><br/><br/>
		<xsl:apply-templates select="." mode="include"/>
	</xsl:template>


</xsl:stylesheet>
<!-- Stylus Studio meta-information - (c) 2004-2006. Progress Software Corporation. All rights reserved.
<metaInformation>
<scenarios ><scenario default="yes" name="Scenario1" userelativepaths="yes" externalpreview="no" url="file:///c:/temp/CSUNmelding63.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>
-->