Files
crm.twinpol.com/modules/EcmDevices/DeleteFromPriceBook1.php

13 lines
429 B
PHP
Raw Normal View History

2025-05-12 15:44:39 +00:00
<?
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 ecmdevices_ecmproducts where id='".$key."'");
}
}
header("Location: index.php?module=EcmDevices&action=DetailView&record=".$_REQUEST['return_id']);
?>