<html>
<head>
<title>Web management</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-7">
<link rel="stylesheet" href="../styles.css" type="text/css">
</head>
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="10">
<table width="700" border="1" cellspacing="0" cellpadding="0" align="center" class="webadmintext" bordercolor="#999999" bgcolor="#FFFFFF">
  <tr> 
    <td bgcolor="#666666" bordercolor="#666666"> 
      <div align="center" class="white">ΤΙΜΕΣ για  
        <b><?php echo $room ?></b>
      </div>
    </td>
  </tr>
  <tr> 
    <td bgcolor="#FFFFFF" bordercolor="#FFFFFF"> 
      <table width="100%" border="0" cellspacing="1" cellpadding="2" class="webadmintext" bgcolor="#FFFFFF">
        <tr valign="top"> 
          <td width="300">ΣΕΖΟΝ</td>
          <td>ΤΙΜΗ ΕΥΡΩ / διανυκτέρευση</td>
        </tr>
      </table>
    </td>
  </tr>
  <tr> 
    <td bordercolor="#FFFFFF" bgcolor="#FFFFFF"> 
      <?php 
			include 'connect.php';
			$sql = "SELECT * FROM seasons";
			$result = mysql_query($sql);
	while ($myrow=mysql_fetch_array($result)) {
	       $seasonid=$myrow['id'];
		   $season=$myrow['season']; 
?>
      <table width="100%" border="0" cellspacing="1" cellpadding="2" class="webadmintext" bgcolor="#FFFFFF">
        <tr bgcolor="#F2F2F2" valign="top"> 
          <td width="300"> 
            <?php echo $season ?>
          </td>
          <td> 
            <?php 
			include 'connect.php';
			$sql2 = "SELECT * FROM roomprices WHERE room_id='$roomid' AND season_id=$seasonid";
			$result2 = mysql_query($sql2);
	while ($myrow=mysql_fetch_array($result2)) {
			$id=$myrow['id'];
			$price=$myrow['price'];
?>
            <table width="100%" border="0" cellspacing="0" cellpadding="0" class="webadmintext">
              <tr> 
                <td valign="top"> 
                  <?php echo $price ?>
                </td>
                <td valign="top" width="60"> 
                  <div align="center"><a href="edit-roomprice.php?id=<?php echo $id?>&roomid=<?php echo $roomid?>&room=<?php echo $room?>" class="webadminlinks">ΑΛΛΑΓΗ</a></div>
                </td>
                <td valign="top" width="60"> 
                  <div align="center"><a href="delete-roomprice.php?id=<?php echo $id?>&roomid=<?php echo $roomid?>&room=<?php echo $room?>" class="webadminlinks">ΔΙΑΓΡΑΦΗ</a></div>
                </td>
              </tr>
            </table>
            <?php } ?>
          </td>
        </tr>
      </table>
      <?php			
	}
?>
    </td>
  </tr>
</table>
<table width="700" border="0" cellspacing="0" cellpadding="4" align="center">
  <tr>
    <td>
      <div align="center"> <a href="javascript:history.go(-1);"><img src="back.gif" alt="πίσω" border="0"></a> 
        &nbsp; <a href="#top"><img src="top.gif" border="0" alt="πάνω"></a> 
      </div>
    </td>
  </tr>
</table>
</body>
</html>
