svn path=/Website/branches/v2017.1/; revision=35048
This commit is contained in:
Peter Feij
2017-08-22 17:46:47 +00:00
parent d8e3455d1c
commit 09c2b1b34f

189
CUST/FCLT/xsl/melding.xsl Normal file
View File

@@ -0,0 +1,189 @@
<?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:template name="stylesheet">
<style>
body {
font-family: Arial, Helvetica, sans-serif;
background-color: #fff;
margin-left:3em;
margin-top:1em;
line-height: 1.5em;
cursor: auto;
color: #111;
font-size: 1em;
}
.fatal {
background-color: red;
color: white;
font-weight: bold;
padding-left: 2px;
padding-right: 2px;
}
pre, xmp, code {
font-style: normal;
white-space: pre;
display:block;
}
.mldbeh {
font-size: 0.8em;
color: #666;
}
a {
text-decoration: none;
color: #6685AE;
}
a:hover{
text-decoration: underline;
}
.contain {border-left: 4px solid #009979;}
.head {
margin: 2em 0 0.4em 2em;
}
.body {
margin-left: 2em;
}
.titel {
font-size: 1.6em;
text-transform: uppercase;
}
.label {
font-weight: bold;
padding-right: 4px;
}
.melder {
font-size: 0.8em;
font-style: italic;
color: #99AEC9;
}
.subj {
font-size: 0.6em;
color: #747578;
text-transform: uppercase;
}
.indent {
margin: 0 0 0 10px;
}
</style>
</xsl:template>
<xsl:template match="melding" mode="include">
<div class="contain">
<div class="head">
<span class="titel">
<xsl:value-of select="stdmelding/omschrijving"/>&#160;<xsl:value-of
select="voor/afdeling/omschrijving"/>#<xsl:value-of select="discipline/srtdiscipline/prefix"/><xsl:value-of select="key"/>
<xsl:if test="onderwerp != ''">&#160;
<br/><span class="subj"><xsl:value-of select="onderwerp"/></span>
</xsl:if>
</span>
<xsl:if test="spoed&lt;3">
<span class="label">
<xsl:value-of select="//lcl/MLD/spoed"/>
</span>
</xsl:if>
<div class="melder">
<span class="label">Gemeld door</span><xsl:value-of select="voor/naam_friendly"/>&#160;<span class="label">op</span><xsl:value-of select="gemeld/datum"/>&#xA0;om&#xA0;<xsl:value-of select="gemeld/tijd"/>
<xsl:if test="aanvrager/naam_full!=voor/naam_full">
<br/><span class="label">Gemeld voor</span>&#160;<xsl:value-of select="voor/naam_friendly"/>
</xsl:if></div>
<xsl:if test="not(//opdracht/extra_key) and extra_key">
<xsl:variable name="mx_key">
<xsl:value-of select="extra_key"/>
</xsl:variable>
<br/>
<span class="label">
<xsl:value-of
select="//lcl/FAC/bericht"/></span>
<br/>
<xsl:call-template name="linebreaks">
<xsl:with-param
name="string" select="notes/note[key=$mx_key]/omschrijving"/> </xsl:call-template>
</xsl:if>
</div>
<div class="body">
<br/>
<span class="label">
<xsl:value-of select="//lcl/FAC/omschrijving"/></span>
<br/><div class="indent">
<xsl:call-template name="linebreaks">
<xsl:with-param name="string" select="omschrijving"/>
</xsl:call-template></div>
<br/>
<span class="label">
<xsl:value-of select="//lcl/MLD/vakgroep"/></span>&#160;<xsl:value-of select="discipline/omschrijving"/>
<br/>
<span class="label">
<xsl:value-of select="//lcl/MLD/status"/></span>&#160;<xsl:value-of select="status"/>
<xsl:for-each select="kenmerk[@type!='L' and @type!='l' and @type!='Q' and count(@xmlnode)=0]">
<xsl:sort select="@volgnummer" data-type="number"/>
<xsl:if test=".!=''">
<br/>
<span class="label">
<xsl:value-of select="@naam"/>&#160;</span>
<xsl:value-of select="."/>
</xsl:if>
</xsl:for-each>
<br/>
<span class="label">
<xsl:value-of
select="//lcl/FAC/behandelaar"/></span>&#160;<xsl:value-of
select="behandelaar/naam_friendly"/>
<xsl:for-each select="notes/note[flag=1]">
<xsl:sort select="aanmaak/timestamp" order="ascending"/>
<xsl:if test="position() = 1">
<br/><br/>
<span class="label">
<xsl:value-of select="//lcl/MLD/behandeling"/></span>
</xsl:if>
<br/>
<span class="mldbeh">
<xsl:value-of select="aanmaak/datum"/>&#xA0;<xsl:value-of select="aanmaak/tijd"/>&#xA0;-&#xA0;<xsl:value-of select="noteur/naam_friendly"/>
</span>&#xA0;
<xsl:call-template name="linebreaks">
<xsl:with-param name="string" select="omschrijving"/>
</xsl:call-template>
</xsl:for-each>
<xsl:if test="opmerking!=''">
<br/>
<span class="label">
<xsl:value-of select="//lcl/MLD/afhandeling"/></span>
<br/>
<xsl:call-template name="linebreaks">
<xsl:with-param name="string" select="opmerking"/>
</xsl:call-template>
</xsl:if>
</div>
</div>
</xsl:template>
</xsl:stylesheet>