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

<body bgcolor="#FFFFFF" text="#000000">
<?php 
if ($submit) {
			$dbh=mysql_connect("localhost","olympicv","olym8y");
			mysql_select_db("olympicv_olympic",$dbh);
			$sql = "INSERT INTO GALLERY (TITLE, TITLEUK, IMAGE, PUBLISH ) VALUES ('$TITLE', '$TITLEUK', '$IMAGE', '$PUBLISH')";
			$result = mysql_query($sql);
?>
<table width="560" border="1" cellspacing="0" cellpadding="0" bgcolor="#FFFFFF" bordercolor="#CC0000" align="center" class="ttext">
  <tr> 
    <td bgcolor="#CCCCCC" bordercolor="#CCCCCC">
      <div align="center" class="">ΠΡΟΣΤΕΘΗΚΕ ΝΕΟ IMAGE</div>
    </td>
  </tr>
  <tr>
    <td bgcolor="#FFFFFF" bordercolor="#FFFFFF">
      <p>&nbsp;
      <table width="500" border="0" cellspacing="0" cellpadding="5" align="center" class="ttext">
        <tr> 
                      
          <td width="55" align="center" class="fast" valign="top">&nbsp; </td>
                      
          <td align="left" class="" width="305"> 
            <?php echo $sql ?>
          </td>
                      
          <td align="left" class="" width="140" valign="top">
            <?php echo $LINK ?>
          </td>
                      
          <td align="left" class="" width="140" valign="top">&nbsp;</td>
                    </tr>
                  </table>
                  
      <p>&nbsp;</p>
    </td>
  </tr>
</table>
<?php			
}
else  {
?>
 <form name="newproductform1" method="post" action="<?php echo $PHP_SELF ?>" enctype="multipart/form-data">
  <table width="560" border="0" cellspacing="0" cellpadding="0" align="center" class="ttext">
    <tr> 
      <td width="192">TITLE</td>
      <td width="368"> 
        <input type="text" name="TITLE"  maxlength="254">
      </td>
    </tr>
	<tr> 
      <td width="192">TITLE (english)</td>
      <td width="368"> 
        <input type="text" name="TITLEUK"  maxlength="254">
      </td>
    </tr>
    <tr> 
      <td width="192">Δημοσίευση <input type="hidden" name="IMAGE" value="no"></td>
      <td width="368"> 
        <select name="PUBLISH">
          <option value="yes">yes</option>
          <option value="no">no</option>
        </select>
      </td>
    </tr>
    <tr> 
      <td width="192"> 
        <input type="submit" name="submit" value="Submit">
      </td>
      <td width="368">&nbsp;</td>
    </tr>
  </table>
 
 </form>
<?php
}
?>

</body>
</html>
