Fix responsive

This commit is contained in:
Laurent Destailleur 2022-01-18 00:22:25 +01:00
parent e19994c756
commit b5de132343
2 changed files with 14 additions and 8 deletions

View File

@ -623,7 +623,7 @@ if (empty($reshook)) {
} }
print '<div class="inline-block valignmiddle">'; print '<div class="inline-block valignmiddle">';
print '<input type="submit" class="button" name="valid" value="'.$langs->trans('ToFilter').'">'; print '<input type="submit" class="button small" name="valid" value="'.$langs->trans('ToFilter').'">';
print '</div>'; print '</div>';
print '</form>'; print '</form>';

View File

@ -37,11 +37,7 @@ require_once DOL_DOCUMENT_ROOT.'/core/lib/date.lib.php';
// Load translation files required by the page // Load translation files required by the page
$langs->loadLangs(array('products', 'stocks', 'orders')); $langs->loadLangs(array('products', 'stocks', 'orders'));
// Security check $contextpage = GETPOST('contextpage', 'aZ') ? GETPOST('contextpage', 'aZ') : 'replenishorders'; // To manage different context of search
if ($user->socid) {
$socid = $user->socid;
}
$result = restrictedArea($user, 'produit|service');
$sall = GETPOST('search_all', 'alphanohtml'); $sall = GETPOST('search_all', 'alphanohtml');
$sref = GETPOST('search_ref', 'alpha'); $sref = GETPOST('search_ref', 'alpha');
@ -70,6 +66,12 @@ if ($page < 0) {
} }
$offset = $limit * $page; $offset = $limit * $page;
// Security check
if ($user->socid) {
$socid = $user->socid;
}
$result = restrictedArea($user, 'produit|service');
/* /*
* Actions * Actions
@ -171,9 +173,10 @@ if ($resql) {
$num = $db->num_rows($resql); $num = $db->num_rows($resql);
$i = 0; $i = 0;
print '<span class="opacitymedium">'.$langs->trans("ReplenishmentOrdersDesc").'</span><br><br>'; print '<form action="'.$_SERVER["PHP_SELF"].'" method="POST">';
print '<input type="hidden" name="token" value="'.newToken().'">';
print '<form action="'.$_SERVER["PHP_SELF"].'" method="GET">'; print '<span class="opacitymedium hideonsmartphone">'.$langs->trans("ReplenishmentOrdersDesc").'</span><br class="hideonsmartphone">';
print_barre_liste('', $page, $_SERVER["PHP_SELF"], '', $sortfield, $sortorder, '', $num, 0, ''); print_barre_liste('', $page, $_SERVER["PHP_SELF"], '', $sortfield, $sortorder, '', $num, 0, '');
@ -209,6 +212,7 @@ if ($resql) {
$param .= '&optioncss='.urlencode($optioncss); $param .= '&optioncss='.urlencode($optioncss);
} }
print '<div class="div-table-responsive-no-min">';
print '<table class="noborder centpercent">'; print '<table class="noborder centpercent">';
print '<tr class="liste_titre_filter">'; print '<tr class="liste_titre_filter">';
@ -347,6 +351,8 @@ if ($resql) {
$i++; $i++;
} }
print '</table>'; print '</table>';
print '</div>';
print '</form>'; print '</form>';
$db->free($resql); $db->free($resql);