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

11 lines
396 B
PHP
Raw Normal View History

2025-05-12 15:44:39 +00:00
<?
$result = $GLOBALS['db']->query("select id from ecmdevices_ecmproducts where ecmdevice_id='".$_REQUEST['pricebook_id']."'");
$checkc='';
$_SESSION['pricebook_check']=array();
while($ro=$GLOBALS['db']->fetchByAssoc($result))
{
$_SESSION['pricebook_check'][$_REQUEST['pricebook_id']][$ro['id']]=$_GET['value'];
}
$_SESSION['pricebook_check'][$_REQUEST['pricebook_id']]['all']=$_GET['value'];
?>