{capture assign="extra_title"}{t}Recent Activity{/t}{/capture} {include file="header.tpl.html" extra_title=$extra_title}
{t}Recent Activity Report{/t}
{t}Report Type{/t}: {t}Recent{/t}  {t}Date Range{/t} 
{t}Activity Type{/t}:
{t}Activity in Past{/t}:  
{t}Start{/t}: {html_select_date time=$start_date prefix="" field_array="start" start_year="-2" end_year="+1" field_order="YMD" month_format="%b" all_extra="class='default'"}
{t}End{/t}: {html_select_date time=$end_date prefix="" field_array="end" start_year="-2" end_year="+1" field_order="YMD" month_format="%b" all_extra="class='default'"}
{t}Developer{/t}:
{t}Sort Order{/t}:
{if $data|@count > 0} {if $data.phone != ''}
{if $has_customer_integration} {/if} {foreach from=$data.phone item=row} {cycle values=$cycle assign="row_color"} {if $has_customer_integration} {/if} {include file="expandable_cell/body.tpl.html" ec_id="phone" list_id=$row.phs_id colspan="8"} {foreachelse} {/foreach}
{t}Recent Phone Calls{/t}
{include file="expandable_cell/buttons.tpl.html" remote_func="getPhoneSupport" ec_id="phone"} {t}Issue ID{/t}{t}Customer{/t}{t}Date{/t} {t}Developer{/t} {t}Type{/t} {t}Line{/t} {t}Description{/t}
{include file="expandable_cell/buttons.tpl.html" ec_id="phone" list_id=$row.phs_id} {$row.phs_iss_id} {$row.customer}{$row.date} {$row.usr_full_name} {$row.phs_type} {$row.phc_title} {$row.phs_description|nl2br}
{t}No Phone Calls Found{/t}

{/if} {if $data.note != ''}
{if $has_customer_integration} {/if} {foreach from=$data.note item=row} {cycle values=$cycle assign="row_color"} {if $has_customer_integration} {/if} {include file="expandable_cell/body.tpl.html" ec_id="note" list_id=$row.not_id colspan="6"} {foreachelse} {/foreach}
{t}Recent Notes{/t}
{include file="expandable_cell/buttons.tpl.html" remote_func="getNote" ec_id="note"} {t}Issue ID{/t}{t}Customer{/t}{t}Posted Date{/t} {t}User{/t} {t}Title{/t}
{include file="expandable_cell/buttons.tpl.html" ec_id="note" list_id=$row.not_id} {$row.not_iss_id} {$row.customer}{$row.date} {$row.usr_full_name} {$row.not_title|nl2br}
{t}No Notes Found{/t}

{/if} {if $data.email != ''}
{if $has_customer_integration} {/if} {foreach from=$data.email item=row} {cycle values=$cycle assign="row_color"} {if $has_customer_integration} {/if} {include file="expandable_cell/body.tpl.html" ec_id="email" list_id=$row.composite_id colspan=7 row_color=$row_color} {foreachelse} {/foreach}
{t}Recent Emails{/t}
{include file="expandable_cell/buttons.tpl.html" ec_id="email" remote_func="getEmail"} {t}Issue ID{/t}{t}Customer{/t}{t}From{/t} {t}To{/t} {t}Date{/t} {t}Subject{/t}
{include file="expandable_cell/buttons.tpl.html" ec_id="email" list_id=$row.composite_id} {$row.sup_iss_id} {$row.customer}{$row.sup_from|escape:"html"} {if $row.sup_to == ""} {t}sent to notification list{/t} {else} {$row.sup_to|escape:"html"} {/if} {$row.date} {$row.sup_subject|nl2br}
{t}No Emails Found{/t}

{/if} {if $data.draft != ''}
{if $has_customer_integration} {/if} {foreach from=$data.draft item=row} {cycle values=$cycle assign="row_color"} {if $has_customer_integration} {/if} {include file="expandable_cell/body.tpl.html" ec_id="draft" list_id=$row.emd_id colspan=8} {foreachelse} {/foreach}
{t}Recent Drafts{/t}
{include file="expandable_cell/buttons.tpl.html" remote_func="getDraft" ec_id="draft"} {t}Issue ID{/t}{t}Customer{/t}{t}Status{/t} {t}From{/t} {t}To{/t} {t}Date{/t} {t}Subject{/t}
{include file="expandable_cell/buttons.tpl.html" ec_id="draft" list_id=$row.emd_id} {$row.emd_iss_id} {$row.customer}{$row.emd_status} {$row.from|escape:"html"} {$row.to|escape:"html"} {$row.date} {$row.emd_subject|nl2br}
{t}No Drafts Found{/t}

{/if} {if $data.time != ''}
{if $has_customer_integration} {/if} {foreach from=$data.time item=row} {cycle values=$cycle assign="row_color"} {if $has_customer_integration} {/if} {foreachelse} {/foreach}
{t}Recent Time Entries{/t}
{t}Issue ID{/t}{t}Customer{/t}{t}Date of Work{/t} {t}User{/t} {t}Time Spent{/t} {t}Category{/t} {t}Summary{/t}
{$row.ttr_iss_id} {$row.customer}{$row.date} {$row.usr_full_name} {$row.time_spent} {$row.ttc_title} {$row.ttr_summary|nl2br}
{t}No Time Entries Found{/t}

{/if} {if $data.reminder != ''}
{if $has_customer_integration} {/if} {foreach from=$data.reminder item=row} {cycle values=$cycle assign="row_color"} {if $has_customer_integration} {/if} {foreachelse} {/foreach}
{t}Recent Reminder Actions{/t}
{t}Issue ID{/t}{t}Customer{/t}{t}Date Triggered{/t} {t}Title{/t}
{$row.rmh_iss_id} {$row.customer}{$row.date} {$row.rma_title}
{t}No Reminder Entries Found{/t}

{/if} {/if}
{include file="footer.tpl.html"}