-
Notifications
You must be signed in to change notification settings - Fork 7
/
employee-profile.php
77 lines (72 loc) · 1.83 KB
/
employee-profile.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
<?php include('partials/header.php');
$has_query = has_query_string();
if( is_admin() && $has_query ) {
$employee_id = $_GET['user'];
$employee_profile = Employee::find_employee_by_id($employee_id);
} else {
$employee_id = $_SESSION['user'];
$employee_profile = Employee::find_employee_by_id($employee_id);
}
/*
* if submitted, check to see if any of the inputs have been changed by
* comparing them
*
*/
if(isset($_POST['submit'])) {
echo 'submitted';
}
?>
<div class="row">
<div class="column">
<pre><?php #print_r($employee_profile); ?></pre>
</div>
<div class="medium-3 columns">
<div>
<div style="width:200px; height:200px; max-width: 100%; border:2px solid black;"></div>
</div>
<hr>
<div>
Job Title
<br>
Job Department
<br>
Salary
</div>
<hr>
<div>
Hire Date
<br>
End Date
</div>
</div>
<div class="medium-9 columns">
<h3>
<?php echo $employee_profile['first_name'] . ' ' . $employee_profile['last_name']; ?>
<br>
<small>Job Title</small>
</h3>
<hr>
<div>
Employee Number
<br>
Nickname
<br>
Birth Date
<br>
Gender
</div>
<hr>
<div>
Email
<br>
Phone
<br>
Address
</div>
<hr>
<div>
Notes
</div>
</div>
</div>
<?php include('partials/footer.php'); ?>