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
include("./conn.php");
$kl="1а";
$cards=mysqli_query($db, "SELECT * FROM `students` WHERE `a`='1' ORDER BY length(`k`), `k` ASC, `i` ASC");
while ($singlecard=mysqli_fetch_row($cards))
{
if ($kl!=$singlecard[8])
{
$kl=$singlecard[8];
print("</td></tr><tr><td></td></tr></table>");
print("<table style=\"width: 100%; border; none; padding: 0; margin: 0;\" class=\"top\"><tr><td>");
}
print("<div style=\"position: relative; width: 180mm; height: 6.5mm; border: 1px solid black; margin-right: 1.5mm; margin-bottom: 2mm; float: left; background-color: transparent; z-index: 0;\">");
print(" <div style=\"position: absolute; top: 1mm; left: 1mm; text-align: left; width: 78mm; font-size: 4.5mm; line-height: 4.5mm; font-weight: bold; z-index: 3;\">");
print(" ".$singlecard[3]." ".$singlecard[5]." ".$singlecard[8]."");
print(" </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: 105mm; top: 1mm; left: 80mm; font-size: 2.5mm; line-height: 3mm; font-style: italic; text-align: left; z-index: 2;\"><b style=\"font-size: 4.5mm;\">код: <b style=\"color: #990000;\">".$current_code."</b>, парола: <b style=\"color: #990000;\">последни 6 цифри ЕГН</b></div>");
print(" </div>");
print("</div>");
}
print("</td></tr><tr><td></td></tr></table>");
?>
</body>
</html>