-
Notifications
You must be signed in to change notification settings - Fork 0
/
home.php
62 lines (50 loc) · 1.09 KB
/
home.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<?php
$page_title = "home";
include("./config/constants.php");
include("./config/check_elogin.php");
$_SESSION['eid'];
$eid=$_SESSION['eid'];
$q="SELECT * FROM employee WHERE eid='$eid'";
$res=mysqli_query($conn,$q);
if($res && $res->num_rows>0){
$data = $res->fetch_assoc();
$ename = $data['ename'];
}
?>
<style>
.btn-group .btn-primary{
display: none;
}
</style>
<!DOCTYPE html>
<html lang="en">
<body>
<div class="flex">
<div>
<h1>Home</h1>
</div>
<div class="btn-group">
<a href="logout.php" class="btn btn-danger">Logout</a>
</div>
</div>
<br>
<h3>
Hello <?php echo $ename ?>
</h3>
<br>
<div class="container text-center">
<div class="row">
<div class="col"><a href="productlist.php">
All products
</a></div>
<div class="col second-box"> <a href="add-product.php">
Add product
</a></div>
<div class="col"> <a href="shop.php">
Shop
</div>
</div>
</div>
<br>
</body>
</html>