-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathassign-staff.php
38 lines (38 loc) · 1.13 KB
/
assign-staff.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
<?php
include(".class/database.class.php");
include(".class/staff.class.php");
include(".views/header.php");
?>
<div class="container-fluid" id="login-page">
<form name="create" method="post" role="form">
<h2>Assign Staff</h2>
<div class="form-group">
<h3>Assign:</h3>
<select class="form-control" name="assigner">
<?php
//Will need to be changed once class is changed
$assigner = database::getQueryResults('select id, firstname, lastname from staff');
foreach($assigner as $staff){
echo '<option value="'.$staff['id'].'">'.$staff['firstname'].' '.$staff['lastname'].'</option>';
}
?>
</select>
<h3>To:</h3>
</select>
<select class="form-control" name="assignee">
<?php
//Will need to be changed once class is changed
$assigner = database::getQueryResults('select id, firstname, lastname from staff');
foreach($assigner as $staff){
echo '<option value="'.$staff['id'].'">'.$staff['firstname'].' '.$staff['lastname'].'</option>';
}
?>
</select>
<hr/>
<input type="submit" value="Assign" class="btn btn-primary">
</div>
</form>
</div>
<?php
include(".views/footer.php");
?>