Your IP : 216.73.216.48
<?php
header("Cache-Control: no-cache, must-revalidate");
header("Expires: Sat, 26 Jul 1997 05:00:00 GMT");
date_default_timezone_set("Europe/Sofia");
?><!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>
Пропускателен режим СУ "Васил Левски" - Троян
</title>
<link rel="stylesheet" href="./jquery-ui.css">
<script src="./jquery-3.1.1.min.js"></script>
<script src="./jquery-ui.js"></script>
<script src="./jquery.tablesorter.min.js"></script>
<script>
$(function()
{
$("table").tablesorter();
});
</script>
<style>
table, tr, td
{
margin: 0px;
padding: 0px;
border: 1px solid black;
}
th
{
margin: 0px;
padding: 0px;
border: 1px solid black;
background-color: #000000;
color: #FFFFFF;
cursor: pointer;
}
</style>
</head>
<body style="font-family: Verdana;">
<center>
<?php
include("./conn.php");
$i=1;
print("<b>С П Р А В К А</b><br />за нерегистрирани ученици<br /><br />");
print("<table id=\"large\" class=\"tablesorter\" style=\"width: 800px;\">");
print("<thead><tr><th style=\"width: 50px;\"><b>N</b></th><th style=\"width: 250px;\"><b>ЕГН *</b></th><th style=\"width: 450px;\"><b>Имена</b></th><th style=\"width: 50px;\"><b>клас</b></th></tr></thead><tbody>");
$cardsint=mysqli_query($db, "SELECT * FROM `edu` WHERE `a`=0 ORDER BY `egn` DESC");
while ($singlecardint=mysqli_fetch_row($cardsint))
{
$egn=$singlecardint[1];
$notreg=mysqli_query($db, "SELECT * FROM `students` WHERE `egn`='".$egn."'");
while ($notrs=mysqli_fetch_row($notreg))
{
print("<tr><td>".$i."</td><td>**********</td><td>".$notrs[2]." ".$notrs[3]." ".$notrs[4]."</td><td>".$notrs[7]."</td></tr>");
$i++;
}
}
print("</tbody></table>");
print("<br /><br /><br />");
?>
</center>
</body>
</html>