{TEMPLATE index}
    {INCLUDE top}
    {INCLUDE brokenscript}
    {INCLUDE menu}

    {DISPLAY FILTERS}
    <table width="100%">
        <tr><td id="catlist">
            {DISPLAY CATEGORIES}
        </td></tr>
    </table>

    <table width="100%">
        <tr><td id="catpath">
        </td></tr>
    </table>
    {IF $CNCAT[page][show_items]}
    <table id="main" width="100%">
        <tr>
        {IF $CNCAT[banner][page_left]}
            <td style="padding-left: 20px;">{$CNCAT[banner][page_left]}</td>
        {ENDIF}
        <td class="left">
            <table id="catitems">
                <tr><td>
                    <table width="100%" border="0">
                        <tr>
	                      	<td class="caticon">                        	
            	            	{IF $CNCAT[page][cat][image_mime]}
		   	                        <img src="{$CNCAT[abs]}cncat_image.php?cat={$CNCAT[page][cat][id]}" alt="{cn_str($CNCAT[page][title_full])}" style="vertical-align: middle;" />
		                        {ELSE}
									<img src="{$THEMEURL}images/category-big.gif" alt="" />
	                        	{ENDIF}
	                       	</td>
                        	<td>
                        		<table width="100%" border="0">
                        		<tr>
	        	                	<td class="catpath">
							            {IF $CNCAT[page][show_cat_path]}
							                {DISPLAY CAT_PATH}
						    	        {ENDIF}
						    	    </td>
	    	                    	<td class="itemtype" rowspan="2">{DISPLAY ITEM_TYPES}</td>
						    	</tr>
						    	<tr>
						    	    <td class="cattitle">
		        	                	{$CNCAT[page][cat][title]}
						                {IF $CNCAT[page][show_rss]}<a href="{$CNCAT[abs]}cncat_rss.php?c={$CNCAT[page][cid]}"><img src="{$THEMEURL}images/rss.gif" alt="RSS" style="border:0" /></a>{ENDIF}
						                {IF $CNCAT[cat][_canedit]}
			        	                	<br>
						                    <span class="edit">
						                     	<a href="{$CNCAT[abs]}{$CNCAT[system][dir_admin]}index.php?act=cats&mode=add&id={$CNCAT[cat][id]}">{$CNCAT[lang][do_submit]}</a> | 
							                    <a href="{$CNCAT[abs]}{$CNCAT[system][dir_admin]}index.php?act=cats&mode=edit&id={$CNCAT[cat][id]}">{$CNCAT[lang][do_edit]}</a>
							                </span>
						                {ENDIF}
		        	                </td>
	    	                    </tr>
	    	                    <tr>
			                        <td class="sort" colspan="2" height="100%">
		    	                        {DISPLAY SORT}
		    	                    </td>
			                    </tr>
			                    </table>
                        	</td>
                        </tr>
                    </table>
                </td></tr>
                <tr><td class="navbar">
                {DISPLAY PAGES}
                </td></tr>
                <tr><td class="items">
                {IF $CNCAT[banner][items_top]}
                    <center>{$CNCAT[banner][items_top]}</center>
                {ENDIF}
	            {DISPLAY ITEMS}
	            {INCLUDE itemcount}
                {IF $CNCAT[banner][items_bottom]}
                    <center>{$CNCAT[banner][items_bottom]}</center>
                {ENDIF}
                </td></tr>
                <tr><td class="navbar">
                {DISPLAY PAGES}
                </td></tr>
            </table>
        </td>
        {IF $CNCAT[page][show_new_items]}
        <td class="right">
            {DISPLAY NEW_ITEMS}
            {DISPLAY NEW_ARTICLES}
        </td>
        {ENDIF}
        {IF $CNCAT[banner][page_right]}
            <td style="padding-right: 20px;">{$CNCAT[banner][page_right]}</td>
        {ENDIF}
        </tr>
    </table>
    {ENDIF}

    {INCLUDE bottom}
{/TEMPLATE}
