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;
}
@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
$newlist=0;
$currentlist=1;
$i=1;
include("./conn.php");
require "./BarcodeBase.php";
require "./Code128.php";
$cards=mysqli_query($db, "SELECT * FROM `students` WHERE `a`='1' ORDER BY length(`k`), `k` ASC, `i` ASC");
while ($singlecard=mysqli_fetch_row($cards))
{
$newlist++;
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=\"./sb.jpg\" style=\"position: absolute; top: 0mm; left: 0mm; width: 86mm; height: 50mm; z-index: 1;\" alt=\"\" />");
print(" <div style=\"position: absolute; top: 0mm; right: 1mm; font-size: 4mm; font-weight: bold; font-style: italic; text-align: right; z-index: 2;\">ученическа карта</div>");
print(" <img src=\"./logo.png\" style=\"position: absolute; top: 1mm; left: 1mm; width: 24mm; float: left; z-index: 2;\">");
print(" <img src=\"./gdpr.png\" style=\"position: absolute; top: 25mm; left: 1mm; width: 20mm; float: left; z-index: 2;\">");
print(" <div>");
print(" <div style=\"position: absolute; top: 4.5mm; right: 1mm; text-align: right; font-weight: bold; font-family: im; font-size: 7.5mm; z-index: 2;\">СУ „Васил Левски“</div>");
print(" <div style=\"position: absolute; top: 17mm; left: 17mm; width: 45mm; height: 12mm; background-color: transparent; text-align: center; font-weight: bold; font-family: im; font-size: 10mm; color: #FFFFFF; -webkit-transform: rotate(-18deg); -moz-transform: rotate(-18deg); -ms-transform: rotate(-18deg); -o-transform: rotate(-18deg); opacity: 0.9; text-shadow: 0.5mm 0.5mm #999999; z-index: 2;\">ПРОПУСК</div>");
print(" <div style=\"position: absolute; top: 25mm; left: 19.5mm; text-align: right; width: 65mm; font-size: 4.5mm; line-height: 4.5mm; font-weight: bold; z-index: 3;\">");
print(" ".$singlecard[2]."<br />".$singlecard[4]."");
print(" </div>");
print(" <div style=\"position: absolute; top: 35mm; left: 34mm; width: 50mm; height: 13mm; border: 0.5mm solid #000000; background-color: #ffffff; z-index: 2; overflow: hidden;\">");
print(" <img src=\"./bc.php?filetype=PNG&dpi=100&scale=1&rotation=0&font_family=0&font_size=8&thickness=30&start=A&code=BCGcode128&text=".$singlecard[1]."\" style=\"position: absolute; top: 0.5mm; left: 3mm; width: 45mm; height: 12mm; z-index: 3;\" />");
print(" </div>");
print(" <div style=\"position: absolute; top: 12mm; left: 57.5mm; font-size: 4mm; font-weight: bold; font-style: italic; z-index: 2;\">enter.vlevski.eu</div>");
$prefix="S-VL1920-";
$current_code=str_replace($prefix, "", $singlecard[1]);
$prefix="S-VL1920";
$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: 32mm; top: 36mm; left: 0.5mm; font-size: 3mm; line-height: 4mm; font-style: italic; text-align: right; z-index: 2;\"><b style=\"font-size: 4.5mm;\">GDPR</b><br />".$prefix."<br />".$current_code."</div>");
print(" </div>");
print("</div>");
if ($newlist==10)
{
$newlist=0;
print("</td></tr><tr><td>Страница ".$currentlist."</td></tr></table><table style=\"width: 100%; border; none; padding: 0; margin: 0;\" class=\"top\"><tr><td>");
$currentlist++;
}
}
print("</td></tr><tr><td>Страница ".$currentlist."</td></tr></table>");
?>
</body>
</html>