YKPN#40334 -- Infobord voor TP5
svn path=/Website/branches/v2016.3/; revision=33628
This commit is contained in:
@@ -223,5 +223,145 @@ KPN
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="rapport">
|
||||
<xsl:if test="@view='res_v_rap_infobord' or @view='RES_V_RAP_INFOBORD'">
|
||||
<html>
|
||||
<head>
|
||||
<style>td {
|
||||
font-family: Verdana;
|
||||
padding: 3px;
|
||||
font-size: 14pt;
|
||||
color: #1f3b77;
|
||||
}
|
||||
.odd {
|
||||
background-color: #f6f6f6;
|
||||
}
|
||||
.even {
|
||||
background-color: #ffffff;
|
||||
}
|
||||
#kop {
|
||||
background-color: #ffffff;
|
||||
}
|
||||
p {
|
||||
font-family: Verdana;
|
||||
text-align: center;
|
||||
font-size: 30pt;
|
||||
color: #00cc00;
|
||||
}
|
||||
|
||||
#CLC {
|
||||
font-family: Verdana;
|
||||
color: black;
|
||||
background-color: #ffffff;
|
||||
text-align:center;
|
||||
font-size: 10pt;
|
||||
font-weight:bold;
|
||||
text-decoration: none;
|
||||
}
|
||||
body {
|
||||
margin: 0;
|
||||
overflow: hidden;
|
||||
}</style>
|
||||
<script language="javascript">
|
||||
<xsl:variable name="sorted">
|
||||
<xsl:for-each select="rapport_data/data_row">
|
||||
<xsl:sort select="REGELS" order="ascending" />
|
||||
<xsl:copy-of select="." />
|
||||
</xsl:for-each>
|
||||
</xsl:variable>
|
||||
<xsl:variable name="regels">
|
||||
<xsl:for-each select="msxml:node-set($sorted)/data_row">
|
||||
<xsl:if test="not(preceding-sibling::data_row[1]/REGELS) and REGELS!=''">
|
||||
<xsl:value-of select="REGELS" />
|
||||
</xsl:if>
|
||||
</xsl:for-each>
|
||||
</xsl:variable>var count=1;
|
||||
var screenlength=20;
|
||||
<xsl:if test="$regels!=''">screenlength=<xsl:value-of select="$regels" />;</xsl:if>var line_refresh = 4; // refresh time in seconds
|
||||
|
||||
function alternate(){
|
||||
if(document.getElementsByTagName){
|
||||
var table = document.getElementById("result");
|
||||
var rows = table.getElementsByTagName("tr");
|
||||
for(i = 0; i < rows.length; i++){
|
||||
//manipulate rows
|
||||
if(i % 2 == 0){
|
||||
rows[i].className = "even";
|
||||
}else{
|
||||
rows[i].className = "odd";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function startAutoRefreshTim() {
|
||||
// verwijder scrollbar
|
||||
parent.document.body.style.overflow="hidden";
|
||||
|
||||
if (document.all.timeID2.value>0) {
|
||||
clearInterval(document.all.timeID2.value);
|
||||
document.all.timeID2.value=-1;
|
||||
}
|
||||
|
||||
var table = document.getElementById("result");
|
||||
var rows = table.getElementsByTagName("tr");
|
||||
|
||||
if (count < rows.length - screenlength) {
|
||||
// hide top line
|
||||
trnr = document.getElementById("tr"+count);
|
||||
if(trnr) trnr.style.display= "none";
|
||||
count=count+1;
|
||||
}
|
||||
else {
|
||||
for(i = 0; i < rows.length; i++){
|
||||
//unhide rows
|
||||
rows[i].style.display= "block"
|
||||
count = 1;
|
||||
}
|
||||
}
|
||||
document.all.timeID2.value = setInterval('startAutoRefreshTim();', line_refresh * 1000);
|
||||
}</script>
|
||||
</head>
|
||||
<xsl:variable name="sorted">
|
||||
<xsl:for-each select="rapport_data/data_row">
|
||||
<xsl:sort select="TIJD_VAN" />
|
||||
<xsl:sort select="RUIMTE" />
|
||||
<xsl:if test="OFFSET < 60 and OFFSET > -60 and STATUS != 'Geblokkeerd'">
|
||||
<xsl:copy-of select="." />
|
||||
</xsl:if>
|
||||
</xsl:for-each>
|
||||
</xsl:variable>
|
||||
<body onLoad="alternate();startAutoRefreshTim();parent.Activate();parent.document.body.style.overflow='hidden';">
|
||||
<div ID="kop" align="center">
|
||||
<xsl:element name="img">
|
||||
<xsl:attribute name="src">../../cust/<xsl:value-of select="//header/custId" />/tmpl_logo.gif</xsl:attribute>
|
||||
</xsl:element>
|
||||
<br/>
|
||||
</div>
|
||||
<p>
|
||||
Vergaderzalen
|
||||
</p>
|
||||
<table id="result" width="100%" cellpadding="0" cellspacing="0">
|
||||
<xsl:for-each select="msxml:node-set($sorted)/data_row">
|
||||
<xsl:element name="tr">
|
||||
<xsl:attribute name="id">tr<xsl:value-of select="position()" /></xsl:attribute>
|
||||
<td width="8%">
|
||||
<xsl:value-of select="TIJD_VAN" />
|
||||
</td>
|
||||
<td width="46%">
|
||||
<xsl:value-of select="OMSCHRIJVING" /> </td>
|
||||
<td width="46%">
|
||||
<xsl:value-of select="RUIMTE" />
|
||||
</td>
|
||||
</xsl:element>
|
||||
</xsl:for-each>
|
||||
</table>
|
||||
<input type="hidden" name="timeID2" value="-1" />
|
||||
</body>
|
||||
</html>
|
||||
</xsl:if>
|
||||
</xsl:template>
|
||||
|
||||
</xsl:stylesheet>
|
||||
<!-- Stylesheet edited using Stylus Studio - (c) 2004-2007. Progress Software Corporation. All rights reserved. --><!-- Stylesheet edited using Stylus Studio - (c) 2004-2007. Progress Software Corporation. All rights reserved. --><!-- Stylesheet edited using Stylus Studio - (c) 2004-2007. Progress Software Corporation. All rights reserved. --><!-- Stylesheet edited using Stylus Studio - (c) 2004-2007. Progress Software Corporation. All rights reserved. -->
|
||||
Reference in New Issue
Block a user