Your IP : 216.73.216.48


Current Path : /srv/www/vlevski/enter/hs/
Upload File :
Current File : //srv/www/vlevski/enter/hs/index.php

<?php
	header("Cache-Control: no-cache, must-revalidate");
	header("Expires: Sat, 26 Jul 1997 05:00:00 GMT");
	header('Access-Control-Allow-Origin: *');
	date_default_timezone_set("Europe/Sofia");
	$k=$_GET["k"];
?><!DOCTYPE html>
<html>
	<head>
		<title>Система за характеристика на средата</title>
		<meta charset="utf-8" />
		<meta name="description" content="Система за характеристика на средата" />
		<link rel="shortcut icon" type="image/png" href="/hs/images/site/hs.png">
		<link rel="shortcut icon" type="image/png" href="https://enter.vlevski.eu/hs/images/site/hs.png">
		<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
		<meta name="format-detection" content="telephone=no" />
		<meta property="og:type" content="website" />
		<meta property="og:locale" content="bg_BG" />
		<meta property="og:title" content="Система за характеристика на средата" />
		<meta property="og:description" content="СУ „Васил Левски“ - Троян - система за характеристика на средата" />
		<meta property="og:url" content="https://enter.vlevski.eu/hs" />
		<meta property="og:image" content="https://enter.vlevski.eu/hs/images/site/hsf.jpg" />
		<meta property="og:image:width" content="1920" />
		<meta property="og:image:height" content="1080" />
		<meta property="og:image:alt" content="Система за характеристика на средата" />
		<link rel="stylesheet" href="/hs/assets/css/bootstrap.min.css" />
		<script src="/hs/assets/js/jquery.min.js"></script>
		<script src="/hs/assets/js/popper.min.js"></script>
		<script src="/hs/assets/js/tooltip.min.js"></script>
		<script src="/hs/assets/js/bootstrap.min.js"></script>
	</head>
	<body>
		<?php
			if ($k=="")
			{
		?>
		<div id="bg" style="position: absolute; z-index: 3; top: 0; left: 0; margin: 0; padding: 0; width: 100vw; height: 100vh; background-image: url('/hs/images/site/hsf.jpg'); background-position: top left; background-repeat: no-repeat; background-size: cover; opacity: 0.8; z-index: 0;">
		</div>
		<div id="bgt" style="position: absolute; width: 90%; left: 5%; top: 60%; height: 40%; z-index: 5; text-align: center;">
			<table style="width: 100%; border: none;">
				<tr>
					<td colspan="2" style="width: 100%; text-align: left; font-weight: bold; font-size: 20pt; color: #990000;">
						<form action="/" method="POST">
							<br />
							<br />
							<button type="submit" class="btn btn-success btn-lg btn-block">ВХОД</button>
						</form>
					</td>
				</tr>
			</table>
		</div>
		<?php
			}
			else
			{
		?>
		<div id="bgt" style="position: absolute; width: 90%; left: 5%; top: 0%; z-index: 5; text-align: center;">
			<strong>ХАРАКТЕРИСТИКА НА СРЕДАТА<br /><br />СПИСЪК НА УЧЕНИЦИТЕ ОТ <?php print("".$k.""); ?> КЛАС</strong><br /><br />
			<table style="width: 100%; border: 1px #000000 solid;">
				<tr>
					<td style="width: 5%; text-align: center; font-weight: bold; font-size: 16pt; color: #000000; border: 1px #000000 solid;">
						N
					</td>
					<td style="width: 55%; text-align: center; font-weight: bold; font-size: 16pt; color: #000000; border: 1px #000000 solid;">
						Имена
					</td>
					<td style="width: 40%; text-align: center; font-weight: bold; font-size: 16pt; color: #000000; border: 1px #000000 solid;">
						Среда
					</td>
				</tr>
				<?php
					include("./conn.php");
					$sqlq=mysqli_query($db, "SELECT * FROM `students` WHERE `k` = '".$k."' ORDER BY `i` ASC");
					$i=1;
					while ($res=mysqli_fetch_row($sqlq))
					{
						$id="".$res[0]."";
						$fill="".$res[6]."";
						$n1="".$res[2]."";
						$n2="".$res[3]."";
						$n3="".$res[4]."";
						print("<tr style=\"min-height: 60px;\">");
						print("<td style=\"width: 5%; text-align: center; font-size: 14pt; color: #000000; border: 1px #000000 solid;\">".$i."</td>");
						print("<td style=\"width: 55%; text-align: left; font-size: 14pt; color: #000000; border: 1px #000000 solid;\">".$n1." ".$n2." ".$n3."</td>");
						if ($fill=="")
						{
							print("<td style=\"width: 40%; text-align: center; border: 1px #000000 solid;\"><button type=\"button\" onclick=\"window.open('/hs/add.php?k=".$k."&i=".$id."', '_self'); return true;\" class=\"btn btn-warning btn-lg btn-block\">НЕВЪВЕДЕНА</button></td>");
						}
						else if ($fill=="decline")
						{
							print("<td style=\"width: 40%; text-align: center; border: 1px #000000 solid;\"><button type=\"button\" onclick=\"window.open('/hs/add.php?k=".$k."&i=".$id."', '_self'); return true;\" class=\"btn btn-danger btn-lg btn-block\">ОТКАЗАНА</button></td>");
						}
						else
						{
							print("<td style=\"width: 40%; text-align: center; font-weight: bold; font-size: 16pt; background-color: #009900; color: #FFFFFF; border: 1px #000000 solid;\">ВЪВЕДЕНА</td>");
						}
						print("</tr>");
						$i++;
					}
				?>
			</table>
			<br />
			<br />
			<br />
			<br />
		</div>
		<?php
			}
		?>
	</body>
</html>