<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<!-- #BeginEditable "doctitle" -->

<title>Επικοινωνία</title>

<!-- #EndEditable -->

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-7">

<link rel="stylesheet" href="allstyles.css" type="text/css">

<link rel="stylesheet" href="styles.css" type="text/css">

<script language="JavaScript">

<!--

function MM_openBrWindow(theURL,winName,features) { //v2.0

  window.open(theURL,winName,features);

}

//-->

</script>
<?php 
	  include 'includes/headcosmores.php';
?>

</head>

<script type="text/javascript">>

function blockdisplay(i) {

			  if (document.getElementById){

			    if (document.getElementById("blockdisplay"+i)) {

			      for ( j = 1; j < 1000; j++ ) {

			        if (document.getElementById('blockdisplay' + j)) {document.getElementById('blockdisplay' + j).style.display = 'none';}

				    else {j = 1000;}

			      }

			      if (i) {document.getElementById("blockdisplay"+i).style.display = 'block';}

			    }

			  }

			}

			</script>

<SCRIPT language=JavaScript>

<!--

function MM_jumpMenu(targ,selObj,restore){ //v3.0

  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");

  if (restore) selObj.selectedIndex=0;

}

//-->

</SCRIPT>

<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" background="layout/back.gif">

<table width="734" border="0" cellspacing="0" cellpadding="0" align="center" class="txt" height="5">

  <tr>

    <td></td>

  </tr>

</table>

<table width="734" border="0" cellspacing="0" cellpadding="0" align="center" class="txt" height="1">

  <tr>

    <td bgcolor="#004C84"></td>

  </tr>

</table>

<table width="734" border="0" cellspacing="0" cellpadding="0" align="center" class="txt" height="1">

  <tr> 

    <td bgcolor="#004C84" width="1"></td>

    <td bgcolor="#FFFFFF" width="732" valign="top" align="center"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="732" height="231">

        <param name=movie value="flash/epikoinonia.swf">

        <param name=quality value=high>

        <embed src="flash/epikoinonia.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="732" height="231">

        </embed> 

      </object></td>

    <td bgcolor="#004C84" width="1"></td>

  </tr>

</table>

