diff --git a/htdocs/admin/tools/listevents.php b/htdocs/admin/tools/listevents.php index 6d553f1b236..204ac36ea03 100644 --- a/htdocs/admin/tools/listevents.php +++ b/htdocs/admin/tools/listevents.php @@ -182,7 +182,8 @@ if ($result) $formquestion=array(); print $form->formconfirm($_SERVER["PHP_SELF"].'?noparam=noparam', $langs->trans('PurgeAuditEvents'), $langs->trans('ConfirmPurgeAuditEvents'),'confirm_purge',$formquestion,'no',1); } - + + print '
'; print ''; print ''; print_liste_field_titre($langs->trans("Date"),$_SERVER["PHP_SELF"],"e.dateevent","","",'align="left"',$sortfield,$sortorder); @@ -195,7 +196,6 @@ if ($result) // Lignes des champs de filtres - print ''; print ''; print ''; @@ -222,7 +222,6 @@ if ($result) print ''; print "\n"; - print ''; $var=True; @@ -283,7 +282,7 @@ if ($result) if ($usefilter) print ''; else print ''; } - print "
'.$form->select_date($date_start,'date_start',0,0,0,'',1,0,1).$form->select_date($date_end,'date_end',0,0,0,'',1,0,1).'
'.$langs->trans("NoEventFoundWithCriteria").'
'.$langs->trans("NoEventOrNoAuditSetup").'
"; + print ""; $db->free($result); if ($num) diff --git a/htdocs/comm/askpricesupplier/index.php b/htdocs/comm/askpricesupplier/index.php index 4eddadf3803..681a889ed25 100644 --- a/htdocs/comm/askpricesupplier/index.php +++ b/htdocs/comm/askpricesupplier/index.php @@ -61,15 +61,15 @@ print '
'; * Search form */ $var=false; -print ''; print ''; print ''; +print '
'; print ''; print ''; print ''; print ''; -print "
'.$langs->trans("SearchRequest").'
'; print $langs->trans("Ref").':
'.$langs->trans("Other").':

\n"; +print "
\n"; /* diff --git a/htdocs/comm/mailing/list.php b/htdocs/comm/mailing/list.php index ef2e2c48bf8..43441306e34 100644 --- a/htdocs/comm/mailing/list.php +++ b/htdocs/comm/mailing/list.php @@ -96,7 +96,8 @@ if ($result) $param = "&sall=".$sall; if ($filteremail) $param.='&filteremail='.urlencode($filteremail); - + + print '
'; print ''; print ''; print_liste_field_titre($langs->trans("Ref"),$_SERVER["PHP_SELF"],"m.rowid",$param,"","",$sortfield,$sortorder); @@ -108,7 +109,6 @@ if ($result) print_liste_field_titre($langs->trans("Status"),$_SERVER["PHP_SELF"],($filteremail?"mc.statut":"m.statut"),$param,"",'align="right"',$sortfield,$sortorder); print "\n"; - print ''; print ''; print '"; print "\n"; - print ''; $var=True; @@ -177,7 +176,7 @@ if ($result) print "\n"; $i++; } - print "
'; print ''; @@ -123,7 +123,6 @@ if ($result) print ''; print "
"; + print ''; $db->free($result); } else diff --git a/htdocs/comm/propal/index.php b/htdocs/comm/propal/index.php index 428e561f4fe..8fc50f853c6 100644 --- a/htdocs/comm/propal/index.php +++ b/htdocs/comm/propal/index.php @@ -63,15 +63,15 @@ print '
'; * Search form */ $var=false; -print ''; print ''; print ''; +print '
'; print ''; print ''; print ''; print ''; -print "
'.$langs->trans("SearchPropal").'
'; print $langs->trans("Ref").':
'.$langs->trans("Other").':

\n"; +print "
\n"; /* diff --git a/htdocs/comm/prospect/index.php b/htdocs/comm/prospect/index.php index 0d72eac46e3..f5f600ddd08 100644 --- a/htdocs/comm/prospect/index.php +++ b/htdocs/comm/prospect/index.php @@ -54,15 +54,15 @@ print '
'; if (! empty($conf->propal->enabled)) { $var=false; - print ''; print ''; print ''; + print '
'; print ''; print ''; print ''; print ''; - print "
'.$langs->trans("SearchAProposal").'
'; print $langs->trans("Ref").':
'.$langs->trans("Other").':

