<?php 
include'../../koneksi.php';
$nis=$_GET['qwe'];
$data=mysqli_fetch_array(mysqli_query($koneksi,"SELECT * FROM siswa WHERE nis='$nis'"));
?>
<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<script type="text/javascript">
		window.print();
	</script>
	<title>Sertifikat</title>
	<style type="text/css">
		* {
			-webkit-print-color-adjust: exact !important;   /* Chrome, Safari, Edge */
			color-adjust: exact !important;                 /*Firefox*/
		}
		@media print{@page {size: landscape}}
		body, html{
			background-image: url("Sertifikat.png");
			background-size: cover;
			background-repeat: no-repeat;
			size: A4;
			width: 29.7cm;
			height: 21cm;
			margin: 0;
			text-align: center;
		}
		
	</style>
</head>
<body>
	<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
	<center><p style="font-size: 25pt; text-transform: capitalize;"><?= $data['nama_siswa']; ?></p></center>
</body>
</html>
