Location: PHPKode > projects > Work Tracker > work-tracker-0.1/themes/default/tpl/reports/reports/per_category.tpl
<!-- Begin reports/reports/per_category.tpl -->
{if in_array("percat",$smarty.post.options)}
{subtitle colspan=4 title="Issues Per Category"}
{if is_array($category_data)}
{php}$col = 0;{/php}
{foreach from=$category_data key=category item=count}
{php}if ($col == 0) { print "<tr class=\"data\">\n"; }{/php}
<td width="45%" class="label">{$category}</td>
<td width="5%" align="center">{$count}</td>
{php}$col++; if ($col == 2) { print "</tr>\n"; $col = 0; }{/php}
{/foreach}
{php}if ($col == 1) { print "<td class=\"label\" colspan=\"2\">&nbsp;</td>\n</tr>\n"; }{/php}
{else}
<tr class="data" align="center"><td colspan="4">No Data Available.</td></tr>
{/if}
{/if}
<!-- End reports/reports/per_category.tpl -->

Return current item: Work Tracker