\n"; + print "
\n"; } /* diff --git a/htdocs/commande/index.php b/htdocs/commande/index.php index 7957803a5d5..5baa7b7c30f 100644 --- a/htdocs/commande/index.php +++ b/htdocs/commande/index.php @@ -62,15 +62,15 @@ print '
'; // Search customer orders $var=false; -print ''; print ''; print ''; +print '
'; print ''; print ''; print ''; print ''; -print "
'.$langs->trans("SearchOrder").'
'; print $langs->trans("Ref").':
'.$langs->trans("Other").':

\n"; +print "
\n"; /* diff --git a/htdocs/compta/bank/categ.php b/htdocs/compta/bank/categ.php index b854503f084..00755959ab9 100644 --- a/htdocs/compta/bank/categ.php +++ b/htdocs/compta/bank/categ.php @@ -158,7 +158,6 @@ if ($result) $db->free($result); } -print ""; /* * Line to add category @@ -172,9 +171,7 @@ if ($action != 'edit') print ''; } -print ""; - -print ""; +print ''; llxFooter(); diff --git a/htdocs/compta/bank/ligne.php b/htdocs/compta/bank/ligne.php index e69e2dce2e7..4186dae5561 100644 --- a/htdocs/compta/bank/ligne.php +++ b/htdocs/compta/bank/ligne.php @@ -596,8 +596,7 @@ if ($result) } print ''; - print ""; - print ''; + print ''; } } @@ -610,22 +609,21 @@ print '
'; // List of bank categories - print '
'; -print ''; print ''; print ''; print ''; print ''; + +print '
'; print ''; } -print ""; -print ""; +print ''; $sql = "SELECT c.label, c.rowid"; $sql.= " FROM ".MAIN_DB_PREFIX."bank_class as a, ".MAIN_DB_PREFIX."bank_categ as c"; @@ -650,13 +648,13 @@ if ($result) { print ''; } - print ""; + print ''; $i++; } $db->free($result); } -print "
'.$langs->trans("Rubriques").''; if ($user->rights->banque->modifier) { print ' '; print '
'.img_delete($langs->trans("Remove")).'
"; +print ''; llxFooter(); diff --git a/htdocs/contrat/services.php b/htdocs/contrat/services.php index eedb0183759..cd07db385aa 100644 --- a/htdocs/contrat/services.php +++ b/htdocs/contrat/services.php @@ -153,7 +153,9 @@ if ($resql) if ($mode == "4" && $filter == "expired") $title=$langs->trans("ListOfExpiredServices"); if ($mode == "5") $title=$langs->trans("ListOfClosedServices"); print_barre_liste($title, $page, $_SERVER["PHP_SELF"], $param, $sortfield, $sortorder,'',$num,$totalnboflines,'title_commercial.png'); - + + print '
'; + print ''; print ''; print ''; @@ -169,9 +171,6 @@ if ($resql) print_liste_field_titre($langs->trans("Status"),$_SERVER["PHP_SELF"], "cd.statut,c.statut",$param,"","align=\"right\"",$sortfield,$sortorder); print "\n"; - print ''; - print ''; - print ''; print '\n"; - print ''; $contractstatic=new Contrat($db); $productstatic=new Product($db); @@ -278,7 +276,7 @@ if ($resql) } $db->free($resql); - print "
'; print ''; @@ -203,7 +202,6 @@ if ($resql) print ''; print ''; print "
"; + print ''; } else diff --git a/htdocs/core/lib/project.lib.php b/htdocs/core/lib/project.lib.php index f924922cb87..89d658fa01a 100644 --- a/htdocs/core/lib/project.lib.php +++ b/htdocs/core/lib/project.lib.php @@ -1023,14 +1023,13 @@ function print_projecttasks_array($db, $form, $socid, $projectsListId, $mytasks= if (!empty($conf->global->PROJECT_LIMIT_YEAR_RANGE)) { //Add the year filter input + print '
'; print ''; print ''; print ''; - print ''; print '\n"; - print '
'.$langs->trans("Year").''; - print ''; print "
'; + print ''; } } diff --git a/htdocs/expedition/card.php b/htdocs/expedition/card.php index ffc453d395c..e72af4de601 100644 --- a/htdocs/expedition/card.php +++ b/htdocs/expedition/card.php @@ -888,11 +888,11 @@ if ($action == 'create') } else { - print ''; + print ''; print ' '; - print ''; - - print ''; + print ''; + + print ''; print img_warning().' '.$langs->trans("NoProductToShipFoundIntoStock", $staticwarehouse->libelle); } } diff --git a/htdocs/expedition/class/expedition.class.php b/htdocs/expedition/class/expedition.class.php index 5863161a995..b6ba93fe91e 100644 --- a/htdocs/expedition/class/expedition.class.php +++ b/htdocs/expedition/class/expedition.class.php @@ -654,11 +654,11 @@ class Expedition extends CommonObject { // line without batch detail - // We decrement stock of product (and sub-products) -> update table llx_product_stock (key of this table is fk_product+fk_entrepot) and add a movement record - $result=$mouvS->livraison($user, $obj->fk_product, $obj->fk_entrepot, $obj->qty, $obj->subprice, $langs->trans("ShipmentValidatedInDolibarr",$numref)); - if ($result < 0) { - $error++; break; - } + // We decrement stock of product (and sub-products) -> update table llx_product_stock (key of this table is fk_product+fk_entrepot) and add a movement record + $result=$mouvS->livraison($user, $obj->fk_product, $obj->fk_entrepot, $obj->qty, $obj->subprice, $langs->trans("ShipmentValidatedInDolibarr",$numref)); + if ($result < 0) { + $error++; break; + } } else { @@ -859,7 +859,7 @@ class Expedition extends CommonObject { // $value['q']=qty to move // $value['id_batch']=id into llx_product_batch of record to move - //var_dump($value); + //var_dump($value); $linebatch = new ExpeditionLineBatch($this->db); $ret=$linebatch->fetchFromStock($value['id_batch']); // load serial, sellby, eatby diff --git a/htdocs/expedition/index.php b/htdocs/expedition/index.php index 2d5d0e207c6..dbfece18381 100644 --- a/htdocs/expedition/index.php +++ b/htdocs/expedition/index.php @@ -48,13 +48,13 @@ print '
'; $var=false; -print ''; print ''; print ''; +print '
'; print ''; print ''; -print "
'.$langs->trans("SearchASending").'
'; print $langs->trans("Ref").':

