<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"> 
      <?php 
			include 'connect.php';
if ($submit) {
	$sql="UPDATE seasons SET season='$season', season_en='$season_en', season_de='$season_de', date1='$date1', date2='$date2'  WHERE id='$id'";
	$result = mysql_query($sql);	
?>
<table width="600" border="1" cellspacing="0" cellpadding="0" align="center" class="webadmintext" bordercolor="#999999">
  <tr> 
    <td bgcolor="#666666" bordercolor="#666666"> 
      <div align="center" class="white">ΣΕΖΟΝ ΑΛΛΑΞΕ</div>
    </td>
  </tr>
  <tr> 
    <td bordercolor="#FFFFFF">&nbsp;</td>
  </tr>
  <tr> 
    <td bordercolor="#FFFFFF"> 
      <div align="center"> 
        <?php echo $season ?>
      </div>
    </td>
  </tr>
  <tr> 
    <td bordercolor="#FFFFFF">&nbsp; </td>
  </tr>
</table>
<meta http-equiv="refresh" content="0;URL=edit-season.php?id=<?php echo $id ?>">
<?php
} else {	
			$result = mysql_query("SELECT * FROM seasons WHERE id=$id",$dbh);
			$myrow=mysql_fetch_array($result); 
			$season=$myrow['season'];
			$season_en=$myrow['season_en'];
			$season_de=$myrow['season_de'];
			$date1=$myrow['date1'];
			$date2=$myrow['date2'];
?>
<form name="forma" method="post" action="<?php echo $PHP_SELF ?>" enctype="multipart/form-data">
  <table width="600" border="1" cellspacing="0" cellpadding="0" align="center" class="webadmintext" bordercolor="#999999">
    <tr> 
      <td bgcolor="#666666" bordercolor="#666666"> 
        <div align="center" class="white">ΑΛΛΑΓΗ ΣΕΖΟΝ</div>
      </td>
    </tr>
    <tr> 
      <td bordercolor="#FFFFFF">&nbsp; </td>
    </tr>
    <tr> 
      <td bordercolor="#FFFFFF"> 
        <table width="100%" border="0" cellspacing="1" cellpadding="2" class="webadmintext" bgcolor="#F2F2F2">
          <tr> 
            <td width="30%">Σεζόν - ελληνικά* 
              <input type="hidden" name="id" value="<?php echo $id ?>">
            </td>
            <td> 
              <input type="text" name="season" maxlength="100" value="<?php echo $season ?>" class="forms" size="60">
            </td>
          </tr>
          <tr> 
            <td width="30%">Σεζόν - αγγλικά*</td>
            <td> 
              <input type="text" name="season_en" maxlength="100" value="<?php echo $season_en ?>" class="forms" size="60">
            </td>
          </tr>
          <tr> 
            <td width="30%">Σεζόν - γερμανικά</td>
            <td> 
              <input type="text" name="season_de" maxlength="100" value="<?php echo $season_de ?>" class="forms" size="60">
            </td>
          </tr>
          <tr> 
            <td width="25%">Ημερομηνίες 1</td>
            <td> 
              <input type="text" name="date1" class="forms" size="40" value="<?php echo $date1 ?>" maxlength="50">
            </td>
          </tr>
          <tr> 
            <td width="25%">Ημερομηνίες 2</td>
            <td> 
              <input type="text" name="date2" class="forms" size="40" value="<?php echo $date2 ?>" maxlength="50">
            </td>
          </tr>
        </table>
      </td>
    </tr>
    <tr> 
      <td bgcolor="#FFFFFF" bordercolor="#FFFFFF">&nbsp;</td>
    </tr>
    <tr bgcolor="#666666"> 
      <td bgcolor="#666666" bordercolor="#666666"> 
        <table width="300" border="0" cellspacing="0" cellpadding="0" align="center">
          <tr> 
            <td> 
              <div align="center"> 
                <input type="submit" name="submit" value="Καταχώρηση" class="button">
              </div>
            </td>
            <td> 
              <div align="center"> 
                <input type="reset" name="Submit2" value="Επαναφορά" class="button">
              </div>
            </td>
          </tr>
        </table>
      </td>
    </tr>
  </table>
</form>
<?php } ?>
<table width="600" 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>
