<!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
$activity = mysql_real_escape_string(stripslashes($_REQUEST['activity']));
$activity_en = mysql_real_escape_string(stripslashes($_REQUEST['activity_en']));
$activity_de = mysql_real_escape_string(stripslashes($_REQUEST['activity_de']));
$activity_fr = mysql_real_escape_string(stripslashes($_REQUEST['activity_fr']));
$activity_it = mysql_real_escape_string(stripslashes($_REQUEST['activity_it']));
$activity_es = mysql_real_escape_string(stripslashes($_REQUEST['activity_es']));
$activity_ru = mysql_real_escape_string(stripslashes($_REQUEST['activity_ru']));
$activity_zh = mysql_real_escape_string(stripslashes($_REQUEST['activity_zh']));

if  (isset($_POST['submit'])) {
	$sql="UPDATE siteinfo SET activity='$activity', activity_en='$activity_en', activity_de='$activity_de',  activity_fr='$activity_fr',  activity_it='$activity_it',  activity_es='$activity_es',  activity_ru='$activity_ru', activity_zh='$activity_zh' WHERE id='1'";
	$result = mysql_query($sql);	
?>
<meta http-equiv="refresh" content="0;URL=accommodation.php">
<?php
} else {	
			$result = mysql_query("SELECT * FROM siteinfo WHERE id='1'",$dbh);
			$myrow=mysql_fetch_array($result); 
			$domain=$myrow['domain'];
			$firma=$myrow['firma'];
			$activity=$myrow['activity'];
			$activity_en=$myrow['activity_en'];
			$activity_de=$myrow['activity_de'];
			$activity=$myrow['activity'];
			$activity_en=$myrow['activity_en'];
			$activity_de=$myrow['activity_de'];
            $activity_fr=$myrow['activity_fr'];
            $activity_it=$myrow['activity_it'];
            $activity_es=$myrow['activity_es'];
            $activity_ru=$myrow['activity_ru'];
			$activity_zh=$myrow['activity_zh'];
?>

<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">
   <?php if ($lang1==1) { ?>
    <?php } ?>
    <?php if ($lang2==1) { ?>
      <?php } ?>
    <?php if ($lang3==1) { ?>
      <?php } ?>
    <?php if ($lang4==1) { ?>
      <?php } ?>
    <?php if ($lang5==1) { ?>
      <?php } ?>
    <?php if ($lang6==1) { ?>
      <?php } ?>
    <?php if ($lang7==1) { ?>
      <?php } ?>
    <?php if ($lang1==1) { ?>
    <tr>
      <td width="20"><img src="img/lang1.png" width="16" height="16" alt=""></td> 
      <td width="200">Κείμενο </td>
      <td> 
        <textarea name="activity" rows="10" class="mceEditor"><?php echo $activity ?></textarea>
        </td>
    </tr>
      <?php } ?>
    <?php if ($lang2==1) { ?>
    <tr>
      <td><img src="img/lang2.png" width="16" height="16" alt=""></td> 
      <td>Κείμενο </td>
      <td> 
        <textarea name="activity_en" rows="10" class="mceEditor"><?php echo $activity_en ?></textarea>
        </td>
      </tr>
      <?php } ?>
    <?php if ($lang3==1) { ?>
    <tr>
      <td><img src="img/lang3.png" width="16" height="16" alt=""></td>
      <td>Κείμενο </td>
      <td><textarea name="activity_de" rows="10" class="mceEditor"><?php echo $activity_de ?></textarea></td>
    </tr>
      <?php } ?>
    <?php if ($lang4==1) { ?>
    <tr>
      <td><img src="img/lang4.png" width="16" height="16" alt=""></td>
      <td>Κείμενο </td>
      <td><textarea name="activity_fr" rows="10" class="mceEditor"><?php echo $activity_fr ?></textarea></td>
    </tr>
      <?php } ?>
    <?php if ($lang5==1) { ?>
    <tr>
      <td><img src="img/lang5.png" width="16" height="16" alt=""></td>
      <td>Κείμενο </td>
      <td><textarea name="activity_it" rows="10" class="mceEditor"><?php echo $activity_it ?></textarea></td>
    </tr>
      <?php } ?>
    <?php if ($lang6==1) { ?>
    <tr>
      <td><img src="img/lang6.png" width="16" height="16" alt=""></td>
      <td>Κείμενο </td>
      <td><textarea name="activity_es" rows="10" class="mceEditor"><?php echo $activity_es ?></textarea></td>
    </tr>
      <?php } ?>
    <?php if ($lang7==1) { ?>
    <tr>
      <td><img src="img/lang7.png" width="16" height="16" alt=""></td>
      <td>Κείμενο </td>
      <td><textarea name="activity_ru" rows="10" class="mceEditor"><?php echo $activity_ru ?></textarea></td>
    </tr>
     <?php } ?>
         <?php if ($lang8==1) { ?>
    <tr>
      <td><img src="img/lang8.png" width="16" height="16" alt=""></td>
      <td>Κείμενο </td>
      <td><textarea name="activity_zh" rows="10" class="mceEditor"><?php echo $activity_zh ?></textarea></td>
    </tr>
     <?php } ?>
    </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>
