2019-11-09 22:44:32 +01:00
|
|
|
<?php
|
|
|
|
require_once("./assets/php/utils.php");
|
|
|
|
|
|
|
|
// Check if the user is logged in, if not then redirect him to login page
|
2019-11-11 14:33:54 +01:00
|
|
|
if (!is_connected()) {
|
2019-11-09 22:44:32 +01:00
|
|
|
header("location: login.php");
|
|
|
|
exit;
|
|
|
|
}
|
|
|
|
?>
|
2019-11-11 14:33:54 +01:00
|
|
|
|
2019-11-09 22:44:32 +01:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
2019-11-11 14:33:54 +01:00
|
|
|
|
2019-11-09 22:44:32 +01:00
|
|
|
<head>
|
|
|
|
<meta charset="UTF-8">
|
2019-11-28 00:50:09 +01:00
|
|
|
<!-- TODO : ADD SEO STUFF -->
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
|
|
|
<link href="/assets/css/reset.css" rel="stylesheet">
|
|
|
|
<link href="/assets/css/common.css" rel="stylesheet">
|
|
|
|
<link href="/assets/css/welcome.css" rel="stylesheet">
|
|
|
|
<title>Food inventory - Welcome</title>
|
2019-11-09 22:44:32 +01:00
|
|
|
</head>
|
2019-11-11 14:33:54 +01:00
|
|
|
|
2019-11-28 00:50:09 +01:00
|
|
|
<body class="white">
|
|
|
|
<div id="header">
|
|
|
|
<h1 class="montserrat">Hi, <b><?php echo htmlspecialchars(get_user_info_from_session_id("first_name")); ?></b>. Welcome to food-inventory.</h1>
|
|
|
|
<div class="flex-container flex-evenly" id="buttonList">
|
|
|
|
<a href="reset-password.php" class="button lato white btn-violet">Reset Your Password</a>
|
|
|
|
<a href="logout.php" class="button lato white btn-red">Sign Out of Your Account</a>
|
|
|
|
</div>
|
|
|
|
<div class="flex-container flex-evenly" id="buttonList2">
|
|
|
|
<div class="flex-container flex-evenly width50P">
|
|
|
|
<a href="list-cupboards.php" class="button lato white btn-blue">List cupboards</a>
|
|
|
|
<a href="list-products.php" class="button lato white btn-blue">List products</a>
|
|
|
|
</div>
|
|
|
|
<div class="flex-container flex-evenly width50P">
|
|
|
|
<a href="add-cupboard.php" class="button lato white btn-green">Add cupboard</a>
|
|
|
|
<a href="add-product.php" class="button lato white btn-green">Add product</a>
|
|
|
|
</div>
|
|
|
|
</p>
|
|
|
|
</div>
|
2019-11-09 22:44:32 +01:00
|
|
|
</div>
|
|
|
|
</body>
|
2019-11-11 14:33:54 +01:00
|
|
|
|
2019-11-09 22:44:32 +01:00
|
|
|
</html>
|