return $row["count(*)"];
    }
    return "0";
}
if (!isset($_SESSION["admin"])) {
    Header("Location: login_form.php");
} else {
    ?>
<html>
	<head>
		<title>
			Welcome VTU Life Admin
		</title>
	</head>
	<body>
		<center>
			<h1>Notification Manager</h1><br/>
			<h2>Welcome Admin</h2><br/>
			<h3>Total registerd user : <?php 
    echo totalUser();
    ?>
</h3></br/>
			<a href="index.php">Home</a><br/>
			<a href="send_notification.php">Send notification</a><br/>
			<a href="select_notification.php">Old notification</a><br/>
			<a href="logout.php">Logout</a>
		</center>
	</body>
</html>
<?php 
}
Exemplo n.º 2
0
<?php

session_start();
require '../controller/define.php';
require '../controller/adminControl.php';
$isLogin = false;
if (isset($_SESSION['admin'])) {
    $isLogin = true;
    $totalUser = totalUser();
    $pendingBookings = pendingBookings();
    $approve = approvedBookings();
    $totalBookings = totalBookings();
}
?>

<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">

	<meta name="viewport" content="width=device-width, initial-scale=1.0" />
	<meta name="description" content="Neon Admin Panel" />
	<meta name="author" content="" />

    <?php 
require_once '../includes/head.php';
?>

	<link rel="stylesheet" href="assets/js/jquery-ui/css/no-theme/jquery-ui-1.10.3.custom.min.css">
	<link rel="stylesheet" href="assets/css/font-icons/entypo/css/entypo.css">