Your IP : 216.73.217.87


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

<?php
	session_start();
	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 style="background-color: #CCCCCC;">
		<h1>Карти</h1>
		<table style="width: 100%; border: 1px solid #000000; margin: 0; padding: 0;">
			<thead>
				<th>№</th>
				<th>First name</th>
				<th>Last name</th>
				<th>Middle name</th>
				<th>Department</th>
				<th>Access group</th>
			</thead>
			<tbody>
				<?php
					$lgn=mysqli_query($db, "SELECT * FROM `stuff` WHERE `a`<'3' ORDER BY `n1` ASC, `n2` ASC, `n3` ASC");
					while ($res=mysqli_fetch_row($lgn))
					{
						$id=$res[0];
						$id+=100000000;
						$fname="".$res[3]."";
						$lname="".$res[5]."";
						$mname="".$res[4]."";
						print("<tr><td style=\"text-align: right;\">".$id."</td><td>".$fname."</td><td>".$lname."</td><td>".$mname."</td><td>СУ-Васил-Левски-Троян</td><td>Master</td></tr>");
						$i++;
					}
				?>
			</tbody>
		</table>
	</body>
</html>