{if $ad_data.ad_name !=''}

| Eid Advertisement |
| all fields are required
| {$ad_data.ad_code|ad}
Advertisement Name * | e.g Home Banner
Advertisement Placement | Add More Placements
Advertisement Code | {$ad_data.ad_code}
Status | Active Inactive

{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 | Active Inactive

{/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)} | Edit | Delete | {if $ad.ad_status!=1}Activate{else}Deactivate{/if}
{/foreach} {/if}
{if $bgcolor == ""} {assign var = bgcolor value = "#EEEEEE"} {else} {assign var = bgcolor value = ""} {/if}

{/if}