<!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 Σαντορίνη-  Υπογράψτε στο Βιβλίο Επισκεπτών</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/langgr.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/24.jpg"  alt="app" width="360" height="260">
<img src="allimages/25.jpg" width="360" height="260"    alt="app">
<img src="allimages/26.jpg"  width="360" height="260"alt="app">
<img src="allimages/27.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/menugr.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">Υπογράψτε στο Βιβλίο Επισκεπτών</font><font color="#FF9900"><br>

                        <br>

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

						

						<?php 

if ($submit) {

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

			mysql_select_db("olympicv_olympic",$dbh);

			$sql = "INSERT INTO GUESTBOOK (name, surname, comments, publish,  email, date) VALUES ('$name','$surname', '$comments', '$publish',  '$email' ,  '$date')";

			$result = mysql_query($sql);

?>

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

                          <tr>

    <td>

                              <div align="center"><i>Eυχαριστούμε για την επικοινωνία</i></div>

            </td>

  </tr>

</table>

	  <?php			

}

else  {

?> 

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

                          <tr> 

            <td>

                              <div align="center"><a href="guestbookgr.php" class="txtlink">Δείτε εδώ το βιβλίο επισκεπτών </a> - Υπογράψτε εδώ το βιβλίο επισκεπτών 

                                και κάντε τα σχολιά σας για τις υπηρεσίες μας</div>

              <br>

            </td>

          </tr>

          <tr>

            <td>

               <form name="newproductform1" method="post" action="<?php echo $PHP_SELF ?>" enctype="multipart/form-data">

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

                                  <tr> 

                                    <td width="112" valign="top">ΣΧΟΛΙΑ</td>

                    <td colspan="3" width="514"> 

                                      <textarea name="comments" rows="8" class="forma" cols="33"></textarea>

                    </td>

                  </tr>

                  <tr> 

                                    <td width="112" valign="top">ΟΝΟΜΑ</td>

                    <td colspan="3" width="514"><input type="text" maxlength="30" size="21" name="name" class="forma"></td>

                  </tr>

                  <tr> 

                                    <td width="112" valign="top">ΕΠΙΘΕΤΟ</td>

                    <td colspan="3" width="514"><input type="text" maxlength="30" size="21" name="surname" class="forma">

                    </td>

                  </tr>

                  <tr> 

                                    <td width="112" valign="top">EMAIL</td>

                    <td colspan="3" width="514"><input type="text" maxlength="30" size="21" name="email" class="forma"></td>

                  </tr>

                                  <tr valign="middle"> 

                                    <td colspan="4">Συμπληρώστε τον ακόλουθο κωδικό

                    <?

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" ><br>

                                    </td>

                  </tr>

                  <tr> 

                    <td colspan="4"> <br>

					<?php  $today = date( "Ymd", time() );?>

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

					<input type="hidden" name="publish" value="no">

                      <div align="center"> 

                                        <input type="submit" name="submit" value="Αποστολή" class="forma">

                      </div>

                    </td>

                  </tr>

                </table>

			</form>

       

			</td>

          </tr>

        </table><?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=8",$dbh);

			$myrow=mysql_fetch_array($result22); 

			$DESCRIPTION22=$myrow['DESCRIPTION'];

			$DESCRIPTIONUK22=$myrow['DESCRIPTIONUK'];

			$TITLE22=$myrow['TITLEGR'];

?>

                        <div align="right"><b><?php echo	$TITLE22 ?></b></div>

                        <?php echo	$DESCRIPTION22 ?>



                      </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/guest/1.jpg" class="fancybox" data-fancybox-group="gallery"><img src="lay_out/guest1.jpg" width="83" height="61" class="image" ></a></td>

                            <td  width="92" valign="top" align="right"><a href="lay_out/guest/2.jpg" class="fancybox" data-fancybox-group="gallery"><img src="lay_out/guest2.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/guest/3.jpg" class="fancybox" data-fancybox-group="gallery"><img src="lay_out/guest3.jpg" width="83" height="61" class="image" ></a></td>

                            <td  width="92" valign="top" align="right"><a href="lay_out/guest/4.jpg" class="fancybox" data-fancybox-group="gallery"><img src="lay_out/guest4.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/addressgr.php';

				  ?></td>

              </tr>

            </table>

			

          

          </td>

        </tr>

      </table>

    </td>

  </tr>

</table>



<?php   

				  include 'includes/downgr.php';

				  ?></body>

</html>

