From 47080084988a8c9d0d66aacbab3f0cafea5b9fd4 Mon Sep 17 00:00:00 2001 From: Oviya Balamurugan <cb.en.u4cse19341@cb.students.amrita.edu> Date: Thu, 11 Mar 2021 08:47:28 +0000 Subject: [PATCH] home page for the user --- uhome.php | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 uhome.php diff --git a/uhome.php b/uhome.php new file mode 100644 index 0000000..8137946 --- /dev/null +++ b/uhome.php @@ -0,0 +1,42 @@ +<?php +session_start(); +include "database.php"; +function countRecord($sql,$mysqli) +{ +$res=$mysqli->query($sql); +return $res->num_rows; +} + +if(!isset( $_SESSION["ID"])) +{ + header("location:ulogin.php"); +} +?> + + +<!DOTYPE HTML> +<html> +<head> +<title>BOOK MANAGEMENT SYSTEM</title> +<link rel="stylesheet" type ="text/css" href="css/style.css"> +</head> +<body> +<div id="container"> +<div id="header"> +<h1>BOOK MANAGEMENT SYSTEM</h1> +</div> +<div id="wrapper"> + <h3 id="heading"> Welcome <?php echo $_SESSION["NAME"];?></h3> + +</div> +<div id="navi"> + <?php + include "usersidebar.php" + ?> +</div> +<div id="footer"> +<p>Copyright © book management 2020</p> +<div> +</div> +</body> +</html> \ No newline at end of file -- GitLab