<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Web management</title>
<link rel="stylesheet" href="styles.css" type="text/css">
<?php include 'codes.php';?>
</head>
<body> 
<table width="980" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td>
    
<div><img src="img/frame-list.png" width="180" height="37" alt=""></div>
<div class="frame">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td align="center"><div class="titles">
        <?php
			$sql = "SELECT * FROM lang";
			$result = mysql_query($sql);
			$nu_row = mysql_num_rows($result);
?>
        <?php echo $nu_row  ?> </div></td>
  </tr>
  <tr>
    <td><?php
			$sql = "SELECT * FROM lang ORDER BY id";
			$result = mysql_query($sql);
        	while ($myrow=mysql_fetch_array($result)) {
			$id=$myrow['id'];
			$language=$myrow['language'];
			$dir=$myrow['dir'];
			$active=$myrow['active'];
			$main=$myrow['main'];
?></td>
  </tr>
  <tr>
    <td>
    <table width="100%" border="0" cellspacing="1" cellpadding="4">
        <tr valign="top" bgcolor="#F2F2F2">
          <td width="20"><img src="img/<?php echo $dir ?>.png" width="16" height="16" alt=""></td>
          <td width="150"> <b> 
            <?php echo $language ?>
            </b> 
            
          </td>
          <td>
         <?php if ($main==1) { ?> <b>προεπιλεγμένο</b> <?php } ?>
            <?php if ($active==0) { ?> ανενεργό <?php } ?> 
          </td>
          <td width="60"> 
            <div align="center"><a href="edit-lang.php?id=<?php echo $id?>" class="link">ΑΛΛΑΓΗ</a></div>
          </td>
        </tr>
      </table>
    </td>
  </tr>
  <tr>
    <td><?php } ?></td>
  </tr>
</table>
</div>
</td>
  </tr>
</table>

<?php include 'menudown.php';?>
</body>
</html>
