<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 siteinfo SET  domain='$domain', firma='$firma', company='$company', company_en='$company_en', company_de='$company_de', activity='$activity', activity_en='$activity_en', activity_de='$activity_de', title='$title', title_en='$title_en', title_de='$title_de', description='$description', description_en='$description_en', description_de='$description_de', keywords='$keywords', keywords_en='$keywords_en', keywords_de='$keywords_de', location='$location', location_en='$location_en', location_de='$location_de', address='$address', address_en='$address_en', address_de='$address_de', region='$region', region_en='$region_en', region_de='$region_de', tel='$tel', tel_en='$tel_en', tel_de='$tel_de', fax='$fax', sitemail='$sitemail', map='$map', holiday_id='$holiday_id', x='$x', y='$y', resurl='$resurl', code='$code', site='$site' 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>
</table>
<meta http-equiv="refresh" content="0;URL=siteinfo.php?id=<?php echo $id ?>">
<?php
} else {	
			$result = mysql_query("SELECT * FROM siteinfo WHERE id=$id",$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'];
			$title=$myrow['title'];
			$title_en=$myrow['title_en'];
			$title_de=$myrow['title_de'];
			$description=$myrow['description'];
			$description_en=$myrow['description_en'];
			$description_de=$myrow['description_de'];
			$keywords=$myrow['keywords'];
			$keywords_en=$myrow['keywords_en'];
			$keywords_de=$myrow['keywords_de'];
			$location=$myrow['location'];
			$location_en=$myrow['location_en'];
			$location_de=$myrow['location_de'];
			$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'];
			$x=$myrow['x'];
			$y=$myrow['y'];
			$resurl=$myrow['resurl'];
			$resurl2=$myrow['resurl2'];
			$code=$myrow['code'];
			$site=$myrow['site'];
?>
<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">ΣΤΟΙΧΕΙΑ WEB SITE</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 bgcolor="#CCCCCC"> 
            <td width="30%"><b><font color="#000000">Domain name </font></b></td>
            <td> <b>www. </b> 
              <input type="text" name="domain" class="forms" size="50" value="<?php echo $domain ?>" maxlength="100">
            </td>
          </tr>
          <tr bgcolor="#666666"> 
            <td width="30%" height="2"></td>
            <td height="2"></td>
          </tr>
          <tr bgcolor="#CCCCCC"> 
            <td width="30%"><b>Firma</b> 
              <input type="hidden" name="id" value="<?php echo $id ?>">
            </td>
            <td> 
              <input type="text" name="firma" class="forms" size="40" value="<?php echo $firma ?>" maxlength="50">
            </td>
          </tr>
          <tr> 
            <td width="30%">Εταιρία - ελληνικά </td>
            <td> 
              <input type="text" name="company" class="forms" size="60" value="<?php echo $company ?>" maxlength="100">
            </td>
          </tr>
          <tr> 
            <td width="30%">Εταιρία - αγγλικά</td>
            <td> 
              <input type="text" name="company_en" class="forms" size="60" value="<?php echo $company_en ?>" maxlength="100">
            </td>
          </tr>
          <tr> 
            <td width="30%">Εταιρία - γερμανικά</td>
            <td> 
              <input type="text" name="company_de" class="forms" size="60" value="<?php echo $company_de ?>" maxlength="100">
            </td>
          </tr>
          <tr> 
            <td width="30%">Δραστηριότητα - ελληνικά </td>
            <td> 
              <input type="text" name="activity" class="forms" size="60" value="<?php echo $activity ?>" maxlength="254">
            </td>
          </tr>
          <tr> 
            <td width="30%">Δραστηριότητα - αγγλικά</td>
            <td> 
              <input type="text" name="activity_en" class="forms" size="60" value="<?php echo $activity_en ?>" maxlength="254">
            </td>
          </tr>
          <tr> 
            <td width="30%">Δραστηριότητα - γερμανικά</td>
            <td> 
              <input type="text" name="activity_de" class="forms" size="60" value="<?php echo $activity_de ?>" maxlength="254">
            </td>
          </tr>
          <tr> 
            <td width="30%" bgcolor="#CCCCCC"><b>Μηχανές αναζήτησης</b></td>
            <td bgcolor="#CCCCCC">&nbsp;</td>
          </tr>
          <tr> 
            <td width="30%">Τίτλος - ελληνικά</td>
            <td> 
              <input type="text" name="title" class="forms" size="60" value="<?php echo $title ?>">
            </td>
          </tr>
          <tr> 
            <td width="30%">Τίτλος - αγγλικά</td>
            <td> 
              <input type="text" name="title_en" class="forms" size="60" value="<?php echo $title_en ?>">
            </td>
          </tr>
          <tr> 
            <td width="30%">Τίτλος - γερμανικά</td>
            <td> 
              <input type="text" name="title_de" class="forms" size="60" value="<?php echo $title_de ?>">
            </td>
          </tr>
          <tr> 
            <td width="30%">Περιγραφή - ελληνικά </td>
            <td> 
              <textarea name="description" class="forms" cols="60"><?php echo $description ?></textarea>
            </td>
          </tr>
          <tr> 
            <td width="30%">Περιγραφή - αγγλικά</td>
            <td> 
              <textarea name="description_en" class="forms" cols="60"><?php echo $description_en ?></textarea>
            </td>
          </tr>
          <tr> 
            <td width="30%">Περιγραφή - γερμανικά</td>
            <td> 
              <textarea name="description_de" class="forms" cols="60"><?php echo $description_de ?></textarea>
            </td>
          </tr>
          <tr> 
            <td width="30%">Keywords - ελληνικά </td>
            <td> 
              <textarea name="keywords" class="forms" cols="60" rows="3"><?php echo $keywords ?></textarea>
            </td>
          </tr>
          <tr> 
            <td width="30%">Keywords - αγγλικά</td>
            <td> 
              <textarea name="keywords_en" class="forms" cols="60" rows="3"><?php echo $keywords_en ?></textarea>
            </td>
          </tr>
          <tr> 
            <td width="30%">Keywords - γερμανικά</td>
            <td> 
              <textarea name="keywords_de" class="forms" cols="60" rows="3"><?php echo $keywords_de ?></textarea>
            </td>
          </tr>
          <tr bgcolor="#CCCCCC"> 
            <td width="30%"><b>Στοιχεία επικοινωνίας</b></td>
            <td>&nbsp;</td>
          </tr>
          <tr> 
            <td width="30%">Τοποθεσία - ελληνικά </td>
            <td> 
              <textarea name="location" class="forms" cols="60" rows="4"><?php echo $location ?></textarea>
            </td>
          </tr>
          <tr> 
            <td width="30%">Τοποθεσία - αγγλικά</td>
            <td> 
              <textarea name="location_en" class="forms" cols="60" rows="4"><?php echo $location_en ?></textarea>
            </td>
          </tr>
          <tr> 
            <td width="30%">Τοποθεσία - γερμανικά</td>
            <td> 
              <textarea name="location_de" class="forms" cols="60" rows="4"><?php echo $location_de ?></textarea>
            </td>
          </tr>
          <tr> 
            <td width="30%">Διεύθυνση - ελληνικά </td>
            <td> 
              <textarea name="address" class="forms" cols="60"><?php echo $address ?></textarea>
            </td>
          </tr>
          <tr> 
            <td width="30%">Διεύθυνση - αγγλικά</td>
            <td> 
              <textarea name="address_en" class="forms" cols="60"><?php echo $address_en ?></textarea>
            </td>
          </tr>
          <tr> 
            <td width="30%">Διεύθυνση - γερμανικά</td>
            <td> 
              <textarea name="address_de" class="forms" cols="60"><?php echo $address_de ?></textarea>
            </td>
          </tr>
          <tr> 
            <td width="30%">Περιοχή - ελληνικά </td>
            <td> 
              <input type="text" name="region" class="forms" size="60" value="<?php echo $region ?>">
            </td>
          </tr>
          <tr> 
            <td width="30%">Περιοχή - αγγλικά</td>
            <td> 
              <input type="text" name="region_en" class="forms" size="60" value="<?php echo $region_en ?>">
            </td>
          </tr>
          <tr> 
            <td width="30%">Περιοχή - γερμανικά</td>
            <td> 
              <input type="text" name="region_de" class="forms" size="60" value="<?php echo $region_de ?>">
            </td>
          </tr>
          <tr> 
            <td width="30%">Τηλέφωνα, Fax - ελληνικά </td>
            <td> 
              <textarea name="tel" class="forms" cols="60"><?php echo $tel ?></textarea>
            </td>
          </tr>
          <tr> 
            <td width="30%">Τηλέφωνα, Fax - αγγλικά</td>
            <td> 
              <textarea name="tel_en" class="forms" cols="60"><?php echo $tel_en ?></textarea>
            </td>
          </tr>
          <tr> 
            <td width="30%">Τηλέφωνα, Fax - γερμανικά</td>
            <td> 
              <textarea name="tel_de" class="forms" cols="60"><?php echo $tel_de ?></textarea>
            </td>
          </tr>
          <tr> 
            <td width="30%">Fax για κρατήσεις</td>
            <td> 
              <input type="text" name="fax" class="forms" size="60" value="<?php echo $fax ?>" maxlength="20">
            </td>
          </tr>
          <tr> 
            <td width="30%">E-mail επικοινωνίας</td>
            <td> 
              <input type="text" name="sitemail" class="forms" size="60" value="<?php echo $sitemail ?>" maxlength="50">
            </td>
          </tr>
          <tr> 
            <td width="30%">Χάρτης</td>
            <td> 
              <?php if ($map!=no) { ?>
              <select name="map" class="forms">
                <option value="yes" selected>yes</option>
                <option value="no">no</option>
              </select>
              <?php }else{?>
              <select name="map" class="forms">
                <option value="yes">yes</option>
                <option value="no" selected>no</option>
              </select>
              <?php } ?>
            </td>
          </tr>
          <tr bgcolor="#CC0000"> 
            <td colspan="2"><b><font color="#FFFFFF">Στοιχεία για ON LINE RESERVATIONS 
              SYSTEM </font></b></td>
          </tr>
          <tr> 
            <td width="30%">Holiday id</td>
            <td> 
              <input type="text" name="holiday_id" class="forms" size="20" value="<?php echo $holiday_id ?>" maxlength="11">
            </td>
          </tr>
          <tr> 
            <td width="30%">X</td>
            <td> 
              <input type="text" name="x" class="forms" size="60" value="<?php echo $x ?>" maxlength="254">
            </td>
          </tr>
          <tr> 
            <td width="30%">Y</td>
            <td> 
              <input type="text" name="y" class="forms" size="60" value="<?php echo $y ?>" maxlength="254">
            </td>
          </tr>
          <tr> 
            <td width="30%">On line reservations - url</td>
            <td> 
              <input type="text" name="resurl" class="forms" size="60" value="<?php echo $resurl ?>" maxlength="254">
            </td>
          </tr>
          <tr> 
            <td width="30%">Code</td>
            <td> 
              <input type="text" name="code" class="forms" size="40" value="<?php echo $code ?>" maxlength="100">
            </td>
          </tr>
          <tr> 
            <td width="30%">Site</td>
            <td> 
              <input type="text" name="site" class="forms" size="40" value="<?php echo $site ?>" maxlength="100">
            </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="600" border="0" cellspacing="0" cellpadding="4" align="center" class="webadmintext">
  <tr> 
    <td width="50%"><img src="../profileimages/map.gif"></td>
    <td><a href="map_image.php" class="webadminlinks">εισάγετε  μικρή
      εικόνα  για τον χάρτη</a> (ΠΛΑΤΟΣ 150 pixels)</td>
  </tr>
  <tr> 
    <td width="50%"><img src="../profileimages2/map.gif"></td>
    <td><a href="map_image2.php" class="webadminlinks">εισάγετε μεγάλη
       εικόνα  για τον χάρτη</a> (ΠΛΑΤΟΣ / ΥΨΟΣ max. 600 pixels)</td>
  </tr>
</table>

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