0) { set_port_for_group($db_link, $f_ou_id, $building_id, 1); } } } header("Location: " . $_SERVER["REQUEST_URI"]); exit; } // Отключение портов if (getPOST("port_off") !== null) { $port_off = getPOST("port_off", null, []); if (is_array($port_off)) { foreach ($port_off as $building_id) { $building_id = (int)$building_id; if ($building_id > 0) { set_port_for_group($db_link, $f_ou_id, $building_id, 0); } } } header("Location: " . $_SERVER["REQUEST_URI"]); exit; } unset($_POST); require_once ($_SERVER['DOCUMENT_ROOT']."/inc/header.php"); ?>
"; print "\n"; print "".WEB_control_group.""; print_ou_select($db_link, 'f_ou_id', $f_ou_id); print "\n"; print "\n"; print "
\n"; $t_config = get_records_sql($db_link, "SELECT * FROM building ORDER BY name"); foreach ($t_config as $row) { print "\n"; print "\n"; print "\n"; print "\n"; print "\n"; print "\n"; } ?>