';
-
-
+$searchbox = '';
if (!empty($conf->global->MAIN_SEARCH_FORM_ON_HOME_AREAS)) { // This is useless due to the global search combo
// Search contact/address
if (!empty($conf->adherent->enabled) && $user->rights->adherent->lire) {
@@ -154,27 +151,27 @@ if (!empty($conf->global->MAIN_SEARCH_FORM_ON_HOME_AREAS)) { // This is usel
}
if (count($listofsearchfields)) {
- print '
';
+ $searchbox .='
';
}
}
@@ -182,12 +179,12 @@ if (!empty($conf->global->MAIN_SEARCH_FORM_ON_HOME_AREAS)) { // This is usel
/*
* Statistics
*/
-
+$boxgraph = '';
if ($conf->use_javascript_ajax) {
- print '
';
- print '
';
- print '| '.$langs->trans("Statistics").' |
';
- print '';
+ $boxgraph .='';
+ $boxgraph .=' ';
+ $boxgraph .='| '.$langs->trans("Statistics").' | ';
+ $boxgraph .='| ';
$SommeA = 0;
$SommeB = 0;
@@ -225,22 +222,17 @@ if ($conf->use_javascript_ajax) {
$dolgraph->SetType(array('pie'));
$dolgraph->setHeight('200');
$dolgraph->draw('idgraphstatus');
- print $dolgraph->show($total ? 0 : 1);
+ $boxgraph .=$dolgraph->show($total ? 0 : 1);
- print ' | ';
- print '| '.$langs->trans("Total").' | ';
- print $SommeA + $SommeB + $SommeC + $SommeD;
- print ' | ';
- print ' ';
- print ' ';
+ $boxgraph .= ' |
';
+ $boxgraph .= '| '.$langs->trans("Total").' | ';
+ $boxgraph .= $SommeA + $SommeB + $SommeC + $SommeD;
+ $boxgraph .= ' |
';
+ $boxgraph .= '
';
+ $boxgraph .= '
';
+ $boxgraph .= '
';
}
-print '
';
-
-print '