<div id='ticketsmobile'>
    <form name="tickets" id="tickets" method="post" action="">
       <table width="100%" class="mobile-table" cellpadding="0" cellspacing="0" border="1">
            <tr>
				<td class="mobile-header" colspan="7">[l]Open Support Tickets[/l]</td>
			</tr>
    		<tr class="mobile-theaders">
			    <!-- BEGIN DYNAMIC BLOCK: checkboxColumnHeader -->	
    		    <td>&nbsp;</td>
    		    <!-- END DYNAMIC BLOCK: checkboxColumnHeader -->
                <td align="center">[l]ID[/l]</td>
                <td align="center">[l]Subject[/l]</td>
                <td align="center">[l]Time Elapsed[/l]</td>
                <td align="center">[l]Status[/l]</td>
            </tr>
            <!-- create rows -->
            <!-- BEGIN DYNAMIC BLOCK: ticket_row -->
			<tr class='{ROWCLASS}' style='{ROWSTYLE}'>
                <!-- BEGIN DYNAMIC BLOCK: checkboxColumnRows -->
                <td style="width:1%;"><input type="checkbox" style="position:relative;top:1px;" name="items[]" value="{TICKETID}" ></td>				
                <!-- END DYNAMIC BLOCK: checkboxColumnRows -->
                <td align="left" class="{PRIORITYCLASS}">&nbsp;{POPUP_TICKETID}&nbsp;</td>
                <td align="left">{POPUP_TICKETSUBJECT}</td>
                <td style="width:1%;" align="center">{TIMEELAPSED}</td>
                <td align="center">{STATUS}</td>
			</tr>			
			<!-- END DYNAMIC BLOCK: ticket_row -->	
			<!-- end rows -->
			<!-- BEGIN DYNAMIC BLOCK: ticket_record_footer -->
			<tr class="actionfooter">
			     <td colspan="8" valign="middle" align="center" nowrap="nowrap">
			     <!-- BEGIN DYNAMIC BLOCK: deleteTicketBtn -->
				    <input 
                       type="submit" 
                       id="way" 
                       class="button_medium" 
                       value="[lh]delete[/lh]" 
                       name="way" 
                       onClick="select_way(1);">&nbsp;&nbsp;
                 <!-- END DYNAMIC BLOCK: deleteTicketBtn -->
                 <!-- BEGIN DYNAMIC BLOCK: closeTicketBtn -->
                 <input 
                       type="submit" 
                       class="button_medium" 
                       id="way" 
                       value="[lh]close[/lh]" 
                       name="way" 
                       onClick="select_way(0);">
                <!-- END DYNAMIC BLOCK: closeTicketBtn -->
                </td>
			</tr>
			<!-- END DYNAMIC BLOCK: ticket_record_footer -->
       </table> 
       <!-- BEGIN DYNAMIC BLOCK: ticket_norecord_footer -->
	   <table style="width:100%;" cellpadding='0' cellspacing='0' border='0'>
		  <tr>
			 <td align='center'>
				<br/><span style="color:#808080;">[l]There are currently no items matching this query[/l]</span>
			</td>
		</tr>
	   </table>	
	<!-- END DYNAMIC BLOCK: ticket_norecord_footer -->    
    </form>
    <script language="JavaScript" type="text/JavaScript">
                function select_way(road)
                {
                    if (road==1) {
                        document.forms.tickets.action = "index.php?fuse=support&action=DeleteTickets_Mobile";
                    } else {
                        document.forms.tickets.action = "index.php?fuse=support&action=CloseTickets_Mobile";
                    }
                }
    </script>
</div>
