<div id='ticketssnapshot'>
  <form name='tickets' id='tickets' method='post' action='index.php'>
    <table style="width:100%;" cellpadding='0' border='0' cellspacing='0'>
		<tr>
			<td class='snapshot-header-left'></td>
			<td class='snapshot-header'><span class='snapshot-header-text'>{LANGUAGE_SNAPSHOTHEADER}:</span></td>
			<td class='snapshot-header' align="right">
				<!-- BEGIN DYNAMIC BLOCK: show_ticket_filter -->
				<span class='snapshot-header-text-small'>[l]Ticket Filter[/l] : </span>
				<select id='ticketfilter' onChange="FilterTickets({FUSE_TICKETS},{ACTIONFILTERTICKETS},this, '{DIVID}');">
					<option value='0' {OPTIONALLTICKETSSELECTED}>[l]View All Tickets[/l]</option>
					<option value='1' {OPTIONMYTICKETSSELECTED}>[l]My Tickets[/l]</option>
                    <!-- BEGIN DYNAMIC BLOCK: show_ticket_filter_viewUnassignedTickets -->
					<option value='2' {OPTIONUNASSIGNEDTICKETSSELECTED}>[l]Unassigned Tickets[/l]&nbsp;&nbsp;&nbsp;</option>
                    <!-- END DYNAMIC BLOCK: show_ticket_filter_viewUnassignedTickets -->
					<option value='-1'>-----------------</option>					
					<option value='3' {OPTIONACTIVECUSTOMERSELECTED}>[l]For Active Customer[/l]</option>										
				</select>
				<!-- END DYNAMIC BLOCK: show_ticket_filter -->
			</td>
			<td class='snapshot-header-right'></td>
		</tr>
	</table>  
    <table style="width:100%;" class='sort-table' id='{CCTABLEID}' border='0' cellpadding='0' cellspacing='0'>
		<col style='text-align: right' />
        <col />
        <col />
        <col />
        <col />
        <col />
        <thead>
            <tr>
                <!-- BEGIN DYNAMIC BLOCK: checkboxColumnHeader -->
				<td style="width:1%;"></td>
                <!-- END DYNAMIC BLOCK: checkboxColumnHeader -->
                <td style="width:55px;" align="center">[l]Number[/l]</td>
                <td align="left">[l]Subject[/l]</td>
                <td style="width:85px;" align="left">[l]Assigned To[/l]</td>
                <td style="width:80px;" align="left">[l]Ticket Type[/l]</td>
                <td style="width:90px;" align="left">[l]Time Elapsed[/l]</td>
                <td style="width:100px;" align="left">[l]Status[/l]</td>
                <td style="width:55px;" align="left">[l]Priority[/l]</td>
            </tr>
        </thead>                
        <tbody>
            <!-- 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="troubleticketid" value='{TICKETID}'  onClick='TroubleTicketItemCheck();' /></td>				
                <!-- END DYNAMIC BLOCK: checkboxColumnRows -->
				<td align=center>&nbsp;&nbsp;{POPUP_TICKETID}</td>
				<td>{POPUP_TICKETSUBJECT}</td>
				<td align='left' nowrap='nowrap' id='assignfield{TICKETID}'>{ASSIGNEDTONAME}</td>
				<td align='left' nowrap>{TICKETTYPE}</td>
				<td align='left' nowrap>{TIMEELAPSED}</td>
				<td align='left' nowrap>{STATUS}</td>
				<td align='center' class='{PRIORITYCLASS}'>{PRIORITY}</td>
			</tr>			
			<!-- END DYNAMIC BLOCK: ticket_row -->	
			<!-- end rows -->
        </tbody>
    </table>

	<!-- BEGIN DYNAMIC BLOCK: ticket_record_footer -->
    <br>
    <table style="width:100%;" cellpadding='0' cellspacing='0' border='0'>
                <tr>
                    <td style="width:150px;" valign="middle" align="left" nowrap="nowrap">
                        <input name='allbox'id='allbox' value='0' type='checkbox' onClick="toggleAllTickets();" style='position:relative; left:3px; top:3px'><b>&nbsp;&nbsp;&nbsp;[l]Toggle All[/l]</b><br><br>
                    </td>
                </tr>
		<tr class="actionfooter">
			<td style="width:150px;" valign="middle" align="left" nowrap="nowrap">
				<input type="button" class="button_medium" id="deleteticket" name="deleteticket" 
					   value='[l]delete[/l]' style="filter:alpha(opacity=50);-moz-opacity:0.4;" 
					   disabled="true" onClick='DeleteTickets({FUSE_TICKETS},{ACTION_DELETETROUBLETICKETS},"{MSG_CONFIRMDELETE}", "{DIVID}");' />
				<input type="button" class="button_medium" id="closeticket" name="closeticket" 
				       value='[l]close[/l]' style="filter:alpha(opacity=50);-moz-opacity:0.4;" 
				       disabled="true" onClick='CloseTickets({FUSE_TICKETS},{ACTION_CLOSETICKETS},"{MSG_CONFIRMCLOSE}", "{DIVID}");' />
			</td>
			<td style="width:100%;">&nbsp;</td>
			<td align="right" nowrap="nowrap">
				<!-- BEGIN DYNAMIC BLOCK: show_assign_admin -->
				[l]Assign To[/l] : 
				<select id='assignadminid' onChange='AssignTicket({FUSE_TICKETS},{ACTION_ASSIGNTICKET},"{MSG_SELECTTICKET}", "{DIVID}")' >
				<option selected>[l]select admin[/l]...</option>
				<!-- BEGIN DYNAMIC BLOCK: assign_admin -->
				<option value='{ASSIGNTICKETADMINID}'>{ADMIN_FULLNAME}</option>
				<!-- END DYNAMIC BLOCK: assign_admin -->
				</select>
				&nbsp;
				<!-- END DYNAMIC BLOCK: show_assign_admin -->
			</td>
		</tr>
    </table>   
	<!-- END DYNAMIC BLOCK: ticket_record_footer -->

	<!-- 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 type='text/javascript'>  
    var timeElapsedItems = new Array();
    var timeElapsedValues = new Array();
    <!-- BEGIN DYNAMIC BLOCK: timeElapsedItems -->
    timeElapsedItems.push('{TIMEELAPSED_ITEM}');
    timeElapsedValues.push('{TIMEELAPSED_VALUES}');
    <!-- END DYNAMIC BLOCK: timeElapsedItems -->

	{JAVASCRIPTFORDYNAMICMENU_CC}
	try{
		$('{SELECTEDSNAPSHOTID}').innerHTML = "{SELECTEDSNAPSHOTCOUNT}";	  
		activeSnapShotDiv = '{SELECTEDSNAPSHOTID}';	
	}catch(e){
	
	}
  </script>
</div>
