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

<title>Olympic villas Santorini Island -  Sign the Guestbook</title>

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

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

<link rel="stylesheet" href="css/lightbox.css" type="text/css" media="screen" />

	

	    <script type="text/javascript" src="js/prototype.js"></script>
<script type="text/javascript" src="js/scriptaculous.js?load=effects,builder"></script>
<script type="text/javascript" src="js/lightbox.js"></script>

<STYLE type="text/css">

.image{

	border-style:solid;

	border-color: white;

	border-width:3px;

      }





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

</head>

<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0">

<?php   

				  include 'includes/languk.php';

				  ?><table width="100%" border="0" cellspacing="0" cellpadding="0" height="55" class="txt">

  <tr>

    <td bgcolor="#2353AD" valign="top" align="center"> 

      <table width="760" border="0" cellspacing="0" cellpadding="0" class="txt" height="55">

        <tr>

          <td valign="top" bgcolor="#3671DC" align="center">

            <table width="100%" border="0" cellspacing="0" cellpadding="0" class="txt" height="13">

              <tr>

                <td></td>

              </tr>

            </table>

			<table width="737" border="0" cellspacing="0" cellpadding="0" class="txt" height="300" >

              <tr> 

                <td width="400" valign="middle" align="center" bgcolor="#FFFFFF">

                  <table width="360" border="0" cellspacing="0" cellpadding="0" height="260">

                    <tr>

                      <td bgcolor="#2353AD" align="center">

					   	<div id="page-background" class="slideshow"><img src="allimages/16.jpg"  alt="app" width="360" height="260">
<img src="allimages/17.jpg" width="360" height="260"    alt="app">
<img src="allimages/18.jpg"  width="360" height="260"alt="app">
<img src="allimages/19.jpg"  width="360" height="260"alt="app"></div>

					  </td>

                    </tr>

                  </table>

                </td>

                <td width="337" background="lay_out/bigmenu.jpg" align="center" valign="bottom"> 

                  <?php   

				  include 'includes/menuuk.php';

				  ?></td>

              </tr>

            </table>

            <table width="737" border="0" cellspacing="0" cellpadding="0" class="txt" height="8">

              <tr>

                <td><img src="lay_out/spline.gif" width="737" height="8"></td>

              </tr>

            </table>

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

              <tr> 

                <td width="400" background="lay_out/backleft.gif" valign="top" align="center"> 

                  <table width="388" border="0" cellspacing="0" cellpadding="0"  class="txtwhite" align="center">

                    <tr>

                      <td align="justify" valign="top"><b><font color="#FF9900" size="3">Contact</font><font color="#FF9900"><br>

                        <br>

                        </font></b><img src="lay_out/dotline.gif" width="388" height="6"><br>

						

						<?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="txtwhite">

                          <tr>

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

                    <br>

                  <br><a href="javascript:history.go(-1);" class="txtlink">Try again</a><br>

                  Please review the email address you entered. There seems to 

                  be a problem</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 

			//Use this for CODE / REFERENCE

			//$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>

                Thank you for contacting us<br>

                <!-- We will contact you in the following email : <?php //echo $email ?> --><br>

              </p>

			  <?php } else { ?>

                        <table width="329" border="0" cellspacing="0" cellpadding="0" align="center" class="txtwhite">

                          <tr>

                <td valign="top" align="center"><a href="javascript:history.go(-1);" class="txtlink">Try again</a><br>

                  typing the correct image data </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="txtwhite">

                            <tr valign="top"> 

                              <td colspan="2">Please select one of the options...<br>

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

                        <option value="1" selected>Reservations &amp; Info </option>

                        <option value="2">Contact with a guest </option>

                        <option value="3">Personal contact with Petros Vamvakousis, 

                        employee of Olympic Villas</option>

                        <option value="4">For buissnes propotitions</option>

                      </select>

                      <br>

                      <br>

                    </td>

                  </tr>

                  <tr> 

                              <td width="41%" valign="top"><font face="Arial">Please 

                                enter your name...</font> <br>

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

                      <br>

                      <br>

                                Your &quot;e-mail&quot; address<font face="Arial" size="-1"><b> 

                                </b></font>(required)<br>

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

                      <br>

                      <br>

                             Your 

                                &quot;Phone / Fax Number&quot;<font face="Arial" size=-1 color="#000000"><b> 

                                </b></font><br>

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

                      <br>

                      <br>

                                Your Country <br>

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

                      <br>

                   Please click on the Send button 

                      only once.<br>

                      <br>

     </td>

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

                                <p>Please remember to include :<b><br>

                        </b>Your <i>POSTAL ADDRESS</i> 

                        below for MAIL <br>

                                  <font face="Arial">also please notify:</font><br>

                        <i>arrival date AND number of nights AND persons</i> to 

                        stay<br>

                                  <textarea wrap=1 name="comments" rows=10 cols=33 class="txt">

MAIL ADDRESS and/or

Dates, Persons and Nights to stay :

</textarea>

                        <br>

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

                        For newsletters & special offers please check here 

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

                    </td>

                  </tr>

                  <tr> 

                    <td colspan="2" valign="top">Type the following 

                    Image Data 

                    <?

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="41%" valign="top">                 <input type="submit"  value="Send Request" name="Submit" class="txt" onClick="MM_validateForm('email','','RisEmail');return document.MM_returnValue">

          

                      <input type="reset" value="Clear" name="reset" class="txt"></td>

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

                  </tr>

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

                              <td colspan="2">&nbsp;</td>

                  </tr>

                </table>

			  Address for  winter period 

     1 November - 28 February : <br>Thiras 35, Argyroupoli, 164-51, Athens, Greece .

			  </FORM>

              <?php } ?>

        </td>

  </tr>

