<table border="0" width="90%" cellspacing="1" cellpadding="0" align="center" class = "outer">
	<tr> 
		<td align="left" class="itemHead"><b><{$lang_category_column}></b></td>
		<td align="left" width="70px" class="itemHead"><b><{$lang_items}></b></td>
		<{if $displaylastitem == 1}>
			<td align="left" width="40%" class="itemHead"><b><{$lang_last_smartsection}></b></td>
		<{/if}>
	</tr>
	
	<!-- Start categories loop -->
	<{foreach item=category from=$categories}>
		<tr> 
			<td valign="middle" class="even" align="left">
				<{if $isAdmin == 1}>
					<a href="<{$xoops_url}>/modules/smartsection/admin/category.php?op=mod&categoryid=<{$category.categoryid}>"><img src="<{$xoops_url}>/modules/smartsection/images/icon/cat.gif" title="<{$lang_editcategory}>" alt="<{$lang_editcategory}>"/></a>&nbsp;<b><{$category.categorylink}></b>
				<{else}>
					<img src="<{$xoops_url}>/modules/smartsection/images/icon/cat.gif" alt="" />&nbsp;<b><{$category.categorylink}></b>    		
				<{/if}>
	  		    <br />
				<span class="smartsection_category_dsc"><{$category.description}></span>
				</td>
			 		<td valign="middle" class="even" align="center"><{$category.total}></td>
				<{if $displaylastitem == 1}>
					<td valign="middle" class="even" align="right"><{$category.last_title_link}></td>
				<{/if}>
			</tr>
			<{if $category.subcats}>
		  		<{foreach item=subcat from=$category.subcats}>
					<tr> 
	  					<td valign="middle" class="odd" align="left">
	  						<div style="padding-left: 10px;">
	  							<{if $isAdmin == 1}>
	 	 							<a href="<{$xoops_url}>/modules/smartsection/admin/category.php?op=mod&categoryid=<{$subcat.categoryid}>"><img src="<{$xoops_url}>/modules/smartsection/images/icon/subcat.gif" title="<{$lang_editcategory}>" alt="<{$lang_editcategory}>" alt="<{$lang_editcategory}>"/></a>&nbsp;<{$subcat.categorylink}>
								<{else}>
			  						<img src="<{$xoops_url}>/modules/smartsection/images/icon/subcat.gif" title="<{$lang_editcategory}>" alt="<{$lang_editcategory}>"/>&nbsp;<{$subcat.categorylink}>
								<{/if}>
								<{if $displaysubcatdsc == 1}>
									<span class="smartsection_category_dsc"><{$subcat.description}></span>
								<{/if}>
							</div>
						</td>
						<td valign="middle" class="odd" align="center"><{$subcat.total}></td>
						<{if $displaylastitem == 1}>
							<td valign="middle" class="odd" align="right"><{$subcat.last_title_link}></td>
						<{/if}>
					</tr>
				<{/foreach}>  		
			<{/if}>
		<{/foreach}>
	<!-- End categories loop -->
</table>
<!-- End sub categories loop -->