diff --git a/dev/skeletons/skeleton_list.php b/dev/skeletons/skeleton_list.php index 834e0b07e2f..80e3e38f438 100644 --- a/dev/skeletons/skeleton_list.php +++ b/dev/skeletons/skeleton_list.php @@ -352,9 +352,9 @@ if ($resql) }*/ // Action column print ''; - print ''; - print ''; - print ''; + $searchpitco=$form->showFilterAndCheckAddButtons(0); + print $searchpitco; + print ''; print ''."\n"; diff --git a/htdocs/accountancy/bookkeeping/listbyyear.php b/htdocs/accountancy/bookkeeping/listbyyear.php index d04edae3bf2..e9751e0f12e 100644 --- a/htdocs/accountancy/bookkeeping/listbyyear.php +++ b/htdocs/accountancy/bookkeeping/listbyyear.php @@ -208,9 +208,10 @@ print_liste_field_titre($langs->trans("Credit"), $_SERVER['PHP_SELF'], "t.credit print_liste_field_titre($langs->trans("Amount"), $_SERVER['PHP_SELF'], "t.montant", "", $options, "", $sortfield, $sortorder); print_liste_field_titre($langs->trans("Sens"), $_SERVER['PHP_SELF'], "t.sens", "", $options, "", $sortfield, $sortorder); print_liste_field_titre($langs->trans("Codejournal"), $_SERVER['PHP_SELF'], "t.code_journal", "", $options, "", $sortfield, $sortorder); -print ''; -print ''; +print ''; +print ''; print "\n"; + print ''; print ''; @@ -258,7 +259,9 @@ print ''; print ''; print ''; -print ''; +print ''; +$searchpitco=$form->showFilterAndCheckAddButtons(0); +print $searchpitco; print ''; print "\n"; diff --git a/htdocs/accountancy/customer/lines.php b/htdocs/accountancy/customer/lines.php index 0d5dbc35668..7b4d597fc12 100644 --- a/htdocs/accountancy/customer/lines.php +++ b/htdocs/accountancy/customer/lines.php @@ -246,9 +246,11 @@ if ($result) { print '%'; print ''; print ' '; - print ''; - print ''; - print "\n"; + print ''; + $searchpitco=$form->showFilterAndCheckAddButtons(0); + print $searchpitco; + print ''; + print "\n"; $facture_static = new Facture($db); $product_static = new Product($db); diff --git a/htdocs/accountancy/supplier/lines.php b/htdocs/accountancy/supplier/lines.php index 6736c6a30d6..788eaa32e88 100644 --- a/htdocs/accountancy/supplier/lines.php +++ b/htdocs/accountancy/supplier/lines.php @@ -220,9 +220,11 @@ if ($result) { print '%'; print ''; print ' '; - print ''; - print ''; - print "\n"; + print ''; + $searchpitco=$form->showFilterAndCheckAddButtons(0); + print $searchpitco; + print ''; + print "\n"; $facturefournisseur_static = new FactureFournisseur($db); $product_static = new Product($db); diff --git a/htdocs/adherents/cotisations.php b/htdocs/adherents/cotisations.php index cc8e39d32ca..7ff98ceb503 100644 --- a/htdocs/adherents/cotisations.php +++ b/htdocs/adherents/cotisations.php @@ -196,11 +196,13 @@ if ($result) print ''; print ''; - print ''; - print ''; - print ' '; - print ''; print ''; + + // Action column + print ''; + $searchpitco=$form->showFilterAndCheckAddButtons(0); + print $searchpitco; + print ''; print "\n"; diff --git a/htdocs/adherents/list.php b/htdocs/adherents/list.php index dc7266603ca..b19c6b2e35d 100644 --- a/htdocs/adherents/list.php +++ b/htdocs/adherents/list.php @@ -240,7 +240,7 @@ if ($resql) print_liste_field_titre($langs->trans("Status"),$_SERVER["PHP_SELF"],"d.statut,d.datefin",$param,"","",$sortfield,$sortorder); print_liste_field_titre($langs->trans("EndSubscription"),$_SERVER["PHP_SELF"],"d.datefin",$param,"",'align="center"',$sortfield,$sortorder); - print_liste_field_titre($langs->trans("Action"),$_SERVER["PHP_SELF"],"",$param,"",'width="60" align="center"',$sortfield,$sortorder); + print_liste_field_titre($langs->trans(""),$_SERVER["PHP_SELF"],"",$param,"",'width="60" align="center"',$sortfield,$sortorder); print "\n"; // Line for filters fields @@ -272,11 +272,11 @@ if ($resql) // Status print ' '; - print ''; - print ''; - print '  '; - print ''; - print ''; + // Action column + print ''; + $searchpitco=$form->showFilterAndCheckAddButtons(0); + print $searchpitco; + print ''; print "\n"; diff --git a/htdocs/adherents/type.php b/htdocs/adherents/type.php index e2fc32f3bcb..f46b6d0268c 100644 --- a/htdocs/adherents/type.php +++ b/htdocs/adherents/type.php @@ -210,22 +210,6 @@ if (! $rowid && $action != 'create' && $action != 'edit') { dol_print_error($db); } - - //dol_fiche_end(); - - /* - * Hotbar - */ - print '
'; - - // New type - if ($user->rights->adherent->configurer) - { - print '
'.$langs->trans("NewType").'
'; - } - - print "
"; - } diff --git a/htdocs/commande/list.php b/htdocs/commande/list.php index 8e5e73fd6fc..5a112e60861 100644 --- a/htdocs/commande/list.php +++ b/htdocs/commande/list.php @@ -378,9 +378,11 @@ if ($resql) print ''; print $form->selectyesno('billed', $billed, 1, 0, 1); print ''; - print ''; - print ''; - print "\n"; + print ''; + $searchpitco=$form->showFilterAndCheckAddButtons(0); + print $searchpitco; + print ''; + print "\n"; $var=true; $total=0; diff --git a/htdocs/commande/orderstoinvoice.php b/htdocs/commande/orderstoinvoice.php index 79f18ad26ab..aeafb1ee67b 100644 --- a/htdocs/commande/orderstoinvoice.php +++ b/htdocs/commande/orderstoinvoice.php @@ -604,10 +604,11 @@ if (($action != 'create' && $action != 'add') || ($action == 'create' && $error) //REF print ''; print ''; - //print ''; + print ''; print ''; - + print ''; + //DATE ORDER print ''; print $period; @@ -619,15 +620,14 @@ if (($action != 'create' && $action != 'add') || ($action == 'create' && $error) print ''; //SEARCH BUTTON - print ''; + print ''; print ''; //ALL/NONE - print ''; if ($conf->use_javascript_ajax) print ''.$langs->trans("All").' / '.$langs->trans("None").''; print ''; - print ''; + print ''; print ''; print '
'; diff --git a/htdocs/compta/bank/account.php b/htdocs/compta/bank/account.php index d6f8652d31c..0973ece78d3 100644 --- a/htdocs/compta/bank/account.php +++ b/htdocs/compta/bank/account.php @@ -555,10 +555,10 @@ if ($id > 0 || ! empty($ref)) print ''; print ''; print ' '; - print ''; - print ''; - print ''; - print ''; + print ''; + $searchpitco=$form->showFilterAndCheckAddButtons(0); + print $searchpitco; + print ''; print "\n"; diff --git a/htdocs/compta/bank/search.php b/htdocs/compta/bank/search.php index 81a1a493892..f5231a87ef8 100644 --- a/htdocs/compta/bank/search.php +++ b/htdocs/compta/bank/search.php @@ -178,7 +178,9 @@ if ($resql) print ''."\n"; print ''."\n"; - + print ''; + if (! empty($_REQUEST['bid'])) print ''; + $moreforfilter = ''; $moreforfilter.='
'; @@ -227,12 +229,11 @@ if ($resql) print ''; print ''; print ''; - print ''; - print ''; - if (! empty($_REQUEST['bid'])) print ''; - print ''; - print ''; - print "\n"; + print ''; + $searchpitco=$form->showFilterAndCheckAddButtons(0); + print $searchpitco; + print ''; + print "\n"; // Loop on each record $total_debit=0; diff --git a/htdocs/compta/deplacement/list.php b/htdocs/compta/deplacement/list.php index a5684891ca8..497de98fa72 100644 --- a/htdocs/compta/deplacement/list.php +++ b/htdocs/compta/deplacement/list.php @@ -164,9 +164,11 @@ if ($resql) print ''; // print ''; print ''; - print ''; - print ''; - print "\n"; + print ''; + $searchpitco=$form->showFilterAndCheckAddButtons(0); + print $searchpitco; + print ''; + print "\n"; $var=true; while ($i < min($num,$limit)) diff --git a/htdocs/compta/facture/list.php b/htdocs/compta/facture/list.php index a680886827a..1c32462b884 100644 --- a/htdocs/compta/facture/list.php +++ b/htdocs/compta/facture/list.php @@ -783,9 +783,11 @@ if ($resql) $liststatus=array('0'=>$langs->trans("BillShortStatusDraft"), '1'=>$langs->trans("BillShortStatusNotPaid"), '2'=>$langs->trans("BillShortStatusPaid"), '3'=>$langs->trans("BillShortStatusCanceled")); print $form->selectarray('search_status', $liststatus, $search_status, 1); print ''; - print ''; - print ''; - print "\n"; + print ''; + $searchpitco=$form->showFilterAndCheckAddButtons(0); + print $searchpitco; + print ''; + print "\n"; if ($num > 0) { diff --git a/htdocs/compta/facture/mergepdftool.php b/htdocs/compta/facture/mergepdftool.php index cff600d3a57..19c1d083018 100644 --- a/htdocs/compta/facture/mergepdftool.php +++ b/htdocs/compta/facture/mergepdftool.php @@ -814,17 +814,7 @@ if ($resql) print_liste_field_titre($langs->trans("Received"),$_SERVER["PHP_SELF"],"am","",$param,'align="right"',$sortfield,$sortorder); print_liste_field_titre($langs->trans("Rest"),$_SERVER["PHP_SELF"],"","",$param,'align="right"',$sortfield,$sortorder); print_liste_field_titre($langs->trans("Status"),$_SERVER["PHP_SELF"],"fk_statut,paye,am","",$param,'align="right"',$sortfield,$sortorder); - - $searchpitco=''; - $searchpitco.=''; - if (empty($mode)) - { - print_liste_field_titre($searchpitco,$_SERVER["PHP_SELF"],"","",$param,'align="center"',$sortfield,$sortorder); - } - else - { - print_liste_field_titre($searchpitco,$_SERVER["PHP_SELF"],"","",$param,'align="center"',$sortfield,$sortorder); - } + print_liste_field_titre('',$_SERVER["PHP_SELF"],"","",$param,'align="center"',$sortfield,$sortorder); print "\n"; // Lignes des champs de filtre @@ -858,6 +848,8 @@ if ($resql) print $form->selectarray('filtre', $liststatus, $filter, 1); print ''; print ''; + $searchpitco=$form->showFilterAndCheckAddButtons(0); + print $searchpitco; if (empty($mode)) { if ($conf->use_javascript_ajax) print ''.$langs->trans("All").' / '.$langs->trans("None").''; diff --git a/htdocs/compta/paiement/cheque/list.php b/htdocs/compta/paiement/cheque/list.php index 5e404a76242..2b3a7153793 100644 --- a/htdocs/compta/paiement/cheque/list.php +++ b/htdocs/compta/paiement/cheque/list.php @@ -151,9 +151,11 @@ if ($resql) print ''; print ''; print ''; - print ''; - print ''; - print "\n"; + print ''; + $searchpitco=$form->showFilterAndCheckAddButtons(0); + print $searchpitco; + print ''; + print "\n"; if ($num > 0) { diff --git a/htdocs/compta/paiement/list.php b/htdocs/compta/paiement/list.php index 8ad94817699..33576328786 100644 --- a/htdocs/compta/paiement/list.php +++ b/htdocs/compta/paiement/list.php @@ -257,9 +257,10 @@ if ($resql) print ''; print ''; print ''; - print ''; - print ''; - print ''; + print ''; + print ''; + $searchpitco=$form->showFilterAndCheckAddButtons(0); + print $searchpitco; print ''; if (! empty($conf->global->BILL_ADD_PAYMENT_VALIDATION)) { diff --git a/htdocs/compta/prelevement/list.php b/htdocs/compta/prelevement/list.php index d0c6792a785..e7cef1a50ad 100644 --- a/htdocs/compta/prelevement/list.php +++ b/htdocs/compta/prelevement/list.php @@ -114,6 +114,7 @@ if ($result) print_barre_liste($langs->trans("WithdrawalsLines"), $page, $_SERVER["PHP_SELF"], $urladd, $sortfield, $sortorder, '', $num); print"\n\n"; + print ''; print ''; print ''; @@ -126,8 +127,7 @@ if ($result) print_liste_field_titre($langs->trans("Amount"),$_SERVER["PHP_SELF"],"pl.amount","","",'align="right"'); print_liste_field_titre(''); print "\n"; - - print ''; + print ''; print ''; print ''; @@ -137,10 +137,10 @@ if ($result) print ''; print ''; print ''; - print ''; + $searchpitco=$form->showFilterAndCheckAddButtons(0); + print $searchpitco; + print ''; + print ''; $var=True; @@ -185,6 +185,9 @@ if ($result) $i++; } print "
  '; - print ''; - print ''; - print '
