<html>
<head>
<title>Web management</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-7">
<link rel="stylesheet" href="../styles.css" type="text/css">
</head>
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="10">
  <?php 
if ($submit) {
			include 'connect.php';
			$sql = "INSERT INTO offers (name, name_en, name_de, description, description_en, description_de, price, price_en, price_de, image, publish, priority) VALUES ('$name', '$name_en', '$name_de', '$description', '$description_en', '$description_de', '$price', '$price_en', '$price_de', '$image', '$publish', '$priority')";
			$result = mysql_query($sql);
?>
<table width="600" border="1" cellspacing="0" cellpadding="0" align="center" class="webadmintext" bordercolor="#999999">
  <tr> 
    <td bgcolor="#666666" bordercolor="#666666"> 
      <div align="center" class="white">ΠΡΟΣΦΟΡΑ ΠΡΟΣΤΕΘΗΚΕ</div>
    </td>
  </tr>
  <tr> 
    <td bordercolor="#FFFFFF">&nbsp;</td>
  </tr>
  <tr> 
    <td bordercolor="#FFFFFF"> 
      <div align="center"><b> 
        <?php echo $name   ?>
        </b> </div>
    </td>
  </tr>
  <tr> 
    <td bordercolor="#FFFFFF">&nbsp; </td>
  </tr>
</table>
<meta http-equiv="refresh" content="0;URL=new-offer.php">
<?php			
}
else  {
?>
<form name="forma" method="post" action="">
  <table width="600" border="1" cellspacing="0" cellpadding="0" align="center" class="webadmintext" bordercolor="#999999">
    <tr> 
      <td bgcolor="#666666" bordercolor="#666666"> 
        <div align="center" class="white">ΠΡΟΣΘΗΚΗ ΠΡΟΣΦΟΡΑΣ</div>
      </td>
    </tr>
    <tr> 
      <td bordercolor="#FFFFFF">&nbsp; </td>
    </tr>
    <tr> 
      <td bordercolor="#FFFFFF"> 
        <table width="100%" border="0" cellspacing="1" cellpadding="2" class="webadmintext" bgcolor="#F2F2F2">
          <tr> 
            <td width="30%">Τίτλος - ελληνικά*</td>
            <td> 
              <input type="text" name="name" size="60" class="forms">
            </td>
          </tr>
          <tr> 
            <td width="30%">Τίτλος - αγγλικά*</td>
            <td> 
              <input type="text" name="name_en" size="60" class="forms" value="">
            </td>
          </tr>
          <tr class="webadmintext"> 
            <td width="30%">Τίτλος - γερμανικά</td>
            <td> 
              <input type="text" name="name_de" size="60" class="forms" value="">
            </td>
          </tr>
          <tr> 
            <td width="30%">Κείμενο - ελληνικά</td>
            <td> 
              <textarea name="description" cols="60" class="forms" rows="4"></textarea>
            </td>
          </tr>
          <tr> 
            <td width="30%">Κείμενο - αγγλικά</td>
            <td> 
              <textarea name="description_en" cols="60" class="forms" rows="4"></textarea>
            </td>
          </tr>
          <tr class="webadmintext"> 
            <td width="30%">Κείμενο - γερμανικά</td>
            <td> 
              <textarea name="description_de" cols="60" class="forms" rows="4"></textarea>
            </td>
          </tr>
          <tr> 
            <td width="30%">Τιμή - ελληνικά</td>
            <td> 
              <input type="text" name="price" class="forms" size="50" maxlength="254">
            </td>
          </tr>
          <tr> 
            <td width="30%">Τιμή - αγγλικά</td>
            <td> 
              <input type="text" name="price_en" class="forms" size="50" maxlength="254">
            </td>
          </tr>
          <tr> 
            <td width="30%">Τιμή - γερμανικά</td>
            <td> 
              <input type="text" name="price_de" class="forms" size="50" maxlength="254">
            </td>
          </tr>
          <tr> 
            <td width="30%">Εικόνα</td>
            <td> 
              <select name="image" class="forms">
                <option value="yes">yes</option>
                <option value="no" selected>no</option>
              </select>
            </td>
          </tr>
          <tr> 
            <td width="30%">Δημοσίευση στο site?</td>
            <td> 
              <select name="publish" class="forms">
                <option value="yes" selected>yes</option>
                <option value="no">no</option>
              </select>
            </td>
          </tr>
          <tr> 
            <td width="30%">Αριθμός προτεραιότητας</td>
            <td> 
              <input type="text" name="priority" maxlength="11" size="20" class="forms">
            </td>
          </tr>
        </table>
      </td>
    </tr>
    <tr>
      <td bgcolor="#FFFFFF" bordercolor="#FFFFFF">&nbsp;</td>
    </tr>
    <tr bgcolor="#666666"> 
      <td bgcolor="#666666" bordercolor="#666666"> 
        <table width="300" border="0" cellspacing="0" cellpadding="0" align="center">
          <tr> 
            <td> 
              <div align="center"> 
                <input type="submit" name="submit" value="Καταχώρηση" class="button">
              </div>
            </td>
            <td> 
              <div align="center"> 
                <input type="reset" name="Submit2" value="Επαναφορά" class="button">
              </div>
            </td>
          </tr>
        </table>
      </td>
    </tr>
  </table>
</form>
<?php }
?>
<table width="600" border="0" cellspacing="0" cellpadding="4" align="center">
  <tr>
    <td>
      <div align="center"> <a href="javascript:history.go(-1);"><img src="back.gif" alt="πίσω" border="0"></a> 
        &nbsp; <a href="#top"><img src="top.gif" border="0" alt="πάνω"></a> 
      </div>
    </td>
  </tr>
</table>
</body>
</html>
