<?php if (intval($ID) != 1 || $COPY_ID > 0 || COption::GetOptionString("main", "controller_member", "N") == "Y" && COption::GetOptionString("main", "~controller_limited_admin", "N") == "Y") { ?> <?php $tabControl->BeginNextTab(); ?> <tr> <td width="40%"><?php echo GetMessage("KERNEL"); ?> </td> <td width="60%"> <script>var arSubordTasks = [];</script> <?php $arTasksModules = CTask::GetTasksInModules(true, false, 'module'); $arTasks = CGroup::GetTasks($ID, true); $nID = COperation::GetIDByName('edit_subordinate_users'); $nID2 = COperation::GetIDByName('view_subordinate_users'); if ($strError != '') { $v = $_REQUEST["TASKS_main"]; } else { $v = isset($arTasks['main']) ? $arTasks['main'] : false; } echo SelectBoxFromArray("TASKS_main", $arTasksModules['main'], $v, GetMessage("DEFAULT")); $show_subord = false; $arTaskIds = $arTasksModules['main']['reference_id']; $l = count($arTaskIds); for ($i = 0; $i < $l; $i++) { $arOpInTask = CTask::GetOperations($arTaskIds[$i]); if (in_array($nID, $arOpInTask) || in_array($nID2, $arOpInTask)) { ?>