<a href=»?active_id=<?=$arElement[«ID»]?>»> Активировать </a>
<? if ($_REQUEST[‘active_id’] != ») {
$obEl = new CIBlockElement();
$boolResult = $obEl->Update($_REQUEST[‘active_id’],array(‘ACTIVE’ => ‘Y’));
header(«Location: АДРЕС_КУДА_ВЕРНУТЬСЯ_ПОСЛЕ_АКТИВИРОВАНИЯ»);
?>
Изменить активность элемента инфоблока битрикс
Wow, marvelous weblog structure! How lengthy have you been blogging for?
you make blogging glance easy. The overall
glance of your website is wonderful, as smartly as the
content material! You can see similar here dobry sklep
Hello! Do you know if they make any plugins to
help with Search Engine Optimization? I’m trying to
get my blog to rank for some targeted keywords but I’m not
seeing very good gains. If you know of any please share.
Thank you! You can read similar article here: Najlepszy sklep