<{include file='db:smartsection_header.html'}>

<!-- If we are on the index page OR inside a category that has subcats OR (inside a category with no subcats AND $display_category_summary is set to TRUE), let's display the summary table ! //-->
<{if $indexpage || $category.subcats || ($category && $display_category_summary)}>
	
	<!-- let's begin the display of the other display type -->
	<{if $collapsable_heading == 1}>
		<div class="smartsection_collaps_title"><a href='javascript:;' onclick="toggle('toptable'); toggleIcon('toptableicon')"><img id='toptableicon' src='<{$smartsection_url}>images/icon/close12.gif' alt='' /></a>&nbsp;<{$lang_category_summary}></div>
		<div id='toptable'>
		<span class="smartsection_collaps_info""><{$lang_category_summary_info}></span>
		<!-- Content under the collapsable bar //-->
	<{/if}>
	
	<{include file='db:smartsection_categories_table.html'}>
	
	<{if $collapsable_heading == 1}>
		</div>
	<{/if}>
	<br />
<!-- End of if !$category || $category.subcats || ($category && $display_category_summary) //--><{/if}>			
<{if $items}>
	<{if $collapsable_heading == 1}>
		<div class="smartsection_collaps_title"><a href='javascript:;' onclick="toggle('bottomtable'); toggleIcon('bottomtableicon')";><img id='bottomtableicon' src='<{$smartsection_url}>images/icon/close12.gif' alt='' /></a>&nbsp;<{$lang_items_title}></div>
		<div id='bottomtable'>
		<span class="smartsection_collaps_info"><{$lang_items_info}></span>
	<{/if}>
	<div align="right"><{$category.navbar}></div>

	
		<table border="0" width="90%" cellspacing="1" cellpadding="3" align="center" class= "outer">
		  	<tr> 
	    		<td align="left" class="itemHead" width='60%'><b><{$lang_title}></b></td>
				<{if $display_date_col == 1}>
	    			<td align="center" class="itemHead" width="30%"><b><{$lang_datesub}></b></td>
	    		<{/if}>
				<{if $display_hits_col == 1}>
	    			<td align="center" class="itemHead" width="10%"><b><{$lang_hits}></b></td>
	    		<{/if}>
		  	</tr>
				<!-- Start item loop -->
  			<{foreach item=item from=$items}> 
	  			<tr valign="top"> 
		    		<td class="even" align="left"><{$item.titlelink}></b></td>
					<{if $display_date_col == 1}>
		    			<td class="odd" align="left"><div align="center" valign="middle"><{$item.datesub}></div></td>
		    		<{/if}>
		    		<{if $display_hits_col == 1}>
						<td class="odd" align="left"><div align="center"><{$item.counter}></div></td>
					<{/if}>
				</tr>
  			<{/foreach}> 
			<!-- End item loop -->
				<tr></tr>
		</table>
		<div align="right"><{$category.navbar}></div>		
		<{if $collapsable_heading == 1}>
			</div>
		<{/if}>
<!-- end of if $items --> <{/if}>
	
<{include file='db:smartsection_footer.html'}>