';
-// This is useless due to the global search combo
-if (!empty($conf->global->MAIN_SEARCH_FORM_ON_HOME_AREAS)) {
- print '
';
- print '
';
-}
-
/*
* Statistics
*/
+
$listofstatus = array(Propal::STATUS_DRAFT, Propal::STATUS_VALIDATED, Propal::STATUS_SIGNED, Propal::STATUS_NOTSIGNED, Propal::STATUS_BILLED);
$sql = "SELECT count(p.rowid) as nb, p.fk_statut as status";
diff --git a/htdocs/commande/index.php b/htdocs/commande/index.php
index ecbffa75028..dc15b85525c 100644
--- a/htdocs/commande/index.php
+++ b/htdocs/commande/index.php
@@ -50,6 +50,12 @@ if ($user->socid > 0) {
$socid = $user->socid;
}
+$max = $conf->global->MAIN_SIZE_SHORTLIST_LIMIT;
+
+// Maximum elements of the tables
+$maxDraftCount = empty($conf->global->MAIN_MAXLIST_OVERLOAD) ? 500 : $conf->global->MAIN_MAXLIST_OVERLOAD;
+$maxLatestEditCount = 5;
+$maxOpenCount = empty($conf->global->MAIN_MAXLIST_OVERLOAD) ? 500 : $conf->global->MAIN_MAXLIST_OVERLOAD;
/*
@@ -70,19 +76,6 @@ print load_fiche_titre($langs->trans("OrdersArea"), '', 'order');
print '
';
-if (!empty($conf->global->MAIN_SEARCH_FORM_ON_HOME_AREAS)) { // This is useless due to the global search combo
- // Search customer orders
- print '
\n";
-}
-
-
/*
* Statistics
*/
diff --git a/htdocs/contrat/index.php b/htdocs/contrat/index.php
index 46a89209996..8ab94ca6793 100644
--- a/htdocs/contrat/index.php
+++ b/htdocs/contrat/index.php
@@ -75,29 +75,9 @@ llxHeader();
print load_fiche_titre($langs->trans("ContractsArea"), '', 'contract');
-//print '
';
-//print '';
print '';
-if (!empty($conf->global->MAIN_SEARCH_FORM_ON_HOME_AREAS)) { // This is useless due to the global search combo
- // Search contract
- if (!empty($conf->contrat->enabled)) {
- print ' \n";
- print " ";
- }
-}
-
-
/*
* Statistics
*/
@@ -250,8 +230,6 @@ foreach ($listofstatus as $status) {
print " |
\n";
}
}
-//if ($totalinprocess != $total)
-//print '| '.$langs->trans("Total").' ('.$langs->trans("ServicesRunning").') | '.$totalinprocess.' |
';
print '| '.$langs->trans("Total").' | '.$total.' |
';
print "
";
@@ -320,7 +298,6 @@ if (!empty($conf->contrat->enabled) && $user->rights->contrat->lire) {
}
-//print '
';
print '';
@@ -645,7 +622,6 @@ if ($resql) {
}
-//print ' | ';
print '