Location: PHPKode > projects > MeBiblio > meBiblio-0.4.8/admin/class_view_mask.inc.php
<?
	include "dblink.php";
	
	$sql = "SELECT CID, Classname FROM Class ORDER BY Classname";

      $result = mysql_query($sql) or die("Invalid query: " . mysql_error());
	
      $num = mysql_num_rows($result);

      $NumberOfPages = intval($num/20)+1;
      ?>
   <table>
   <?

      for ($i=0;$i<$num;$i++) {
        mysql_data_seek($result,$i);
        $field = mysql_fetch_row($result);
	$bgcolor = "#000000";           
                if ($i%2==0)  $bgcolor = "#222222";
    	print "<tr bgcolor=\"$bgcolor\"> <td><a href=\"index.php?action=admin/class_change_mask&CID=$field[0]\">$field[0]</a></td>
	<td>$field[1]</td>";
      }
?>
</table>
   
Return current item: MeBiblio