{if $ad_data.ad_name !=''}

## Edit Advertisement here

all fields are required

Advertisement name e.g Home Banner
Advertisement placement
Add More Placements
Advertisement code {$ad_data.ad_code}
Status
{else} {if $edit_ad != "show"}

## Add Advertisement

all fields are required

Advertisement Name e.g Home Banner
Advertisement Placement
Add More Placements
Advertisement code
Status
{/if}

## Advertisement Manager

AID | Advertisment name | Advertisment | Impressions | Date Added | Placement | Actions
{assign var='ads' value=$adsObj->get_advertisements()} {if $ads} {foreach item=ad from=$ads}
{$ad.ad_id} | {$ad.ad_name} | {$ad.ad_codes}View Advertisment | {$ad.ad_impressions|number_format} | {$ad.date_added|date_format} | {$adsObj->get_placement_name($ad.ad_placement)} |
{/foreach} {/if}

{/if}