-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsalary.php
63 lines (60 loc) · 1.34 KB
/
salary.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
<?php
session_start();
if (!isset($_SESSION["manager"])) {
header('Location: index.php');
exit;
}
require_once('mysql_conn.php');
$sql ="SELECT * FROM employee";
$result = mysql_query($sql);
$sql1 ="SELECT * FROM department";
$result1 = mysql_query($sql1);
?>
<html>
<head><title>Information of Salary</title></head>
<center>
<h1>Salary Information</h1>
<hr>
<form action="salary1.php" method="POST">
<table>
<tr>
<th>Select Department: </th>
<td><select name="dtype">
<?php
while ($row1 = mysql_fetch_assoc($result1))
{
echo '<option value="'.$row1['dept_name'].'">'.$row1['dept_name'].'</option>';
}
?>
</select>
</td>
</tr>
<tr>
<th>Select Month: </th>
<td><select name="month">
<option>January</option>
<option>February</option>
<option selected>March</option>
<option>April</option>
<option>May</option>
<option>June</option>
<option>July</option>
<option>August</option>
<option>September</option>
<option>October</option>
<option>November</option>
<option>December</option>
</select>
</td>
</tr>
<tr>
<th> </th>
<td><input type="submit" name="submit" value="Search" /></td>
</tr>
</table>
</form>
<br>
<a href="manager.php">Back to admin page</a>
<a href="logout.php"><h3>Logout</h3></a>
</center>
</html>