diff --git a/htdocs/includes/boxes/box_actions.php b/htdocs/includes/boxes/box_actions.php index 1162e2026a5..5ae9d83f7be 100644 --- a/htdocs/includes/boxes/box_actions.php +++ b/htdocs/includes/boxes/box_actions.php @@ -1,6 +1,7 @@ +/* Copyright (C) 2003-2007 Rodolphe Quiedeville * Copyright (C) 2004-2007 Laurent Destailleur + * Copyright (C) 2005-2007 Regis Houssin * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -131,18 +132,16 @@ class box_actions extends ModeleBoxes { { if ($num==0 && $i==$num) { - $this->info_box_contents[$i][1] = array('text'=>' '); $this->info_box_contents[$i][0] = array('align' => 'center','text'=>$langs->trans("NoActionsToDo")); $this->info_box_contents[$i][1] = array('text'=>' '); $this->info_box_contents[$i][2] = array('text'=>' '); - $this->info_box_contents[$i][1] = array('text'=>' '); - $this->info_box_contents[$i][1] = array('text'=>' '); } else { $this->info_box_contents[$i][0] = array('text'=>' '); $this->info_box_contents[$i][1] = array('text'=>' '); $this->info_box_contents[$i][2] = array('text'=>' '); - $this->info_box_contents[$i][1] = array('text'=>' '); - $this->info_box_contents[$i][1] = array('text'=>' '); + $this->info_box_contents[$i][3] = array('text'=>' '); + $this->info_box_contents[$i][4] = array('text'=>' '); + $this->info_box_contents[$i][5] = array('text'=>' '); } $i++; } diff --git a/htdocs/includes/boxes/box_clients.php b/htdocs/includes/boxes/box_clients.php index 45cced56cc1..e0dab25bcee 100644 --- a/htdocs/includes/boxes/box_clients.php +++ b/htdocs/includes/boxes/box_clients.php @@ -1,6 +1,7 @@ - * Copyright (C) 2005-2006 Laurent Destailleur +/* Copyright (C) 2003-2007 Rodolphe Quiedeville + * Copyright (C) 2004-2007 Laurent Destailleur + * Copyright (C) 2005-2007 Regis Houssin * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/htdocs/includes/boxes/box_commandes.php b/htdocs/includes/boxes/box_commandes.php index 44ecd13b0a2..f028670e5f4 100644 --- a/htdocs/includes/boxes/box_commandes.php +++ b/htdocs/includes/boxes/box_commandes.php @@ -1,6 +1,7 @@ - * Copyright (C) 2004-2006 Laurent Destailleur +/* Copyright (C) 2003-2007 Rodolphe Quiedeville + * Copyright (C) 2004-2007 Laurent Destailleur + * Copyright (C) 2005-2007 Regis Houssin * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -111,6 +112,23 @@ class box_commandes extends ModeleBoxes { $i++; } + + $i=$num; + while ($i < $max) + { + if ($num==0 && $i==$num) + { + $this->info_box_contents[$i][0] = array('align' => 'center','text'=>$langs->trans("NoRecordedOrders")); + $this->info_box_contents[$i][1] = array('text'=>' '); + $this->info_box_contents[$i][2] = array('text'=>' '); + } else { + $this->info_box_contents[$i][0] = array('text'=>' '); + $this->info_box_contents[$i][1] = array('text'=>' '); + $this->info_box_contents[$i][2] = array('text'=>' '); + $this->info_box_contents[$i][3] = array('text'=>' '); + } + $i++; + } } else { dolibarr_print_error($db); diff --git a/htdocs/includes/boxes/box_factures.php b/htdocs/includes/boxes/box_factures.php index f816a5f7ab1..31bc6adf90e 100644 --- a/htdocs/includes/boxes/box_factures.php +++ b/htdocs/includes/boxes/box_factures.php @@ -1,6 +1,7 @@ - * Copyright (C) 2004-2006 Laurent Destailleur +/* Copyright (C) 2003-2007 Rodolphe Quiedeville + * Copyright (C) 2004-2007 Laurent Destailleur + * Copyright (C) 2005-2007 Regis Houssin * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -97,9 +98,9 @@ class box_factures extends ModeleBoxes { { $objp = $db->fetch_object($result); - $picto='bill'; - if ($objp->type == 1) $picto.='r'; - if ($objp->type == 2) $picto.='a'; + $picto='bill'; + if ($objp->type == 1) $picto.='r'; + if ($objp->type == 2) $picto.='a'; $this->info_box_contents[$i][0] = array('align' => 'left', 'logo' => $picto, @@ -117,6 +118,23 @@ class box_factures extends ModeleBoxes { $i++; } + + $i=$num; + while ($i < $max) + { + if ($num==0 && $i==$num) + { + $this->info_box_contents[$i][0] = array('align' => 'center','text'=>$langs->trans("NoRecordedInvoices")); + $this->info_box_contents[$i][1] = array('text'=>' '); + $this->info_box_contents[$i][2] = array('text'=>' '); + } else { + $this->info_box_contents[$i][0] = array('text'=>' '); + $this->info_box_contents[$i][1] = array('text'=>' '); + $this->info_box_contents[$i][2] = array('text'=>' '); + $this->info_box_contents[$i][3] = array('text'=>' '); + } + $i++; + } } else { diff --git a/htdocs/includes/boxes/box_factures_imp.php b/htdocs/includes/boxes/box_factures_imp.php index 8186460782d..22f631a2495 100644 --- a/htdocs/includes/boxes/box_factures_imp.php +++ b/htdocs/includes/boxes/box_factures_imp.php @@ -1,7 +1,7 @@ - * Copyright (C) 2004-2005 Laurent Destailleur - * Copyright (C) 2005-2006 Regis Houssin +/* Copyright (C) 2003-2007 Rodolphe Quiedeville + * Copyright (C) 2004-2007 Laurent Destailleur + * Copyright (C) 2005-2007 Regis Houssin * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -118,6 +118,29 @@ class box_factures_imp extends ModeleBoxes { $i++; } + + $i=$num; + while ($i < $max) + { + if ($num==0 && $i==$num) + { + $this->info_box_contents[$i][0] = array('align' => 'center','text'=>$langs->trans("NoUnpayedCustomerBills")); + $this->info_box_contents[$i][1] = array('text'=>' '); + $this->info_box_contents[$i][2] = array('text'=>' '); + } else { + $this->info_box_contents[$i][0] = array('text'=>' '); + $this->info_box_contents[$i][1] = array('text'=>' '); + $this->info_box_contents[$i][2] = array('text'=>' '); + $this->info_box_contents[$i][3] = array('text'=>' '); + } + $i++; + } + } + else + { + $this->info_box_contents[0][0] = array( 'align' => 'left', + 'maxlength'=>500, + 'text' => ($db->error().' sql='.$sql)); } } else { diff --git a/htdocs/includes/boxes/box_propales.php b/htdocs/includes/boxes/box_propales.php index de69ff9c403..3fccb7a97fc 100644 --- a/htdocs/includes/boxes/box_propales.php +++ b/htdocs/includes/boxes/box_propales.php @@ -1,7 +1,7 @@ - * Copyright (C) 2005-2006 Laurent Destailleur - * Copyright (C) 2005-2006 Regis Houssin +/* Copyright (C) 2003-2007 Rodolphe Quiedeville + * Copyright (C) 2004-2007 Laurent Destailleur + * Copyright (C) 2005-2007 Regis Houssin * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -113,6 +113,23 @@ class box_propales extends ModeleBoxes { $i++; } + + $i=$num; + while ($i < $max) + { + if ($num==0 && $i==$num) + { + $this->info_box_contents[$i][0] = array('align' => 'center','text'=>$langs->trans("NoRecordedProposals")); + $this->info_box_contents[$i][1] = array('text'=>' '); + $this->info_box_contents[$i][2] = array('text'=>' '); + } else { + $this->info_box_contents[$i][0] = array('text'=>' '); + $this->info_box_contents[$i][1] = array('text'=>' '); + $this->info_box_contents[$i][2] = array('text'=>' '); + $this->info_box_contents[$i][2] = array('text'=>' '); + } + $i++; + } } else { dolibarr_print_error($db); diff --git a/htdocs/includes/boxes/box_prospect.php b/htdocs/includes/boxes/box_prospect.php index 53996c0d832..5bb5c0613c4 100644 --- a/htdocs/includes/boxes/box_prospect.php +++ b/htdocs/includes/boxes/box_prospect.php @@ -1,7 +1,7 @@ - * Copyright (C) 2005-2006 Laurent Destailleur - * Copyright (C) 2005-2006 Regis Houssin +/* Copyright (C) 2003-2007 Rodolphe Quiedeville + * Copyright (C) 2004-2007 Laurent Destailleur + * Copyright (C) 2005-2007 Regis Houssin * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -116,7 +116,6 @@ class box_prospect extends ModeleBoxes { $this->info_box_contents[$i][0] = array('align' => 'center','text'=>$langs->trans("NoRecordedProspects")); $this->info_box_contents[$i][1] = array('text'=>' '); $this->info_box_contents[$i][2] = array('text'=>' '); - $this->info_box_contents[$i][3] = array('text'=>' '); } else { $this->info_box_contents[$i][0] = array('text'=>' '); $this->info_box_contents[$i][1] = array('text'=>' ');