<?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 match="rapport">
		<style>th {
      border: 1px solid #808080;
    }</style>

		<xsl:if test="@view='pris_v_rap_open_mldnotities'">
			<table width="100%" class="rstable" cellpadding="0" cellspacing="0">
				<colgroup>
					<col width="6%"/>
					<col width="8%"/>
					<col width="8%"/>
					<col width="8%"/>
					<col width="8%"/>
					<col width="8%"/>
					<col width="24%"/>
					<col width="6%"/>
					<col width="24%"/>
				</colgroup>

				<xsl:if test="count(rapport_data/data_row)=0">
					<tr>
						<td>
							<center>
								<b>Geen gegevens gevonden</b>
							</center>
						</td>
					</tr>
				</xsl:if>

				<xsl:variable name="sorted">
					<xsl:for-each select="rapport_data/data_row">
						<xsl:sort select="FCLT_F_NUMMER" data-type="number"/>
						<xsl:copy-of select="."/>
					</xsl:for-each>
				</xsl:variable>

				<xsl:for-each select="msxml:node-set($sorted)/data_row">
					<xsl:if test="position() = 1">
						<tr>
							<th style="text-align:left">Nummer</th>
							<th style="text-align:left">Vakgroep</th>
							<th style="text-align:left">Melding</th>
							<th style="text-align:left">Melder</th>
							<th style="text-align:left">Datum</th>
							<th style="text-align:left">Plaats</th>
							<th style="text-align:left">Omschrijving</th>
							<th style="text-align:left">Status</th>
							<th style="text-align:left">Notities</th>
						</tr>
					</xsl:if>

					<tr>
						<td style="text-align:left">
							<xsl:value-of select="FCLT_F_NUMMER"/>
							<xsl:if test="$mode != 'excel'">&#xA0;</xsl:if>
						</td>
						<td style="text-align:left">
							<xsl:value-of select="FCLT_F_VAKGROEP"/>
							<xsl:if test="$mode != 'excel'">&#xA0;</xsl:if>
						</td>
						<td style="text-align:left">
							<xsl:value-of select="FCLT_F_MELDING"/>
							<xsl:if test="$mode != 'excel'">&#xA0;</xsl:if>
						</td>
						<td style="text-align:left">
							<xsl:value-of select="MELDER"/>
							<xsl:if test="$mode != 'excel'">&#xA0;</xsl:if>
						</td>
						<td style="text-align:left">
							<xsl:value-of select="DATUM"/>
							<xsl:if test="$mode != 'excel'">&#xA0;</xsl:if>
						</td>
						<td style="text-align:left">
							<xsl:value-of select="PLAATS"/>
							<xsl:if test="$mode != 'excel'">&#xA0;</xsl:if>
						</td>
						<td style="text-align:left">
							<xsl:call-template name="linebreaks">
								<xsl:with-param name="string" select="OMSCHRIJVING"/>
							</xsl:call-template>
							<xsl:if test="$mode != 'excel'">&#xA0;</xsl:if>
						</td>
						<td style="text-align:left">
							<xsl:value-of select="STATUS"/>
							<xsl:if test="$mode != 'excel'">&#xA0;</xsl:if>
						</td>
						<td style="text-align:left">
							<xsl:call-template name="linebreaks">
								<xsl:with-param name="string" select="NOTITIES"/>
							</xsl:call-template>
							<xsl:if test="$mode != 'excel'">&#xA0;</xsl:if>
						</td>
					</tr>
				</xsl:for-each>
			</table>
		</xsl:if>
	</xsl:template>
</xsl:stylesheet>
