<div class="wrapper purple-content">
    	<div class="container">
        	<div class="content-heading white whmcsportal">
    			<h2>{$pagetitle}</h2>
                <small>{$LANG.headertext}</small>
            </div>
            <div class="search-wiki">
            <form method="post" action="knowledgebase.php?action=search">
   				<input type="text" name="search"/> <input type="submit" value="{$LANG.knowledgebasesearch}" />
			</form>	
            </div>
		</div>
    </div>
     <div class="wrapper purple optionbar">
    	<div class="container">
                 <ul><li><a href="submitticket.php"><i class="fa fa-ticket"></i>{$LANG.supportticketssubmitticket}</a><span></span></li><li class="active"><a href="supporttickets.php"><i class="fa fa-ticket"></i>{$LANG.supportticketspagetitle}</a><span></span></li></ul>
        </div>
    </div>
<div class="wrapper whmcssection" id="maincontent">
	<div class="container">
			
            <div class="whmcssection section-knowledgebase" id="knowledgebase">
   
<p>{$LANG.supportticketssystemdescription}</p>
<br/>
<table width="100%" border="0" cellpadding="10" cellspacing="0">
  <tr>
    <td>{$numtickets} {$LANG.recordsfound},  {$LANG.page} {$pagenumber} {$LANG.pageof} {$totalpages}</td>
    <td align="right">{if $prevpage}<a href="supporttickets.php?{if $searchterm}searchterm={$searchterm}&token={$token}&{/if}page={$prevpage}">{/if}{$LANG.previouspage}{if $prevpage}</a>{/if} &nbsp; {if $nextpage}<a href="supporttickets.php?{if $searchterm}searchterm={$searchterm}&token={$token}&{/if}page={$nextpage}">{/if}{$LANG.nextpage}{if $nextpage}</a>{/if}</td>
  </tr>
</table>
<table class="data table" width="100%" border="0" align="center" cellpadding="10" cellspacing="0" style="margin:30px 0;">
<thead>
  <tr>
    <th>{$LANG.supportticketsdate}</th>
    <th>{$LANG.supportticketsdepartment}</th>
    <th>{$LANG.supportticketssubject}</th>
    <th>{$LANG.supportticketsstatus}</th>
    <th>{$LANG.supportticketsticketurgency}</th>
  </tr>
  </thead>
  {foreach key=num item=ticket from=$tickets}
  <tr>
    <td>{$ticket.date}</td>
    <td>{$ticket.department}</td>
    <td><DIV ALIGN="left"><i class="fa fa-ticket"></i> <a href="viewticket.php?tid={$ticket.tid}&amp;c={$ticket.c}">{if $ticket.unread}<strong>{/if}{$ticket.subject}{if $ticket.unread}</strong>{/if}</a></DIV></td>
    <td>{$ticket.status}</td>
    <td width=80>{$ticket.urgency}</td>
  </tr>
  {foreachelse}
  <tr>
    <td colspan="5">{$LANG.norecordsfound}</td>
  </tr>
  {/foreach}
</table>
<br />
<table width="100%" border="0" cellpadding="10" cellspacing="0">
  <tr>
    <td>{$LANG.show}: <a href="supporttickets.php?{if $searchterm}searchterm={$searchterm}&token={$token}&{/if}itemlimit=10">10</a> <a href="supporttickets.php?{if $searchterm}searchterm={$searchterm}&token={$token}&{/if}itemlimit=25">25</a> <a href="supporttickets.php?{if $searchterm}searchterm={$searchterm}&token={$token}&{/if}itemlimit=50">50</a> <a href="supporttickets.php?{if $searchterm}searchterm={$searchterm}&token={$token}&{/if}itemlimit=100">100</a> <a href="supporttickets.php?{if $searchterm}searchterm={$searchterm}&token={$token}&{/if}itemlimit=all">{$LANG.all}</a></td>
    <td align="right">{if $prevpage}<a href="supporttickets.php?{if $searchterm}searchterm={$searchterm}&token={$token}&{/if}page={$prevpage}">{/if}{$LANG.previouspage}{if $prevpage}</a>{/if} &nbsp; {if $nextpage}<a href="supporttickets.php?{if $searchterm}searchterm={$searchterm}&token={$token}&{/if}page={$nextpage}">{/if}{$LANG.nextpage}{if $nextpage}</a>{/if}</td>
  </tr>
</table><br />
</div>
</div>
</div>