Beispiel #1
0
    echo "<td>";
    fill($i, $devicelist["devices"][$i], $mydevices[$i], $dashboard[$i]);
    echo "</td>";
}
echo "</tr></table>";
?>

<!-- trace des menus et de la Google map -->

<table class='container'>

<tr>
    <td class='container'>
        <?php 
drawMenuModules('292px');
drawMenuStation('292px');
?>
    </td>
<!-- GOOGLE MAP -->

    <script>  
    var x = $(document).width();
    var y = $(document).height();
    var xx = $(window).width();
    if(xx <  $(window).height())y = Math.min(y,xx); // portrait
    var ico = document.getElementById("icones");
    var hico = ico.offsetHeight;
    //hico = Math.max(hico,144);
    var lico = ico.offsetWidth;  
    var gr = document.getElementById("modules");
    var larg = 2*gr.offsetWidth + 12;
Beispiel #2
0
function drawCharts($order = 'G')
{
    require_once 'calendrier.php';
    $h = '300px';
    ?>
    

 	<!-- Invisible table -->
    <table class='ds_box'  id='ds_conclass' style='display: none;' >
    <caption id='id_caption' class='ds_caption'>xxxx</caption>
    <tr><td id='ds_calclass'>aaa</td></tr>
    </table>
	
	<table style='padding:0px; width:100%; margin-bottom:-5px;'>

	<tr>
	<td style='padding:0px; vertical-align:bottom;'>
    <?php 
    $visu = $order == 'M' ? 2 : 1;
    drawMenuModules($h, $visu);
    ?>
 
	</td>
	
		<td  style='padding:0px; vertical-align:bottom; width:100%;'>
		<script>
		    h = heightChart();
            w = widthChart();
		    var txt = "<div id='chart0' class='chart' style='width:"+w+"px; height:"+h;
		    txt += "px;'></div>";
		    document.write(txt);
		</script>
		</td>

	<td style='padding:0px; vertical-align:bottom;'>
    <?php 
    $visu = $order == 'C' ? 1 : 0;
    drawMenuCompare($h, 1 + $visu);
    ?>
	</td>
		
	 </tr>
	 <tr>
	 <td style='padding:0px; vertical-align:bottom;'>
    <?php 
    $visu = $order == 'G' ? 1 : 0;
    drawMenuStation($h, 1 + $visu);
    ?>
	 </td>
	 
		<td style='padding:0px; vertical-align:bottom; width:100%;'>
		<script>
		    h = heightChart();
            w = widthChart();
		    var txt = "<div id='chart1' class='chart' style='width:"+w+"px; height:"+h;
		    txt += "px;'></div>";
		    document.write(txt);
		</script>
        </td>
	<td style='padding:0px; vertical-align:bottom;'>
    <?php 
    $visu = $order == 'H' ? 1 : 0;
    drawMenuHist($h, 1 + $visu);
    ?>
	</td>
	</tr>
	</table>
	
	<?php 
    drawLogoutBack();
}