<html>

<head>

<?php include 'sets.php';?>

<title>Reservations at Evgenia Hotel on Folegandros - Greece</title>

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

<meta name="description" content="Reservation request form in order to reserve a room or to check availability for the desired period">

<meta name="keywords" content="<?php echo $keywords1 ?>, Marinet">



<meta http-equiv="Expires" content="0">

<meta http-equiv="Cache-Control" content="no-cache">

<meta name="generator" content="Marinet - Online databases & Internet services">

<meta name="revisit-after" content="30 days">

<meta name="classification" content="Travel:Accommodation">

<meta name="distribution" content="Global">

<meta name="rating" content="General">

<meta name="language" content="el, en-us">

<meta http-equiv="Content-Language" content="el, en-us">

<meta name="author" content="webmaster@marinet.gr">

<meta name="copyright" content="Copyright © 2008 Marinet, All rights reserved.">

<meta http-equiv="reply-to" content="webmaster@marinet.gr">

<meta name="robots" content="index,follow">

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



<script type="text/javascript" src="../swfobject.js"></script>

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

<script src="../thumbnailviewer.js" type="text/javascript"></script>



<script language="JavaScript">

<!--

function MM_displayStatusMsg(msgStr) { //v1.0

  status=msgStr;

  document.MM_returnValue = true;

}

//-->

</script>

</head>



