Added Client Session graphing

This commit is contained in:
Deon George
2012-12-12 21:39:00 +11:00
parent 12a2a53ef7
commit d84d7de251
9 changed files with 195 additions and 20 deletions

View File

@@ -4,15 +4,17 @@
<td style="width: 50%; vertical-align: top;"><?php echo View::factory('node/session')->set('o',$o); ?></td>
</tr>
<tr>
<td style="width: 50%; vertical-align: top;" colspan="2"><?php echo View::factory('node/graph_backup')->set('o',$o); ?></td>
<td style="width: 50%; vertical-align: top;"><?php echo View::factory('domain/policy')->set('o',$o->DOMAIN); ?></td>
<td style="width: 50%; vertical-align: top;" rowspan="2"><?php echo View::factory('node/cloptset')->set('o',$o); ?></td>
</tr>
<tr>
<td style="width: 50%; vertical-align: top;"><?php echo View::factory('node/settings')->set('o',$o); ?></td>
<td style="width: 50%; vertical-align: top;">&nbsp;</td>
</tr>
<tr>
<td style="width: 50%; vertical-align: top;"><?php echo View::factory('domain/policy')->set('o',$o->DOMAIN); ?></td>
<td style="width: 50%; vertical-align: top;"><?php echo View::factory('node/cloptset')->set('o',$o); ?></td>
<td style="width: 50%; vertical-align: top;" colspan="2"><?php echo View::factory('node/graph_schedules')->set('o',$o); ?></td>
</tr>
<tr>
<td style="width: 50%; vertical-align: top;" colspan="2"><?php echo View::factory('node/graph_sessions')->set('o',$o); ?></td>
</tr>
</table>
<?php echo View::factory('node/sessions')->set('o',$o); ?>

View File

@@ -10,7 +10,7 @@
<?php if ($o->act_bybtype($btype)) { ?>
<?php foreach ($o->act_schedules($btype) as $schedule) { ?>
<tr>
<td><?php echo $o->graph_backup($btype,$schedule); ?></td>
<td><?php echo $o->graph_schedules($btype,$schedule); ?></td>
</tr>
<?php } ?>
<?php } ?>

View File

@@ -0,0 +1,18 @@
<!-- $o = ORM::factory('NODE') -->
<table class="box-full">
<tr>
<td class="head" colspan="2">Session Results</td>
</tr>
<tr>
<td class="spacer">&nbsp;</td>
</tr>
<?php foreach ($o->btypes() as $btype) { ?>
<?php if ($o->act_bybtype($btype)) { ?>
<?php foreach ($o->act_schedules($btype) as $schedule) { ?>
<tr>
<td><?php echo $o->graph_basessions($btype,$schedule); ?></td>
</tr>
<?php } ?>
<?php } ?>
<?php } ?>
</table>