]> git.sur5r.net Git - bacula/bacula/commitdiff
bacula-web: clients list added to report form in main dashboard
authorDavide Franco <bacula-dev@dflc.ch>
Thu, 21 Jul 2011 15:58:52 +0000 (17:58 +0200)
committerKern Sibbald <kern@sibbald.com>
Sat, 20 Apr 2013 12:49:26 +0000 (14:49 +0200)
gui/bacula-web/index.php
gui/bacula-web/templates/index.tpl

index 35541a0f64469fa0511063bd592b18f30fc2eb19..c73910fae7020c6179db4c2b09068f902a39449e 100644 (file)
        $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' ) );
index 3f604c8d6a6be8f94a39b37db5172764fa8aaeeb..b5354b80cd5621e75170baac13faf4dd507b3fc9 100644 (file)
                <tr>
                        <td class="label">Client</td>
                        <td class="info">
-                               Client list here + All
+                               {* {html_options values=$clients_list output=$clients_list} *}
+                               {html_options name=client_id options=$clients_list"}
                        </td>
                </tr>
                <tr>