{**} {if $formError && $formError.id > 0 && $formError.message}
{$formError.message|escape}
{/if}
{if $showAdDirect}{/if} {if !$affiliates|@count} {else} {cycle name=bgcolor values="#FFFFFF,#F6F6F6" assign=bgColor reset=1} {foreach key=key item=affiliate from=$from} {cycle name=bgcolor assign=bgColor} {* Icon & name *} {* ID *} {if $showAdDirect} {* Ad direct *} {/if} {* Button - Create *} {* Button - Zones *} {* Button - Channels *} {* Button - Delete *} {if $affiliate.zones && $affiliate.expand} {assign var='zones' value=$affiliate.zones} {foreach key='zKey' item='zone' from=$zones} {* Divider *} {* Icon & name *} {* ID *} {if $showAdDirect} {* TODO: Insert adv. signup here *} {/if} {* Button 1 *} {* Button 3 *} {* Button 2 *} {* Button 4 *} {/foreach} {/if} {/foreach} {/if} {if $loosezones} {/if}
  {oa_title_sort str=Name item=name order=down default=1 url=affiliate-index.php} {oa_title_sort str=ID item=id order=down url=affiliate-index.php} {t str=AdvertiserSignup}     
  {t str=NoAffiliates}
{if $affiliate.zones} {if $affiliate.expand}    {else}    {/if} {else}    {/if}   {* set low priority campaign warning if any of this affiliate's zones *} {* are without low-priority ads *} {assign var='zone_overview_icon' value='icon-zone.gif'} {assign var='zone_overview_warning_start' value=''} {assign var='zone_overview_warning_e' value=''} {foreach key=key item=aff_zone from=$affiliate.zones} {if $aff_zone.lpc_flag} {assign var='zone_overview_icon' value='icon-zone-w.gif'} {assign var='zone_overview_warning_start' value=''} {assign var='zone_overview_warning_end' value=''} {/if} {/foreach} {$affiliate.name} {$affiliate.affiliateid} {$affiliate.adv_signup|default:' '} {t str=AddNewZone} {t str=AddNewZone}     {t str=Zones}{$zone_overview_warning_end} {$zone_overview_warning_start}{t str=Zones}   {if !$affiliate.channels} {t str=Channels}  {else} {t str=Channels}  {/if} {t str=Channels}   {t str=Delete} {t str=Delete}    
         {if $zone.num_ads} {if $zone.delivery == $phpAds_ZoneBanner} {* set low priority campaign warning if zone has no low-priority ads *} {assign var='zone_overview_icon' value='icon-zone.gif'} {assign var='zone_overview_warning_start' value=''} {assign var='zone_overview_warning_end' value=''} {if $zone.lpc_flag} {assign var='zone_overview_icon' value='icon-zone-w.gif'} {assign var='zone_overview_warning_start' value=''} {assign var='zone_overview_warning_end' value=''} {/if} {$zone_overview_warning_start}{$zone_overview_warning_end}  {elseif $zone.delivery == $phpAds_ZoneInterstitial}   {elseif $zone.delivery == $phpAds_ZonePopup}   {elseif $zone.delivery == $phpAds_ZoneText}   {/if} {else} {if $zone.delivery == $phpAds_ZoneBanner}   {elseif $zone.delivery == $phpAds_ZoneInterstitial}   {elseif $zone.delivery == $phpAds_ZonePopup}   {elseif $zone.delivery == $phpAds_ZoneText}   {/if} {/if} {$zone.zonename} {$zone.zoneid}      {t str=IncludedBanners} {t str=IncludedBanners}   {t str=Delete} {t str=Delete}    
     {t str=ZonesWithoutAffiliate}  -  {t str=MoveToNewAffiliate} {t str=MoveToNewAffiliate}  
 {t str=ExpandAll}   |    {t str=CollapseAll}