<?
    global $vis_language;
    //$operations=array(0=>$vis_language['MSGNEWTKTCRT'], 1=>$vis_language['MSGTKTRPLD'], 2=>$vis_language['MSGSTSUPD'], 3=>$vis_language['MSGPRIOUPD'], 4=>$vis_language['MSGDEPTCHNG'], 5=>$vis_language['MSGTKTTYPCHG'], 6=>$vis_language['MSGFLGCHG'], 7=>$vis_language['MSGTKTASSIG'], 8=>$vis_language['MSGTKTTRSH'], 9=>$vis_language['MSGTKTMRGD'], 10=>$vis_language['MSGTKTMRGD'], 11=>$vis_language['MSGTKTFRWD'], 12=>$vis_language['MSGTKTDELETED'], 13=>$vis_language['MSGSLACHG'], 14=>$vis_language['MSGSPAMMRK'], 15=>$vis_language['MSGUNSPAM']);
	$operations=array(0=>$vis_language['MSGNEWTKTCRT'],1=>$vis_language['MSGTKTRPLD'],2=>$vis_language['MSGSTSUPD'],3=>$vis_language['MSGPRIOUPD'],4=>$vis_language['MSGDEPTCHNG'],5=>$vis_language['MSGTKTTYPCHG'],6=>$vis_language['MSGFLGCHG'],7=>$vis_language['MSGTKTASSIG'],8=>$vis_language['MSGTKTTRSH'],9=>$vis_language['MSGTKTMRGD'],10=>$vis_language['MSGTKTMRGD'],11=>$vis_language['MSGTKTFRWD'],12=>$vis_language['MSGTKTDELETED'],13=>$vis_language['MSGSLACHG'],14=>$vis_language['MSGSPAMMRK'],15=>$vis_language['MSGUNSPAM'],16=>$vis_language['MSGTASKLINKED'],17=>$vis_language['TXTDETACHEDATTACHEDTASK'],18=>$vis_language['MSGCILINKED'],19=>$vis_language['TXTDETACHCI'],20=>$vis_language['MSGPROBLEMLINKED'],22=>$vis_language['MSGCHANGESLINKED'],23=>$vis_language['TXTDETACHEDATTACHEDCHANGE'],24=>$vis_language['MSGTICKETLINKED'],25=>$vis_language['MSGTICKETPOSTDELETE'],26=>$vis_language['MSGTICKETSPLIT'],29=>$vis_language['TXTADDLABEL'],30=>$vis_language['TXTPINNED'],31=>$vis_language['TXTREMOVEDLABEL'],33=>$vis_language['MSGTICKETNOTEADDED'],34=>$vis_language['MSGTICKETNOTEDELETED'],35=>$vis_language['MSGTICKETCOMMENTADDED'],36=>$vis_language['MSGTICKETCOMMENTDELETED'],42=>$vis_language['MSGADDEDNEWTAG'],43=>$vis_language['MSGTICKHASHLINK'],44=>$vis_language['MSGNEWSCHEDULETKTCRT'], 45=>$vis_language['MSGTICKETLEVELCHANGED'], 46=>$vis_language['MSGTICKETCATEGORYCHANGED'], 47=>$vis_language['MSGTICKETSUBCATEGORYCHANGED'], 48=>$vis_language['MSGTICKETITEMCHANGED'], 49=>$vis_language['MSGITILLOCATIONCHANGED'],53=>$vis_language['TXTSENDTICKETAPPROVAL'],54=>$vis_language['TXTCHANGETICKETAPPROVALSTATUS']);
?>
<table cellpadding="0" cellspacing="0" width="90%" class="vis_quickview_widget_div">
    <tr><td><table cellpadding="0" cellspacing="3" width="100%" class="vis_quickview_numbers_table"><tr>
        <td align="center" width="20%"><? echo $vis_language['TXTNEW']; ?><a href="#" onclick="$('#vis_workpanel_div').visExecution('load_module','<? echo $vis_language['TXTNEWTICKET']; ?>',{'vis_module':'ticket','vis_operation':'filter_ticket', 'vis_filter_id':2});"><div class="vis_qv_big_font"><? echo $quick_view['new']; ?></div></a></td>
        <td align="center" width="20%"><? echo $vis_language['TXTOVERDUE']; ?><a href="#" onclick="$('#vis_workpanel_div').visExecution('load_module','<? echo $vis_language['TXTOVERDUETICKET']; ?>',{'vis_module':'ticket','vis_operation':'filter_ticket', 'vis_filter_id':3});"><div class="vis_qv_big_font"><? echo $quick_view['overdue']; ?></div></a></td>
        <td align="center" width="20%" class="vis_last_td"><? echo $vis_language['TXTASSIGNED']; ?><a href="#" onclick="$('#vis_workpanel_div').visExecution('load_module','<? echo $vis_language['TXTASSIGNEDTICKETS']; ?>',{'vis_module':'ticket','vis_operation':'filter_ticket', 'vis_filter_id':4});"><div class="vis_qv_big_font"><? echo $quick_view['assigned']; ?></div></a></td>
        <!--<td align="center" width="20%" class="vis_last_td">Important<a href="#" onclick="$('#vis_workpanel_div').visExecution('load_module','Assigned Tickets',{'vis_module':'ticket','vis_operation':'filter_ticket', 'vis_filter_id':4});"><div class="vis_qv_big_font"><? echo $quick_view['assigned']; ?></div></a></td>-->
    </tr></table></td></tr>
</table>
<table cellpadding="0" cellspacing="0" width="90%" class="vis_quickview_widget_div"><tr><td align="right" class="vis_sub_title_gray"><span class=""><? echo $vis_language['TXTRECENTACTIVITIES']; ?></span></td></tr><tr><td><div class="vis_quickview_widget_panel"><?
    if($ticket_activities!=-1) for($i=0;$i<count($ticket_activities);$i++) { ?>
        <table cellpadding="3" cellspacing="3" width="100%"><tr><td><div><span class="vis_pin_title"><a href="#/ticket/ticket_details/<? echo $ticket_activities[$i]['ticket_hash']; ?>/<? echo $ticket_activities[$i]['ticket_id']; ?>"><? echo $ticket_activities[$i]['ticket_hash']; ?></a></span>: <span><? echo $ticket_activities[$i]['subject']; ?></span></div><div class="vis_pin_value"><? echo format_datetime($ticket_activities[$i]['entry_date']).' --  '.$operations[$ticket_activities[$i]['operation_id']]; ?></div></td></tr></table> <?
    }
?></div></td></tr></table>