{if $period_type == "day"}{$lang.banners.day};{elseif $period_type == "week"}{$lang.banners.week};{$lang.banners.month};{$lang.banners.year};{elseif $period_type == "month"}{$lang.banners.month};{$lang.banners.year};{elseif $period_type == "year"}{$lang.banners.year};{/if}{$lang.banners.views_cnt}{if $type == "image"}{$lang.banners.hits_cnt};{$lang.banners.ctr}{/if};{$lang.banners.hits_cnt};

{foreach from=$statistics item=stat}{if $period_type == "day"}{$stat.date_format};{elseif $period_type == "week"}{$stat.week};{$month_name[$stat.month]};{$stat.year};{elseif $period_type == "month"}{$month_name[$stat.month]};{$stat.year};{elseif $period_type == "year"}{$stat.year};{/if}{$stat.views};{if $type == "image"}{$stat.hits};{$stat.ctr};{/if}{$stat.clicks};

{/foreach}
