From: Davide Franco Date: Thu, 21 Jul 2011 15:58:52 +0000 (+0200) Subject: bacula-web: clients list added to report form in main dashboard X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=63fc9e332c933d4d44250a155541ab61cdfacfa5;p=bacula%2Fbacula bacula-web: clients list added to report form in main dashboard --- 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"}