Размер файла: 1.47Kb
<?
if ($nsauth == ok) {
include("configure.php");
include("user.php");
$table_name5 = "ns_staff";
$connection5 = @mysql_connect("$db_server", "$db_name", "$db_password") or die("Couldn't connect.");
$db5 = @mysql_select_db($db_database, $connection5) or die("Couldn't select database.");
$sql5 = "SELECT username, password, email, delall, delown, addmembers, delmembers
FROM $table_name5
ORDER BY username
";
$result5 = @mysql_query($sql5, $connection5) or die("Couldn't execute query.");
while ($row5 = mysql_fetch_array($result5)) {
$username5 = $row5['username'];
$email5 = $row5['email'];
$delall5 = $row5['delall'];
$delown5 = $row5['delown'];
$addmembers5 = $row5['addmembers'];
$delmembers5 = $row5['delmembers'];
$listmembers5 .= "<option value=\"$username5\">
$username5 </option> <br>";
}
if ($delmembers9 == yes) {
$display = "
<font size=4>
<p>
<form action=modifystaff_1.php method=post>
<select name=deletemember>
$listmembers5
</select>
<br>
<input type=submit value=\"Modify\">
</form>
</p>
<p>
<form action=delstaff_2.php method=post>
<select name=deletemember>
$listmembers5
</select>
<br>
<input type=submit value=\"Delete\">
</form>
</p>
<p>
<a href=\"admin.php\">Admin Center</a>
</p>
";
} else {
$display = "You do not have access to this page.";
}
} else {
header("location: login_admin.php");
}
?>
<body bgcolor=#D1E7FE>
<title>Admin / Delete Staff</title>
<? echo $display; ?>
</font>