LocalRedirect($APPLICATION->GetCurPage()."?lang=".LANG,true); } elseif ($_REQUEST["ACTION"] == "CHANGELISTPROP") { if ($_REQUEST["showHiddenReports"] == "Y") $showHiddenReports = "Y"; else $showHiddenReports = "N"; CUserOptions::SetOption("checklist","show_hidden", $showHiddenReports); LocalRedirect($APPLICATION->GetCurPage()."?lang=".LANG,true); } elseif ($_REQUEST["ACTION"] == "ADDREPORT")//add report { $report_id = $checklist->AddReport(); CCheckListResult::Update($report_id, array('REPORT' => 'Y')); LocalRedirect($APPLICATION->GetCurPage()."?lang=".LANG,true); } elseif ($_REQUEST["ACTION"] == "ADDSENDREPORT")//add report and send to bitrix { if (isset($_REQUEST['report_id'])) { $report_id = intval($_REQUEST['report_id']); $dbReport = CCheckListResult::GetList(Array(),Array("REPORT"=>"Y", "ID" => $report_id)); if ($arReport = $dbReport->Fetch()) { $arFields = array(); if ($_POST["COMPANY_NAME"]) $arFields["COMPANY_NAME"] = $_POST["COMPANY_NAME"]; if ($_POST["CLIENT"])