$arID[] = $arRes['ID']; } } @set_time_limit(0); foreach ($arID as $ID) { $ID = intval($ID); if ($ID > 0) { switch ($_REQUEST['action']) { case "delete": if (!CVoteQuestion::Delete($ID)) { $lAdmin->AddGroupError(GetMessage("DELETE_ERROR"), $ID); } break; case "activate": case "deactivate": CVoteQuestion::setActive($ID, $_REQUEST['action'] == "activate"); break; } } } } } } $rsData = CVoteQuestion::GetList($VOTE_ID, $by, $order, $arFilter, $is_filtered); $rsData = new CAdminResult($rsData, $sTableID); $rsData->NavStart(); $lAdmin->NavText($rsData->GetNavPrint(GetMessage("VOTE_PAGES"))); $lAdmin->bMultipart = true; $lAdmin->AddHeaders(array(array("id" => "ID", "content" => "ID", "sort" => "s_id", "default" => true), array("id" => "TIMESTAMP_X", "content" => GetMessage("VOTE_TIMESTAMP_X"), "sort" => "s_timestamp_x", "default" => true), array("id" => "ACTIVE", "content" => GetMessage("VOTE_ACTIVE"), "sort" => "s_active", "default" => true), array("id" => "DIAGRAM", "content" => GetMessage("VOTE_DIAGRAM"), "sort" => "s_diagram", "default" => true), array("id" => "REQUIRED", "content" => GetMessage("VOTE_REQUIRED"), "sort" => "s_required", "default" => true), array("id" => "C_SORT", "content" => GetMessage("VOTE_C_SORT"), "sort" => "s_c_sort", "default" => true), array("id" => "IMAGE_ID", "content" => GetMessage("VOTE_IMAGE_ID"), "default" => true), array("id" => "QUESTION", "content" => GetMessage("VOTE_QUESTION"), "sort" => "s_question", "default" => true))); while ($arRes = $rsData->NavNext(true, "f_")) { $row =& $lAdmin->AddRow($f_ID, $arRes);