<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Web management</title>
<link rel="stylesheet" href="styles.css" type="text/css">
<?php include 'codes.php';?>
</head>
<body text="#000000" style="margin:0">

    <?php
$lang1 = mysql_real_escape_string(stripslashes($_REQUEST['lang1']));
$lang2 = mysql_real_escape_string(stripslashes($_REQUEST['lang2']));
$lang3 = mysql_real_escape_string(stripslashes($_REQUEST['lang3']));
$lang4 = mysql_real_escape_string(stripslashes($_REQUEST['lang4']));
$lang5 = mysql_real_escape_string(stripslashes($_REQUEST['lang5']));
$lang6 = mysql_real_escape_string(stripslashes($_REQUEST['lang6']));
$lang7 = mysql_real_escape_string(stripslashes($_REQUEST['lang7']));
$lang8 = mysql_real_escape_string(stripslashes($_REQUEST['lang8']));
$profil = mysql_real_escape_string(stripslashes($_REQUEST['profil']));
$facilities = mysql_real_escape_string(stripslashes($_REQUEST['facilities']));
$photos = mysql_real_escape_string(stripslashes($_REQUEST['photos']));
$info = mysql_real_escape_string(stripslashes($_REQUEST['info']));
$infocat = mysql_real_escape_string(stripslashes($_REQUEST['infocat']));
$specials = mysql_real_escape_string(stripslashes($_REQUEST['specials']));
$links = mysql_real_escape_string(stripslashes($_REQUEST['links']));	  
$newsletter = mysql_real_escape_string(stripslashes($_REQUEST['newsletter']));	  
$guestbook = mysql_real_escape_string(stripslashes($_REQUEST['guestbook']));	 

