-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathremove_employee.php
56 lines (48 loc) · 1.76 KB
/
remove_employee.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
<html>
<head>
<meta charset="utf-8">
<title>Remove Employee</title>
<link rel="stylesheet" href="css/bootstrap/css/bootstrap.min.css" media="screen" title="no title">
<link rel="stylesheet" href="style.css" media="screen" title="no title">
<script src="js/jquery-3.1.0.min.js"></script>
<script src="css/bootstrap/js/bootstrap.min.js"></script>
</head>
<body>
<?php
include 'configuration.php';
if(!($dbconn = @mysql_connect($dbhost, $dbuser, $dbpass))) exit('Error connecting to database.');
mysql_select_db($db);
?>
<div class="container">
<div class="container" id="logo">
<a class='logo' href="owner_dashboard.php">Inventory Management System</a>
<h1>Remove Employee</h1>
</div>
<div class="box-section">
<br><br>
<form class="form-horizontal" role="form" id="rememp" method="POST" action="delete_employee.php">
<div class="container">
<div class="form-group row">
<label for="example-text-input" class="col-xs-4 col-form-label text-right">Employee Name :</label>
<?php
$selectemp = mysql_query('SELECT name FROM person WHERE role="Employee"');
?>
<select name="employee" >
<option value="selemp">-----Select Employee-----</option>
<?php
while ($row = mysql_fetch_array($selectemp))
{
?>
<option value="<?php echo $row['name']?>"><?php echo $row['name']?></option>
<?php
}
?>
</select>
</div>
<button type="submit" name="submit" class="btn btn-danger"><span class="glyphicon glyphicon-remove-sign"></span> Remove</button> 
<a href="owner_dashboard.php"><button type="button" class="btn btn-success"><span class="glyphicon glyphicon-arrow-left"></span> Cancel</button></a>
</form>
</div>
</div>
</body>
</html>