From: Davide Franco Date: Tue, 15 Feb 2011 14:33:38 +0000 (+0100) Subject: bacula-web: Added Backup Job period X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=da7b84924e4b32572f61f62acabaf4d2f2cd3e3a;p=bacula%2Fbacula bacula-web: Added Backup Job period - Added the period information in the Backup Job report page --- diff --git a/gui/bacula-web/backupjob-report.php b/gui/bacula-web/backupjob-report.php index e5facc22bb..653a4a0bb2 100644 --- a/gui/bacula-web/backupjob-report.php +++ b/gui/bacula-web/backupjob-report.php @@ -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 ); diff --git a/gui/bacula-web/templates/backupjob-report.tpl b/gui/bacula-web/templates/backupjob-report.tpl index 6058222264..972130a0fe 100644 --- a/gui/bacula-web/templates/backupjob-report.tpl +++ b/gui/bacula-web/templates/backupjob-report.tpl @@ -33,7 +33,7 @@ Period: - ppp{$backupjob_period} + {$backupjob_period} Transfered Bytes