<!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
$location = mysql_real_escape_string(stripslashes($_REQUEST['location']));
$location_en = mysql_real_escape_string(stripslashes($_REQUEST['location_en']));
$location_de = mysql_real_escape_string(stripslashes($_REQUEST['location_de']));
$location_fr = mysql_real_escape_string(stripslashes($_REQUEST['location_fr']));
$location_it = mysql_real_escape_string(stripslashes($_REQUEST['location_it']));
$location_es = mysql_real_escape_string(stripslashes($_REQUEST['location_es']));
$location_ru = mysql_real_escape_string(stripslashes($_REQUEST['location_ru']));

if  (isset($_POST['submit'])) {
	$sql="UPDATE siteinfo SET location='$location', location_en='$location_en', location_de='$location_de',  location_fr='$location_fr',  location_it='$location_it',  location_es='$location_es',  location_ru='$location_ru', location_zh='$location_zh' WHERE id='1'";
	$result = mysql_query($sql);	
?>
<meta http-equiv="refresh" content="0;URL=location.php">
<?php
} else {	
			$result = mysql_query("SELECT * FROM siteinfo WHERE id='1'",$dbh);
			$myrow=mysql_fetch_array($result); 
			$domain=$myrow['domain'];
			$firma=$myrow['firma'];
			$company=$myrow['company'];
			$company_en=$myrow['company_en'];
			$company_de=$myrow['company_de'];
			$activity=$myrow['activity'];
			$activity_en=$myrow['activity_en'];
			$activity_de=$myrow['activity_de'];
			$location=$myrow['location'];
			$location_en=$myrow['location_en'];
			$location_de=$myrow['location_de'];
            $location_fr=$myrow['location_fr'];
            $location_it=$myrow['location_it'];
            $location_es=$myrow['location_es'];
            $location_ru=$myrow['location_ru'];
			$location_zh=$myrow['location_zh'];
			$address=$myrow['address'];
			$address_en=$myrow['address_en'];
			$address_de=$myrow['address_de'];
			$region=$myrow['region'];
			$region_en=$myrow['region_en'];
			$region_de=$myrow['region_de'];
			$tel=$myrow['tel'];
			$tel_en=$myrow['tel_en'];
			$tel_de=$myrow['tel_de'];
			$fax=$myrow['fax'];
			$sitemail=$myrow['sitemail'];
			$map=$myrow['map'];
			$holiday_id=$myrow['holiday_id'];
			$resurl=$myrow['resurl'];
			$site=$myrow['site'];
			$sitescript=$myrow['sitescript'];
			$editor=$myrow['editor'];
?>

<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="location" rows="10" class="mceEditor"><?php echo $location ?></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="location_en" rows="10" class="mceEditor"><?php echo $location_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="location_de" rows="10" class="mceEditor"><?php echo $location_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="location_fr" rows="10" class="mceEditor"><?php echo $location_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="location_it" rows="10" class="mceEditor"><?php echo $location_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="location_es" rows="10" class="mceEditor"><?php echo $location_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="location_ru" rows="10" class="mceEditor"><?php echo $location_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="location_zh" rows="10" class="mceEditor"><?php echo $location_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>
