{include file="header.tpl.html"}
{if $no_customer_integration == 1} {t}The current project does not have customer integration so this report can not be viewed.{/t} {else}
{t}Customer Stats Report{/t} - {$project_name}
{if $has_support_levels == 1}{t}Support Level{/t}{/if} {t}Date Range{/t} {t}Sections to Display{/t}
{if $has_support_levels == 1} {/if} {capture assign="year"}{t}year{/t}{/capture} {capture assign="month"}{t}mon{/t}{/capture} {capture assign="day"}{t}day{/t}{/capture}
{t}From{/t}{html_select_date time=$start_date prefix="" field_array="start" start_year="-2" end_year="+1" field_order="YMD" month_format="%b" year_empty=$year month_empty=$month day_empty=$day all_extra="class='default'"}
{t}To{/t} {html_select_date time=$end_date prefix="" field_array="end" start_year="-2" end_year="+1" field_order="YMD" month_format="%b" year_empty=$year month_empty=$month day_empty=$day all_extra="class='default'"}
{t}Options{/t} {t}Include expired contracts{/t}
{if $current_role >= $roles.manager} {t}Customer{/t} {/if} {if $current_role >= $roles.manager} {/if}
 
{if $data != ''} {t}Red values indicate value is higher than the aggregate one.{/t}
{t}Blue values indicate value is lower than the aggregate one.{/t}
{$date_msg} {if $display.customer_counts == 1 || $display.issue_counts == 1 || $display.email_counts == 1}
{if $display.customer_counts == 1}{/if} {if $display.issue_counts == 1}{/if} {if $display.email_counts == 1}{/if} {if $display.customer_counts == 1} {/if} {if $display.issue_counts == 1} {/if} {if $display.email_counts == 1} {/if} {section name=stats loop=$data} {cycle values=$cycle assign="row_color"} {assign var=row_span value=1} {if $display.customer_counts == 1} {/if} {if $display.issue_counts == 1} {/if} {if $display.email_counts == 1} {/if} {/section}
{$row_label}{t}Customers{/t}{t}Issues{/t}1{t}Emails by Customers{/t}2 {t}Emails by Staff{/t}3
{t}Count{/t} {t}Using CSC{/t} {t}Issues in CSC{/t}
(0/1-2/3-8/>8)
{t}Tot{/t} {t}Avg{/t} {t}Med{/t} {t}Max{/t}{t}Tot{/t} {t}Avg{/t} {t}Med{/t} {t}Tot{/t} {t}Avg{/t}. {t}Med{/t}
{$data[stats].title} {$data[stats].customer_counts.customer_count} {$data[stats].customer_counts.active} {$data[stats].customer_counts.inactive|floor}% / {$data[stats].customer_counts.activity.low|floor}% / {$data[stats].customer_counts.activity.medium|floor}% / {$data[stats].customer_counts.activity.high|floor}% {$data[stats].issue_counts.total} {$data[stats].issue_counts.avg|formatValue:$data.0.issue_counts.avg:2} {$data[stats].issue_counts.median|formatValue:$data.0.issue_counts.median:2} {$data[stats].issue_counts.max|formatValue:$data.0.issue_counts.max:2}{$data[stats].email_counts.customer.total} {$data[stats].email_counts.customer.avg|formatValue:$data.0.email_counts.customer.avg:2} {$data[stats].email_counts.customer.median|formatValue:$data.0.email_counts.customer.median:2} {$data[stats].email_counts.developer.total} {$data[stats].email_counts.developer.avg|formatValue:$data.0.email_counts.developer.avg:2} {$data[stats].email_counts.developer.median|formatValue:$data.0.email_counts.developer.median:2}
{/if} {* Display second table *} {if $display.time_stats == 1}
{if $display.time_stats == 1} {/if} {if $display.time_stats == 1} {/if} {section name=stats loop=$data} {cycle values=$cycle assign="row_color"} {assign var=row_span value=1} {if $display.time_stats == 1} {/if} {/section}
{$row_label}{t}Time To First Response{/t} {t}Time To Close{/t}4
{t}Min{/t} {t}Avg{/t} {t}Med{/t} {t}Max{/t} {t}Min{/t} {t}Avg{/t} {t}Med{/t} {t}Max{/t}
{$data[stats].title} {$data[stats].time_stats.time_to_first_response.min_formatted|formatValue:$data.0.time_stats.time_to_first_response.min:"":$data[stats].time_stats.time_to_first_response.min} {$data[stats].time_stats.time_to_first_response.avg_formatted|formatValue:$data.0.time_stats.time_to_first_response.avg:"":$data[stats].time_stats.time_to_first_response.avg} {$data[stats].time_stats.time_to_first_response.median_formatted|formatValue:$data.0.time_stats.time_to_first_response.median:"":$data[stats].time_stats.time_to_first_response.median} {$data[stats].time_stats.time_to_first_response.max_formatted|formatValue:$data.0.time_stats.time_to_first_response.max:"":$data[stats].time_stats.time_to_first_response.max} {$data[stats].time_stats.time_to_close.min_formatted|formatValue:$data.0.time_stats.time_to_close.min:"":$data[stats].time_stats.time_to_close.min} {$data[stats].time_stats.time_to_close.avg_formatted|formatValue:$data.0.time_stats.time_to_close.avg:"":$data[stats].time_stats.time_to_close.avg} {$data[stats].time_stats.time_to_close.median_formatted|formatValue:$data.0.time_stats.time_to_close.median:"":$data[stats].time_stats.time_to_close.median} {$data[stats].time_stats.time_to_close.max_formatted|formatValue:$data.0.time_stats.time_to_close.max:"":$data[stats].time_stats.time_to_close.max}

