{assign var=meth value=':'|explode:$VAR._page} {$method->exe($meth.0,$meth.1)} {if ($method->result == false)} {$block->display('core:method_error')} {else} {include file='file:../core/view_pre.tpl'} {if $form_validation} {$block->display('core:alert_fields')} {/if}
{foreach from=$record.results key=key item=results} {if $results.show} {/if} {/foreach}
  {t}Impressions{/t} {t}Clicks{/t} {t}Cost{/t} {t}Conversion{/t}
{t 1=$key}Advertisement %1{/t} {$results.served|number_format}{$results.impressions_percentage} {$results.clicked|number_format}{$results.clicks_percentage} {$list->format_currency_num($results.cost,"")} {$results.ctr}
  {$record.impressions_total|number_format} {$record.clicks_total|number_format}{$record.clicks_percentage3} {$list->format_currency_num($record.budget,"")} {$record.ctr_avg}
 
{t}Invoices Referred{/t} {$record.invoices_referred} {t}Accounts Referred{/t} {$record.accounts_referred}
{t}Revenue Generated{/t} {$list->format_currency_num($record.invoices_revenue,'')} {t}Avg. CPI (Cost Per Impression){/t} {$list->format_currency_num($record.cpi_avg,'')}
{t}Average Cost Per Conversion{/t} {$list->format_currency_num($record.conversion_cost,'')} {t}Avg CPC (Cost Per Click){/t} {$list->format_currency_num($record.cpc_avg,'')}
{t}Average Sale Amount{/t} {$list->format_currency_num($record.invoice_avg,'')} {t}Impression to Buy Ratio{/t} {$record.impr_to_buy}
{t}Return on Investment (ROI){/t} {$record.roi} {t}Click to Buy Ratio{/t} {$record.click_to_buy}

{counter start=0 skip=1 assign=counter} {foreach from=$record.results key=key item=results} {/foreach}
{osb f=tt}
{translate module=campaign}field_date_orig{/translate} {$list->date_time($record.date_orig)}
{translate module=campaign}field_date_last{/translate} {$list->date_time($record.date_last)}
{translate module=campaign}field_date_start{/translate} {$list->calender_view('campaign_date_start',$record.date_start,'form_field')}
{translate module=campaign}field_date_expire{/translate} {$list->calender_view('campaign_date_expire',$record.date_expire,'form_field')}
{translate module=campaign}field_status{/translate} {$list->bool('campaign_status',$record.status,'form_menu')}
{translate module=campaign}field_name{/translate}
{translate module=campaign}field_description{/translate}
{translate module=campaign}field_budget{/translate}
{translate module=campaign}field_url{/translate}
{include file='file:../core/view_tr_submit_delete.tpl'}
{if $results.file != ''} {counter} {/if}
{t 1=$key}Advertisement %1{/t} {if $key == 1}{/if}
{capture name='code'}{/capture} {if $key > 1}
{t}Delete this file from rotation{/t} {/if}
{include file='file:../core/view_tr_submit_delete.tpl'}
 
{t}Insert the random code below into your html file(s) where you would like the above in your html instead.{/t}
 
{capture name='code'}{literal}{/capture}
{include file='file:../core/view_post.tpl'}
{/if}