if  (isset($_POST['submit'])) {
	$sql="UPDATE menu SET  lang1='$lang1', lang2='$lang2', lang3='$lang3', lang4='$lang4', lang5='$lang5', lang6='$lang6', lang7='$lang7', lang8='$lang8', profil='$profil', facilities='$facilities', photos='$photos', info='$info', infocat='$infocat', specials='$specials', links='$links', newsletter='$newsletter', guestbook='$guestbook' WHERE id='1'";
	$result = mysql_query($sql);	
?>
<meta http-equiv="refresh" content="0;URL=menu.php">
<?php
} else {	
			$result = mysql_query("SELECT * FROM menu WHERE id='1'",$dbh);
			$myrow=mysql_fetch_array($result); 
			$lang1=$myrow['lang1'];
			$lang2=$myrow['lang2'];
			$lang3=$myrow['lang3'];
			$lang4=$myrow['lang4'];
			$lang5=$myrow['lang5'];
			$lang6=$myrow['lang6'];
			$lang7=$myrow['lang7'];
			$lang8=$myrow['lang8'];
			$profil=$myrow['profil'];
			$facilities=$myrow['facilities'];
			$photos=$myrow['photos'];
			$info=$myrow['info'];
			$infocat=$myrow['infocat'];
			$specials=$myrow['specials'];
			$links=$myrow['links'];
			$newsletter=$myrow['newsletter'];
			$guestbook=$myrow['guestbook'];
?>

<table width="980" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td>
    
    <form name="forma" method="post" action="<?php echo htmlentities($_SERVER['PHP_SELF']); ?>" enctype="multipart/form-data">

<div><img src="img/frame-edit.png" width="180" height="37" alt=""></div>
<div class="frame">
 <table width="100%" border="0" cellspacing="0" cellpadding="4" class="text">
          <tr>
            <td align="center"><img src="img/ic3.png" alt=""><span class="titles">Menu πελάτη</span></td>
          </tr>
          <tr class="lines">
            <td></td>
          </tr>
          <tr>
            <td>
            <table width="100%" border="0" cellspacing="1" cellpadding="4" class="text">
          <tr valign="top" bgcolor="#F2F2F2">
            <td>Προφίλ</td>
            <td>Παροχές</td>
            <td>Φωτογραφίες</td>
            <td>Κείμενα info</td>
            <td>Κατηγορίες info</td>
            <td>Specials</td>
            <td>Links</td>
            <td>Guestbook</td>
            <td>Newsletter</td>
          </tr>
          <tr>
            <td>
              
              <?php if ($profil==0) { ?>
              <input type="hidden" name="profil" value="0" /> <input type="checkbox" name="profil" value="1" />  
              <?php }else{?>
              <input type="hidden" name="profil" value="0" /> <input name="profil" type="checkbox" value="1" checked />  
              <?php } ?>
            </td>
            <td><?php if ($facilities==0) { ?>
              <input type="hidden" name="facilities" value="0" />
              <input type="checkbox" name="facilities" value="1" />
              <?php }else{?>
              <input type="hidden" name="facilities" value="0" />
              <input name="facilities" type="checkbox" value="1" checked />
              <?php } ?></td>
            <td>
               <?php if ($photos==0) { ?>
          <input type="hidden" name="photos" value="0" /> <input type="checkbox" name="photos" value="1" />  
              <?php }else{?>
             <input type="hidden" name="photos" value="0" /> <input name="photos" type="checkbox" value="1" checked />  
				<?php } ?>
              </td>
            <td>
              <?php if ($info==0) { ?>
          <input type="hidden" name="info" value="0" /> <input type="checkbox" name="info" value="1" />  
              <?php }else{?>
             <input type="hidden" name="info" value="0" /> <input name="info" type="checkbox" value="1" checked />  
				<?php } ?>
              </td>
            <td>
            <?php if ($infocat==0) { ?>
          <input type="hidden" name="infocat" value="0" /> <input type="checkbox" name="infocat" value="1" />  
              <?php }else{?>
             <input type="hidden" name="infocat" value="0" /> <input name="infocat" type="checkbox" value="1" checked />  
				<?php } ?>
              </td>
            <td>
           <?php if ($specials==0) { ?>
          <input type="hidden" name="specials" value="0" /> <input type="checkbox" name="specials" value="1" />  
              <?php }else{?>
             <input type="hidden" name="specials" value="0" /> <input name="specials" type="checkbox" value="1" checked />  
				<?php } ?>
              </td>
            <td>
         <?php if ($links==0) { ?>
          <input type="hidden" name="links" value="0" /> <input type="checkbox" name="links" value="1" />  
              <?php }else{?>
             <input type="hidden" name="links" value="0" /> <input name="links" type="checkbox" value="1" checked />  
				<?php } ?>
              </td>
            <td>
           <?php if ($guestbook==0) { ?>
          <input type="hidden" name="guestbook" value="0" /> <input type="checkbox" name="guestbook" value="1" />  
              <?php }else{?>
             <input type="hidden" name="guestbook" value="0" /> <input name="guestbook" type="checkbox" value="1" checked />  
				<?php } ?>
              </td>
            <td>
               <?php if ($newsletter==0) { ?>
          <input type="hidden" name="newsletter" value="0" /> <input type="checkbox" name="newsletter" value="1" />  
              <?php }else{?>
             <input type="hidden" name="newsletter" value="0" /> <input name="newsletter" type="checkbox" value="1" checked />  
				<?php } ?>
              </td>
          </tr>
          </table></td>
          </tr>
          <tr>
            <td align="center"><img src="img/ic8.png" alt=""><span class="titles">Γλώσσες</span></td>
          </tr>
          <tr class="lines">
            <td></td>
          </tr>
          <tr>
            <td><table width="100%" border="0" cellspacing="1" cellpadding="4" class="text">
              <tr valign="top" bgcolor="#F2F2F2">
                <td><img src="img/lang1.png" width="16" height="16" alt=""></td>
                <td><img src="img/lang2.png" width="16" height="16" alt=""></td>
                <td><img src="img/lang3.png" width="16" height="16" alt=""></td>
                <td><img src="img/lang4.png" width="16" height="16" alt=""></td>
                <td><img src="img/lang5.png" width="16" height="16" alt=""></td>
                <td><img src="img/lang6.png" width="16" height="16" alt=""></td>
                <td><img src="img/lang7.png" width="16" height="16" alt=""></td>
                <td><img src="img/lang8.png" width="16" height="16" alt=""></td>
                </tr>
              <tr>
                <td><?php if ($lang1==0) { ?>
                  <input type="hidden" name="lang1" value="0" />
                  <input type="checkbox" name="lang1" value="1" />
                  <?php }else{?>
                  <input type="hidden" name="lang1" value="0" />
                  <input name="lang1" type="checkbox" value="1" checked />
                  <?php } ?></td>
                <td><?php if ($lang2==0) { ?>
                  <input type="hidden" name="lang2" value="0" />
                  <input type="checkbox" name="lang2" value="1" />
                  <?php }else{?>
                  <input type="hidden" name="lang2" value="0" />
                  <input name="lang2" type="checkbox" value="1" checked />
                  <?php } ?></td>
                <td><?php if ($lang3==0) { ?>
                  <input type="hidden" name="lang3" value="0" />
                  <input type="checkbox" name="lang3" value="1" />
                  <?php }else{?>
                  <input type="hidden" name="lang3" value="0" />
                  <input name="lang3" type="checkbox" value="1" checked />
                  <?php } ?></td>
                <td><?php if ($lang4==0) { ?>
                  <input type="hidden" name="lang4" value="0" />
                  <input type="checkbox" name="lang4" value="1" />
                  <?php }else{?>
                  <input type="hidden" name="lang4" value="0" />
                  <input name="lang4" type="checkbox" value="1" checked />
                  <?php } ?></td>
                <td><?php if ($lang5==0) { ?>
                  <input type="hidden" name="lang5" value="0" />
                  <input type="checkbox" name="lang5" value="1" />
                  <?php }else{?>
                  <input type="hidden" name="lang5" value="0" />
                  <input name="lang5" type="checkbox" value="1" checked />
                  <?php } ?></td>
                <td><?php if ($lang6==0) { ?>
                  <input type="hidden" name="lang6" value="0" />
                  <input type="checkbox" name="lang6" value="1" />
                  <?php }else{?>
                  <input type="hidden" name="lang6" value="0" />
                  <input name="lang6" type="checkbox" value="1" checked />
                  <?php } ?></td>
                <td><?php if ($lang7==0) { ?>
                  <input type="hidden" name="lang7" value="0" />
                  <input type="checkbox" name="lang7" value="1" />
                  <?php }else{?>
                  <input type="hidden" name="lang7" value="0" />
                  <input name="lang7" type="checkbox" value="1" checked />
                  <?php } ?></td>
                <td><?php if ($lang8==0) { ?>
                  <input type="hidden" name="lang8" value="0" />
                  <input type="checkbox" name="lang8" value="1" />
                  <?php }else{?>
                  <input type="hidden" name="lang8" value="0" />
                  <input name="lang8" type="checkbox" value="1" checked />
                  <?php } ?></td>
                </tr>
            </table></td>
          </tr>
          <tr>
            <td>&nbsp;</td>
          </tr>
          </table>
          
           

  <div align="center" style="padding:5px">
   <input type="submit" name="submit" value="Καταχώρηση" class="button">
        <input type="reset" name="reset" value="Επαναφορά" class="button">
  </div>
</div>
</form></td>
  </tr>
</table><?php include 'menudown.php';?>
<?php } ?>
</body>
</html>
