-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnavbar_func.php
64 lines (59 loc) · 1.98 KB
/
navbar_func.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
<?
function navbar()
{
if($_SESSION['account'] == "manager"){print '
<h4>Welcome '.$_SESSION['name'].' <form method="POST" action="signout.php"><input type="submit" value="Logout" /></form></h4>
<hr/>
<div id="nav">
<h3>Navigation - Manager Portal</h3>
<form name="form1" method="post" action="hw2.php">
<div>
<select name="page">
<option value="home">Home</option>
<option value="order">New Order Form</option>
<option value="edit">Edit Order Form</option>
<option value="customer">New Customer Form</option>
<option value="edit_customer">Edit Customer</option>
<option value="manage">Management Access Only</option>
<option value="report">Itemized Sales Report</option>
<option value="performance">Performance Report</option>
<option value="business">Business Report</option>
</select>
<input type="hidden" name="acct" value="manager"/>
</div>
<p><input type="submit" value="Submit" /></p>
</form>
8:00 a.m. BIT 4444<br/>
Group 6 Team Members:<br/>
Minahm Kim<br/>
Andrew Knittle<br/>
Nathan Egbert<br/>
Last Modified: 10/27/2014
</div>';}
else{print '
<h4>Welcome '.$_SESSION['name'].' <form method="POST" action="signout.php"><input type="submit" value="Logout" /></form><br /></h4>
<hr/>
<div id="nav">
<h3>Navigation - Employee Portal</h3>
<form name="form1" method="post" action="hw2.php">
<div>
<select name="page">
<option value="home">Home</option>
<option value="order">New Order Form</option>
<option value="edit">Edit Order</option>
<option value="customer">New Customer Form</option>
<option value="edit_customer">Edit Customer</option>
<option value="item">Itemize sales report</option>
</select>
<input type="hidden" name="acct" value="user"/>
</div>
<p><input type="submit" value="Submit" /></p>
</form>
8:00 a.m. BIT 4444:<br/>
Group 6 Team Members:<br/>
Minahm Kim<br/>
Andrew Knittle<br/>
Nathan Egbert<br/>
Last Modified: 10/27/2014
</div>';}}
?>