"; + + print ''; + $db->free($result); } else diff --git a/htdocs/compta/salaries/index.php b/htdocs/compta/salaries/index.php index 52f1938a857..18554f30de8 100644 --- a/htdocs/compta/salaries/index.php +++ b/htdocs/compta/salaries/index.php @@ -167,9 +167,12 @@ if ($result) print ''; // Amount print ''; - print ''; - print ''; - print "\n"; + + print ''; + $searchpitco=$form->showFilterAndCheckAddButtons(0); + print $searchpitco; + print ''; + print "\n"; while ($i < min($num,$limit)) { diff --git a/htdocs/compta/sociales/index.php b/htdocs/compta/sociales/index.php index 63c156609c8..2dbb3fd22d7 100644 --- a/htdocs/compta/sociales/index.php +++ b/htdocs/compta/sociales/index.php @@ -193,9 +193,12 @@ if ($resql) print ' '; // Status print ' '; - print ''; - print ''; - print "\n"; + + print ''; + $searchpitco=$form->showFilterAndCheckAddButtons(0); + print $searchpitco; + print ''; + print "\n"; while ($i < min($num,$limit)) { diff --git a/htdocs/compta/tva/reglement.php b/htdocs/compta/tva/reglement.php index 91140bb97ca..3dee569b0ff 100644 --- a/htdocs/compta/tva/reglement.php +++ b/htdocs/compta/tva/reglement.php @@ -162,9 +162,12 @@ if ($result) $form->select_types_paiements($typeid,'typeid','',0,0,1,16); print ''; print ''; - print ''; - print ''; - print "\n"; + + print ''; + $searchpitco=$form->showFilterAndCheckAddButtons(0); + print $searchpitco; + print ''; + print "\n"; while ($i < min($num,$limit)) { diff --git a/htdocs/contrat/list.php b/htdocs/contrat/list.php index 040a623fe98..f9e7351ed87 100644 --- a/htdocs/contrat/list.php +++ b/htdocs/contrat/list.php @@ -254,11 +254,12 @@ if ($resql) print ''; print ''; print ' '; - //print ' '; - print ''; - print ''; - print ''; - print "\n"; + print ''; + print ''; + $searchpitco=$form->showFilterAndCheckAddButtons(0); + print $searchpitco; + print ''; + print "\n"; $var=true; while ($i < min($num,$limit)) diff --git a/htdocs/contrat/services.php b/htdocs/contrat/services.php index b7b257ca07a..2f1c3697058 100644 --- a/htdocs/contrat/services.php +++ b/htdocs/contrat/services.php @@ -238,9 +238,11 @@ if ($resql) ); print $form->selectarray('search_status',$arrayofstatus,(strstr($search_status, ',')?-1:$search_status),1); print ''; - print ''; - print ''; - print "\n"; + print ''; + $searchpitco=$form->showFilterAndCheckAddButtons(0); + print $searchpitco; + print ''; + print "\n"; $contractstatic=new Contrat($db); $productstatic=new Product($db); diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php index e60883c7149..aac6d0714f2 100644 --- a/htdocs/core/class/html.form.class.php +++ b/htdocs/core/class/html.form.class.php @@ -5676,5 +5676,24 @@ class Form return $out; } + /** + * Return HTML to show the search and clear seach button + * + * @param int $addcheckuncheckall Add the check all uncheck al button + * @return string + */ + function showFilterAndCheckAddButtons($addcheckuncheckall=0) + { + global $langs; + + $out=''; + $out.=''; + if ($addcheckuncheckall) + { + + } + $out.=''; + return $out; + } } diff --git a/htdocs/don/list.php b/htdocs/don/list.php index 83e1db184a5..372e60b5f96 100644 --- a/htdocs/don/list.php +++ b/htdocs/don/list.php @@ -111,7 +111,7 @@ if (trim($search_name) != '') { $sql .= natural_search(array('d.lastname', 'd.firstname'), $search_name); } -if ($search_amount) $sql.=" AND d.amount='".$db->escape(price2num(trim($search_amount)))."'"; +if ($search_amount) $sql.= natural_search(array('d.amount'), price2num(trim($search_amount)), 1); $sql.= $db->order($sortfield,$sortorder); $sql.= $db->plimit($limit+1, $offset); @@ -188,9 +188,12 @@ if ($resql) print ''; } print ''; - print ''; - print ''; - print "\n"; + + print ''; + $searchpitco=$form->showFilterAndCheckAddButtons(0); + print $searchpitco; + print ''; + print "\n"; $var=True; while ($i < min($num,$limit)) diff --git a/htdocs/expedition/list.php b/htdocs/expedition/list.php index 4d1764ad0cf..c8dd6445ae2 100644 --- a/htdocs/expedition/list.php +++ b/htdocs/expedition/list.php @@ -189,12 +189,10 @@ if ($resql) print ''; print $form->selectarray('viewstatut', array('0'=>$langs->trans('StatusSendingDraftShort'),'1'=>$langs->trans('StatusSendingValidatedShort'),'2'=>$langs->trans('StatusSendingProcessedShort')),$viewstatut,1); print ''; - // Search - print ''; - print ''; - print ''; + print ''; + $searchpitco=$form->showFilterAndCheckAddButtons(0); + print $searchpitco; print ''; - print "\n"; $var=True; diff --git a/htdocs/expensereport/list.php b/htdocs/expensereport/list.php index efa6572dd10..b7f5be64455 100644 --- a/htdocs/expensereport/list.php +++ b/htdocs/expensereport/list.php @@ -265,10 +265,10 @@ if ($resql) select_expensereport_statut($search_status,'search_status',1,1); print ''; - print ''; - print ''; - print ''; - print ''; + print ''; + $searchpitco=$form->showFilterAndCheckAddButtons(0); + print $searchpitco; + print ''; print "\n"; diff --git a/htdocs/fichinter/list.php b/htdocs/fichinter/list.php index 74edaf72099..cf40a285996 100644 --- a/htdocs/fichinter/list.php +++ b/htdocs/fichinter/list.php @@ -196,9 +196,11 @@ if ($result) $liststatus=$interventionstatic->statuts_short; print $form->selectarray('search_status', $liststatus, $search_status, 1, 0, 0, '', 1); print ''; - print ''; - print ''; - print "\n"; + print ''; + $searchpitco=$form->showFilterAndCheckAddButtons(0); + print $searchpitco; + print ''; + print "\n"; $companystatic=new Societe($db); diff --git a/htdocs/fourn/commande/list.php b/htdocs/fourn/commande/list.php index a3e0d8c9c33..3f4aee09bcd 100644 --- a/htdocs/fourn/commande/list.php +++ b/htdocs/fourn/commande/list.php @@ -269,9 +269,11 @@ if ($resql) print ''; print $form->selectyesno('billed', $billed, 1, 0, 1); print ''; - print ''; - print ''; - print "\n"; + print ''; + $searchpitco=$form->showFilterAndCheckAddButtons(0); + print $searchpitco; + print ''; + print "\n"; $var=true; diff --git a/htdocs/fourn/commande/orderstoinvoice.php b/htdocs/fourn/commande/orderstoinvoice.php index d0502ed927a..3f75bca3a35 100644 --- a/htdocs/fourn/commande/orderstoinvoice.php +++ b/htdocs/fourn/commande/orderstoinvoice.php @@ -500,7 +500,8 @@ if (($action != 'create' && $action != 'add') && !$error) { // print ''; print ''; print ''; - + print ''; + // DATE ORDER print ''; print $period; @@ -512,8 +513,9 @@ if (($action != 'create' && $action != 'add') && !$error) { print ''; // SEARCH BUTTON - print ''; + print ''; print ''; + print ''; // ALL/NONE print ''; diff --git a/htdocs/fourn/facture/impayees.php b/htdocs/fourn/facture/impayees.php index ccb6671ba3a..a5ea3b88286 100644 --- a/htdocs/fourn/facture/impayees.php +++ b/htdocs/fourn/facture/impayees.php @@ -214,10 +214,12 @@ if ($user->rights->fournisseur->facture->lire) print ''; print ''; print ''; - print ''; - print ''; - print ''; - print "\n"; + print ''; + print ''; + $searchpitco=$form->showFilterAndCheckAddButtons(0); + print $searchpitco; + print ''; + print "\n"; if ($num > 0) { diff --git a/htdocs/fourn/facture/list.php b/htdocs/fourn/facture/list.php index 6731c70d328..3c238a2f6f8 100644 --- a/htdocs/fourn/facture/list.php +++ b/htdocs/fourn/facture/list.php @@ -332,10 +332,11 @@ if ($resql) print ''; $liststatus=array('0'=>$langs->trans("Draft"),'1'=>$langs->trans("Unpaid"), '2'=>$langs->trans("Paid")); print $form->selectarray('filtre', $liststatus, $search_status, 1); - print ''; - print ''; - print ''; print ''; + print ''; + $searchpitco=$form->showFilterAndCheckAddButtons(0); + print $searchpitco; + print ''; print "\n"; $facturestatic=new FactureFournisseur($db); diff --git a/htdocs/fourn/facture/paiement.php b/htdocs/fourn/facture/paiement.php index 36f3fc2ffb3..3753001cf23 100644 --- a/htdocs/fourn/facture/paiement.php +++ b/htdocs/fourn/facture/paiement.php @@ -564,10 +564,11 @@ if (empty($action)) print ''; print ''; print ''; - print ''; - print ''; - print ''; - print ''; + print ''; + print ''; + $searchpitco=$form->showFilterAndCheckAddButtons(0); + print $searchpitco; + print ''; print "\n"; while ($i < min($num,$limit)) diff --git a/htdocs/holiday/list.php b/htdocs/holiday/list.php index a92945ce502..3e74c7e14f5 100644 --- a/htdocs/holiday/list.php +++ b/htdocs/holiday/list.php @@ -368,9 +368,9 @@ $holiday->selectStatutCP($search_statut); print ''; // ACTION -print ''; -print ''; -print ''; +print ''; +$searchpitco=$form->showFilterAndCheckAddButtons(0); +print $searchpitco; print ''; print "\n"; diff --git a/htdocs/loan/calc.php b/htdocs/loan/calc.php index e73b5e0f255..681d0721f0a 100644 --- a/htdocs/loan/calc.php +++ b/htdocs/loan/calc.php @@ -115,6 +115,8 @@ if (! empty($errors)) { $form_complete = false; } + + /* * View */ @@ -125,31 +127,34 @@ print load_fiche_titre($langs->trans("LoanCalc")); print $langs->trans('LoanCalcDesc'); print '
'; -print ''; -print ''; +print '
'; + +dol_fiche_head(''); + +print '
'; //print ''; //print ''; //print ''; //print ''; -print ''; +print ''; print ''; print ''; -print ''; +print ''; print ''; print '';print ''; -print ''; +print ''; print ''; print ''; print ''; -print ''; +print ''; print ''; print ''; print ''; -print ''; +print ''; print ''; print ''; print ''; -print ''; +print ''; print ''; if (! empty($show_progress)) @@ -164,7 +169,9 @@ else print ''; print '
'.$langs->trans('PurchaseFinanceInfo').'
'.$langs->trans('SalePriceOfAsset').': '.$langs->trans("Currency".$conf->currency).'
'.$langs->trans('PercentageDown').':%
'.$langs->trans('LengthOfMortgage').':years
'.$langs->trans('AnnualInterestRate').':%
'.$langs->trans('ExplainCalculations').':
'; -print '
    '; +dol_fiche_end(); + +print '
    '; print '
