PCHW#41835 -- Zaalreserveringsoverzicht op scherm in de hal bij Gemeente Westland Verdilaan
svn path=/Website/branches/v2017.1/; revision=35162
This commit is contained in:
@@ -265,6 +265,150 @@
|
||||
<style>
|
||||
td { border-bottom: 1px solid #ccc; padding: 4px 3px 8px 3px;}
|
||||
</style>
|
||||
|
||||
<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 = 2; // 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 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';">-->
|
||||
<body onLoad="alternate();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">
|
||||
<tr>
|
||||
<th width="12%">Tijdstip</th>
|
||||
<th width="44%">Onderwerp</th>
|
||||
<th width="44%">Zaal</th>
|
||||
</tr>
|
||||
|
||||
<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>
|
||||
<xsl:value-of select="TIJD_VAN"/> - <xsl:value-of select="TIJD_TOT"/>
|
||||
</td>
|
||||
<td>
|
||||
<xsl:value-of select="OMSCHRIJVING"/>
|
||||
</td>
|
||||
<td>
|
||||
<xsl:value-of select="RUIMTE"/>
|
||||
</td>
|
||||
</xsl:element>
|
||||
</xsl:for-each>
|
||||
</table>
|
||||
<input type="hidden" name="timeID2" value="-1"/>
|
||||
</body>
|
||||
</html>
|
||||
</xsl:if>
|
||||
|
||||
<xsl:if test="@view='pchx_v_rap_gbs_status_info'">
|
||||
<table width="100%">
|
||||
<xsl:for-each select="rapport_data/data_row">
|
||||
|
||||
Reference in New Issue
Block a user