} else { } } elseif ($action == 'show_list') { if (isset($_REQUEST['list_action']) && in_array($_REQUEST['list_action'], array('del', 'restore', 'hide'))) { $arIds = array(); for ($i = 0; $i < count($_REQUEST['list_ids']); $i++) { if (intVal($_REQUEST['list_ids'][$i]) > 0) { $arIds[] = intVal($_REQUEST['list_ids'][$i]); } } if ($_REQUEST['list_action'] == 'del') { $res = CSticker::Delete($arIds); } elseif ($_REQUEST['list_action'] == 'restore') { $res = CSticker::SetHiden($arIds, false); } elseif ($_REQUEST['list_action'] == 'hide') { $res = CSticker::SetHiden($arIds, true); } if ($res !== true) { ?> <script>alert("<?php echo CUtil::JSEscape($res); ?> ");</script><?php } } $bJustResult = $_REQUEST['sticker_just_res'] == "Y"; $colorSchemes = array('bxst-yellow', 'bxst-green', 'bxst-blue', 'bxst-red', 'bxst-purple', 'bxst-gray'); $curPage = urldecode($_REQUEST['cur_page']); $arFilter = array('USER_ID' => $USER->GetId(), 'SITE_ID' => $_REQUEST['site_id']); if (!$bJustResult) { $arFilterParams = CSticker::GetFilterParams();