<?php
/*
+-------------------------------------------------------------------------+
-| Copyright (C) 2004 Juan Luis Francés Jiménez |
+| Copyright (C) 2004 Juan Luis Francés Jiménez |
+| Copyright 2010-2011, Davide Franco |
| |
| This program is free software; you can redistribute it and/or |
| modify it under the terms of the GNU General Public License |
$dbSql = new Bweb();
-$mode = "";
-
// Assign to template catalogs number
//$dbSql->tpl->assign( "dbs", $dbSql->bwcfg->Count_Catalogs() );
// Assign dbs
$smarty->assign("dbs_now", $_SESSION['DATABASE']);
}
*/
+// Catalog count
+$catalog_nb = $dbSql->catalog_nb;
+$dbSql->tpl->assign( 'catalog_nb', $catalog_nb );
// Stored files number
$totalfiles = $dbSql->GetStoredFiles( ALL );
$pools = $dbSql->Get_Pools_List();
foreach( $pools as $pool ) {
- array_push( $data, $dbSql->GetPoolsStatistics( $pool ) );
+ array_push( $data, $dbSql->CountVolumesByPool( $pool ) );
}
$graph->SetData( $data, 'pie', 'text-data-single' );