-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcetak_ijazah.php
77 lines (71 loc) · 1.32 KB
/
cetak_ijazah.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
session_start();
if(isset($_SESSION['login'])){
include "koneksi.php";
?>
<!DOCTYPE html>
<html>
<head>
<title>Ijazah</title>
<link rel="icon" href="./assets/img/logo.png">
<style type="text/css">
body{
font-family: Arial;
}
@media print{
.no-print{
display: none;
}
}
table{
border-collapse: collapse;
}
</style>
</head>
<body>
<table border="6" cellpadding="80" cellspacing="0" width="100%">
<tr>
<td>
<table width="100%">
<?php
$sql=mysqli_query($konek, "SELECT * FROM mahasiswa WHERE id='$_GET[id]'");
$d=mysqli_fetch_array($sql);
?>
<tr>
<td colspan="3">
<center>
<img src="assets/img/logo.png" width="90px">
<h1>KARTU TAMU UNDANGAN</h1>
<p>DIAN DAN SITA</p>
<hr>
<br>
<p>Kepada Yth Sodara/i : </p>
<h1><u><?php echo $d['nama_mhs']; ?></u></h1>
<p>Kami Ucapkan Terimakasih Atas Kehadiran Bapak/Ibu Saudara/i.</p>
</center>
</td>
</tr>
<tr>
<td><img src="temp/<?php echo $d['npm'].".png"; ?>"</td>
<td></td>
<td width="300px">
<p>Kami Yang Berbahagia:</p>
<br/>
<br/>
<br/>
<p><b>DIAN & SITA</b></p>
</td>
</tr>
</table>
</td>
</tr>
</table>
<br>
<center><a href="#" class="no-print" onclick="window.print();">Cetak/Print</a></center>
</body>
</html>
<?php
}else{
header('location:login.php');
}
?>