Your IP : 216.73.216.48
<?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;
}
if ($p<0)
{
$p=0;
}
$n=$p;
$p=$p*10;
include("./conn.php");
require "./BarcodeBase.php";
require "./Code128.php";
$cards=mysqli_query($db, "SELECT * FROM `students` WHERE `a`='1' AND `i`>='845' ORDER BY length(`k`), `k` ASC, `i` ASC LIMIT ".$p.", 10");
while ($singlecard=mysqli_fetch_row($cards))
{
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-VL1819-";
$current_code=str_replace($prefix, "", $singlecard[1]);
$prefix="S-VL1819";
$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>");
}
print("<div style=\"position: relative; clear: both; width: 100%;\">");
if ($p<=840)
{
$b=$n;
$n=$n+2;
$c=$n-1;
if ($c<=9)
{
$c="0".$c;
}
if ($b<=0)
{
print("<center>« предишна | стр. ".$c." от общо 85 | ");
}
else
{
if ($b==1)
{
print("<center><a href=\"./s.php\">« предишна</a> | стр. ".$c." от общо 85 | ");
}
else
{
print("<center><a href=\"./s.php?p=".$b."\">« предишна</a> | стр. ".$c." от общо 85 | ");
}
}
if ($p>=840)
{
print("следваща »</center></div>");
}
else
{
print("<a href=\"./s.php?p=".$n."\">следваща »</a></center></div>");
}
}
?>
</body>
</html>