Your IP : 216.73.217.87


Current Path : /srv/www/sick/bel/
Upload File :
Current File : //srv/www/sick/bel/begin.php

<?php
	header("Cache-Control: no-cache, must-revalidate");
	header("Expires: Sat, 26 Jul 1997 05:00:00 GMT");
?><!DOCTYPE HTML>
<html>
	<head>
		<meta charset="utf-8" />
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
		<meta name="product" content="Областно състезание по ИТ" />
		<meta name="description" content="Областно състезание по ИТ" />
		<meta name="author" content="СОУ Васил Левски - Троян" />
		<style>
			<!--
				html, body
					{
						margin: 0px;
						padding: 0px;
					}
				a.mi
					{
						text-decoration: none;
						border: 2px #456 solid;
					}
				a.mi:hover
					{
						border: 2px #000 solid;
					}
				a.milnk
					{
						text-decoration: none;
						border: 2px #456 solid;
					}
				a.milnk:hover
					{
						border: 2px #000 solid;
					}
				a.lnk
					{
						color: #000;
						text-decoration: underline;
					}
				a.lnk:hover
					{
						text-decoration: none;
					}
				div
					{
						font-family: Verdana, Helvetica, sans-serif;
						font-size: 18px;
					}
				label, textarea, input, select
					{
						font-family: Verdana, Helvetica, sans-serif;
						font-size: 11px;
					}
			-->
		</style>
		<title>За състезанието</title>
		<script>
			<!--
				function sndf()
					{
						document.getElementById("tstf").submit();
					}
				function n(m, e, dec)
					{
						var key;
						var keychar;
						if (window.event)
							{
								key=window.event.keyCode;
							}
						else if (e)
							{
								key=e.which;
							}
						else
							{
								return true;
							}
						keychar=String.fromCharCode(key);
						if ((key==null) || (key==0) || (key==8) || (key==9) || (key==13) || (key==27))
							{
								return true;
							}
						else if ((("0123456789").indexOf(keychar) > -1))
							{
								return true;
							}
						else if (dec && (keychar == "."))
							{
								return false;
							}
						else
							{
								return false;
							}
					}
			// -->
		</script>
</head>
<body>
	<div style="position: relative; margin: 0 auto; width: 900px; background-color: #fff; font-size: 20px;">
		<form id="tstf" name="tstf" action="./zad1.php" method="post">
		<div id="savemsg" style="position: absolute; top: 35px; left: 600px; width: 200px; height: 50px; cursor: default; overflow: hidden; z-index: 5; color: #000; background-color: #fff; font-size: 20px; text-align: center;"><font style='color: #f00;'>НЕ Е СЪХРАНЕНО</font></div>
		<a href="#" style="cursor: pointer; color: #FFFFFF; text-decoration: none;" title="Съхрани"><img src="./save.png" width="120" height="120" border="0" alt="Съхрани" style="position: absolute; top: 0px; left: 800px; width: 100px; height: 100px; cursor: pointer; overflow: hidden; z-index: 5;" /></a>
		<img src="./header.png" width="150" height="150" border="0" align="left" /><br />&quot;Аз пиша грамотно&quot;<br />Oбщинско състезание по български език
		<br />на СОУ "Васил Левски" - гр. Троян<!-- target="savebox" -->
		<br />
		<br />
		<br /><hr />
		<center>
		<br /><b>Изберете Вашето име от списъка</b>
		<br /><select name="snm" id="snm" style="width: 600px;">
				<option value="ns">-- Изберете Вашето име --</option>
				<?php
					include("./conn.php");
					@mysql_select_db('bel', $db) or die();
					$res=mysql_query("SELECT i, sn, kl, school FROM `students` ORDER BY `sn` ASC", $db);
					while ($rows=mysql_fetch_row($res))
						{
							print("<option value=\"".$rows[0]."\">".$rows[1]." от ".$rows[2].". клас на ".$rows[3]."</option>");
						}
				?>
			</select>
			<br />
			<br /><b>Въведете шестцифрения код:</b>
			<br />
			<input style="width: 100px; text-align: center;" type="text" name="code" id="code" maxlength="6" onkeypress="return n(this, event)" />
			<br />
			<br />
			<a href="#" onclick="sndf(); return true;" style="cursor: pointer; color: #FFFFFF; text-decoration: none;" title="Продължи"><div style="margin: 0 auto; width: 300px; height: 30px; text-align: center; font-family: Verdana, Arial, sans-serif; font-size: 18px; padding-top: 7px; border: 3px #337799 solid; border-radius: 5px; background-color: #330044; cursor: pointer; overflow: hidden;">Продължи</div></a>
		</center>
		</form>
	</div>
</body>
</html>