Your IP : 216.73.217.87
<?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;
}
</style>
</head>
<body>
<?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 `students` WHERE (`a`='1') AND `i`='306' ORDER BY `k` ASC, `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('./sb.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('./sb.jpg'); background-size: 95mm 55mm;\">");
}
$i++;
print(" <div style=\"position: absolute; top: 0mm; right: 1mm; font-size: 4mm; font-weight: bold; font-style: italic; text-align: right;\">ученическа карта</div>");
print(" <img src=\"./logo.png\" style=\"position: absolute; top: 1mm; left: 1mm; width: 27mm; float: left;\">");
print(" <div>");
print(" <div style=\"position: absolute; top: 4mm; right: 1mm; text-align: right; font-weight: bold; font-family: im; font-size: 8mm;\">СУ "Васил Левски"</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: im; 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: 5.5mm; font-weight: bold;\">");
print(" Анна-Мария ".$singlecard[2]."<br />".$singlecard[3]."<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=".$singlecard[1]."\" style=\"position: absolute; top: 16.5mm; left: 62mm; width: 30.5mm; height: 30.5mm;\">");
print(" <div style=\"position: absolute; top: 15mm; left: 32mm; font-size: 4mm; font-weight: bold; font-style: italic;\">enter.vlevski.eu</div>");
$prefix="S-SUVLTR-";
$current_code=str_replace($prefix, "", $singlecard[1]);
$prefix="S-SUVLTR";
print(" <div style=\"position: absolute; width: 45mm; top: 45mm; left: 1mm; font-size: 3mm; font-style: italic; text-align: left;\">".$prefix.", код: ".$current_code."</div>");
print(" </div>");
print("</div>");
if ($i==13)
{
$i=1;
}
}
?>
</body>
</html>