<table width="100%" border="0" cellspacing="1" cellpadding="4">
        <tr valign="top" bgcolor="#F2F2F2"> 
          <td width="50"> 
            <?php echo $insert_id ?>
            </td>
          <td><?php if ($name=='') { ?>
            <?php echo $cat ?> 
            <?php }else{?>
            <b><?php echo $name ?></b>
            <?php } ?>
            <?php if ($publish=='no') { ?>
            <div style="color:#666666; font-weight:bold; padding-top:5px;">&raquo; ΔΗΜΟΣΙΕΥΣΗ <font color="#d64111">ΟΧΙ</font></div><?php } ?>
            </td>
          <td width="360"><table width="100%" border="0" cellspacing="1" cellpadding="0">
            <tr>
              <td width="160" valign="top"><?php 
			$sql2 = "SELECT * FROM photos WHERE info_id='$insert_id' ORDER BY id";
			$result2 = mysql_query($sql2);
			$nu_row2 = mysql_num_rows($result2);
?>
                <?php 
	if  ( ( $nu_row2==0)) {
	?>
                <?php } else {?>
                <img src="img/arrow.gif" alt=""> <a href="all-photos.php?infoid=<?php echo $insert_id ?>" class="links1"> PHOTOS</a> [ <?php echo $nu_row2 ?> ]
                <?php } ?></td>
              <td width="180" valign="top"><img src="img/arrow.gif" alt=""> <a href="new-photo.php?infoid=<?php echo $insert_id?>" class="links1">προσθήκη 
                photo</a></td>
            </tr>
          </table></td>
          <td width="70" align="center">
            <div style="margin-top:3px"><a href="edit-info.php?id=<?php echo $insert_id?>" class="link">ΑΛΛΑΓΗ</a></div>
          </td>
          <td width="70" align="center"> 
            
            <?php
if  (isset($_POST['submit'])) {
$sql10="DELETE FROM info WHERE insert_id='{$_REQUEST['insertid']}'";
	$result10=mysql_query($sql10);	
?>
            <meta http-equiv="refresh" content="0;URL=all-info.php?catid=<?php echo $category_id ?>">
            <?php } ?>
            <form name="forma" method="post" action="<?php echo htmlentities($_SERVER['PHP_SELF']); ?>" enctype="multipart/form-data" style="margin:0; padding:0">
              <input type="hidden" name="id" value="<?php echo $id ?>">
              <input type="hidden" name="insertid" value="<?php echo $insert_id ?>">
              <input type="hidden" name="catid" value="<?php echo $category_id ?>">
              <input type="submit" name="submit" value="ΔΙΑΓΡΑΦΗ" class="link">
            </form>
            </td>
          </tr>
        </table>
        <hr>
