From 63fc9e332c933d4d44250a155541ab61cdfacfa5 Mon Sep 17 00:00:00 2001 From: Davide Franco Date: Thu, 21 Jul 2011 17:58:52 +0200 Subject: [PATCH] bacula-web: clients list added to report form in main dashboard --- gui/bacula-web/index.php | 6 +++++- gui/bacula-web/templates/index.tpl | 3 ++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gui/bacula-web/index.php b/gui/bacula-web/index.php index 35541a0f64..c73910fae7 100644 --- a/gui/bacula-web/index.php +++ b/gui/bacula-web/index.php @@ -39,8 +39,12 @@ $nb_clients = $dbSql->Get_Nb_Clients(); $dbSql->tpl->assign('clientes_totales',$nb_clients["nb_client"] ); - // Backup Job list for report.tpl and last_run_report.tpl + // Backup Job list $dbSql->tpl->assign( 'jobs_list', $dbSql->Get_BackupJob_Names() ); + + // Clients list + + $dbSql->tpl->assign( 'clients_list', $dbSql->getClients() ); // Last 24 hours status (completed, failed and waiting jobs) $dbSql->tpl->assign( 'completed_jobs', $dbSql->countJobs( LAST_DAY, NOW, 'completed' ) ); diff --git a/gui/bacula-web/templates/index.tpl b/gui/bacula-web/templates/index.tpl index 3f604c8d6a..b5354b80cd 100644 --- a/gui/bacula-web/templates/index.tpl +++ b/gui/bacula-web/templates/index.tpl @@ -133,7 +133,8 @@ Client - Client list here + All + {* {html_options values=$clients_list output=$clients_list} *} + {html_options name=client_id options=$clients_list"} -- 2.39.5