2014-01-22 22:24:06 +08:00
|
|
|
.chartSize {
|
2014-12-05 07:44:23 +08:00
|
|
|
width: <?php echo $chart['width'] ?>px;
|
|
|
|
height: <?php echo $chart['height'] ?>px;
|
2014-01-22 22:24:06 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.graphSize {
|
2014-12-05 07:44:23 +08:00
|
|
|
width: <?php echo $chart['graph']['width'] ?>px;
|
|
|
|
height: <?php echo $chart['graph']['height'] ?>px;
|
2014-01-22 22:24:06 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.graphHeight {
|
2014-12-05 07:44:23 +08:00
|
|
|
height: <?php echo $chart['graph']['height'] ?>px;
|
2014-01-22 22:24:06 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.graphWidth {
|
2014-12-05 07:44:23 +08:00
|
|
|
width: <?php echo $chart['graph']['width'] ?>px;
|
2014-01-22 22:24:06 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.imageSize {
|
2014-12-05 07:44:23 +08:00
|
|
|
width: <?php echo $chart['image']['width'] ?>px;
|
|
|
|
height: <?php echo $chart['image']['height'] ?>px;
|
2014-01-22 22:24:06 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.imageHeight {
|
2014-12-05 07:44:23 +08:00
|
|
|
height: <?php echo $chart['image']['height'] ?>px;
|
2014-01-22 22:24:06 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.activitySize {
|
2014-12-05 07:44:23 +08:00
|
|
|
width: <?php echo $chart['graph']['width'] ?>px;
|
|
|
|
height: <?php echo $chart['graph']['activityHeight'] ?>px;
|
2014-01-22 22:24:06 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.eventsSize {
|
2014-12-05 07:44:23 +08:00
|
|
|
width: <?php echo $chart['graph']['width'] ?>px;
|
|
|
|
height: <?php echo $chart['graph']['eventBarHeight'] ?>px;
|
2014-01-22 22:24:06 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.eventsHeight {
|
2014-12-05 07:44:23 +08:00
|
|
|
height: <?php echo $chart['graph']['eventBarHeight'] ?>px;
|
2014-01-22 22:24:06 +08:00
|
|
|
}
|
|
|
|
<?php
|
|
|
|
if ( $mode == "overlay" )
|
|
|
|
{
|
|
|
|
foreach ( array_keys($monitorIds) as $monitorId )
|
|
|
|
{
|
|
|
|
?>
|
2014-12-05 07:44:23 +08:00
|
|
|
#chartPanel .eventsPos<?php echo $monitorId ?> {
|
|
|
|
top: <?php echo $chart['eventBars'][$monitorId]['top'] ?>px;
|
2014-01-22 22:24:06 +08:00
|
|
|
}
|
|
|
|
<?php
|
|
|
|
}
|
|
|
|
}
|
|
|
|
elseif ( $mode == "split" )
|
|
|
|
{
|
|
|
|
foreach ( array_keys($monitorIds) as $monitorId )
|
|
|
|
{
|
|
|
|
?>
|
2014-12-05 07:44:23 +08:00
|
|
|
#chartPanel .activityPos<?php echo $monitorId ?> {
|
|
|
|
top: <?php echo $char['activityBars'][$monitorId]['top'] ?>px;
|
2014-01-22 22:24:06 +08:00
|
|
|
}
|
|
|
|
|
2014-12-05 07:44:23 +08:00
|
|
|
#chartPanel .eventsPos<?php echo $monitorId ?> {
|
|
|
|
top: <?php echo $char['eventBars'][$monitorId]['top'] ?>px;
|
2014-01-22 22:24:06 +08:00
|
|
|
}
|
|
|
|
<?php
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
foreach( array_keys($monEventSlots) as $monitorId )
|
|
|
|
{
|
|
|
|
?>
|
2014-12-05 07:44:23 +08:00
|
|
|
.monitorColour<?php echo $monitorId ?> {
|
|
|
|
background-color: <?php echo $monitors[$monitorId]['WebColour'] ?>;
|
2014-01-22 22:24:06 +08:00
|
|
|
}
|
|
|
|
<?php
|
|
|
|
}
|
|
|
|
?>
|