{extends file="layout.html"} {block name=title}LMS: {$layout.pagetitle|striphtml}{/block} {block name=module_content}

{$layout.pagetitle}

{icon name="helpdesk"} {trans("List of Requests")}
{if ConfigHelper::checkPrivilege('helpdesk_advanced_operations')} {/if}
{icon name="timetable"} {trans("Period")} {date_period_preset from='[form="ticketlist"][name="datefrom"]' to='[form="ticketlist"][name="dateto"]' periods="previous-year,previous-month,current-year,current-month,next-month,next-year"}
{icon name="home"} {trans("Address")} {trans("City")} {trans("Postcode")}
{icon name="queue"} {trans("Queue")} {icon name="customer"} {trans("Customer")} {customerlist form="ticketlist" customers=$customers selectname="cust" inputname="customer" version=2 firstoption="— all customers —" selecttip="You can select customer to limit results" inputtip="Enter customer ID or leave empty for all customers"} {icon name="subject"} {trans("Subject")}
{icon name="status"} {trans("Status")} {icon name="uptime"} {trans("Uptime")}
{icon name="delete"} {trans("Removed")}
{icon name="helpdesk"} {trans("Categories")}
{button onclick="document.ticketlist.submit()" icon="print" label="Print" form="ticketlist"}  
{icon name="helpdesk"} {trans("Requests Stats")}
{if ConfigHelper::checkPrivilege('helpdesk_advanced_operations')} {/if}
{icon name="timetable"} {trans("Period")} {date_period_preset from='[form="stats"][name="datefrom"]' to='[form="stats"][name="dateto"]' periods="previous-year,previous-month,current-year,current-month,next-month,next-year"}
{icon name="queue"} {trans("Queue")} {icon name="customer"} {t a="" b=""}Customers requesting more than $a times in last $b days{/t}
{icon name="delete"} {trans("Removed")}
{icon name="helpdesk"} {trans("Categories")}
{button onclick="document.stats.submit()" icon="print" label="Print"}
{/block}