Your IP : 216.73.216.48


Current Path : /hdd/hdd11/www/vlevski/enter/_old_files/
Upload File :
Current File : /hdd/hdd11/www/vlevski/enter/_old_files/_s.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
			{
				#dc
				{
					page-break-after: always;
				}
			}
		</style>
	</head>
	<body>
	<?php
		$i=1;
		$st=1;
		include("./conn.php");
		$cards=mysqli_query($db, "SELECT * FROM `students` WHERE `a`='1' ORDER BY length(`k`), `k` ASC, `n1` ASC, `n2` ASC, `n3` ASC");
		while ($singlecard=mysqli_fetch_row($cards))
		{
			if ($i==1)
			{
				print("<div id=\"dc\">");
			}
			print("<div style=\"position: relative; width: 86mm; height: 50mm; border: 1px solid black; margin-right: 1.5mm; margin-bottom: 2mm; float: left; background-color: transparent; z-index: 0;\">");
			print("	<img src=\"./logo.png\" style=\"position: absolute; top: 1mm; left: 1mm; width: 32mm; float: left; z-index: 6;\">");
			print("		<div>");
			print("		<div style=\"position: absolute; top: 10mm; right: 3mm; width: 60mm; height: 12mm; background-color: transparent; text-align: right; font-weight: bold; font-family: im; opacity: 0.4; font-size: 13.5mm; color: #FFFFFF; -webkit-text-stroke-width: 0.15mm; -webkit-text-stroke-color: #CCCCCC; z-index: 2;\">ПРОПУСК</div>");
			print("		<div style=\"position: absolute; top: 27.5mm; right: 2mm; color: #000033; text-align: right; width: 75mm; font-size: 7mm; line-height: 6mm; font-weight: bold; z-index: 3;\">");
			print("			".$singlecard[3]."<br />".$singlecard[5]."");
			print("		</div>");
			print("		<div style=\"position: absolute; top: 1mm; right: 3mm; font-size: 6mm; 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: 40mm; top: 38mm; left: 2.5mm; font-size: 3mm; line-height: 4mm; font-style: italic; text-align: left; z-index: 2;\"><b style=\"font-size: 5.5mm;\"><br />".$current_code."</b></div>");
			print("	</div>");
			print("</div>");
			$i++;
			if ($i==11)
			{
				$i=1;
				print("<div style=\"position: relative; clear: both; width: 100%; text-align: left; font-weight: bold;\">Стр. ".$st."</div>");
				$st++;
				print("</div>");
			}
		}
		print("<div style=\"position: relative; clear: both; width: 100%; text-align: left; font-weight: bold;\">Стр. ".$st."</div>");
	?>
	</body>
</html>