46 lines
1.8 KiB
PHP
46 lines
1.8 KiB
PHP
<?php
|
|
require_once("./assets/php/utils.php");
|
|
|
|
// Check if the user is logged in, if not then redirect him to login page
|
|
if (!is_connected()) {
|
|
header("location: login.php");
|
|
exit;
|
|
}
|
|
?>
|
|
|
|
<!DOCTYPE html>
|
|
<html lang="en">
|
|
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<!-- 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>
|
|
</head>
|
|
|
|
<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>
|
|
</div>
|
|
</body>
|
|
|
|
</html>
|