Commit 8a7ebaa5171a2f5c487da992a6c7332aaa30f96e

Authored by aspangaro
1 parent 1b787559
Exists in 3.5 and in 1 other branch 3.6

Review

accountingex/bookkeeping/list.php
... ... @@ -138,7 +138,7 @@ else {
138 138 $num = $db->num_rows($resql);
139 139 $i = 0;
140 140  
141   - print_barre_liste($langs->trans("Bookkeeping"), $page, "list.php", "", $sortfield, $sortorder, '', $num);
  141 + print_barre_liste($langs->trans("Bookkeeping"), $page, $_SERVER["PHP_SELF"], "", $sortfield, $sortorder, '', $num);
142 142  
143 143 print '<form name="add" action="' . $_SERVER["PHP_SELF"] . '" method="POST">';
144 144 print '<input type="hidden" name="token" value="' . $_SESSION['newtoken'] . '">';
... ... @@ -175,18 +175,18 @@ else {
175 175 print "</tr>\n";
176 176  
177 177 print '<tr class="liste_titre">';
178   - print '<form action="list.php" method="GET">';
179   - print '<td><input type="text" name="search_doc_type" value="' . $_GET["search_doc_type"] . '"></td>';
  178 + print '<form action="' . $_SERVER["PHP_SELF"] . '" method="GET">';
  179 + print '<td><input type="text" name="search_doc_type" value="' . $GETPOST("search_doc_type") . '"></td>';
180 180 print '<td>&nbsp;</td>';
181   - print '<td><input type="text" name="search_doc_ref" value="' . $_GET["search_doc_ref"] . '"></td>';
182   - print '<td><input type="text" name="search_compte" value="' . $_GET["search_compte"] . '"></td>';
183   - print '<td><input type="text" name="search_tiers" value="' . $_GET["search_tiers"] . '"></td>';
  181 + print '<td><input type="text" name="search_doc_ref" value="' . $GETPOST("search_doc_ref") . '"></td>';
  182 + print '<td><input type="text" name="search_compte" value="' . $GETPOST("search_compte") . '"></td>';
  183 + print '<td><input type="text" name="search_tiers" value="' . $GETPOST("search_tiers") . '"></td>';
184 184 print '<td>&nbsp;</td>';
185 185 print '<td>&nbsp;</td>';
186 186 print '<td>&nbsp;</td>';
187 187 print '<td>&nbsp;</td>';
188 188 print '<td>&nbsp;</td>';
189   - print '<td><input type="text" name="search_journal" size="3" value="' . $_GET["search_journal"] . '"></td>';
  189 + print '<td><input type="text" name="search_journal" size="3" value="' . $GETPOST("search_journal") . '"></td>';
190 190 print '<td align="right">';
191 191 print '<input type="image" class="liste_titre" name="button_search" src="' . DOL_URL_ROOT . '/theme/' . $conf->theme . '/img/search.png" value="' . dol_escape_htmltag($langs->trans("Search")) . '" title="' . dol_escape_htmltag($langs->trans("Search")) . '">';
192 192 print '</td>';
... ...
accountingex/customer/list.php
... ... @@ -183,11 +183,11 @@ if ($result) {
183 183 $i = 0;
184 184  
185 185 // TODO : print_barre_liste always use $conf->liste_limit and do not care about custom limit in list...
186   - print_barre_liste($langs->trans("InvoiceLines"), $page, "list.php", "", $sortfield, $sortorder, '', $num_lignes);
  186 + print_barre_liste($langs->trans("InvoiceLines"), $page, $_SERVER["PHP_SELF"], "", $sortfield, $sortorder, '', $num_lignes);
187 187  
188 188 print '<br><b>' . $langs->trans("DescVentilTodoCustomer") . '</b></br>';
189 189  
190   - print '<form action="' . $_SERVER["PHP_SELF"] . '" method="post">' . "\n";
  190 + print '<form action="' . $_SERVER["PHP_SELF"] . '" method="POST">' . "\n";
191 191 print '<input type="hidden" name="action" value="ventil">';
192 192  
193 193 print '<table class="noborder" width="100%">';
... ...
accountingex/supplier/list.php
... ... @@ -193,11 +193,11 @@ if ($result) {
193 193 $i = 0;
194 194  
195 195 // TODO : print_barre_liste always use $conf->liste_limit and do not care about custom limit in list...
196   - print_barre_liste($langs->trans("InvoiceLines"), $page, "list.php", "", $sortfield, $sortorder, '', $num_lignes);
  196 + print_barre_liste($langs->trans("InvoiceLines"), $page, $_SERVER["PHP_SELF"], "", $sortfield, $sortorder, '', $num_lignes);
197 197  
198 198 print '<td align="left"><br><b>' . $langs->trans("DescVentilTodoSupplier") . '</b></br></td>';
199 199  
200   - print '<form action="list.php" method="post">' . "\n";
  200 + print '<form action="' . $_SERVER["PHP_SELF"] . '" method="post">' . "\n";
201 201 print '<input type="hidden" name="action" value="ventil">';
202 202  
203 203 print '<table class="noborder" width="100%">';
... ... @@ -252,15 +252,6 @@ if ($result) {
252 252  
253 253 }
254 254  
255   -
256   -
257   -
258   -
259   -
260   -
261   -
262   -
263   -
264 255 print "<tr $bc[$var]>";
265 256  
266 257 // Ref facture
... ... @@ -295,13 +286,12 @@ if ($result) {
295 286 print $objp->code_buy2;
296 287 print '</td>';
297 288  
298   -
299   -
300 289 // Colonne choix du compte
301 290 print '<td align="center">';
302 291 //print $formventilation->select_account($objp->aarowid, 'codeventil[]', 1);
303 292 print $form->selectarray("codeventil[]",$cgs, $cgn[$objp->code_buy2]);
304 293 print '</td>';
  294 +
305 295 // Colonne choix ligne a ventiler
306 296 print '<td align="center">';
307 297 print '<input type="checkbox" name="mesCasesCochees[]" value="' . $objp->rowid . "_" . $i . '"' . ($objp->code_buy ? "checked" : "") . '/>';
... ... @@ -310,7 +300,6 @@ if ($result) {
310 300 print "</tr>";
311 301 $i ++;
312 302 }
313   -
314 303  
315 304 print '</table>';
316 305 print '<br>';
... ...