</table>

                  <br>

                  <br>

                </td>

                <td width="337" valign="top"><img src="lay_out/logo.gif" width="337" height="34">

                  <table width="324" border="0" cellspacing="0" cellpadding="0" class="txtwhite" align="center">

                    <tr> 

                      <td width="136" align="justify" valign="top"> 

                        <?php

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

			mysql_select_db("olympicv_olympic",$dbh);

			$result22= mysql_query("SELECT * FROM PAGES  WHERE ID=11",$dbh);

			$myrow=mysql_fetch_array($result22); 

			$DESCRIPTION22=$myrow['DESCRIPTION'];

			$DESCRIPTIONUK22=$myrow['DESCRIPTIONUK'];

			$TITLE22=$myrow['TITLE'];

?>

                        <div align="right"><b>

                          <?php echo	$TITLE22 ?>

                          </b></div>

                        <?php echo	$DESCRIPTIONUK22 ?>



                      </td>

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

                        <table width="184" border="0" cellspacing="0" cellpadding="0">

                          <tr> 

                            <td width="92" valign="top" align="right"><a href="lay_out/reception/1.jpg" class="fancybox" data-fancybox-group="gallery"><img src="lay_out/rec1.jpg" width="83" height="61" class="image" ></a></td>

                            <td  width="92" valign="top" align="right"><a href="lay_out/reception/2.jpg" class="fancybox" data-fancybox-group="gallery"><img src="lay_out/rec2.jpg" width="83" height="61"class="image"></a></td>

                          </tr>

                        </table>

                        <table width="150" border="0" cellspacing="0" cellpadding="0" height="3" class="txt">

                          <tr>

    <td></td>

  </tr>

</table>

						<table width="184" border="0" cellspacing="0" cellpadding="0">

                          <tr> 

                            <td width="92" valign="top" align="right"><a href="lay_out/reception/3.jpg" class="fancybox" data-fancybox-group="gallery"><img src="lay_out/rec3.jpg" width="83" height="61" class="image" ></a></td>

                            <td  width="92" valign="top" align="right"><a href="lay_out/reception/4.jpg" class="fancybox" data-fancybox-group="gallery"><img src="lay_out/rec4.jpg" width="83" height="61"class="image"></a></td>

                          </tr>

                        </table>

                      <table width="150" border="0" cellspacing="0" cellpadding="0" height="3" class="txt">

                          <tr>

    <td></td>

  </tr>

</table>

						

                        <a href="guestbook1.php"><img src="lay_out/sign.gif" width="181" height="67" border="0" alt="Sign our Guest book"></a></td>

                    </tr>

                  </table><img src="lay_out/rightline.gif">

                  <?php   

				  include 'includes/addressuk.php';

				  ?></td>

              </tr>

            </table>

			

          

          </td>

        </tr>

      </table>

    </td>

  </tr>

</table>



<?php   

				  include 'includes/downuk.php';

				  ?></body>

</html>

