<!--// $Id$ //-->
{box title="Request history"}
<table style="width: 100%;" cellpadding="3" class="light">
	<tr class="darkest">
		<td width="1%"></td>
		<td width="1%">{trans("Number:")}</td>
		<td width="1%">{trans("Date:")}</td>
		<td width="1%">{trans("Queue:")}</td>
		<td width="94%">{trans("Subject:")}</td>
		<td width="1%" class="text-right nobr">{trans("Last modified:")}</td>
		<td width="1%">{trans("Status:")}</td>
	</tr>
	{section name=helpdesklist loop=$helpdesklist start=$limit}
	<tr class="dark{if $helpdesklist[helpdesklist].state == $smarty.const.RT_RESOLVED} blend{else}{if $helpdesklist[helpdesklist].state == $smarty.const.RT_NEW} red{/if}{/if}" {userpaneltip text="Click icon on the left to see request details"}>
		<td width="1%">
			<a href="?m=helpdesk&amp;op=view&amp;id={$helpdesklist[helpdesklist].id}">{img src="ticket.gif" alt="Details"}</a>
		</td>
		<td width="1%" class="bold">{$helpdesklist[helpdesklist].id|string_format:"%06d"}</td>
		<td width="1%" class="nobr">{$helpdesklist[helpdesklist].createtime|date_format:"Y-m-d H:i"}</td>
		<td width="1%" class="bold nobr">{$helpdesklist[helpdesklist].queuename}</td>
		<td width="94%" class="bold">{$helpdesklist[helpdesklist].subject|escape}</td>
		<td width="1%" class="nobr">{$helpdesklist[helpdesklist].lastmod|date_format:"Y-m-d H:i"}</td>
    		<td width="1%" class="bold">
			{if $helpdesklist[helpdesklist].state == 0}{trans("new")}
			{elseif $helpdesklist[helpdesklist].state == 1}{trans("open")}
			{elseif $helpdesklist[helpdesklist].state == 2}{trans("resolved")}
			{else}{trans("dead")}
			{/if}
		</td>
	{sectionelse}
	<tr>
		<td align="center" width="100%" colspan="7">
			<p>&nbsp;</p>
			<p><strong>{trans("No such requests in database.")}</strong></p>
			<p>&nbsp;</p>
		</td>
	</tr>
	{/section}
</table>
{/box}