This commit is contained in:
2024-04-27 09:23:34 +02:00
commit 11e713ca6f
11884 changed files with 3263371 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
<?php
set_time_limit(9999999);
$b=explode(",",str_replace(" ","",$_GET['boxes']));
$i=1;
foreach($b as $box){
if(strlen($box)>=1 && $box!="" && $box!=" ")$boxy[]=$box;
}
for($i=1;$i<=count($boxy);$i++){
$z="update ecmpricebooks_ecmproducts set position='".$i."' where deleted='0' and ecmproduct_id='".$boxy[$i-1]."' and ecmpricebook_id='".$_REQUEST['record']."'";
if($GLOBALS['db']->query($z))$ok=1;
else $error="Error";
}
if($error)print $error;
else print "Saved";
exit;
?>