]> git.sur5r.net Git - bacula/bacula/commitdiff
bacula-web: Added Backup Job period
authorDavide Franco <bacula-dev@dflc.ch>
Tue, 15 Feb 2011 14:33:38 +0000 (15:33 +0100)
committerKern Sibbald <kern@sibbald.com>
Sat, 20 Apr 2013 12:43:38 +0000 (14:43 +0200)
 - Added the period information in the Backup Job report page

gui/bacula-web/backupjob-report.php
gui/bacula-web/templates/backupjob-report.tpl

index e5facc22bb0e73a9e29191a9d9cef283bc31e38a..653a4a0bb2d07328fe08c7b3a85a719cd3402a08 100644 (file)
@@ -35,7 +35,8 @@
          $today = ( mktime() - ($c * LAST_DAY) );
          array_push( $days, array( 'start' => date( "Y-m-d 00:00:00", $today ), 'end' => date( "Y-m-d 23:59:00", $today ) ) );
   }
-  
+  // Generate Backup Job report period string
+  $backupjob_period = "From " . date( "Y-m-d", mktime()-LAST_WEEK ) . " to " . date( "Y-m-d", mktime() );
   // Last 7 days stored Bytes graph
   $graph = new BGraph( "graph2.png" );
 
@@ -75,6 +76,7 @@
   $smarty->assign('graph_stored_files', $graph->Get_Image_file() );  
   
   $smarty->assign('backupjob_name', $backupjob_name );
+  $smarty->assign('backupjob_period', $backupjob_period );
   $smarty->assign('backupjob_bytes', $backupjob_bytes );
   $smarty->assign('backupjob_files', $backupjob_files );
   
index 605822226483d50234cdaabda0a19b354e84e7ea..972130a0fe915883e821fec5480a601274ce536a 100644 (file)
@@ -33,7 +33,7 @@
                </tr>
                <tr>
                        <td>Period:</td>
-                       <td>ppp{$backupjob_period}</td>
+                       <td>{$backupjob_period}</td>
                </tr>
                <tr>
                        <td>Transfered Bytes</td>