<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">
<table width="600" border="1" cellspacing="0" cellpadding="0" align="center" class="webadmintext" bordercolor="#999999" bgcolor="#FFFFFF">
  <tr> 
    <td bgcolor="#666666" bordercolor="#666666"> 
      <div align="center" class="white">ΚΑΤΑΧΩΡΗΣΕΙΣ</div>
    </td>
  </tr>
  <tr> 
    <td bgcolor="#FFFFFF" bordercolor="#FFFFFF"> 
      <table width="100%" border="0" cellspacing="1" cellpadding="2" class="webadmintext" bgcolor="#FFFFFF">
        <tr> 
          <td valign="top">ΕΝΟΤΗΤΕΣ</td>
        </tr>
      </table>
    </td>
  </tr>
  <tr> 
    <td bordercolor="#FFFFFF" bgcolor="#FFFFFF"> 
      <?php 
			include 'connect.php';
			$sql = "SELECT * FROM infocategories ORDER BY priority";
			$result = mysql_query($sql);
	while ($myrow=mysql_fetch_array($result)) {
			$id=$myrow['id'];
			$category=$myrow['category'];
			$priority=$myrow['priority'];
?>
      <table width="100%" border="0" cellspacing="1" cellpadding="2" class="webadmintext" bgcolor="#FFFFFF">
        <tr valign="top" bgcolor="#F2F2F2"> 
          <td> 
            <?php 
             $nu_row = '0';
              $zero='0';
			include 'connect.php';
						$sql5 = "SELECT * FROM  info WHERE category_id=$id";
			$result5= mysql_query($sql5);
			$nu_row = mysql_num_rows($result5);
?>
            <?php 
	if  ( ( $nu_row==$zero)) {
	?>
            <?php echo $category ?>
            <?php } else {?>
            <a href="all-info.php?catid=<?php echo $id?>&cat=<?php echo $category?>" class="webadminlinks"> 
            <?php echo $category ?></a>
             <b>  
            [<?php echo $nu_row  ?>]
             </b> 
            <?php } ?>
          </td>
        </tr>
      </table>
      <?php			
	}
?>
    </td>
  </tr>
</table>
<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>
