Your IP : 216.73.217.87


Current Path : /hdd/hdd11/www/vlevski/enter/_old_files/
Upload File :
Current File : /hdd/hdd11/www/vlevski/enter/_old_files/cp.php

<?php
error_reporting(E_ALL);
ini_set('display_errors', 1);
?><!DOCTYPE html>
<html lang="bg">
	<head>
		<style>
			@font-face
			{
				font-family:	mf;
				src:			url("/font/calibri.woff");
			}
			@font-face
			{
				font-family:	im;
				src:			url("/font/impact.ttf");
			}
			body, div, span, font
			{
				font-family:	mf;
			}
			@media print
			{
				.top
				{
					page-break-before: always;
				}
			}
		</style>
	</head>
	<body>
	<table style="width: 100%; border; none; padding: 0; margin: 0;" class="top">
	<tr>
	<td>
	<?php
		include("./conn.php");
		$i=1;
		$cards=mysqli_query($db, "SELECT * FROM `students` WHERE `a`='1' ORDER BY length(`k`), `k` ASC, `i` ASC");
		while ($singlecard=mysqli_fetch_row($cards))
		{
			print("<div style=\"position: relative; width: 86mm; height: 20mm; border: 1px solid black; margin-right: 1.5mm; margin-bottom: 2mm; float: left; background-color: transparent; z-index: 0;\">");
			print("		<div style=\"position: absolute; top: 0mm; right: 1mm; text-align: right; font-weight: bold; font-family: im; font-size: 6mm; z-index: 2;\">СУ „Васил Левски“</div>");
			print("		<div style=\"position: absolute; top: 6.5mm; left: 19.5mm; text-align: right; width: 65mm; font-size: 4.5mm; line-height: 4.5mm; font-weight: bold; z-index: 3;\">");
			print("			".$singlecard[3]."<br />".$singlecard[5]."<br />".$singlecard[8]." клас");
			print("		</div>");
			print("		<div style=\"position: absolute; top: 1mm; left: 1mm; font-size: 4mm; font-weight: bold; font-style: italic; z-index: 2;\">enter.vlevski.eu</div>");
			$current_code=$singlecard[1];
			$current_code1=substr($current_code, 0, 1);
			$current_code2=substr($current_code, 1, 3);
			$current_code3=substr($current_code, 4, 3);
			$current_code4=substr($current_code, 7, 3);
			$current_code="".$current_code1." ".$current_code2." ".$current_code3." ".$current_code4."";
			print("		<div style=\"position: absolute; width: 75mm; top: 7mm; left: 1mm; font-size: 2.5mm; line-height: 3mm; font-style: italic; text-align: left; z-index: 2;\"><b style=\"font-size: 4.5mm;\">код: <b style=\"color: #990000;\">".$current_code."</b><br />парола:<br /><b style=\"color: #990000;\">последни 6 цифри ЕГН</b></div>");
			print("	</div>");
			print("</div>");
			$i++;
			if ($i==25)
			{
				$i=1;
				print("</td></tr><tr><td></td></tr></table>");
				print("<table style=\"width: 100%; border; none; padding: 0; margin: 0;\" class=\"top\"><tr><td>");
			}
		}
		print("</td></tr><tr><td></td></tr></table>");
	?>
	</body>
</html>