'; // If the form has already been calculated, the $down_payment diff --git a/htdocs/opensurvey/list.php b/htdocs/opensurvey/list.php index d152364929d..b440b5ee43e 100644 --- a/htdocs/opensurvey/list.php +++ b/htdocs/opensurvey/list.php @@ -108,8 +108,8 @@ print ''; $arraystatus=array(''=>' ','expired'=>$langs->trans("Expired"),'opened'=>$langs->trans("Opened")); print ''. $form->selectarray('status', $arraystatus, $status).''; print ''; -print ''; -print ''; +$searchpitco=$form->showFilterAndCheckAddButtons(0); +print $searchpitco; print ''; print ''."\n"; diff --git a/htdocs/product/canvas/product/tpl/list.tpl.php b/htdocs/product/canvas/product/tpl/list.tpl.php index c5e372cfad0..e57fd5adfab 100644 --- a/htdocs/product/canvas/product/tpl/list.tpl.php +++ b/htdocs/product/canvas/product/tpl/list.tpl.php @@ -69,12 +69,12 @@ if ($searchfield['enabled']) { if ($searchfield['search']) { ?> - - - - - - + '; + $searchpitco=$form->showFilterAndCheckAddButtons(0); + print $searchpitco; + print ''; + } else { ?>   diff --git a/htdocs/product/canvas/service/tpl/list.tpl.php b/htdocs/product/canvas/service/tpl/list.tpl.php index fe860c1bf73..4fc875e15bf 100644 --- a/htdocs/product/canvas/service/tpl/list.tpl.php +++ b/htdocs/product/canvas/service/tpl/list.tpl.php @@ -69,12 +69,12 @@ if ($searchfield['enabled']) { if ($searchfield['search']) { ?> - - - - - - + '; + $searchpitco=$form->showFilterAndCheckAddButtons(0); + print $searchpitco; + print ''; + } else { ?>   diff --git a/htdocs/product/list.php b/htdocs/product/list.php index 6451f8bdde5..088f7e73c66 100644 --- a/htdocs/product/list.php +++ b/htdocs/product/list.php @@ -548,10 +548,10 @@ else print $form->selectarray('tobuy', array('0'=>$langs->trans('ProductStatusNotOnBuyShort'),'1'=>$langs->trans('ProductStatusOnBuyShort')),$tobuy,1); print ''; } - print ''; - print ''; - print ''; - print ''; + print ''; + $searchpitco=$form->showFilterAndCheckAddButtons(0); + print $searchpitco; + print ''; print ''; diff --git a/htdocs/product/price.php b/htdocs/product/price.php index 1f635a96262..b8c9222fab6 100644 --- a/htdocs/product/price.php +++ b/htdocs/product/price.php @@ -1459,11 +1459,10 @@ if (! empty($conf->global->PRODUIT_CUSTOMER_PRICES)) print ''; print ' '; // Print the search button - print ''; - print ''; - print ' '; - print ''; - print ''; + print ''; + $searchpitco=$form->showFilterAndCheckAddButtons(0); + print $searchpitco; + print ''; print ''; } diff --git a/htdocs/product/reassort.php b/htdocs/product/reassort.php index b8a52024dfc..27f85cd90ab 100644 --- a/htdocs/product/reassort.php +++ b/htdocs/product/reassort.php @@ -279,10 +279,10 @@ if ($resql) print ' '; print ' '; print ' '; - print ''; - print ''; - print ''; - print ''; + print ''; + $searchpitco=$form->showFilterAndCheckAddButtons(0); + print $searchpitco; + print ''; print ''; $product_static=new Product($db); diff --git a/htdocs/product/reassortlot.php b/htdocs/product/reassortlot.php index 87d6d4e46eb..3b77f9c5ba7 100644 --- a/htdocs/product/reassortlot.php +++ b/htdocs/product/reassortlot.php @@ -292,10 +292,10 @@ if ($resql) print ' '; print ' '; print ' '; - print ''; - print ''; - print ''; - print ''; + print ''; + $searchpitco=$form->showFilterAndCheckAddButtons(0); + print $searchpitco; + print ''; print ''; $product_static=new Product($db); diff --git a/htdocs/product/stock/list.php b/htdocs/product/stock/list.php index 6d487de21e3..bebfc87b528 100644 --- a/htdocs/product/stock/list.php +++ b/htdocs/product/stock/list.php @@ -153,10 +153,10 @@ if ($result) print $form->selectarray('search_status', $warehouse->statuts, $search_status, 1, 0, 0, '', 1); print ''; - print ''; - print ''; - print ''; - print ''; + print ''; + $searchpitco=$form->showFilterAndCheckAddButtons(0); + print $searchpitco; + print ''; print ''; diff --git a/htdocs/product/stock/replenish.php b/htdocs/product/stock/replenish.php index 94629a3e821..d29ee366bb0 100644 --- a/htdocs/product/stock/replenish.php +++ b/htdocs/product/stock/replenish.php @@ -468,11 +468,11 @@ print ' '. ' '. '' . $langs->trans('AlertOnly') . ' '. ' '. - ' '. - ''. - ''. - ''. - ''; + ' '; + print ''; + $searchpitco=$form->showFilterAndCheckAddButtons(0); + print $searchpitco; + print ''; print ''; $prod = new Product($db); diff --git a/htdocs/projet/list.php b/htdocs/projet/list.php index 6153d3b81ce..75dca94540b 100644 --- a/htdocs/projet/list.php +++ b/htdocs/projet/list.php @@ -516,10 +516,10 @@ if ($resql) print ''; } // Action column - print ''; - print ''; - print ''; - print ''; + print ''; + $searchpitco=$form->showFilterAndCheckAddButtons(0); + print $searchpitco; + print ''; print ''."\n"; diff --git a/htdocs/projet/tasks/list.php b/htdocs/projet/tasks/list.php index e140ee2f672..98bbff88483 100644 --- a/htdocs/projet/tasks/list.php +++ b/htdocs/projet/tasks/list.php @@ -504,8 +504,8 @@ if ($resql) } // Action column print ''; - print ''; - print ''; + $searchpitco=$form->showFilterAndCheckAddButtons(0); + print $searchpitco; print ''; print ''; diff --git a/htdocs/societe/consumption.php b/htdocs/societe/consumption.php index 0c5e6646889..4f1f9fb05d6 100644 --- a/htdocs/societe/consumption.php +++ b/htdocs/societe/consumption.php @@ -348,8 +348,8 @@ print ''; print ''; print ''; print ''; -print ''; -print ''; +$searchpitco=$form->showFilterAndCheckAddButtons(0); +print $searchpitco; print ''; print ''; diff --git a/htdocs/societe/list.php b/htdocs/societe/list.php index d8e22b3974d..7cfc07918fd 100644 --- a/htdocs/societe/list.php +++ b/htdocs/societe/list.php @@ -718,7 +718,8 @@ if ($resql) // Type (customer/prospect/supplier) print ''; - print ''; + print ''; - print ''; - print ''; - print ''; + print ''; + $searchpitco=$form->showFilterAndCheckAddButtons(0); + print $searchpitco; + print ''; print "\n"; diff --git a/htdocs/societe/price.php b/htdocs/societe/price.php index 589c102c8a3..7ac093ca7dd 100644 --- a/htdocs/societe/price.php +++ b/htdocs/societe/price.php @@ -509,7 +509,8 @@ if (! empty($conf->global->PRODUIT_CUSTOMER_PRICES)) { print ' '; // Print the search button print ''; - print ''; + $searchpitco=$form->showFilterAndCheckAddButtons(0); + print $searchpitco; print ''; print ''; diff --git a/htdocs/user/hierarchy.php b/htdocs/user/hierarchy.php index 8ac96a336f4..66d725b3204 100644 --- a/htdocs/user/hierarchy.php +++ b/htdocs/user/hierarchy.php @@ -152,8 +152,9 @@ print ' '; print ''; print $form->selectarray('search_statut', array('-1'=>'','1'=>$langs->trans('Enabled')),$search_statut); print ''; -print ''; -print ''; +print ''; +$searchpitco=$form->showFilterAndCheckAddButtons(0); +print $searchpitco; print ''; print ''; diff --git a/htdocs/user/index.php b/htdocs/user/index.php index d0ac0aaa66d..f0fa04327cd 100644 --- a/htdocs/user/index.php +++ b/htdocs/user/index.php @@ -395,10 +395,10 @@ if ($result) print ''; } // Action column - print ''; - print ''; - print ''; - print ''; + print ''; + $searchpitco=$form->showFilterAndCheckAddButtons(0); + print $searchpitco; + print ''; print "\n";