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/v2.php

<?php
error_reporting(E_ALL);
ini_set('display_errors', 1);
?><!DOCTYPE html>
<html lang="bg">
	<head>
	</head>
	<body style="font-family: 'Courier'">
	<?php
		$i=1;
		if (isset($_GET["p"]))
			{
				$p=$_GET["p"];
				$p--;
			}
		else
			{
				$p=0;
			}
		$p=$p*120;
		include("./conn.php");
		$cards=mysqli_query($db, "SELECT * FROM `visitors` WHERE `a`='1' ORDER BY `i` ASC");
		while ($singlecard=mysqli_fetch_row($cards))
				{
					if ($i<=9)
						{
							print("<div style=\"position: relative; width: 95mm; height: 50mm; border: 1px solid black; margin-right: 1.5mm; margin-bottom: 1.5mm; float: left; background-image: url('./vb.jpg'); background-size: 95mm 55mm;\">");
						}
					else
						{
							print("<div style=\"position: relative; width: 95mm; height: 50mm; border: 1px solid black; margin-right: 1.5mm; margin-bottom: 3mm; float: left; background-image: url('./vb.jpg'); background-size: 95mm 55mm;\">");
						}
					$i++;
					print("	<div style=\"position: absolute; top: 1mm; right: 2mm; font-size: 4mm; font-weight: bold; font-style: italic; text-align: right;\">карта за външни лица</div>");
					print("	<img src=\"./logo.png\" style=\"position: absolute; top: 2mm; left: 2mm; width: 25mm; float: left;\">");
					print("		<div>");
					print("		<div style=\"position: absolute; top: 4mm; right: 2mm; text-align: right; font-weight: bold; font-family: Impact; font-size: 8mm;\">СУ &quot;Васил Левски&quot;</div>");
					print("		<div style=\"position: absolute; top: 24mm; left: 2mm; width: 55mm; height: 17mm; background-color: transparent; text-align: center; font-weight: bold; font-family: Impact; font-size: 13mm; color: #FFFFFF; -webkit-transform: rotate(-20deg); -moz-transform: rotate(-20deg); -ms-transform: rotate(-20deg); -o-transform: rotate(-20deg); opacity: 0.7; text-shadow: 1px 1px #999999;\">ПРОПУСК</div>");
					print("		<div style=\"position: absolute; top: 25mm; left: 0.5mm; text-align: center; width: 60mm; font-size: 5mm; font-weight: bold;\">");
					print("			<br />Посетител");
					print("		</div>");
					print("		<div style=\"position: absolute; top: 15.5mm; left: 61mm; width: 32mm; height: 32mm; border: 0.5mm solid #000000; background-color: #ffffff;\">");
					print("		</div>");
					print("		<img src=\"https://api.qrserver.com/v1/create-qr-code/?size=600x600&data=ПРОПУСК\" style=\"position: absolute; top: 16.5mm; left: 62mm; width: 30.5mm; height: 30.5mm;\">");
					print("		<div style=\"position: absolute; top: 15mm; left: 26mm; font-size: 3.5mm; font-weight: bold; font-style: italic;\">enter.vlevski.eu</div>");
					print("		<div style=\"position: absolute; width: 45mm; top: 45mm; left: 1mm; font-size: 3mm; font-style: italic; text-align: left;\">код: ПРОПУСК</div>");
					print("	</div>");
					print("</div>");
					if ($i==13)
						{
							$i=1;
						}
				}
	?>
	</body>
</html>