-
Notifications
You must be signed in to change notification settings - Fork 0
/
homepageDD.php
160 lines (122 loc) · 4.32 KB
/
homepageDD.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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
<?php
session_start();
print_r($_SESSION);
?>
<?php
if (!$_SESSION) {
//header('location:homepageD.php');
} else {
?>
<?php
}
?>
<html>
<head>
<title>
boikinun
</title>
<link rel="stylesheet" href="css/navi.css">
<link rel="stylesheet" href="css/list.css">
<link rel="stylesheet" href="css/addEmployee.css">
</head>
<body>
<table width="100%" height="100%">
<tr id="header">
<td colspan="2">
<a class="navbar-brand" href="homepageD.php"><img src="img/books.png" width="38" height="38"></a>
<span class="navbar-text logoText">boikinun.com</span>
<form class="cart-form" action="<?php echo htmlspecialchars($_SERVER['PHP_SELF']); ?> " method="post">
<button class="login" type="submit" name="nav">Login</button> </a>
<input type="hidden" name="navId" value="loginPage">
</form>
<form class="cart-form" action="<?php echo htmlspecialchars($_SERVER['PHP_SELF']); ?> " method="post">
<button class="cart-logo" type="submit" name="button"><img class="cart-logo" src="img/cart.png" height="35" width="35"></button>
<input type="hidden" name="navId" value="employeeList">
</form>
<form class="search" action="index.html" method="post" >
<input id="search-input" type="text" placeholder="Search" name="Search"/>
<input id="search-button" type="submit" name="searchSubmit" value="search" />
</form>
<!--
<form class="search" action="index.html" method="post" >
<input id="search-input" type="text" placeholder="Search" name="Search"/>
<input id="search-button" type="submit" name="searchSubmit" value="search" />
</form>
<form class="" action="cart.php" method="post">
<button type="submit" name="cart"><img src="img/cart.png" align="center" width="30" height="30" alt="cart img not found"></button>
</form>
-->
</td>
</tr>
<tr class="navbar">
<td id="sidebar">
<ul>
<li class="dropdown">
<a href="javascript:void(0)" class="dropbtn">Employee</a>
<div class="dropdown-content">
<form class="nav" action="<?php echo htmlspecialchars($_SERVER['PHP_SELF']); ?> " method="post">
<input type="submit" name="nav" value="Employee List">
<input type="hidden" name="navId" value="employeeList">
</form>
<form class="nav" action="<?php echo htmlspecialchars($_SERVER['PHP_SELF']); ?> " method="post">
<input type="submit" name="nav" value="Add Employee">
<input type="hidden" name="navId" value="addEmployee">
</form>
</div>
</li>
<li class="dropdown">
<a href="javascript:void(0)" class="dropbtn">Books</a>
<div class="dropdown-content">
<a href="oldbooksList.php">Old Books</a>
<a href="newbooksList.php">New Books</a>
<a href="AddBook.php">Add Books</a>
</div>
</li>
<li class="dropdown">
<a href="javascript:void(0)" class="dropbtn">Customer</a>
<div class="dropdown-content">
<a href="customerList.php">Customer list</a>
</div>
</li>
<li class="dropdown">
<a href="javascript:void(0)" class="dropbtn">Books</a>
<div class="dropdown-content">
<a href="oldbooksList.php">Old Books</a>
<a href="newbooksList.php">New Books</a>
<a href="AddBook.php">Add Books</a>
</div>
</li>
<li class="dropdown">
<a href="javascript:void(0)" class="dropbtn">Order</a>
<div class="dropdown-content">
<a href="transactionList.php">Ordel list</a>
</div>
</li>
</ul>
</td>
</tr>
<tr valign="top">
<td colspan="8">
<!-- Argo ur code is here -->
<?php
if (isset($_POST['nav']) == true) {
if ($_POST['navId'] === "employeeList") {
include_once "includes/employeeList.php";
} elseif ($_POST['navId'] === "addEmployee") {
include_once "includes/addEmployee.php";
} elseif ($_POST['navId'] === 'loginPage' ) {
include_once "includes/loginPage.php";
} elseif ($_POST['navId'] === 'customerRegistration') {
include_once "includes/addCustomer.php";
}
}
else {
}
?>
<!-- upto this point -->
</td>
</tr>
</table>
<!-- upto this point -->
</body>
</html>