Пример #1
0
	<div class="wrapper adm">
		<h1><?php 
echo $hello;
?>
</h1>
		
		<form action="" method="get">
			<button type="submit" name="logout" >Logout</button>
		</form>

	<?php 
if (isset($_GET['logout'])) {
    Session::DestroySession();
}
if (isset($_POST['confirm'])) {
    $customerUpdate = AdminClass::UpdateUsers();
    header("Location: Admin.php");
} else {
    if (isset($_POST['cancel'])) {
        header("Location: Admin.php");
    } else {
        if (isset($_GET['delete'])) {
            AdminClass::DeleteUsers();
            header("Location: Admin.php");
        }
    }
}
$customers = AdminClass::ViewUsers();
?>

	<form action='' method='get' id='admin_form'></form>