Your IP : 216.73.217.87
<?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");
$un="";
$ps="";
$lgn="";
$pollans="";
if (isset($_POST["un"]))
{
$un=$_POST["un"];
$ps=$_POST["ps"];
$data="WP";
$stts="";
include("./conn.php");
$lgn=mysqli_query($db, "SELECT * FROM `students` WHERE `id`='".$un."' LIMIT 1");
while ($res=mysqli_fetch_row($lgn))
{
$ir=$res[0];
$egn=substr($res[6], -6);
if ($ps==$egn)
{
$data="LGN";
$mu=$res[10];
$mp=$res[11];
$stts="s";
}
}
if ($data=="WP")
{
$lgn=mysqli_query($db, "SELECT * FROM `stuff` WHERE `id`='".$un."' LIMIT 1");
while ($res=mysqli_fetch_row($lgn))
{
$ir=$res[0];
$egn=substr($res[6], -6);
if ($ps==$egn)
{
$data="LGN";
$tname="".$res[3]." ".$res[5]."";
$mu=$res[9];
$mp=$res[10];
$stts="t";
}
}
}
//if ($un=="radio" && $ps=="c03a4de0f8c83161952f3e20a1eed54e4bb1186b")
//{
//$lgn="lgn";
//setcookie("lgn", "lgn", time() + 1000, "/", "", true, false);
//}
//else
//{
//$lgn="not";
//}
}
//if (isset($_COOKIE["lgn"]))
//{
// $lgn=$_COOKIE["lgn"];
// setcookie("lgn", "lgn", time() + 1000, "/", "", true, false);
//}
?><!DOCTYPE HTML>
<html lang="bg">
<head>
<meta charset="utf-8" />
<title>Електронна система на СУ "Васил Левски" - Троян</title>
<link rel="shortcut icon" type="image/png" href="/assets/images/site/enter.png" />
<link rel="shortcut icon" type="image/png" href="https://enter.vlevski.eu/assets/images/site/enter.png" />
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
<link rel="stylesheet" href="/assets/css/bootstrap.min.css" />
<link rel="stylesheet" href="/assets/css/datepicker.css" />
<script src="/assets/js/jquery.min.js"></script>
<script src="/assets/js/popper.min.js"></script>
<script src="/assets/js/bootstrap.min.js"></script>
<script src="/assets/js/bootstrap-datepicker.js"></script>
<script src="/assets/fa/js/all.min.js" defer></script>
<style>
html, body
{
background-color: #112233;
}
a, div, input
{
font-family: Calibri, Candara, Segoe, "Segoe UI", Optima, Arial, sans-serif;
}
#tbl table, #tbl td, #tbl th
{
border: 1px #000000 solid;
margin: 0;
padding: 0;
text-align: center;
}
#tbl
{
border: none;
}
</style>
<script>
chng=1;
function chngrem()
{
if (chng==1)
{
$("#rmt").removeClass("fa-check-square");
$("#rmt").addClass("fa-square");
chng=0;
}
else
{
$("#rmt").removeClass("fa-square");
$("#rmt").addClass("fa-check-square");
chng=1;
}
}
function sndpll()
{
chk1=$("#q1").val();
chk2=$("#q2").val();
chk3=$("#q3").val();
chk4=$("#q4").val();
if ((chk1=="") || (chk2=="") || (chk3=="") || (chk4==""))
{
$("#mwe").modal("show");
}
else
{
$.ajax({url: "./snddata.php", type: "POST", data:{"un": "<?php print("".$un.""); ?>", "pa": ""+chk1+"|NEW|"+chk2+"|NEW|"+chk3+"|NEW|"+chk4+""}, success: function(data) { if (data=="OK") { chngpll(); } } });
}
}
function chngpll()
{
$("#mw").modal("hide");
$("#mwb").css("visibility", "hidden");
$("#mwp").css("background-color", "#009900");
$("#mwp").html("<i class=\"fas fa-check-circle\"></i> ПОПЪЛНЕНА");
}
$("input#un").keydown(function(event)
{
if (event.keyCode !== 8 && event.keyCode !== 0 && event.keyCode < 48 || event.keyCode > 57)
{
event.preventDefault();
}
});
</script>
<style>
a.dropdown-item
{
color: #DDDDDD!important;
}
a.dropdown-item:hover
{
color: #FFFFFF!important;
background-color: transparent!important;
}
.dropdown .dropdown-menu
{
-webkit-transition: all 0.5s;
-moz-transition: all 0.5s;
-ms-transition: all 0.5s;
-o-transition: all 0.5s;
transition: all 0.5s;
max-height: 0;
display: block;
overflow: hidden;
opacity: 0;
}
.dropdown.show .dropdown-menu
{
max-height: 300px;
opacity: 1;
}
</style>
</head>
<body>
<?php
if ($data=="")
{
?>
<div style="margin-top: 50px;" class="container">
<div class="row">
<div class="col-12 col-md-12 col-sm-12 col-xs-12 col-lg-4 col-xl-4">
</div>
<div class="col-12 col-md-12 col-sm-12 col-xs-12 col-lg-4 col-xl-4">
<div style="postion: relative; width: 100%; color: #DDDDDD; font-weight: bold; font-size: 20px; margin-top: 0px; text-align: center;">
Електронна система
<br />на СУ "Васил Левски" - Троян
<br /><img src="/assets/images/site/enter.png" style="width: 200px; border: none;" alt="Електронна система" />
<form action="/" method="POST">
<table style="postion: relative; margin: 0 auto; width: 320px; color: #DDDDDD; border: none;">
<tr>
<td style="width: 30px; margin-top: 10px; font-size: 28px;">
<i class="fas fa-user"> </i>
</td>
<td style="width: 290px;">
<input name="un" id="un" placeholder="Потребител" class="form-control-lg form-control" min="1000000000" max="9999999999" inputmode="decimal" pattern="\\d*" onKeyPress="if(this.value.length==10) return false;" style="background-color: #CCCCCC;" type="number" value="" />
</td>
</tr>
<tr>
<td style="width: 30px; font-size: 5px;">
</td>
<td style="width: 290px;">
</td>
</tr>
<tr>
<td style="width: 30px; margin-top: 10px; font-size: 28px;">
<i class="fas fa-lock"> </i>
</td>
<td style="width: 290px;">
<input name="ps" placeholder="Парола" class="form-control-lg form-control" style="background-color: #CCCCCC;" type="password" value="" />
</td>
</tr>
<tr>
<td style="width: 30px; font-size: 5px;">
</td>
<td style="width: 290px;">
</td>
</tr>
<tr>
<td colspan="2" style="width: 320px; padding-top: 10px;">
<input class="form-control-lg form-control btn-dark" type="submit" value="Вход" />
</td>
</tr>
</table>
<!--
<br />
<br />Искате ли системата
<br />да запомни тези данни?
<table style="postion: relative; margin: 0 auto; width: 320px; color: #DDDDDD; border: none;">
<tr>
<td style="width: 160px;">
<input class="form-control-lg form-control btn-success" type="submit" value="Да" />
</td>
<td style="width: 160px;">
<input class="form-control-lg form-control btn-danger" type="submit" value="Не" />
</td>
</tr>
</table>
-->
</form>
</div>
</div>
<div class="col-12 col-md-12 col-sm-12 col-xs-12 col-lg-4 col-xl-4">
</div>
</div>
</div>
<?php
}
else if ($data=="LGN")
{
if ($stts=="s")
{
?>
<div style="margin-top: 50px;" class="container">
<div class="row">
<div class="col-12 col-md-12 col-sm-12 col-xs-12 col-lg-4 col-xl-4">
</div>
<div class="col-12 Wcol-md-12 col-sm-12 col-xs-12 col-lg-4 col-xl-4">
<div style="postion: relative; width: 100%; color: #DDDDDD; font-weight: bold; font-size: 20px; margin-top: 0px; text-align: center;">
Електронна система
<br />на СУ "Васил Левски" - Троян
<br /><img src="/assets/images/site/enter.png" style="width: 200px; border: none;" alt="Електронна система" />
<br />
<br />потребител:
<br /><b><?php print("".$mu.""); ?></b>
<br />
<br />временна парола:
<br /><b><?php print("".$mp.""); ?></b>
</div>
</div>
<div class="col-12 col-md-12 col-sm-12 col-xs-12 col-lg-4 col-xl-4">
</div>
</div>
</div>
<?php
}
else
{
?>
<nav id="navbar" style="position: fixed; width: 100%; top: 0; left: 0; z-index: 200;" class="navbar navbar-expand-lg navbar-fixed-top navbar-dark bg-dark">
<li class="nav-item active" style="list-style: none;">
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
</li>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav">
<li class="nav-item dropdown">
<a class="nav-link disabled dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><i style="color: #DDDDDD;" class="fas fa-user-friends"></i> MS Teams</a>
<div class="dropdown-menu bg-dark dropdown-dark" aria-labelledby="navbarDropdown">
<a class="dropdown-item" href="#"><i style="color: #DDDDDD;" class="fab fa-windows"></i> MS Teams профил</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="#"><i style="color: #DDDDDD;" class="fas fa-users"></i> MS Teams екипи</a>
</div>
</li>
<li class="nav-item">
<a class="nav-link disabled" href="#"><i class="far fa-question-circle"></i> Анкети</a>
</li>
<li class="nav-item">
<a class="nav-link disabled" href="#"><i style="color: #DDDDDD;" class="fas fa-photo-video"></i> Видеопортал</a>
</li>
</ul>
<ul class="navbar-nav ml-auto">
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="javascript: void();" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><i style="color: #DDDDDD;" class="fas fa-user"></i> <?php print("".$tname.""); ?></a>
<div class="dropdown-menu dropdown-menu-right bg-dark dropdown-dark" aria-labelledby="navbarDropdown">
<a class="dropdown-item disabled" href="javascript: void();"><i style="color: #DDDDDD;" class="fas fa-cog"></i> Настройки</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="/"><i style="color: #DDDDDD;" class="fas fa-sign-out-alt"></i> Изход</a>
</div>
</li>
</ul>
</div>
</nav>
<div class="modal fade" id="mw" data-keyboard="false" data-backdrop="static" tabindex="-1" role="dialog" aria-labelledby="mw" aria-hidden="true">
<div class="modal-dialog modal-lg" style="width: 95%;">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="mwt">
Данни, подадени от <?php print("".$tname.""); ?>
</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Затвори">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<strong>1. Желаете ли да се ваксинирате срещу COVID-19?</strong>
<br />
<select id="q1" name="q1" class="form-control-lg form-control" style="background-color: #CCCCCC; height: 50px;">
<option value="">--Моля, изберете опция</option>
<option value="y">Да, желая да се ваксинирам</option>
<option value="n">Не, не желая да се ваксинирам</option>
</select>
<hr />
<strong>2. Кой е Вашият GSM номер?</strong>
<br />
<input name="q2" id="q2" placeholder="GSM номер" class="form-control-lg form-control" onKeyPress="if(this.value.length==10) return false;" style="background-color: #CCCCCC;" type="text" value="" />
<hr />
<strong>3. Какво е името и фамилията на Вашия общопрактикуващ лекар?</strong>
<br />
<input name="q3" id="q3" placeholder="Име и фамилия" class="form-control-lg form-control" style="background-color: #CCCCCC;" type="text" value="" />
<hr />
<strong>4. Кой е GSM номерът на Вашия общопрактикуващ лекар?</strong>
<br />
<input name="q4" id="q4" placeholder="GSM номер" class="form-control-lg form-control" onKeyPress="if(this.value.length==10) return false;" style="background-color: #CCCCCC;" type="text" value="" />
</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary" onclick="sndpll(); return true;"><i class="fas fa-file-export"></i> Изпратете данните</button>
</div>
</div>
</div>
</div>
<div class="modal fade" id="mwe" data-keyboard="false" data-backdrop="static" tabindex="-1" role="dialog" aria-labelledby="mwe" aria-hidden="true">
<div class="modal-dialog modal-lg" style="margin-top: 110px; width: 95%;">
<div class="modal-content" style="background-color: #FFFF44;">
<div class="modal-header">
<h5 class="modal-title" id="mwet">
Не сте отговорили на всички въпроси
</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Затвори">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
Вие не сте отговорили на всички въпроси. Моля, попълнете всичко и едва тогава изпратете данните!
</div>
</div>
</div>
</div>
<div class="container-fluid" style="margin-top: 75px;">
<div class="row">
<div class="col-12" style="margin-bottom: 20px; font-size: 25px; font-weight: bold; color: #DDDDDD;">
<i class="far fa-question-circle"></i> Анкети
</div>
</div>
<div class="row">
<div class="col-12 col-sm-12 col-md-6 col-lg-4 col-xl-4" style="margin-bottom: 20px;">
<div style="margin: 0px auto; padding: 0px; width: 322px; max-width: 322px; min-width: 322px; border: 1px dashed #CCCCCC; border-radius: 0px 15px 0px 15px;">
<div style="position: relative; top: 0px; left: 0px; width: 320px; height: 180px; border-radius: 0px 15px 0px 0px; overflow: hidden; background-size: 320px 180px; background-image: url('/assets/images/polls/c19.jpg'); background-repeat: no-repeat; background-position: top left;">
<div id="mwp" style="position: relative; top: 140px; left: 0px; width: 320px; height: 40px; overflow: hidden; color: #DDDDDD; font-size: 25px; text-align: center;
<?php
$pollansq=mysqli_query($db, "SELECT * FROM `pollsans` WHERE `u`='".$un."' LIMIT 1");
while ($pollres=mysqli_fetch_row($pollansq))
{
$pollans="done";
}
if ($pollans=="done")
{
print("background-color: #009900;\"><i class=\"fas fa-check-circle\"></i> ПОПЪЛНЕНА");
}
else
{
print("background-color: #990000;\"><i class=\"fas fa-exclamation-circle\"></i> НЕПОПЪЛНЕНА");
}
?>
</div>
</div>
<div style="position: relative; top: 0px; left: 5px; width: 310px; height: 25px; font-size: 20px; font-weight: bold; color: #DDDDDD; text-align: right;">
COVID-19
</div>
<div style="position: relative; top: 0px; left: 5px; width: 310px; font-size: 15px; font-weight: bold; font-style: italic; color: #DDDDDD; text-align: justify; text-indent: 10px;">
Анкета към педагогическите специалисти, желаещи или нежелаещи да се ваксинират срещу COVID-19.
</div>
<a id="mwb" href="javascript: void()" data-toggle="modal" data-target="#mw" class="btn btn-warning" style="width: 150px; margin-left: 165px; margin-top: 5px; margin-bottom: 5px;<?php if ($pollans=="done") { print(" visibility: hidden;"); } ?>"><i class="fas fa-tasks"></i> Попълнете</a>
</div>
</div>
</div>
</div>
<?php
}
}
else
{
?>
<div style="margin-top: 50px;" class="container">
<div class="row">
<div class="col-12 col-md-12 col-sm-12 col-xs-12 col-lg-4 col-xl-4">
</div>
<div class="col-12 col-md-12 col-sm-12 col-xs-12 col-lg-4 col-xl-4">
<div style="postion: relative; width: 100%; color: #DDDDDD; font-weight: bold; font-size: 20px; margin-top: 0px; text-align: center;">
Електронна система
<br />на СУ "Васил Левски" - Троян
<br /><img src="/assets/images/site/enter.png" style="width: 200px; border: none;" alt="Електронна система" />
<br />
<br />ГРЕШНО ИМЕ ИЛИ ПАРОЛА!
<br />
<table style="postion: relative; margin: 0 auto; width: 320px; color: #DDDDDD; border: none;">
<tr>
<td style="width: 320px; padding-top: 10px;">
<input class="form-control-lg form-control btn-danger" type="button" onclick="window.open('/','_self'); return true;" value="ОПИТАЙ ПАК" />
</td>
</tr>
</table>
</div>
</div>
<div class="col-12 col-md-12 col-sm-12 col-xs-12 col-lg-4 col-xl-4">
</div>
</div>
</div>
<?php
}
?>
</body>
</html>