-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathprintprofile.php
71 lines (70 loc) · 1.7 KB
/
printprofile.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
<?php
include "connection.php";
?>
<!DOCTYPE html>
<html>
<head>
<!-- Bootstrap core CSS -->
<link href="dist/css/bootstrap.min.css" rel="stylesheet">
<!-- Custom styles for this template -->
<link href="starter-template.css" rel="stylesheet">
<script>
function myFunction() {
window.print();
}
</script>
</head>
<body onload="myFunction()" style="text-align:center;">
<h2><em>Crawford</em> University Nursery & Primary School</h2>
<div style="width:80%;height:auto;padding:20px;margin:auto;">
<?php
$employee_no = $_GET['employee'];
$sql = "SELECT * FROM employee WHERE employee_no = '$employee_no'";
$result34 = mysql_query($sql) or die("Failed Sql Query");
while ($row3 = mysql_fetch_assoc($result34)) {
?>
<span>Employee <b><?= $row3['surname'] ." ". $row3['lastname'] ?></b> Data</span>
<table class="table table-striped">
<tr>
<th>Employee No.</th>
<td><?= $row3['employee_no'] ?></td>
</tr>
<tr>
<th>Name</th>
<td><?= $row3['title'] ?> <?= $row3['surname'] ?> <?= $row3['lastname'] ?></td>
</tr>
<tr>
<th>Dept</th>
<td><?= $row3['dept'] ?></td>
</tr>
<tr>
<th>Role</th>
<td><?= $row3['position'] ?></td>
</tr>
<tr>
<th>Address</th>
<td><?= $row3['address'] ?></td>
</tr>
<tr>
<th>Phone No</th>
<td><?= $row3['phoneno'] ?></td>
</tr>
<tr>
<th>Guarantor's Name</th>
<td><?= $row3['guarantor_name'] ?></td>
</tr>
<tr>
<th>Guarantor's No</th>
<td><?= $row3['guarantor_no'] ?></td>
</tr>
<tr>
<th>Joined</th>
<td><?= date_only($row3['joined']) ?></td>
</tr>
</table>
<?php
}
?>
</div>
</body>
</html>