Your IP : 216.73.216.48


Current Path : /hdd/hdd11/www/vlevski/enter/
Upload File :
Current File : /hdd/hdd11/www/vlevski/enter/__sp.php

<?php
	header("Cache-Control: no-cache, must-revalidate");
	header("Expires: Sat, 26 Jul 1997 05:00:00 GMT");
	date_default_timezone_set("Europe/Sofia");
	include("./conn.php");
?><!DOCTYPE HTML>
<html lang="bg">
	<head>
		<meta charset="utf-8" />
		<title>Данни за учителите</title>
		<style>
			td, th
			{
				border: 1px solid #000000;
				margin: 0;
				padding: 0;	
			}
		</style>
	</head>
	<body>
		<center><h4>Достъп до сайта enter.vlevski.eu</h4></center>
		<table style="width: 19cm; border: 1px solid #000000; margin: 0; padding: 0;">
			<thead>
				<th>Име, фамилия</th>
				<th>КОД</th>
				<th>Име, фамилия</th>
				<th>КОД</th>
				<th>Име, фамилия</th>
				<th>КОД</th>
			</thead>
			<tbody>
				<?php
					$lgn=mysqli_query($db, "SELECT * FROM `stuff` ORDER BY `n1` ASC, `n2` ASC, `n3` ASC");
					$i=1;
					$k=0;
					while ($res=mysqli_fetch_row($lgn))
					{
						$tname="".$res[3]." ".$res[5]."";
						$code="".$res[1]."";
						if ($i==1)
						{
							$k++;
							if ($k%2==1)
							{
								print("<tr>");
							}
							else
							{
								print("<tr style=\"background-color: #CCCCCC;\">");
							}
						}
						print("<td>".$tname."</td>");
						print("<td>".$code."</td>");
						$i++;
						if ($i==4)
						{
							$i=1;
							print("</tr>");
						}
					}
				?>
			</tbody>
		</table>
	</body>
</html>