<?php
include "scrinit.php";
include $menu;
require "dbconnect.php";
date_default_timezone_set("Europe/Athens");
?>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<style>
table.myTable { border-collapse:collapse; }
table.myTable td, table.myTable th { border:1px solid black;padding:2px;font-size:11px; }
.fieldset
{
    width:900px;
	background: #F5F9F0;
	border:2px solid green;
    -moz-border-radius:8px;
    -webkit-border-radius:8px;	
    border-radius:8px;	
}
</style>
<script type="text/javascript" src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
<script type="text/javascript">
function popupCenter(pageURL, title, w, h) {
    var left = (screen.width / 2)  - (w / 2);
    var top  = (screen.height / 2) - (h / 2);
    var targetWin = window.open(pageURL, title,w,h);
}
</script>
<body>
<h4> ΗΜΕΡΟΛΟΓΙΟ ΣΧΟΛΙΚΩΝ ΕΡΓΑΣΙΩΝ</h4>
<?php
$dt=$_SESSION['dt'];


?>
<form  name="hmrologio" method="post" >
ΔΡΑΣΤΗΡΙΟΤΗΤΑ/ΣΥΜΒΑΝ ΠΟΥ ΑΦΟΡΑ ΣΕ:
<?php

$result=mysqli_query($con,"select id,code from eventtype");
echo "<select name='evtype' id='evtype'>";
while ($row = mysqli_fetch_array($result)) {
        echo "<option value='" . $row['id'] . "'>" . $row['code'] . "</option>";
    }
echo "</select>";
?>
&nbsp&nbsp<input type="button" value="ΕΠΙΛΟΓΗ ΚΑΤΗΓΟΡΙΑΣ" onclick= "MyWindow=window.open('hmer2.php?itemSelect='+document.getElementById('evtype').value,'MyWindow',
'toolbar=no,location=no,directories=no,status=no, menubar=no,scrollbars=no,resizable=no,width=920,height=520'); return false;">
<br><br>
<a  href=<?php echo $menu;?> style="color:blue "  ><button>Επιστροφή στο Μενού</button></a>
</body>
</html>