{include file="Report/legend.tpl"}
{include file=$item->statusesStatistics->tpl item=$item->statusesStatistics}
{if $item->list}
{foreach from = $item->columns item = column key = name}
{if $column.orderBy}
{capture assign = 'href'}{$item->sortLink}orderBy={$column.orderBy}{if $item->orderBy == $column.orderBy}+DESC{/if}{/capture}
{$column.title}
{if preg_match("/^`$column.orderBy`( DESC)?$/", $item->orderBy)}
{capture assign = 'href'}{$item->sortLink}orderBy={$column.orderBy}{if $item->orderBy == $column.orderBy}+DESC{/if}{/capture}
orderBy)}up{else}down{/if}.png" alt="" />
{/if}
{else}
{$column.title}
{/if}
|
{/foreach}
{if $item->schools}
{foreach from=$item->schools item=column key=name}
{$column.name|htmlspecialchars}
|
{/foreach}
{/if}
{foreach from = $item->list item = row name = 'row'}
{* report data *}
{foreach from = $item->columns item = column}
{include file=$item->getTemplate('cell.tpl')}
{/foreach}
{* school reports data *}
{foreach from=$item->schools item='school'}
{if $smarty.const.ADMIN_END}
{if empty($row.dueDateMonth)}
{include file='Report/Admin/force-status.tpl'|SMGetTemplate reportId=$row.id schoolId=$school.id forcedStatus=$item->forcedStatuses[$row.id][$school.id]}
{/if}
{/if}
{foreach from=$item->userReports[$row.id][$school.id] item='report'}
-
View
{if $report.rejected === 'y' && $report.rejectComment}
{/if}
{if $report.comments}{/if}
{foreachelse}
- –
{/foreach}
|
{/foreach}
{/foreach}
{else}
Sorry there are no reports yet.
{/if}