Your IP : 216.73.217.87
<?php
header("Cache-Control: no-cache, must-revalidate");
header("Expires: Sat, 26 Jul 1997 05:00:00 GMT");
session_start();
?><!DOCTYPE html>
<html lang="bg">
<head>
<meta charset="utf-8" />
<title>Ученици</title>
<style>
@font-face
{
font-family: mf;
src: url("/font/calibri.woff");
font-size: 0.7cm;
}
body, div, span, font, input
{
font-family: mf;
}
@media print
{
table
{
page-break-after: always;
}
}
</style>
</head>
<body>
<table style="width: 19cm; margin: 0; padding: 0; border-collapse: collapse;">
<thead>
<tr style="height: 0.9cm; background-color: transparent;">
<th colspan="4" style="width: 19cm; text-align: center; border: none; font-size: 0.8cm;">
ПРОБЕН ДЪРЖАВЕН ЗРЕЛОСТЕН ИЗПИТ
<br />ПО БЪЛГАРСКИ ЕЗИК И ЛИТЕРАТУРА
<br />СТАЯ ____________
<br />
</th>
</tr>
<tr style="height: 0.9cm; background-color: transparent;">
<th style="width: 2cm; text-align: center; border: 0.5mm solid #000000;">
N
</th>
<th style="width: 13cm; text-align: center; border: 0.5mm solid #000000;">
Имена
</th>
<th style="width: 5cm; text-align: center; border: 0.5mm solid #000000;">
клас
</th>
</tr>
</thead>
<tbody>
<?php
$i=1;
include("./conn.php");
$cards=mysqli_query($db, "SELECT * FROM `students` WHERE `a`='1' AND `k` LIKE '12%' ORDER by rand(), `n1` ASC, n3 ASC");
while ($singlecard=mysqli_fetch_row($cards))
{
if ($i%2==0)
{
$bc="transparent";
}
else
{
$bc="#DDDDDD";
}
$midname=$singlecard[3];
if ($midname=="")
{
print("<tr style=\"height: 0.9cm; background-color: ".$bc.";\"><td style=\"width: 2cm; text-align: center; border: 0.5mm solid #000000;\">".$i.".</td><td style=\"width: 13cm; text-align: left; border: 0.5mm solid #000000;\"> ".$singlecard[2]." ".$singlecard[4]."<td style=\"width: 5cm; text-align: center; border: 0.5mm solid #000000;\">".$singlecard[7]."</td></tr>");
}
else
{
mb_internal_encoding("UTF-8");
$midname=mb_substr($midname, 0, 1);
print("<tr style=\"height: 0.9cm; background-color: ".$bc.";\"><td style=\"width: 2cm; text-align: center; border: 0.5mm solid #000000;\">".$i.".</td><td style=\"width: 13cm; text-align: left; border: 0.5mm solid #000000;\"> ".$singlecard[2]." ".$midname.". ".$singlecard[4]."<td style=\"width: 5cm; text-align: center; border: 0.5mm solid #000000;\">".$singlecard[7]."</td></tr>");
}
$i++;
if ($i==16)
{
$i=1;
?>
</tbody>
</table>
<table style="width: 19cm; margin: 0; padding: 0; border-collapse: collapse;">
<thead>
<tr style="height: 0.9cm; background-color: transparent;">
<th colspan="4" style="width: 19cm; text-align: center; border: none; font-size: 0.8cm;">
ПРОБЕН ДЪРЖАВЕН ЗРЕЛОСТЕН ИЗПИТ
<br />ПО БЪЛГАРСКИ ЕЗИК И ЛИТЕРАТУРА
<br />СТАЯ ____________
<br />
</th>
</tr>
<tr style="height: 0.9cm; background-color: transparent;">
<th style="width: 2cm; text-align: center; border: 0.5mm solid #000000;">
N
</th>
<th style="width: 13cm; text-align: center; border: 0.5mm solid #000000;">
Имена
</th>
<th style="width: 5cm; text-align: center; border: 0.5mm solid #000000;">
клас
</th>
</tr>
</thead>
<tbody>
<?php
}
}
?>
</tbody>
</table>
</body>
</html>