Your IP : 216.73.217.87
<?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: 15px;
}
-->
</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="./test.php" method="post">
<img src="./header.png" width="150" height="150" border="0" align="left" /><br />Областно състезание<br />по информационни технологии
<br />на СОУ "Васил Левски" - гр. Троян
<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('it', $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].". клас</option>"); // на ".$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>