<body bgcolor="#FFFFFF" text="#000000" link="#3399CC" vlink="#669999" alink="#66CCCC" leftmargin="0" topmargin="10" marginwidth="0" marginheight="0">

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

  <tr> 

    <td><img src="images/frame1.gif" width="814" height="20"></td>

  </tr>

  <tr>

    <td>

      <table width="100%" border="0" cellspacing="0" cellpadding="0">

        <tr> 

          <td background="images/frame3.gif" width="7"><img src="images/frame3.gif" width="7" height="6"></td>

          <td>

            <table width="100%" border="0" cellspacing="8" cellpadding="0">

              <tr> 

                <td> 

                  <table width="100%" border="0" cellspacing="0" cellpadding="0">

                    <tr> 

                      <td valign="top"> 

                        <table width="100%" border="0" cellspacing="0" cellpadding="0">

                          <tr> 

                            <td valign="top" bgcolor="#F5F5F6"> 

                              <?php include 'menu.php';?>

                            </td>

                            <td width="60"><img src="images/corner.gif" width="60" height="324"></td>

                          </tr>

                        </table>

                      </td>

                      <td width="4"></td>

                      <td width="424"><img src="images/photo.jpg" width="424" height="324"></td>

                    </tr>

                  </table>

                  <table width="100%" border="0" cellspacing="0" cellpadding="0">

                    <tr> 

                      <td height="7"></td>

                    </tr>

                    <tr> 

                      <td> 

                        <div align="right"><img src="images/line.gif" width="424" height="7"></div>

                      </td>

                    </tr>

                    <tr> 

                      <td> 

                        <table width="100%" border="0" cellspacing="0" cellpadding="0" class="pages">

                          <tr> 

                            <td width="45">&nbsp;</td>

                            <td class="titles">ROOMS</td>

                            <td height="30" width="424"> 

                              <div align="right">Reservation request</div>

                            </td>

                            <td width="20">&nbsp;</td>

                          </tr>

                        </table>

                      </td>

                    </tr>

                    <tr> 

                      <td> 

                        <table width="100%" border="0" cellspacing="0" cellpadding="0">

                          <tr valign="top"> 

                            <td width="220"> 

                              <table width="90%" border="0" cellspacing="0" cellpadding="0">

                                <tr> 

                                  <td> 

                                    <div align="right"><img src="images/click.gif" width="11" height="11"> 

                                      <a href="photos2/6.jpg" rel="thumbnail" class="photos"><img src="photos/6.jpg" alt="click to enlarge" width="150" border="0" height="113"></a> 

                                    </div>

                                  </td>

                                </tr>

                                <tr> 

                                  <td height="3"></td>

                                </tr>

                                <tr> 

                                  <td> 

                                    <div align="right"><img src="images/line.gif" width="160" height="7"></div>

                                  </td>

                                </tr>

                                <tr> 

                                  <td>&nbsp;</td>

                                </tr>

                                <tr> 

                                  <td> 

                                    <div align="right"><img src="images/click.gif" width="11" height="11"> 

                                      <a href="photos2/7.jpg" rel="thumbnail" class="photos"><img src="photos/7.jpg" alt="click to enlarge" width="150" border="0" height="113"></a> 

                                    </div>

                                  </td>

                                </tr>

                                <tr> 

                                  <td height="3"></td>

                                </tr>

                                <tr> 

                                  <td> 

                                    <div align="right"><img src="images/line.gif" width="160" height="7"></div>

                                  </td>

                                </tr>

                              </table>

                            </td>

                            <td> 

                              <table width="90%" border="0" cellspacing="0" cellpadding="10" align="center">

                                <tr> 

                                  <td> 

                                    <table width="100%" border="0" cellspacing="0" cellpadding="0" name="content" class="text">

                    <tr> 

                      <td> 

                        <script language="JavaScript" src="../calendar.js"></script>

                        <?php include 'fprotect.php'; ?>

                        <?php 

	        if  ($submit) {

	        include 'connect.php';

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

			$myrow=mysql_fetch_array($result); 

			$code=$myrow['code'];

			$fid=$id-2;

			$sql = "DELETE FROM forms WHERE id=$id";

			$result = mysql_query($sql);

			$sql = "DELETE FROM forms WHERE id<$fid";

			$result = mysql_query($sql);

   ?>

                        <?php 

	$your_name=preprocessHeaderField($your_name); 

    $address=preprocessHeaderField($address); 

    $city=preprocessHeaderField($city); 

    $country=preprocessHeaderField($country); 

    $tel=preprocessHeaderField($tel); 

    $fax=preprocessHeaderField($fax); 

    $email=preprocessHeaderField($email); 

    $room=preprocessHeaderField($room); 

    $arrivaldate=preprocessHeaderField($arrivaldate); 

    $departuredate=preprocessHeaderField($departuredate); 

    $persons=preprocessHeaderField($persons); 

    $children=preprocessHeaderField($children); 

    $payment=preprocessHeaderField($payment); 

    $comment=preprocessHeaderField($comment); 

    $code1=preprocessHeaderField($code1);  

	?>

	

	 <?php $adate1 = substr("$arrivaldate", 0, 2);   ?>

     <?php $adate2 = substr("$arrivaldate", 3, 2);   ?>

     <?php $adate3 = substr("$arrivaldate", 6, 4);   ?>

	  <?php $adate = $adate3.$adate2.$adate1;    ?>

	  <?php $ddate1 = substr("$departuredate", 0, 2);   ?>

     <?php $ddate2 = substr("$departuredate", 3, 2);   ?>

     <?php $ddate3 = substr("$departuredate", 6, 4);   ?>

	  <?php $ddate = $ddate3.$ddate2.$ddate1;    ?>

		

                      		<?php

if (preg_match("/http/i", "$comment")) {

?> 

<?php } else { ?>

					  

					    <?php if ($code==$code1) { ?>

                      

                        <?php include 'holidayreservation.php'; ?>

						

                        <?php 

			$to="$sitemail";

			$from="$email";

			$reply="$email";

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

			$subject="New reservation request from Evgenia Hotel Site";

			$message="Νέα αίτηση κρατήσεως από τον Web server



Φόρμα κρατήσεως

			

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



Όνομα: $your_name 

Διεύθυνση: $address

Πόλη: $city

Χώρα: $country

Τηλέφωνο: $tel

Fax: $fax

E-mail: $email

Τύπος δωματίου: $room

Ημερομηνία άφιξης: $arrivaldate

Ημερομηνία αναχώρησης: $departuredate

Αριθμός ατόμων (ενήλικες): $persons

Αριθμός παιδιών: $children

Tρόπος πληρωμής: $payment

Σχόλια: $comment



Evgenia Hotel Webserver 

Marinet Mail Service";

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

?>

                      </td>

                    </tr>

                    <tr> 

                      <td> Thank you for your reservation request, we will contact 

                        you soon to confirm the reservation. <br>

                        We have received following info: </td>

                    </tr>

                    <tr> 

                      <td>&nbsp;</td>

                    </tr>

                    <tr> 

                      <td> 

                        <table width="90%" border="0" cellspacing="0" cellpadding="4" class="text" align="center">

                          <tr> 

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

                              <div align="right">Name:</div>

                            </td>

                            <td valign="top"> 

                              <?php echo $your_name ?>

                            </td>

                          </tr>

                          <tr> 

                            <td valign="top"> 

                              <div align="right">Address:</div>

                            </td>

                            <td valign="top"> 

                              <?php echo $address ?>

                            </td>

                          </tr>

                          <tr> 

                            <td valign="top"> 

                              <div align="right">City:</div>

                            </td>

                            <td valign="top"> 

                              <?php echo $city ?>

                            </td>

                          </tr>

                          <tr> 

                            <td valign="top"> 

                              <div align="right">Country:</div>

                            </td>

                            <td valign="top"> 

                              <?php echo $country ?>

                            </td>

                          </tr>

                          <tr> 

                            <td valign="top"> 

                              <div align="right">Telephone:</div>

                            </td>

                            <td valign="top"> 

                              <?php echo $tel ?>

                            </td>

                          </tr>

                          <tr> 

                            <td valign="top"> 

                              <div align="right">Fax:</div>

                            </td>

                            <td valign="top"> 

                              <?php echo $fax ?>

                            </td>

                          </tr>

                          <tr> 

                            <td valign="top"> 

                              <div align="right">E-mail:</div>

                            </td>

                            <td valign="top"> 

                              <?php echo $email ?>

                            </td>

                          </tr>

                          <tr> 

                            <td valign="top"> 

                              <div align="right">Room type:</div>

                            </td>

                            <td valign="top"> 

                              <?php echo $room?>

                            </td>

                          </tr>

                          <tr> 

                            <td valign="top"> 

                              <div align="right">Date of arrival:</div>

                            </td>

                            <td valign="top"> 

                              <?php echo $arrivaldate ?>

                            </td>

                          </tr>

                          <tr> 

                            <td valign="top"> 

                              <div align="right">Date of departure:</div>

                            </td>

                            <td valign="top"> 

                              <?php echo $departuredate?>

                            </td>

                          </tr>

                          <tr> 

                            <td valign="top"> 

                              <div align="right">Number of persons:</div>

                            </td>

                            <td valign="top"> 

                              <?php echo $persons?>

                            </td>

                          </tr>

                          <tr> 

                            <td valign="top"> 

                              <div align="right">Number of children:</div>

                            </td>

                            <td valign="top"> 

                              <?php echo $children?>

                            </td>

                          </tr>

                          <tr valign="top"> 

                            <td> 

                              <div align="right">Way of payment:</div>

                            </td>

                            <td> 

                              <?php echo $payment ?>

                            </td>

                          </tr>

                          <tr> 

                            <td valign="top"> 

                              <div align="right">Comments:</div>

                            </td>

                            <td valign="top"> 

                              <?php echo $comment ?>

                            </td>

                          </tr>

                        </table>

                      </td>

                    </tr>

                    <tr> 

                      <td>&nbsp;</td>

                    </tr>

                    <tr> 

                      <td> 

                        <?php } else { ?>

                      </td>

                    </tr>

                    <tr> 

                      <td>Try again and fill in correctly the authentification 

                        number. </td>

                    </tr>

                    <tr> 

                      <td> 

                        <?php } ?>

                        <?php } ?>

                        <?php } else { ?>

                      </td>

                    </tr>

                    <tr> 

                                        <td> If you want to make a reservation 

                                          or to be informed about room availability 

                                          and prices, please fill in the following 

                                          fields:</td>

                    </tr>

                    <tr> 

                      <td>&nbsp;</td>

                    </tr>

                    <tr> 

                      <form name="formar" method="post" action="">

                        <td> 

                                            <table border="0" cellspacing="1" cellpadding="2" class="text2" width="100%">

                                              <tr> 

                              <td class="titles" colspan="2">Personal info</td>

                              <td class="titles" colspan="2">Reservation</td>

                            </tr>

                                              <tr> 

                                                <td>Name*</td>

                                                <td> 

                                                  <input type="text" name="your_name" class="forms" size="20" maxlength="50">

                              </td>

                                                <td>Room type</td>

                                                <td> 

                                                  <input type="text" name="room" class="forms" size="20" maxlength="50">

                                                </td>

                            </tr>

                                              <tr> 

                                                <td>Address</td>

                                                <td> 

                                                  <input type="text" name="address" class="forms" size="20" maxlength="50">

                              </td>

                                                <td>Date of arrival*</td>

                                                <td> 

                                                  <input name="arrivaldate" type="text" class="forms" id="arrivaldate" size="20" onClick="javascript:ar.popup();" maxlength="10">

                                <a href="javascript:ar.popup();"><img src="images/calendar.gif" width="15" height="12" border="0" align="absmiddle"></a></td>

                            </tr>

                                              <tr> 

                                                <td>City*</td>

                                                <td> 

                                                  <input type="text" name="city" class="forms" size="20" maxlength="50">

                              </td>

                                                <td>Date of departure*</td>

                                                <td> 

                                                  <input name="departuredate" type="text" class="forms" id="departuredate" size="20" onClick="javascript:dep.popup();" maxlength="10">

                                <a href="javascript:dep.popup();"><img src="images/calendar.gif" width="15" height="12" border="0" align="absmiddle"></a> 

                              </td>

                            </tr>

                                              <tr> 

                                                <td>Country*</td>

                                                <td> 

                                                  <input type="text" name="country" class="forms" size="20" maxlength="50">

                              </td>

                                                <td>Number of persons - adults*</td>

                                                <td> 

                                                  <input type="text" name="persons" class="forms" size="20" maxlength="4" value="1">

                              </td>

                            </tr>

                                              <tr> 

                                                <td>Telephone*</td>

                                                <td> 

                                                  <input type="text" name="tel" class="forms" size="20" maxlength="50">

                              </td>

                                                <td>Number of children*</td>

                                                <td> 

                                                  <input type="text" name="children" class="forms" size="20" maxlength="4" value="0">

                              </td>

                            </tr>

                                              <tr> 

                                                <td>Fax</td>

                                                <td> 

                                                  <input type="text" name="fax" class="forms" size="20" maxlength="50">

                              </td>

                                                <td>Desired way of payment*</td>

                                                <td> 

                                                  <select name="payment" class="forms">

                                  <option value="Bank transfer">Bank transfer</option>

                                  <option value="Postal check">Postal check</option>

                                  <option value="After previous agreement">After 

                                  previous agreement</option>

                                </select>

                              </td>

                            </tr>

                                              <tr> 

                                                <td>E-mail*</td>

                                                <td> 

                                                  <input type="text" name="email" class="forms" size="20" maxlength="60">

                              </td>

                                                <td>Comments</td>

                                                <td> 

                                                  <textarea name="comment" class="forms" rows="2" cols="22"></textarea>

                              </td>

                            </tr>

                                              <tr> 

                                                <td>&nbsp;</td>

                                                <td>&nbsp;</td>

                                                <td> 

                                                  <?

global $data;

$data = mt_rand(100000,1000000);

        ?>

                                                  <?php 

	        include 'connect.php';

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

			$result = mysql_query($sql);



			$result = mysql_query("SELECT * FROM forms 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"> 

                              </td>

                                                <td><span class="small">*Fill 

                                                  in the authentification number 

                                                  </span><br>

                                <input type="text" name="code1"  size="20" class="forms" maxlength="6" >

                              </td>

                            </tr>

                                              <tr bgcolor="#CCCCCC"> 

                                                <td colspan="4" height="4"></td>

                            </tr>

                            <tr> 

                              <td colspan="4"> 

                                <div align="center"> 

                                  <input type="submit" value="Send" name="submit" class="button" onClick="MM_validateForm('your_name','','R','arrivaldate','','R','city','','R','departuredate','','R','country','','R','email','','RisEmail');return document.MM_returnValue">

                                  &nbsp;&nbsp; 

                                  <input type="reset" value="Reset fields" name="reset" class="button">

                                </div>

                              </td>

                            </tr>

                            <tr> 

                              <td colspan="4" class="small">* Required fields 

                              </td>

                            </tr>

                          </table>

                        </td>

                      </form>

                    </tr>

                    <tr> 

                      <td> 

                        <script language="JavaScript">

			<!-- // create calendar object(s) just after form tag closed

				 // specify form element as the only parameter (document.forms['formname'].elements['inputname']);

				 // note: you can have as many calendar objects as you need for your application

				var ar = new calendar1(document.forms['formar'].elements['arrivaldate']);

				ar.year_scroll = true;

				ar.time_comp = false;

				

				var dep = new calendar1(document.forms['formar'].elements['departuredate']);

				dep.year_scroll = true;

				dep.time_comp = false;

				

				

			//-->

			</script>

                        <?php }?>

                      </td>

                    </tr>

                  </table>

            </td>

                                </tr>

                              </table>

                            </td>

                          </tr>

                        </table>

                      </td>

                    </tr>

                  </table>

                </td>

              </tr>

              <tr>

                <td>

                  <table width="100%" border="0" cellspacing="0" cellpadding="0">

                    <tr>

                      <td width="30">&nbsp;</td>

                      <td><a href="http://www.marinet.gr" target="_blank" class="text">powered 

                        by Marinet copyright &copy; 2008</a> <a href="http://www.marinet.gr" target="_blank"><img src="images/firma.gif" alt="Marinet Web design and development" border="0" onLoad="MM_displayStatusMsg('Evgenia Hotel - powered by Marinet - copyright 2008');return document.MM_returnValue" align="absmiddle"></a></td>

                      <td width="40"> 

                        <div align="right"><a href="javascript:history.go(-1);"><img src="images/back.gif" alt="back" border="0"></a> 

                          <a href="#top"><img src="images/top.gif" border="0" alt="top"></a> 

                        </div>

                      </td>

                    </tr>

                  </table>

                </td>

              </tr>

            </table>

          </td>

          <td width="7" background="images/frame4.gif"><img src="images/frame4.gif" width="7" height="6"></td>

        </tr>

      </table>

    </td>

  </tr>

  <tr>

    <td><img src="images/frame2.gif" width="814" height="20"></td>

  </tr>

</table>

</body>

</html>

