init
This commit is contained in:
12
modules/EcmPrices/DeleteFromPriceBook1.php
Normal file
12
modules/EcmPrices/DeleteFromPriceBook1.php
Normal file
@@ -0,0 +1,12 @@
|
||||
<?
|
||||
if(count($_SESSION['pricebook_check'][$_SESSION['pricebook_id']])>0)
|
||||
{
|
||||
foreach($_SESSION['pricebook_check'][$_SESSION['pricebook_id']] as $key=>$value)
|
||||
{
|
||||
if($_SESSION['pricebook_check'][$_SESSION['pricebook_id']][$key]=="true")
|
||||
{
|
||||
$GLOBALS['db']->query("delete from ecmprices_ecmproducts where id='".$key."'");
|
||||
}
|
||||
}
|
||||
header("Location: index.php?module=EcmPrices&action=DetailView&record=".$_REQUEST['return_id']);
|
||||
?>
|
||||
Reference in New Issue
Block a user