Your IP : 216.73.217.87


Current Path : /hdd/hdd11/www/vlevski/id/
Upload File :
Current File : /hdd/hdd11/www/vlevski/id/index.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");
?><!DOCTYPE HTML>
<html lang="bg">
	<head>
		<meta charset="utf-8" />
		<title>Регионален форум по НП &quot;Иновации в действие&quot;, 2022</title>
		<link rel="shortcut icon" type="image/png" href="/images/site/logo.png" />
		<link rel="shortcut icon" type="image/png" href="https://id.vlevski.eu/images/site/logo.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" />
		<link rel="stylesheet" href="/assets/css/croppie.css" />
		<script src="/assets/js/jquery.min.js"></script>
		<script src="/assets/js/form.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/js/croppie.js"></script>
		<script src="/assets/fa/js/all.min.js" defer></script>
		<style>
			html, body
			{
				background-color: #f5f5f5;
				font-family: Calibri, Candara, Segoe, "Segoe UI", Optima, Arial, sans-serif;
				font-size: 20px;
				min-height: 100vh;
				margin: 0;
			}
			a, div, input, h1, h2, h3, p
			{
				font-family: Calibri, Candara, Segoe, "Segoe UI", Optima, Arial, sans-serif;
			}
			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;
			}
			.main-header
			{
				position: relative;
				margin-left: 20px;
				margin-top: 30px;
			}
			.main-info
			{
				position: relative;
				margin-left: 0px;
				margin-top: 20px;
			}
		</style>
	</head>
	<body>
		<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="Навигация">
					<span class="navbar-toggler-icon"></span>
				</button>
			</li>
			<div class="collapse navbar-collapse" id="navbarNav">
				<ul class="navbar-nav">
					<li class="nav-item">
						<h2 style="color: #f5f5f5;"><i class="fas fa-comments"></i> Регионален форум по НП &quot;Иновации в действие&quot;, 2022</h2>
					</li>
				</ul>
			</div>
		</nav>
		<script>
			var id="";
			var ni="";
			var uid="";
			var u="";
			function editnow()
			{
				eca=$("#eca").val();
				eca=eca.replace(/["']/g, "&quot;");
				if (eca=="")
				{
					$("#mwe").modal("show");
				}
				else
				{
					$.ajax({url: "/sndedit.php", type: "POST", data:{"eca": ""+eca+""}, success: function(data) { if (data!="ERR") { contedit(data); } else { $("#mwedt").html("<i class=\"fas fa-info-circle\" style=\"color: #FFFFFF;\"></i> Няма регистрация с този код!"); $("#mwedb").html("Няма регистрация с този код!"); $("#mwed").modal("show"); } } });
				}
			}
			function addmore()
			{
				$("#mwm").modal("show");
			}
			function reg()
			{
				$("#mwr").modal("show");
			}
			function addfile(nm, u)
			{
				uid=u;
				$("#mwup").modal("show");
				$("#mwupt").html("<i class=\"fas fa-file-alt\"></i> Файл на "+nm);
			}
			function newuser(v)
			{
				$("#mwu").modal("show");
			}
			function addusernow()
			{
				n1=$("#n1").val();
				n2=$("#n2").val();
				n3=$("#n3").val();
				ri=$("#ri").val();
				um=$("#um").val();
				gsm=$("#gsm").val();
				n1=n1.replace(/["']/g, "&quot;");
				n2=n2.replace(/["']/g, "&quot;");
				n3=n3.replace(/["']/g, "&quot;");
				um=um.replace(/["']/g, "&quot;");
				gsm=gsm.replace(/["']/g, "&quot;");
				if ((n1=="") || (n3=="") || (ri=="") || (um=="") || (gsm==""))
				{
					$("#mwe").modal("show");
				}
				else
				{
					$.ajax({url: "/snduser.php", type: "POST", data:{"n1": ""+n1+"", "n2": ""+n2+"", "n3": ""+n3+"", "ri": ""+ri+"", "um": ""+um+"", "gsm": ""+gsm+"", "id": ""+id+""}, success: function(data) { if (data!="ERR") { contuser(data, n1, n2, n3, ri); } else { $("#mwedt").html("<i class=\"fas fa-info-circle\" style=\"color: #FFFFFF;\"></i> Претоварване на сървъра"); $("#mwedb").html("Претоварване на сървъра! Моля, опитайте по-късно!"); $("#mwed").modal("show"); } } });
				}
			}
			function contedit(v)
			{
				$("#mwm").modal("hide");
				us=v.split("|");
				id=us[0];
				u=us[1];
				$("#rms").css("display", "none");
				$("#ms").css("display", "block");
				$("#ms").html("<h3>Добавяне на файлове<br />или участници!</h3><br />"+u+"<br /><button type=\"button\" class=\"form-control-lg form-control btn-warning\" onclick=\"newuser("+id+"); return true;\"><i class=\"fas fa-user-plus\"></i>&nbsp;&nbsp;Добавете участник</button>");
			}
			function contuser(v, n1, n2, n3, ri)
			{
				$("#n1").val("");
				$("#n2").val("");
				$("#n3").val("");
				$("#ri").val("").change();
				$("#um").val("");
				$("#gsm").val("");
				$("#mwu").modal("hide");
				uid=v;
				if (u=="")
				{
					u+="Участници до момента:";
				}
				u+="<br />"+n1+" "+n2+" "+n3+" - "+ri+"<br /><button type=\"button\" class=\"form-control-lg form-control btn-primary\" onclick=\"addfile('"+n1+" "+n2+" "+n3+"', '"+uid+"'); return true;\"><i class=\"fas fa-file-export\"></i>&nbsp;&nbsp;Добавете файл</button>";
				$("#ms").html("<h3>Регистрацията<br />на "+ni+"<br />премина успешно!</h3><br />"+u+"<br /><button type=\"button\" class=\"form-control-lg form-control btn-warning\" onclick=\"newuser("+id+"); return true;\"><i class=\"fas fa-user-plus\"></i>&nbsp;&nbsp;Добавете участник</button>");
			}
			function cont(v)
			{
				id=v;
				$("#mwr").modal("hide");
				$("#rms").css("display", "none");
				$("#ms").css("display", "block");
				$("#ms").html("<h3>Регистрацията<br />на "+ni+"<br />премина успешно!</h3><br />"+u+"<br /><button type=\"button\" class=\"form-control-lg form-control btn-warning\" onclick=\"newuser("+id+"); return true;\"><i class=\"fas fa-user-plus\"></i>&nbsp;&nbsp;Добавете участник</button>");
			}
			function regnow()
			{
				rd=$("#rd").val();
				rm=$("#rm").val();
				rp=$("#rp").val();
				ti=$("#ti").val();
				ni=$("#ni").val();
				ca=$("#ca").val();
				ni=ni.replace(/["']/g, "&quot;");
				ca=ca.replace(/["']/g, "&quot;");
				if ((rd=="") || (rm=="") || (rp=="") || (ti=="") || (ni==""))
				{
					$("#mwe").modal("show");
				}
				else
				{
					if ((ti=="Училище") && (ca==""))
					{
						$("#mwe").modal("show");
					}
					else
					{
						$.ajax({url: "/sndinst.php", type: "POST", data:{"rd": ""+rd+"", "rm": ""+rm+"", "rp": ""+rp+"", "ti": ""+ti+"", "ni": ""+ni+"", "ca": ""+ca+""}, success: function(data) { if (data!="ERR") { cont(data); } else { $("#mwedt").html("<i class=\"fas fa-info-circle\" style=\"color: #FFFFFF;\"></i> Претоварване на сървъра"); $("#mwedb").html("Претоварване на сървъра! Моля, опитайте по-късно!"); $("#mwed").modal("show"); } } });
					}
				}
			}
			$(document).ready(function()
			{
				$('#frm').submit(function(e)
				{
					if($('#upf').val())
					{
						e.preventDefault();
						$(this).ajaxSubmit(
						{	
							target: "#uplret",
							beforeSubmit: function()
							{
								$("#progress-bar").width("0px");
							},
							uploadProgress: function (event, position, total, percentComplete)
							{
								wdth=Math.round(percentComplete/100*269);
								$("#status-p").html(percentComplete+"%");
								$("#progress-bar").width(wdth + "px");
								$("#progress-bar").html("");
							},
							success:function ()
							{
							},
							resetForm: true
						});
						return false; 
					}
				});
			});
		</script>
		<div class="modal fade" id="mwup" data-keyboard="false" data-backdrop="static" tabindex="-1" role="dialog" aria-labelledby="mwup" aria-hidden="true">
			<div class="modal-dialog modal-lg" style="margin-top: 110px; width: 95%; margin-left: auto;">
				<div class="modal-content">
					<div class="modal-header">
						<h5 class="modal-title" id="mwupt">
						</h5>
						<button type="button" class="close" data-dismiss="modal" aria-label="Затвори">
							<span aria-hidden="true">&times;</span>
						</button>
					</div>
					<div class="modal-body">
						<form id="frm" action="/upload.php" target="frms" enctype="multipart/form-data" name="frm" method="POST">
						<input id="upuid" type="hidden" name="upuid" value="" />
						<script>
							function uplok()
							{
								$("#mww").modal("hide");
								$("#mw").modal("show");
								$("#chf").val("");
								$("#upf").val("");
							}
							function uplerr()
							{
								$("#mwedt").html("<i class=\"fas fa-info-circle\" style=\"color: #FFFFFF;\"></i> Нещо се обърка");
								$("#mwedb").html("Презаредете страницата и опитайте отново!");
								$("#mwed").modal("show");
								$("#chf").val("");
								$("#upf").val("");
							}
							function uplem()
							{
								$("#mwedt").html("<i class=\"fas fa-info-circle\" style=\"color: #FFFFFF;\"></i> Файлът е празен");
								$("#mwedb").html("Презаредете страницата и опитайте отново!");
								$("#mwed").modal("show");
								$("#chf").val("");
								$("#upf").val("");
							}
							var fSize=1999999999;
							function checkSubmit()
							{
								var err=0;
								var upl=document.getElementById("upf").value;
								if (upl=="")
								{
									$("#mwefb").html("Не сте избрали файл!");
									err++;
								}
								else if (fSize>=1999999999)
								{
									$("#mwefb").html("Файлът не може да е по-голям от 1,5GB!");
									err++;
								}
								var tm=$("#tm").val();
								if (tm=="")
								{
									$("#mwe").modal("show");
								}
								else
								{
									if (err==0)
									{
										$("#upuid").val(uid);
										$("#mww").modal("show");
										$("#mwup").modal("hide");
										setTimeout(function(){ $("#frm").submit(); }, 1500);
									}
									else
									{
										$("#mwef").modal("show");
									}
								}
							}
							function uploadFill()
							{
								fSize=document.getElementById("upf").files[0].size;
								var upl=$("#upf").val();
								upl=upl.replace("C:\\fakepath\\","");
								$("#chf").val(upl);
							}
						</script>
						<div id="uplret" style="position: absolute; top: 0px; left: 0px; width: 0px; height: 0px; overflow: hidden; z-index: 1000;"></div>
						<br />Моля, изберете файл до 1,5GB:
						<br />
						<br />
						<div class="input-group">
						<label class="col-xs-6 col-md-4 form-control-lg form-control btn-primary">
							Избери <input id="upf" name="upf" type="file" accept="*" style="display: none;" onchange="uploadFill(); return true;" />
						</label>
						<input id="chf" class="col-xs-12 col-md-8 form-control-lg form-control" type="text" readonly="" />
						</div>
						<br />
						<br />В кое направление е Вашия файл?
						<select id="tm" name="tm" class="form-control-lg form-control" style="background-color: #CCCCCC; height: 50px;">
							<option value="">--Моля, изберете вариант</option>
							<option value="Добри иновативни практики">Добри иновативни практики</option>
							<option value="STEM образование">STEM образование</option>
						</select>
						<br />
						<input type="hidden" name="us" value="1">
						<button type="button" class="form-control-lg form-control btn-primary" onclick="checkSubmit(); return true;"><i class="fas fa-cloud-upload-alt"></i>&nbsp;&nbsp;Качи в сървъра</button>
						</form>
					</div>
				</div>
			</div>
		</div>
		<div class="modal fade" id="mwr" data-keyboard="false" data-backdrop="static" tabindex="-1" role="dialog" aria-labelledby="mwr" 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="mwrt">
							<i class="fas fa-pencil-alt"></i> Регистрация на институция
						</h5>
						<button type="button" class="close" data-dismiss="modal" aria-label="Затвори">
							<span aria-hidden="true">&times;</span>
						</button>
					</div>
					<div class="modal-body">
						<strong>Моля, попълнете всички полета по-долу<br /><br />1. Данни за Вашето населено място:<br />&nbsp;&nbsp;&nbsp;1. 1. Област:</strong>
						<br />
						<select id="rd" name="rd" class="form-control-lg form-control" style="background-color: #CCCCCC; height: 50px;">
							<option value="">--Моля, изберете вариант</option>
							<option value="Видин">Видин</option>
							<option value="Враца">Враца</option>
							<option value="Монтана">Монтана</option>
							<option value="Ловеч">Ловеч</option>
							<option value="Плевен">Плевен</option>
							<option value="Хасково">Хасково</option>
						</select>
						<br /><strong>&nbsp;&nbsp;&nbsp;1.2. Община</strong>
						<select id="rm" name="rm" class="form-control-lg form-control" style="background-color: #CCCCCC; height: 50px;">
							<option value="">--Моля, изберете вариант</option>
						</select>
						<br /><strong>&nbsp;&nbsp;&nbsp;1.3. Населено място</strong>
						<select id="rp" name="rp" class="form-control-lg form-control" style="background-color: #CCCCCC; height: 50px;">
							<option value="">--Моля, изберете вариант</option>
						</select>
						<hr />
						<strong>2. Вид на институцията:</strong>
						<br />
						<select id="ti" name="ti" class="form-control-lg form-control" style="background-color: #CCCCCC; height: 50px;">
							<option value="">--Моля, изберете вариант</option>
							<option value="Регионално управление на образованието">Регионално управление на образованието</option>
							<option value="Училище">Училище</option>
							<option value="Научна институция">Научна институция</option>
						</select>
						<hr />
						<strong>3. Наименование на институцията:</strong>
						<input name="ni" id="ni" placeholder="Наименование на Вашата институция" class="form-control-lg form-control" style="background-color: #CCCCCC;" type="text" value="" />
						<hr />
						<strong>4. Код по АДМИН (само за училища):</strong>
						<input name="ca" id="ca" placeholder="Код по АДМИН на Вашето училище" class="form-control-lg form-control" style="background-color: #CCCCCC;" type="text" value="" />
					</div>
					<div class="modal-footer">
						<button type="button" class="btn btn-primary" onclick="regnow(); return true;"><i class="fas fa-file-export"></i> Напред</button>						
					</div>
				</div>
			</div>
		</div>
		<div class="modal fade" id="mwm" data-keyboard="false" data-backdrop="static" tabindex="-1" role="dialog" aria-labelledby="mwm" aria-hidden="true">
			<div class="modal-dialog modal-lg" style="width: 95%; margin-left: auto;">
				<div class="modal-content">
					<div class="modal-header">
						<h5 class="modal-title" id="mwmt">
							<i class="fas fa-plus"></i> Допълване на регистрация
						</h5>
						<button type="button" class="close" data-dismiss="modal" aria-label="Затвори">
							<span aria-hidden="true">&times;</span>
						</button>
					</div>
					<div class="modal-body">
						<strong>Редакцията е възможна само за училища
						<br /><br />1. Код по АДМИН на училището:</strong>
						<br />
						<br />
						<input name="eca" id="eca" placeholder="Код по АДМИН на Вашето училище" class="form-control-lg form-control" style="background-color: #CCCCCC;" type="text" value="" />
					</div>
					<div class="modal-footer">
						<button type="button" class="btn btn-primary" onclick="editnow(); return true;"><i class="fas fa-plus"></i> Напред</button>
					</div>
				</div>
			</div>
		</div>
		<div class="modal fade" id="mwu" data-keyboard="false" data-backdrop="static" tabindex="-1" role="dialog" aria-labelledby="mwu" aria-hidden="true">
			<div class="modal-dialog modal-lg" style="width: 95%; margin-left: auto;">
				<div class="modal-content">
					<div class="modal-header">
						<h5 class="modal-title" id="mwut">
							<i class="fas fa-user-plus"></i> Добавете участник
						</h5>
						<button type="button" class="close" data-dismiss="modal" aria-label="Затвори">
							<span aria-hidden="true">&times;</span>
						</button>
					</div>
					<div class="modal-body">
						<strong>Моля, попълнете всички полета по-долу<br /><br />1. Име:</strong>
						<input name="n1" id="n1" placeholder="Вашето име" class="form-control-lg form-control" style="background-color: #CCCCCC;" type="text" value="" />
						<hr />
						<strong>2. Презиме:</strong>
						<input name="n2" id="n2" placeholder="Вашето презиме" class="form-control-lg form-control" style="background-color: #CCCCCC;" type="text" value="" />
						<hr />
						<strong>3. Фамилия:</strong>
						<input name="n3" id="n3" placeholder="Вашата фамилия" class="form-control-lg form-control" style="background-color: #CCCCCC;" type="text" value="" />
						<hr />
						<strong>4. Роля в институцията:</strong>
						<br />
						<select id="ri" name="ri" class="form-control-lg form-control" style="background-color: #CCCCCC; height: 50px;">
							<option value="">--Моля, изберете вариант</option>
							<option value="Началник">Началник</option>
							<option value="Експерт">Експерт</option>
							<option value="Директор">Директор</option>
							<option value="Заместник-директор">Заместник-директор</option>
							<option value="Педагогически специалист">Педагогически специалист</option>
							<option value="Ученик">Ученик</option>
							<option value="Представител на научна институция">Представител на научна институция</option>
						</select>
						<hr />
						<strong>5. E-mail:</strong>
						<input name="um" id="um" placeholder="Вашият e-mail" class="form-control-lg form-control" style="background-color: #CCCCCC;" type="text" value="" />
						<hr />
						<strong>6. Актуален телефон за връзка (GSM):</strong>
						<input name="gsm" id="gsm" placeholder="Вашият GSM" class="form-control-lg form-control" style="background-color: #CCCCCC;" type="text" value="" />						
					</div>
					<div class="modal-footer">
						<button type="button" class="btn btn-primary" onclick="addusernow(); return true;"><i class="fas fa-user-plus"></i> Добави</button>
					</div>
				</div>
			</div>
		</div>
		<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%; margin-left: auto;">
				<div class="modal-content">
					<div class="modal-header">
						<h5 class="modal-title" id="mwt">
							<i class="fas fa-file-alt"></i> Вашият файл е качен
						</h5>
						<button type="button" class="close" data-dismiss="modal" aria-label="Затвори">
							<span aria-hidden="true">&times;</span>
						</button>
					</div>
					<div class="modal-body">
						<strong>Вашият файл е качен в сървъра.</strong>
					</div>
				</div>
			</div>
		</div>
		<div class="modal fade" id="mww" data-keyboard="false" data-backdrop="static" tabindex="-1" role="dialog" aria-labelledby="mww" aria-hidden="true">
			<div class="modal-dialog modal-lg" style="margin-top: 110px; width: 95%; margin-left: auto;">
				<div class="modal-content" style="background-color: #FFFF44;">
					<div class="modal-header">
						<h5 class="modal-title" id="mwwt">
							<i class="fas fa-file-alt"></i> Вашият файл се качва...
						</h5>
					</div>
					<div class="modal-body">
						<center>
							Моля, изчакайте...
							<br />
							<br />Времето на качване зависи<br />от размера на Вашия файл<br />и скоростта<br />на Вашата интернет връзка.
						</center>
						<hr />
						<center>
							<div style="position: relative; margin: 0 auto; width: 280px; height: 25px; border: none; text-align: left;">
								<div style="position: absolute; top: 0px; left: 5px; width: 180px; text-align: left; font-style: italic; font-size: 18px; z-index: 1000;">
									Статус:
								</div>
								<div id="status-p" style="position: absolute; top: 0px; left: 190px; width: 85px; text-align: right; font-weight: bold; font-size: 18px; z-index: 1000;">
									0%
								</div>
							</div>
							<div style="position: relative; margin: 0 auto; width: 280px; border-radius: 3px; height: 20px; border: 1px solid #000000; text-align: left;"><div id="progress-bar" style="margin: 5px; border-radius: 2px; background-color: #000099; height: 10px; color: #FFFFFF; width: 0px; -webkit-transition: width 0.3s; -moz-transition: width 0.3s; transition: width 0.3s;"></div>
						</center>
					</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%; margin-left: auto;">
				<div class="modal-content" style="background-color: #FFFF44;">
					<div class="modal-header">
						<h5 class="modal-title" id="mwet">
							<i class="fas fa-info-circle"></i> Непълни данни
						</h5>
						<button type="button" class="close" data-dismiss="modal" aria-label="Затвори">
							<span aria-hidden="true">&times;</span>
						</button>
					</div>
					<div class="modal-body">
						Моля, попълнете всичко, за да продължите!
					</div>
				</div>
			</div>
		</div>
		<div class="modal fade" id="mwed" data-keyboard="false" data-backdrop="static" tabindex="-1" role="dialog" aria-labelledby="mwed" aria-hidden="true">
			<div class="modal-dialog modal-lg" style="margin-top: 110px; width: 95%; margin-left: auto;">
				<div class="modal-content" style="background-color: #FF2222;">
					<div class="modal-header">
						<h5 class="modal-title" id="mwedt" style="color: #FFFFFF;">
						</h5>
						<button type="button" class="close" data-dismiss="modal" aria-label="Затвори" style="color: #FFFFFF;">
							<span aria-hidden="true">&times;</span>
						</button>
					</div>
					<div class="modal-body" id="mwedb" style="color: #FFFFFF;">
					</div>
				</div>
			</div>
		</div>
		<div class="modal fade" id="mwef" data-keyboard="false" data-backdrop="static" tabindex="-1" role="dialog" aria-labelledby="mwef" aria-hidden="true">
			<div class="modal-dialog modal-lg" style="margin-top: 110px; width: 95%; margin-left: auto;">
				<div class="modal-content" style="background-color: #FFFF44;">
					<div class="modal-header">
						<h5 class="modal-title" id="mweft">
							<i class="fas fa-info-circle"></i> Неуспешно качване на файл
						</h5>
						<button type="button" class="close" data-dismiss="modal" aria-label="Затвори">
							<span aria-hidden="true">&times;</span>
						</button>
					</div>
					<div class="modal-body" id="mwefb">
					</div>
				</div>
			</div>
		</div>
		<div style="margin-top: 55px;" class="container-fluid">
			<div class="row">
				<div class="col-12 col-sm-12 col-md-12 col-lg-12 col-xl-12" style="margin-bottom: 10px;">
					<h3 class="main-header" style="color: #000099;"><i class="fas fa-pencil-alt"></i>&nbsp;&nbsp;Регистрация</h3>
				</div>
			</div>
			<div class="row">
				<div class="col-12-none col-md-12-none col-sm-12-none col-xs-12-none col-lg-4 col-xl-4">
					&nbsp;
				</div>
				<div class="col-12 col-md-12 col-sm-12 col-xs-12 col-lg-4 col-xl-4">
					<iframe id="frms" name="frms" src="about:blank" style="position: absolute; top: 0px; left: 0px; width: 0px; height: 0px; overflow: hidden; z-index: 1;"></iframe>
					<div id="rms" style="position: relative; top: 0px; margin: 0 auto; width: 320px; max-width: 320px; overflow: hidden; text-align: center; background: transparent;">
						<center>
							<i class="fas fa-school" style="font-size: 150px; color: #000099;"></i>
						</center>
						<br />
						<button type="button" class="form-control-lg form-control btn-success" onclick="reg(); return true;"><i class="fas fa-pencil-alt"></i>&nbsp;&nbsp;Регистрация</button>
						<br />
						<button type="button" class="form-control-lg form-control btn-warning" onclick="addmore(); return true;"><i class="fas fa-plus"></i>&nbsp;&nbsp;Допълване</button>
					</div>
					<div id="ms" style="position: relative; top: 0px; margin: 0 auto; width: 320px; max-width: 320px; overflow: hidden; text-align: center; background: transparent; display: none;">
					</div>
				</div>
				<div class="col-12-none col-md-12-none col-sm-12-none col-xs-12-none col-lg-4 col-xl-4">
					&nbsp;
				</div>
			</div>
		</div>
		<script>
			function filld(d)
			{
				$("#rm").children().remove().end().append('<option selected value="">--Моля, изберете вариант</option>'+d);
			}
			function fillp(d)
			{
				$("#rp").children().remove().end().append('<option selected value="">--Моля, изберете вариант</option>'+d);
			}
			$("#rd").change(function()
			{
				d=$("#rd").val();
				$("#rp").children().remove().end().append('<option selected value="">--Моля, изберете вариант</option>');
				$.ajax({url: "/seld.php", type: "POST", data:{"d": ""+d+""}, success: function(data) { if (data!="ERR") { filld(data); } else { $("#mwedt").html("<i class=\"fas fa-info-circle\" style=\"color: #FFFFFF;\"></i> Претоварване на сървъра"); $("#mwedb").html("Претоварване на сървъра! Моля, опитайте по-късно!"); $("#mwed").modal("show"); } } });
			});
			$("#rm").change(function()
			{
				d=$("#rd").val();
				m=$("#rm").val();
				$.ajax({url: "/selp.php", type: "POST", data:{"d": ""+d+"", "m": ""+m+"",}, success: function(data) { if (data!="ERR") { fillp(data); } else { $("#mwedt").html("<i class=\"fas fa-info-circle\" style=\"color: #FFFFFF;\"></i> Претоварване на сървъра"); $("#mwedb").html("Претоварване на сървъра! Моля, опитайте по-късно!"); $("#mwed").modal("show"); } } });
			});
		</script>
	</body>
</html>