Цитата |
---|
Max Pryazhevsky пишет:
Как вариант использовать событие OnBeforeIBlockElementDelete(). |
Код |
---|
<? if (@$_GET["dea"]) { $zel = new CIBlockElement; $zarLoadProductArray = Array( "ACTIVE" => "N" ); $PRODUCT_ID = $_GET["CODE"]; $zel->Update($PRODUCT_ID, $zarLoadProductArray); } ?> |
Код |
---|
<?if ($arElement["CAN_DELETE"] == "Y"):?><a href="?delete=Y&CODE=<?=$arElement["ID"]?>&<?=bitrix_sessid_get()?>" onClick="return confirm('<?=str_replace("#ELEMENT_NAME#", $arElement["NAME"], GetMessage("IBLOCK_ADD_LIST_DELETE_CONFIRM"))?>')"><?=GetMessage("IBLOCK_ADD_LIST_DELETE")?></a><?else:?> <?endif?> |
Код |
---|
<?if ($arElement["CAN_DELETE"] == "Y"):?><a href="?dea=Y&CODE=<?=$arElement["ID"]?>&<?=bitrix_sessid_get()?>" onClick="return confirm('<?=str_replace("#ELEMENT_NAME#", $arElement["NAME"], GetMessage("IBLOCK_ADD_LIST_DELETE_CONFIRM"))?>')"><?=GetMessage("IBLOCK_ADD_LIST_DELETE")?></a><?else:?> <?endif?> |