$val) { if (isset($val) and $val > 0) { $new['ou_id'] = 0; update_record($db_link, "User_list", "ou_id=" . $val, $new); delete_record($db_link, "OU", "id=" . $val); } } header("Location: " . $_SERVER["REQUEST_URI"]); } if (isset($_POST['save'])) { $len = is_array($_POST['id']) ? count($_POST['id']) : 0; for ($i = 0; $i < $len; $i ++) { $save_id = intval($_POST['save'][$i]); if ($save_id == 0) { continue; } $len_all = is_array($_POST['id']) ? count($_POST['id']) : 0; for ($j = 0; $j < $len_all; $j ++) { if (intval($_POST['id'][$j]) != $save_id) { continue; } $value = $_POST['f_group_name'][$j]; if (isset($value)) { $new['ou_name'] = $value; update_record($db_link, "OU", "id='{$save_id}'", $new); } } } header("Location: " . $_SERVER["REQUEST_URI"]); } if (isset($_POST["create"])) { $ou_name = $_POST["new_ou"]; if (isset($ou_name)) { $new['ou_name'] = $ou_name; insert_record($db_link, "OU", $new); } header("Location: " . $_SERVER["REQUEST_URI"]); } unset($_POST); require_once ($_SERVER['DOCUMENT_ROOT']."/inc/header.php"); ?>
Список групп
\n"; print "\n"; print "\n"; print "\n"; print "\n"; print "\n"; } ?>
Id Название
{$row['id']}