<?php
include "includes/config.php";
include "includes/session.php";
include "includes/functions.php";
$sql=" SELECT category_id,category_name,count FROM ".$tableprefix."categories ORDER BY category_name ";																
$resultcategories=mysql_query($sql) or die(mysql_error());
/*display the active template*/
?>
<style>
.txt
{
	font-family:Verdana, Arial, Helvetica, sans-serif;
	font-size:11px;
}
.caption
{
	font-family:Verdana, Arial, Helvetica, sans-serif;
	font-size:12px;
	font-weight:bold;
}
.tablebordr
{ 
	border:1px solid #000000;
}	
</style>
<table width="100%"  border="0" cellspacing="1" cellpadding="1" class="tablebordr">
  <tr>
    <td height="27" bgcolor="#99CCFF" class="caption">Category Name</td>
  </tr>
<?php
if(mysql_num_rows($resultcategories) > 0 )
{ 	

	while($row=mysql_fetch_array($resultcategories))
	{
		
?>

	  <tr bgcolor="#E7EEF7">
    <td class="txt"><ul><li><?php echo $row['category_name'];?></li></ul></td>
  </tr>
<?php 	
	} // end while 

} // end if 
?>

</table>

