diff --git a/htdocs/product/stock/replenish.php b/htdocs/product/stock/replenish.php index 695e4356582..23e93aba785 100644 --- a/htdocs/product/stock/replenish.php +++ b/htdocs/product/stock/replenish.php @@ -623,7 +623,7 @@ if (empty($reshook)) { } print '
'; -print ''; +print ''; print '
'; print ''; diff --git a/htdocs/product/stock/replenishorders.php b/htdocs/product/stock/replenishorders.php index 8c2a218b40c..1eba8556753 100644 --- a/htdocs/product/stock/replenishorders.php +++ b/htdocs/product/stock/replenishorders.php @@ -37,11 +37,7 @@ require_once DOL_DOCUMENT_ROOT.'/core/lib/date.lib.php'; // Load translation files required by the page $langs->loadLangs(array('products', 'stocks', 'orders')); -// Security check -if ($user->socid) { - $socid = $user->socid; -} -$result = restrictedArea($user, 'produit|service'); +$contextpage = GETPOST('contextpage', 'aZ') ? GETPOST('contextpage', 'aZ') : 'replenishorders'; // To manage different context of search $sall = GETPOST('search_all', 'alphanohtml'); $sref = GETPOST('search_ref', 'alpha'); @@ -70,6 +66,12 @@ if ($page < 0) { } $offset = $limit * $page; +// Security check +if ($user->socid) { + $socid = $user->socid; +} +$result = restrictedArea($user, 'produit|service'); + /* * Actions @@ -171,9 +173,10 @@ if ($resql) { $num = $db->num_rows($resql); $i = 0; - print ''.$langs->trans("ReplenishmentOrdersDesc").'

'; + print '
'; + print ''; - print ''; + print ''.$langs->trans("ReplenishmentOrdersDesc").'
'; print_barre_liste('', $page, $_SERVER["PHP_SELF"], '', $sortfield, $sortorder, '', $num, 0, ''); @@ -209,6 +212,7 @@ if ($resql) { $param .= '&optioncss='.urlencode($optioncss); } + print '
'; print ''; print ''; @@ -347,6 +351,8 @@ if ($resql) { $i++; } print '
'; + print '
'; + print '
'; $db->free($resql);