<table width="734" border="0" cellspacing="0" cellpadding="0" align="center" class="txt" height="100%">

   <tr>

    <td bgcolor="#004C84" width="1" height="22"></td>

    <td bgcolor="#FFFFFF" width="732" valign="middle" align="center" background="layout/backcenter.gif" height="22"> 

      <div align="right"><a href="contact_en.php"><img src="image/uk_flag2.jpg" width="28" height="18" border="0"></a>&nbsp;&nbsp;</div>

    </td>

    <td bgcolor="#004C84" width="1" height="22"></td>

  </tr>

  <tr> 

    <td bgcolor="#004C84" width="1"></td>

    <td bgcolor="#FFFFFF" width="732" valign="top" align="center" background="layout/backcenter.gif"> 

      <p>&nbsp;</p>

      <table width="710" border="0" cellspacing="0" cellpadding="0" align="center">

        <tr> 

          <td width="600" valign="top"> 

            <table width="500" border="0" cellspacing="0" cellpadding="0" align="center" class="text" height="100%">

              <tr> 

                <td valign="top" align="center"> 

                  <?php 

		  $nu_row = '0';

              $zero='0';

	if  ($Submit) {

	

			$emailPattern = '/^[^@\s]+@([-a-z0-9]+\.)+[a-z]{2,}$/i';

	if (!preg_match($emailPattern, $email)){

	?>

                  <table width="311" border="0" cellspacing="0" cellpadding="0" align="center" class="text">

                    <tr> 

                      <td valign="top" align="center"><br>

                        <br>

                        <br>

                        <a href="contactgr.php" class="texlink1">Προσπαθήστε ξανά</a><br>

                        Παρακαλώ ελέξτε ξανά αν είναι σωστό το ακόλουθο email 

                        : 

                        <?php echo $email ?>

                      </td>

                    </tr>

                  </table>

                  <?php

	}else  {

	

	  		$dbh=mysql_connect("localhost","olympicv","olym8y");

			mysql_select_db("olympicv_olympic",$dbh);

			$result = mysql_query("SELECT * FROM codes_table WHERE id=$id",$dbh);

			$myrow=mysql_fetch_array($result); 

					$codes=$myrow['code'];

					

					if (($codes==$code1) & ($codes!='')) { 

	

			  function make_seed() {

				    list($usec, $sec) = explode(' ', microtime());

				    return (float) $sec + ((float) $usec * 100000);

				}

				srand(make_seed());

				$code = rand();

			     	  

				if ( $list_choice=='1'){

				$mmail="info@olympicvillas.com" ;

				$list_choice="Reservations and Info " ;

				}

						if ( $list_choice=='2'){

				$mmail="guest@olympicvillas.com" ;

				$list_choice="Contact with a guest " ;

				}

						if ( $list_choice=='3'){

				$mmail="petros@olympicvillas.com" ;

				$list_choice="Personal contact with Petros Vamvakousis, 

                        employee of Olympic Villas" ;

				}

						if ( $list_choice=='4'){

				$mmail="contract@olympicvillas.com" ;

				$list_choice="For buissnes propotitions" ;

				}

				

					function preprocessHeaderField($value)

{

  $ret = str_replace("\r", "", $value);

  $ret = str_replace("\n", "", $ret);

  $find = array("/bcc\:/i",

                "/Content\-Type\:/i",

                "/Mime\-Type\:/i",

                "/cc\:/i",

                "/to\:/i");

  $ret = preg_replace($find,

                      "",

                      $ret);

  return $ret;

}

$email=preprocessHeaderField($email);



			$to="$mmail";

			$from="Marinet Webserver <webserver@marinet.gr>";

			$reply=$email;

			$reply=substr($reply, 0, 50);

			$headers="From: $from\nReply-To: $reply";

			$subject="Another request from olympicvillas  Server";

			$message="Nέο μήνυμα από τον Webserver (contact!)

Διαθέσιμα στοιχεία : 

Seleted Option: $list_choice

Real name:$realname 

Χώρα: $Country_Name

Τηλέφωνο/fax: $Phone_Fax_Number

E-mail :   $email

Σχόλιο:

________________________________

$comments



________________________________



Best regards

olympicvillas  Web Server 

Marinet Mail Service";

mail ($to,$subject, $message,$headers);

?>

                  <?php 

			$dbh=mysql_connect("localhost","olympicv","olym8y");

			mysql_select_db("olympicv_olympic",$dbh);

			$sql27 = "SELECT * FROM  ADDRESSBOOK WHERE email='$email'";

			$result27 = mysql_query($sql27);

			$nu_row = mysql_num_rows($result27);

?>

                  <br>

                  <?php 

	if  ( ( $nu_row==$zero)) {

	?>

                  <?php if ($flag=='yes') {











			$dbh=mysql_connect("localhost","olympicv","olym8y");

			mysql_select_db("olympicv_olympic",$dbh);

			$sql = "INSERT INTO ADDRESSBOOK (list_choice, realname, Country_Name, Phone_Fax_Number, email, comments, type, code ) VALUES ('$list_choice','$realname', '$Country_Name', '$Phone_Fax_Number', '$email', '$comments', '$type' , '$code')";

			$result = mysql_query($sql);

?>

                  <?php 

	



			$to="$email";

			$from="Marinet Webserver <webserver@marinet.gr>";

			$reply="info@olympicvillas.com";

			$headers="From: $from\nReply-To: $reply";

			$subject="Your personal code/reference number from olympicvillas  Server";

			$message="Your personal code from olympic villas





________________________________

Your code/reference for olympic villas booking form is: $code 



Best regards

olympicvillas  Web Server 

Marinet Mail Service";

mail ($to,$subject, $message,$headers);

?>

                  <?php }



                                             }    else {    }?>

                  <br>

                  <br>

                  <p align="center"><br>

                    Ευχαριστούμε για την επικοινωνία <br>

                    Aν δεν λάβετε σύντομα email με τον προσωπικό σας κωδικό<br>

                    παρακαλώ ελέξτε ξανά αν είναι σωστό το ακόλουθο email : 

                    <?php echo $email ?>

                    <br>

                  </p>

                  <?php } else { ?>

                  <table width="500" border="0" cellspacing="0" cellpadding="0" align="center" class="text">

                    <tr> 

                      <td valign="top" align="center"><a href="contactgr.php" class="texlink1">Προσπαθήστε 

                        ξανά</a><br>

                        συμπληρώνοντας τον σωστό κωδικό </td>

                    </tr>

                  </table>

                  <?php  }  ?>

                  <?php  }  } else { ?>

                  <form name="form1" method="post" action="<?php echo $PHP_SELF ?>">

                    <table width="98%" border="0" cellspacing="2" cellpadding="0" class="text">

                      <tr valign="top"> 

                        <td colspan="2" height="43"> 

                          <div align="center"><font color="#000033">Κάντε μία 

                            από τις παρακάτω επιλογές </font><br>

                            <select name="list_choice" class="forma">

                              <option value="1" selected>Κρατήσεις</option>

                              <option value="2">Επικοινωνία μέ κάποιον φιλοξενούμενό 

                              μας </option>

                              <option value="3">Επικοινωνία με τον Πέτρο Βαμβακούση, 

                              υπάληλο των Olympic Villas</option>

                              <option value="4">Συνεργασίες και επαγγελματικές 

                              προτάσεις</option>

                            </select>

                            <br>

                          </div>

                        </td>

                      </tr>

                      <tr> 

                        <td width="39%" valign="top"><img src="image/curvarow.gif" align="absmiddle"><font face="Arial" color="#000033"> 

                          Συμπηρώστε το όνομα σας...</font> <br>

                          <input type="text" name="realname" min="60" maxlength="60" align="BOTTOM" size=20 class="forma">

                          <br>

                          <br>

                          <img src="image/curvarow.gif" align="absmiddle"> <font color="#000000"><font color="#000033"> 

                          E-mail</font></font><font face="Arial" size=-1 color="#000000"><b> 

                          </b></font><font color="#000000"><font color="#FF0000">(required)</font></font><br>

                          <input type="text" name="email" min="60" maxlength="60" align="BOTTOM" size=20 class="forma">

                          <br>

                          <br>

                          <font color="#000000"><font color="#000033"><img src="image/curvarow.gif" align="absmiddle"> 

                          Tηλέφωνο αριθμός FAX</font></font><br>

                          <input type="text" name="Phone_Fax_Number" min="60" maxlength="95" align="BOTTOM" size=20 class="forma">

                          <br>

                          <br>

                          <img src="image/curvarow.gif" align="absmiddle"> <font color="#000033">Χώρα</font><br>

                          <input type="text" name="Country_Name" min="60" maxlength="60" align="BOTTOM" size=20 class="forma">

                          <br>

                          <font face="Arial" size=-1> <br>

                          <br>

                          &nbsp;&nbsp;&nbsp; </font></td>

                        <td width="61%" valign="top"> 

                          <p><img src="image/curvarow.gif" align="absmiddle"> 

                            <font color="#000033">Θυμηθείτε να συμπεριλάβετε:</font><b><br>

                            </b><font face="Arial" size="-1">τον ταχυδρομικό σας 

                            αριθμό</font><br>

                            <img src="image/curvarow.gif" align="absmiddle"> <font face="Arial" color="#000033">επίσης 

                            συμπληρώστε :</font><br>

                            ημέρα άφιξης ,αριθμό ατόμων και πόσσες μέρες θα μείνετε<br>

                            <textarea wrap=1 name="comments" rows=10 cols=35 class="forma">

Διεύθυνση  και/η

Μέρες και άτομα  που θα μείνετε :

</textarea>

                            <br>

                            <input type="hidden" name="type" value="contact form">

                            Για μελλοντικά mail με νέα μας και προσφορές κάντε 

                            click εδώ 

                            <input type="checkbox" name="flag" value="yes" checked>

                        </td>

                      </tr>

                      <tr> 

                        <td colspan="2" valign="top" height="36">Συμπληρώστε τον 

                          ακόλουθο κωδικό 

                          <?

global $data;

$data = mt_rand(100000,1000000);

        ?>

                          <?php 

	  			$dbh=mysql_connect("localhost","olympicv","olym8y");

			mysql_select_db("olympicv_olympic",$dbh);

			$sql = "INSERT INTO  codes_table ( code ) VALUES ( '$data')";

			$result = mysql_query($sql);



			$result = mysql_query("SELECT * FROM codes_table WHERE code=$data",$dbh);

			$myrow=mysql_fetch_array($result); 

					$id=$myrow['id'];

			?>

                          <input type="hidden" name="id" value="<?php echo $id ?>">

                          <img src=dynamicimage.php?dt=<? global $data; echo base64_encode($data);?> border="1" align="absmiddle"> 

                          : 

                          <input type="text" name="code1"  size="22" class="txt" >

                        </td>

                      </tr>

                      <tr> 

                        <td width="39%" valign="top"> 

                          <input type="submit"  value="Αποστολή" name="Submit" class="forma" onClick="MM_validateForm('email','','RisEmail');return document.MM_returnValue">

                        </td>

                        <td width="61%" valign="top">&nbsp;</td>

                      </tr>

                      <tr valign="top" align="center"> 

                        <td colspan="2"><img src="image/dotline.gif" height="4"></td>

                      </tr>

                    </table>

                    Διεύθυνση για το χειμώνα για περίοδο από 1 Νοεμβρίου - 28 

                    Φεβρουαρίου <br>

                    Θήρας 35, Αργυρούπολη, 164-51, Αθήνα, Ελλάδα . 

                  </FORM>

                  <?php } ?>

                </td>

              </tr>

            </table>

          </td>

          <td width="160" valign="top" align="right"> 

            <table width="160" border="0" cellspacing="0" cellpadding="0" class="txt">

              <tr> 

                <td width="186" valign="top" align="right"> 

                  <table width="186" border="0" cellspacing="0" cellpadding="0" class="txt" height="4">

                    <tr> 

                      <td valign="top" align="right"> <a href="index1_gr.php" class="link">Γενικές 

                        Πληροφορίες </a></td>

                    </tr>

                  </table>

                  <table width="186" border="0" cellspacing="0" cellpadding="0" class="txt" align="center">

                    <tr> 

                      <td bgcolor="#FFDEDE"><img src="layout/linesm.gif" width="186" height="7"></td>

                    </tr>

                  </table>

                  <table width="186" border="0" cellspacing="0" cellpadding="0" class="txt" height="4">

                    <tr> 

                      <td valign="top" align="right"> <a href="accommodation_gr.php" class="link">Τύποι 

                        Δωματίων</a> </td>

                    </tr>

                  </table>

                  <table width="186" border="0" cellspacing="0" cellpadding="0" class="txt" align="center">

                    <tr> 

                      <td bgcolor="#FFDEDE"><img src="layout/linesm.gif" width="186" height="7"></td>

                    </tr>

                  </table>

                  <table width="186" border="0" cellspacing="0" cellpadding="0" class="txt" height="4">

                    <tr> 

                      <td valign="top" align="right"> <a href="direct_gr.php" class="link">Κρατήσεις</a></td>

                    </tr>

                  </table>

                  <table width="186" border="0" cellspacing="0" cellpadding="0" class="txt" align="center">

                    <tr> 

                      <td bgcolor="#FFDEDE"><img src="layout/linesm.gif" width="186" height="7"></td>

                    </tr>

                  </table>

                  <table width="186" border="0" cellspacing="0" cellpadding="0" class="txt" height="4">

                    <tr> 

                      <td valign="top" align="right"> <a href="images_gr.php" class="link">Φωτογραφίες 

                        </a></td>

                    </tr>

                  </table>

                  <table width="186" border="0" cellspacing="0" cellpadding="0" class="txt" align="center">

                    <tr> 

                      <td bgcolor="#FFDEDE"><img src="layout/linesm.gif" width="186" height="7"></td>

                    </tr>

                  </table>

                  <table width="186" border="0" cellspacing="0" cellpadding="0" class="txt" height="4">

                    <tr> 

                      <td valign="top" align="right"> <a href="guestbook_gr.php" class="link">Βιβλίο 

                        Επισκεπτών </a></td>

                    </tr>

                  </table>

                  <table width="186" border="0" cellspacing="0" cellpadding="0" class="txt" align="center">

                    <tr> 

                      <td bgcolor="#FFDEDE"><img src="layout/linesm.gif" width="186" height="7"></td>

                    </tr>

                  </table>

                  <table width="186" border="0" cellspacing="0" cellpadding="0" class="txt" height="4">

                    <tr> 

                      <td valign="top" align="right"> <a href="links_gr.php" class="link">Useful 

                        Links </a></td>

                    </tr>

                  </table>

                  <table width="186" border="0" cellspacing="0" cellpadding="0" class="txt" align="center">

                    <tr> 

                      <td bgcolor="#FFDEDE"><img src="layout/linesm.gif" width="186" height="7"></td>

                    </tr>

                  </table>

                  <table width="186" border="0" cellspacing="0" cellpadding="0" class="txt" height="4">

                    <tr> 

                      <td valign="top" align="right"> <a href="contact_gr.php" class="link">Επικοινωνία</a></td>

                    </tr>

                  </table>

                  <table width="186" border="0" cellspacing="0" cellpadding="0" class="txt" align="center">

                    <tr> 

                      <td bgcolor="#FFDEDE"><img src="layout/linesm.gif" width="186" height="7"></td>

                    </tr>

                  </table>

                </td>

              </tr>

            </table>

            <p align="center"><a href="#"><img src="images/map.JPG" width="170" onClick="MM_openBrWindow('map.htm','','width=511,height=529')" border="0"></a></p>

            <p align="right" class="texlink" onClick="MM_openBrWindow('map.htm','','width=511,height=529')"><a href="#" class="texlink">πατήστε 

              για μεγένθυνση</a></p>

          </td>

        </tr>

      </table>

    </td>

    <td bgcolor="#004C84" width="1"></td>

  </tr>

  <tr>

    <td bgcolor="#004C84" width="1"></td>

    <td bgcolor="#FFFFFF" width="732" valign="bottom" align="center" background="layout/backcenter.gif" height="20">

      <div align="right"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="160" height="20">

          <param name=movie value="images/FLASH%20MARINET.swf">

          <param name=quality value=high>

          <embed src="images/FLASH%20MARINET.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="160" height="20">

          </embed> 

        </object></div>

    </td>

    <td bgcolor="#004C84" width="1"></td>

  </tr>

</table>





</body>

</html>