\n"; +print "
\n"; /* * Shipments to validate diff --git a/htdocs/fourn/commande/index.php b/htdocs/fourn/commande/index.php index 60b9b65e8e8..c877589851d 100644 --- a/htdocs/fourn/commande/index.php +++ b/htdocs/fourn/commande/index.php @@ -58,15 +58,15 @@ print ''; * Search form */ $var=false; -print ''; print ''; print ''; +print '
'; print ''; print ''; print ''; print ''; -print "
'.$langs->trans("SearchOrder").'
'; print $langs->trans("Ref").':
'.$langs->trans("Other").':

\n"; +print "
\n"; /* diff --git a/htdocs/fourn/commande/orderstoinvoice.php b/htdocs/fourn/commande/orderstoinvoice.php index 49c16d38bc8..a1fa57f97f4 100644 --- a/htdocs/fourn/commande/orderstoinvoice.php +++ b/htdocs/fourn/commande/orderstoinvoice.php @@ -453,7 +453,9 @@ if (($action != 'create' && $action != 'add') && !$error) { $companystatic->nom = $soc->nom; print '

' . $companystatic->getNomUrl(1, 'customer') . '

'; } - + + print '
'; + print ''; print ''; print ''; print_liste_field_titre($langs->trans('Ref'), 'orderstoinvoice.php', 'c.ref', '', '&socid=' . $socid, '', $sortfield, $sortorder); @@ -465,8 +467,6 @@ if (($action != 'create' && $action != 'add') && !$error) { print "\n"; // Lignes des champs de filtre - print ''; - print ''; print ''; print ''; print ''; - print ''; print ''; $var = True;
'; // REF @@ -497,7 +497,6 @@ if (($action != 'create' && $action != 'add') && !$error) { print '