<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 menu SET  location='$location', facilities='$facilities', accommodation='$accommodation', rates='$rates', panoramics='$panoramics', links='$links', reservation='$reservation', contact='$contact', guestbook='$guestbook', newsletter='$newsletter', flash='$flash', logo='$logo', colour='$colour' WHERE id='$id'";
	$result = mysql_query($sql);	
?>
   
	
<table width="700" border="1" cellspacing="0" cellpadding="0" align="center" class="webadmintext" bordercolor="#999999">
  <tr> 
    <td bgcolor="#666666" bordercolor="#666666"> 
      <div align="center" class="white">MENU ΑΛΛΑΞΕ</div>
    </td>
  </tr>
</table>
<meta http-equiv="refresh" content="0;URL=menu.php?id=<?php echo $id ?>">
<?php
} else {	
			$result = mysql_query("SELECT * FROM menu WHERE id=$id",$dbh);
			$myrow=mysql_fetch_array($result); 
			$location=$myrow['location'];
			$facilities=$myrow['facilities'];
			$accommodation=$myrow['accommodation'];
			$rates=$myrow['rates'];
			$panoramics=$myrow['panoramics'];
			$links=$myrow['links'];
			$reservation=$myrow['reservation'];
			$contact=$myrow['contact'];
			$guestbook=$myrow['guestbook'];
			$newsletter=$myrow['newsletter'];
			$flash=$myrow['flash'];
			$logo=$myrow['logo'];
			$colour=$myrow['colour'];
?>
<form name="forma" method="post" action="<?php echo $PHP_SELF ?>" enctype="multipart/form-data">
  <table width="700" border="1" cellspacing="0" cellpadding="0" align="center" class="webadmintext" bordercolor="#999999">
    <tr> 
      <td bgcolor="#666666" bordercolor="#666666"> 
        <div align="center" class="white">ΑΛΛΑΓΗ MENU</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%">Location 
              <input type="hidden" name="id" value="<?php echo $id ?>">
            </td>
            <td> 
              <?php if ($location!=no) { ?>
              <select name="location" class="forms">
                <option value="yes" selected>yes</option>
                <option value="no">no</option>
              </select>
              <?php }else{?>
              <select name="location" class="forms">
                <option value="yes">yes</option>
                <option value="no" selected>no</option>
              </select>
              <?php } ?>
            </td>
          </tr>
          <tr> 
            <td width="30%">Facilities</td>
            <td> 
              <?php if ($facilities!=no) { ?>
              <select name="facilities" class="forms">
                <option value="yes" selected>yes</option>
                <option value="no">no</option>
              </select>
              <?php }else{?>
              <select name="facilities" class="forms">
                <option value="yes">yes</option>
                <option value="no" selected>no</option>
              </select>
              <?php } ?>
            </td>
          </tr>
          <tr> 
            <td width="30%">Accommodation</td>
            <td> 
              <?php if ($accommodation!=no) { ?>
              <select name="accommodation" class="forms">
                <option value="yes" selected>yes</option>
                <option value="no">no</option>
              </select>
              <?php }else{?>
              <select name="accommodation" class="forms">
                <option value="yes">yes</option>
                <option value="no" selected>no</option>
              </select>
              <?php } ?>
            </td>
          </tr>
          <tr> 
            <td width="30%">Pricelist - Rates</td>
            <td> 
              <?php if ($rates!=no) { ?>
              <select name="rates" class="forms">
                <option value="yes" selected>yes</option>
                <option value="no">no</option>
              </select>
              <?php }else{?>
              <select name="rates" class="forms">
                <option value="yes">yes</option>
                <option value="no" selected>no</option>
              </select>
              <?php } ?>
            </td>
          </tr>
          <tr> 
            <td width="30%">Panoramics</td>
            <td> 
              <?php if ($panoramics!=no) { ?>
              <select name="panoramics" class="forms">
                <option value="yes" selected>yes</option>
                <option value="no">no</option>
              </select>
              <?php }else{?>
              <select name="panoramics" class="forms">
                <option value="yes">yes</option>
                <option value="no" selected>no</option>
              </select>
              <?php } ?>
            </td>
          </tr>
          <tr> 
            <td width="30%">Links</td>
            <td> 
              <?php if ($links!=no) { ?>
              <select name="links" class="forms">
                <option value="yes" selected>yes</option>
                <option value="no">no</option>
              </select>
              <?php }else{?>
              <select name="links" class="forms">
                <option value="yes">yes</option>
                <option value="no" selected>no</option>
              </select>
              <?php } ?>
            </td>
          </tr>
          <tr> 
            <td width="30%">Reservation</td>
            <td> 
              <?php if ($reservation!=no) { ?>
              <select name="reservation" class="forms">
                <option value="yes" selected>yes</option>
                <option value="no">no</option>
              </select>
              <?php }else{?>
              <select name="reservation" class="forms">
                <option value="yes">yes</option>
                <option value="no" selected>no</option>
              </select>
              <?php } ?>
            </td>
          </tr>
          <tr> 
            <td width="30%">Contact</td>
            <td> 
              <?php if ($contact!=no) { ?>
              <select name="contact" class="forms">
                <option value="yes" selected>yes</option>
                <option value="no">no</option>
              </select>
              <?php }else{?>
              <select name="contact" class="forms">
                <option value="yes">yes</option>
                <option value="no" selected>no</option>
              </select>
              <?php } ?>
            </td>
          </tr>
          <tr> 
            <td width="30%">Guestbook</td>
            <td> 
              <?php if ($guestbook!=no) { ?>
              <select name="guestbook" class="forms">
                <option value="yes" selected>yes</option>
                <option value="no">no</option>
              </select>
              <?php }else{?>
              <select name="guestbook" class="forms">
                <option value="yes">yes</option>
                <option value="no" selected>no</option>
              </select>
              <?php } ?>
            </td>
          </tr>
          <tr> 
            <td width="30%">Newsletter</td>
            <td> 
              <?php if ($newsletter!=no) { ?>
              <select name="newsletter" class="forms">
                <option value="yes" selected>yes</option>
                <option value="no">no</option>
              </select>
              <?php }else{?>
              <select name="newsletter" class="forms">
                <option value="yes">yes</option>
                <option value="no" selected>no</option>
              </select>
              <?php } ?>
            </td>
          </tr>
          <tr> 
            <td width="30%">Flash</td>
            <td> 
              <?php if ($flash!=no) { ?>
              <select name="flash" class="forms">
                <option value="yes" selected>yes</option>
                <option value="no">no</option>
              </select>
              <?php }else{?>
              <select name="flash" class="forms">
                <option value="yes">yes</option>
                <option value="no" selected>no</option>
              </select>
              <?php } ?>
            </td>
          </tr>
          <tr>
            <td width="30%">Λογότυπο</td>
            <td>
              <?php if ($logo!=no) { ?>
              <select name="logo" class="forms">
                <option value="yes" selected>yes</option>
                <option value="no">no</option>
              </select>
              <?php }else{?>
              <select name="logo" class="forms">
                <option value="yes">yes</option>
                <option value="no" selected>no</option>
              </select>
              <?php } ?>
              Χρώμα # 
              <input type="text" name="colour" class="forms" size="12" value="<?php echo $colour ?>" maxlength="6">
            </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>
<table width="700" border="0" cellspacing="0" cellpadding="4" align="center" class="webadmintext">
  <tr> 
    <td width="50%"><img src="../images/logo.gif"></td>
    <td><a href="logo.php" class="webadminlinks">εισάγετε 
      λογότυπο</a> (ΠΛΑΤΟΣ max 260 pixels / ΥΨΟΣ max 80 pixels)</td>
  </tr>
</table>


<?php } ?>
<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>
