Added Server activity log

This commit is contained in:
Deon George
2012-12-13 13:19:58 +11:00
parent 31609b2121
commit 46e80f5b45
14 changed files with 164 additions and 6 deletions

View File

@@ -1,3 +1,4 @@
<!-- $o = ORM::factory('DB') -->
<table width="100%">
<tr>
<td style="width: 50%; vertical-align: top;"><?php echo View::factory('db/info')->set('o',$o); ?></td>

View File

@@ -1,3 +1,4 @@
<!-- $o = ORM::factory('DOMAIN') -->
<table width="100%">
<tr>
<td style="width: 100%; vertical-align: top;" colspan="2"><?php echo View::factory('domain/nodes')->set('o',$o); ?></td>

View File

@@ -1,3 +1,4 @@
<!-- $o = ORM::factory('LIBRARY') -->
<table width="100%">
<tr>
<td style="width: 50%; vertical-align: top;"><?php echo View::factory('library/info')->set('o',$o); ?></td>

View File

@@ -1,3 +1,4 @@
<!-- $o = ORM::factory('DOMAIN') -->
<table width="100%">
<tr>
<td style="width: 50%; vertical-align: top;"><?php echo View::factory('node/info')->set('o',$o); ?></td>

View File

@@ -0,0 +1,19 @@
<!-- $o = ORM::factory('STATUS') -->
<table class="box-full">
<tr>
<td class="head" colspan="2">Server Activity</td>
</tr>
<tr>
<td class="spacer">&nbsp;</td>
</tr>
<tr>
<td>Date</td>
<td>Message</td>
</tr>
<?php $i=0; foreach ($o->activity() as $ao) { ?>
<tr>
<td class="data"><?php echo $ao->DISPLAY('DATE_TIME'); ?>
<td class="data"><?php echo $ao->DISPLAY('MESSAGE'); ?>
</tr>
<?php } ?>
</table>

View File

@@ -0,0 +1,9 @@
<!-- $o = ORM::factory('STATUS') -->
<table width="100%">
<tr>
<td style="width: 50%; vertical-align: top;"><?php echo View::factory('server/info')->set('o',$o); ?></td>
</tr>
<tr>
<td style="width: 50%; vertical-align: top;"><?php echo View::factory('server/activity')->set('o',$o); ?></td>
</tr>
</table>

View File

@@ -0,0 +1,13 @@
<!-- $o = ORM::factory('NODE') -->
<table class="box-full">
<tr>
<td class="head" colspan="2">Server Information</td>
</tr>
<tr>
<td class="spacer">&nbsp;</td>
</tr>
<tr>
<td style="width: 40%;">Server Name</td>
<td style="width: 60%;" class="data"><?php echo $o->display('SERVER_NAME'); ?> (<?php echo $o->display('SERVER_HLA').':'.$o->display('SERVER_LLA'); ?>)</td>
</tr>
</table>

View File

@@ -1,3 +1,4 @@
<!-- $o = ORM::factory('STGPOOL') -->
<table width="100%">
<tr>
<td style="width: 50%; vertical-align: top;" rowspan="2"><?php echo View::factory('stgpool/info')->set('o',$o); ?></td>

View File

@@ -1,3 +1,4 @@
<!-- $o = ORM::factory('VOLUME') -->
<table width="100%">
<tr>
<td style="width: 50%; vertical-align: top;"><?php echo View::factory('volume/info')->set('o',$o); ?></td>