ARAI#37083 QR codes objecten
svn path=/Website/branches/v2016.2/; revision=31284
This commit is contained in:
@@ -1565,8 +1565,90 @@ Amsterdam RAI
|
||||
</xsl:if>
|
||||
<xsl:value-of select="//facilitor/rapport/rapport_data/data_row/INS_KENMERKDEEL_AANMAAK[1]"/>
|
||||
</xsl:if>
|
||||
|
||||
<xsl:if test="@view = 'ARAI_V_INS_QRC' or @view = 'ARAI_V_INS_QRC_MLD'">
|
||||
<xsl:variable name="p_rows" select="6"/>
|
||||
<xsl:variable name="p_cols" select="2"/>
|
||||
|
||||
<xsl:for-each select="//facilitor/rapport/rapport_data/data_row">
|
||||
<xsl:sort select="FCLT_F_IDENTIFICATIE"/>
|
||||
<xsl:if test="position() mod ($p_rows * $p_cols) = 0">
|
||||
<xsl:comment>=== Na elke p_rows*p_cols records (m*n 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>
|
||||
<div style="page-break-after:always; margin:0;padding:0"> </div>
|
||||
</xsl:if>
|
||||
<xsl:if test="position() = last() and position() mod ($p_rows * $p_cols) != 0 ">
|
||||
<xsl:comment>=== De laatste paar, zijn minder dan m*n =====</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>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="data_row" mode="qrc">
|
||||
<td style="text-align: center; vertical-align: top; margin:0;padding:0">
|
||||
<xsl:element name="img">
|
||||
<xsl:attribute name="style">height: 4.25cm; width: 4.25cm; margin:0cm; padding:0; border:none</xsl:attribute>
|
||||
<xsl:attribute name="src">
|
||||
../../appl/shared/qrcode.asp?size=16&text=/%3Fu%3D<xsl:value-of select="HIDE_F_BOOKMARK_ID"/>%26k%3D<xsl:value-of select="INS_DEEL_KEY"/>
|
||||
</xsl:attribute>
|
||||
</xsl:element>
|
||||
</td>
|
||||
<td style="text-align:left; vertical-align: top; margin:0;padding:0; font-size: 11pt; font-weight: bold">
|
||||
<xsl:element name="img">
|
||||
<xsl:attribute name="style">width: 5.2cm; margin: 0.5cm 0.65cm 0.2cm 0</xsl:attribute>
|
||||
<xsl:attribute name="src">
|
||||
../../cust/akza/akzonobel.gif
|
||||
</xsl:attribute>
|
||||
</xsl:element>
|
||||
<br/>   <xsl:value-of select="FCLT_F_IDENTIFICATIE"/><br/>
|
||||
   <sub><xsl:value-of select="ALG_GEBOUW_CODE"/> - <xsl:value-of select="ALG_VERDIEPING_CODE"/></sub>
|
||||
|
||||
</td>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template name="qrc_ins_new_page">
|
||||
<xsl:param name="p_page"/>
|
||||
<xsl:param name="p_rows"/>
|
||||
<xsl:param name="p_cols"/>
|
||||
|
||||
<table cellpadding="0" cellspacing="0" style="margin:0 0 0 2mm; padding:0">
|
||||
<tr>
|
||||
<td style="height: 1.7cm; width 4.5cm"> </td>
|
||||
<td style="height: 1.7cm; width 5.5cm"> </td>
|
||||
<td style="height: 1.7cm; width 4.5cm"> </td>
|
||||
<td style="height: 1.7cm; width 5.5cm"> </td>
|
||||
</tr>
|
||||
<xsl:for-each select="//facilitor/rapport/rapport_data/data_row">
|
||||
<xsl:sort select="FCLT_F_IDENTIFICATIE"/>
|
||||
<xsl:if test="position() >= (($p_page - 1)*($p_rows*$p_cols)+1) and position() <= ($p_page*($p_rows*$p_cols))">
|
||||
<xsl:if test="(position() mod $p_cols) = 0">
|
||||
<xsl:comment>=== Na elke 1 records (1x1 passen op 1 regel) =====</xsl:comment>
|
||||
<xsl:call-template name="qrc_ins_new_tr">
|
||||
<xsl:with-param name="p_pos" select="position() - $p_cols + 1"/>
|
||||
<xsl:with-param name="p_cols" select="$p_cols"/>
|
||||
</xsl:call-template>
|
||||
</xsl:if>
|
||||
<xsl:if test="(position() = last()) and (position() mod $p_cols) != 0">
|
||||
<xsl:comment>=== Na elke 1 records (1x1 passen op 1 regel) =====</xsl:comment>
|
||||
<xsl:call-template name="qrc_ins_new_tr">
|
||||
<xsl:with-param name="p_pos" select="floor(position() div $p_cols) * $p_cols + 1"/>
|
||||
<xsl:with-param name="p_cols" select="$p_cols"/>
|
||||
</xsl:call-template>
|
||||
</xsl:if>
|
||||
</xsl:if>
|
||||
</xsl:for-each>
|
||||
</table>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<xsl:template name="MaxRuimteCols">
|
||||
<xsl:param name="p_groepnr"/>
|
||||
@@ -2293,42 +2375,6 @@ Amsterdam RAI
|
||||
|
||||
</xsl:template>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<xsl:template name="qrc_ins_new_page">
|
||||
<xsl:param name="p_page"/>
|
||||
<xsl:param name="p_rows"/>
|
||||
<xsl:param name="p_cols"/>
|
||||
|
||||
|
||||
<table>
|
||||
|
||||
<xsl:for-each select="//facilitor/rapport/rapport_data/data_row">
|
||||
<xsl:sort select="FCLT_F_GEBOUW"/>
|
||||
<xsl:sort select="PLAATS"/>
|
||||
<xsl:if test="position() >= (($p_page - 1)*($p_rows*$p_cols)+1) and position() <= ($p_page*($p_rows*$p_cols))">
|
||||
<xsl:if test="(position() mod $p_cols) = 0">
|
||||
<xsl:comment>=== Na elke 1 records (1x1 passen op 1 regel) =====</xsl:comment>
|
||||
<xsl:call-template name="qrc_ins_new_tr">
|
||||
<xsl:with-param name="p_pos" select="position() - $p_cols + 1"/>
|
||||
<xsl:with-param name="p_cols" select="$p_cols"/>
|
||||
</xsl:call-template>
|
||||
</xsl:if>
|
||||
<xsl:if test="(position() = last()) and (position() mod $p_cols) != 0">
|
||||
<xsl:comment>=== Na elke 1 records (1x1 passen op 1 regel) =====</xsl:comment>
|
||||
<xsl:call-template name="qrc_ins_new_tr">
|
||||
<xsl:with-param name="p_pos" select="floor(position() div $p_cols) * $p_cols + 1"/>
|
||||
<xsl:with-param name="p_cols" select="$p_cols"/>
|
||||
</xsl:call-template>
|
||||
</xsl:if>
|
||||
</xsl:if>
|
||||
</xsl:for-each>
|
||||
</table>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<xsl:template name="qrc_ins_new_tr">
|
||||
<xsl:param name="p_pos"/>
|
||||
<xsl:param name="p_cols"/>
|
||||
@@ -2409,6 +2455,7 @@ Amsterdam RAI
|
||||
</xsl:attribute>
|
||||
<span style="font-size:10pt;"><xsl:value-of select="$p_value_prefix"/><xsl:value-of select="$p_value"/><xsl:value-of select="$p_value_postfix"/></span>
|
||||
</xsl:element>
|
||||
|
||||
</xsl:template>
|
||||
|
||||
</xsl:stylesheet>
|
||||
|
||||
Reference in New Issue
Block a user