{/if} {* Display 3rd table *} {if $display.time_tracking == 1}
{assign var=col_span value=$time_tracking_categories|@count} {assign var=col_span value="`$col_span+1`"} {foreach name=time_tracking from=$time_tracking_categories key=ttc_id item=ttc_title} {/foreach} {section name=stats loop=$data} {cycle values=$cycle assign="row_color"} {foreach name=time_tracking from=$time_tracking_categories key=ttc_id item=ttc_title} {/foreach} {foreach name=time_tracking from=$time_tracking_categories key=ttc_id item=ttc_title} {/foreach} {foreach name=time_tracking from=$time_tracking_categories key=ttc_id item=ttc_title} {/foreach} {/section}
{t}Support Level{/t}{t}Time Tracking{/t}5
 {$ttc_title}
{$data[stats].title} {t}Total{/t} {$data[stats].time_tracking[$ttc_id].total_formatted|formatValue:$data.0.time_tracking[$ttc_id].total:"":$data[stats].time_tracking[$ttc_id].total}
{t}Avg{/t} {$data[stats].time_tracking[$ttc_id].avg_formatted|formatValue:$data.0.time_tracking[$ttc_id].avg:"":$data[stats].time_tracking[$ttc_id].avg}
{t}Med{/t} {$data[stats].time_tracking[$ttc_id].median_formatted|formatValue:$data.0.time_tracking[$ttc_id].median:"":$data[stats].time_tracking[$ttc_id].median}
{/if} 1. {t}Refers to the number of issues in eventum for the given support level or customer.{/t}    {t}Average and median counts do not include customers who have never opened an issue.{/t}
2. {t escape=no}Refers to the number of emails sent by customers in eventum per issue. Does not include emails sent to general support mailbox.{/t}
3. {t escape=no}Refers to the number of emails sent by developers in eventum per issue. Does not include emails sent to general support mailbox.{/t}
4. {t}Date issue was opened - Date issue was closed for all closed issues.{/t}
5. {t}All time tracking information for the given support level or customer. Issues without any time tracking data do not affect the average or median.{/t}

{* Loop through graphs, display them all *} {foreach name=graphs from=$graphs item=graph key=graph_id} {$date_msg}

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