LOGI#40234 -- Styling toegevoegd voor QRcode rapportages

svn path=/Website/branches/v2017.1/; revision=34001
This commit is contained in:
Robin Stoker
2017-05-24 14:10:12 +00:00
parent 11a003ff98
commit f8f9f3e4ce

View File

@@ -1420,6 +1420,57 @@ function startAutoRefreshTim() {
</xsl:for-each>
</xsl:if>
<style>.pagebreak {page-break-after:always;}</style>
<xsl:if test="@view='logi_v_rap_ruiminsres_qrc' or @view='LOGI_V_RAP_RUIMINSRES_QRC'">
<xsl:variable name="p_rows" select="3"/>
<xsl:variable name="p_cols" select="2"/>
<table>
<tr height="200">
<td width="50%" align="center">
<span style="font-size:24pt;color:#000000">QR-codes</span>
</td>
</tr>
<tr height="200">
<td width="50%" align="center">
<span style="font-size:24pt;color:#000000">Ruimte-meldingen</span>
</td>
</tr>
<tr height="200">
<td width="50%" align="center">
<span style="font-size:24pt;color:#000000">(startpagina tbv. uitlijning)</span>
</td>
</tr>
</table>
<xsl:for-each select="//facilitor/rapport/rapport_data/data_row">
<xsl:sort select="FCLT_F_LOCATIE"/>
<xsl:sort select="FCLT_F_GEBOUW"/>
<xsl:sort select="FCLT_F_VERDIEPING"/>
<xsl:sort select="PLAATS"/>
<xsl:sort select="FCLT_F_RUIMTEFUNCTIE"/>
<xsl:if test="position() mod ($p_rows * $p_cols) = 0">
<div style="page-break-before:always">&#160;</div>
<xsl:comment>=== Na elke 2 records (2x1 passen op 1 A4) =====</xsl:comment>
<xsl:call-template name="qrc_ins_new_page">
<xsl:with-param name="p_page" select="floor(position() div ($p_rows * $p_cols))"/>
<xsl:with-param name="p_rows" select="$p_rows"/>
<xsl:with-param name="p_cols" select="$p_cols"/>
</xsl:call-template>
</xsl:if>
<xsl:if test="position() = last() and position() mod ($p_rows * $p_cols) != 0 ">
<div style="page-break-before:always">&#160;</div>
<xsl:comment>=== De laatste paar, zijn minder dan 2 =====</xsl:comment>
<xsl:call-template name="qrc_ins_new_page">
<xsl:with-param name="p_page" select="floor((position() div ($p_rows * $p_cols)) + 1)"/>
<xsl:with-param name="p_rows" select="$p_rows"/>
<xsl:with-param name="p_cols" select="$p_cols"/>
</xsl:call-template>
</xsl:if>
</xsl:for-each>
</xsl:if>
<style>.pagebreak {page-break-after:always;}</style>
</xsl:template>
</xsl:stylesheet>