<?php foreach ($this->categories as $cat) { ?>

<div class="">

    <h3 class="cattitle"><img src="templates/<?php echo $this->gTemplateName; ?>/images/kb/folder.png" alt="icon" class="icon" />&nbsp;<?php echo $cat['data']['name']; ?></a></h3>
    
	<ul class="catbox">
    
	<?php foreach ($cat['files'] as $file) { ?>
		<li><img src="templates/<?php echo $this->gTemplateName; ?>/images/public/icon_article.png" alt="icon" class="icon" /> <a href="index.php?fuse=files&amp;view=Download&amp;id_file=<?php echo $file['id_file']; ?>"><?php echo $file['name']; ?></a></li>
	<?php } //end files loop ?>
    
    <!-- check for no files for category -->
    <?php if (count($cat['files'])==0) { ?>
    	<li class="none"><?php echo $this->lang("There are no files available.");?></li>
    <?php } //end if no articles ?>
    
    </ul>
    
</div>

<?php } //end category loop ?>

<!-- check for no categories -->
<?php if (count($this->categories)==0) { ?>
    <div> <?php echo $this->lang("There are no categories available."); ?> </div>
<?php } ?>