Beispiel #1
0
					show = true;
					break;
				}
			}
			var div = jsUtils.FindNextSibling(select, "div");
			if (show)
				div.style.display = 'block';
			else
				div.style.display = 'none';
		};
		</script>
		</td>
	</tr>
<?
$arUsedGroups = array();
$arTaskInModule = CGroup::GetTasksForModule('main');
foreach($arGROUPS as $value):
	$v = (isset($arTaskInModule[$value["ID"]]['ID'])? $arTaskInModule[$value["ID"]]['ID'] : false);
	if($v == false)
		continue;
	$arUsedGroups[$value["ID"]] = true;
?>
	<tr valign="top">
		<td><?php 
echo $value["NAME"] . " [<a title=\"" . GetMessage("MAIN_USER_GROUP_TITLE") . "\" href=\"/freetrix/admin/group_edit.php?ID=" . $value["ID"] . "&amp;lang=" . LANGUAGE_ID . "\">" . $value["ID"] . "</a>]:";
?>
</td>
		<td>
		<?
		echo SelectBoxFromArray("TASKS_".$value["ID"], $arTasks, $v, GetMessage("MAIN_DEFAULT"), 'onchange="taskSelectOnchange(this)"');
		$show_subord = (in_array($v,$arSubordTasks));
Beispiel #2
0
<tr>
	<td width="40%"><b><?php 
echo GetMessage("MAIN_BY_DEFAULT");
?>
</b></td>
	<td width="60%"><?php 
$arTasksInModule = CTask::GetTasksInModules(true, $module_id, 'module');
$arTasks = $arTasksInModule[$module_id];
echo SelectBoxFromArray("GROUP_DEFAULT_TASK", $arTasks, htmlspecialcharsbx($GROUP_DEFAULT_TASK));
echo bitrix_sessid_post();
?>
</td>
</tr>
<?php 
$arUsedGroups = array();
$arTaskInModule = CGroup::GetTasksForModule($module_id);
foreach ($arGROUPS as $value) {
    $v = isset($arTaskInModule[$value["ID"]]['ID']) ? $arTaskInModule[$value["ID"]]['ID'] : false;
    if ($v) {
        $arUsedGroups[$value["ID"]] = true;
        ?>
<tr>
	<td><?php 
        echo $value["NAME"] . " [<a title=\"" . GetMessage("MAIN_USER_GROUP_TITLE") . "\" href=\"/bitrix/admin/group_edit.php?ID=" . $value["ID"] . "&amp;lang=" . LANGUAGE_ID . "\">" . $value["ID"] . "</a>]:";
        if ($value["ID"] == 1 && $md->SHOW_SUPER_ADMIN_GROUP_RIGHTS == "Y") {
            echo "<br><small>" . GetMessage("MAIN_SUPER_ADMIN_RIGHTS_COMMENT") . "</small>";
        }
        ?>
</td>
	<td><?php 
        echo SelectBoxFromArray("TASKS_" . $value["ID"], $arTasks, $v, GetMessage("MAIN_DEFAULT"));