Example #1
0
    var larMin = lico - larg;
    var larMax = x - larg;
    var lar = Math.max(680,larMin);
    lar = Math.min(lar,larMax); 
    var t = "<td><div id='map_canvas'  class='map_canvas' style='margin-left:auto; margin-right:auto; margin-top:-2px; width:"+lar+"px; height:"
    t += y+"px; border:solid 2px gray;'> </div></td>";
    //t = "<td><div id='map_canvas'  style='width:400px; height:400px;' > </div></td>";
    document.write(t);
    //alert(t);
 </script>
    <!--<td><div id='map_canvas'  style='width:400px; height:400px;' > </div></td>-->
    <td class='container'>
        <?php 
drawMenuCompare('292px');
//304
drawMenuHist('292px');
?>
	
    </td>
</tr>

</table>

<?php 
drawLogoutBack();
?>
</div>
</body>
</html>

Example #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();
}