{if $edit_ad != "show"}

Add Advertisement
| * are required fields
Advertisement Name* | e.g Home Banner
Advertisement Placement | Add More Placements
Advertisement Code* |
Status | Active Inactive

{/if} {if $edit_ad == "show"} {section name=list loop=$ad_data}

Edit Advertisement
| * are required fields
Advertisement Name* |
Advertisement Placement* |
Advertisement Code* | {$ad_data[list].ad_code}
| Active Inactive

{/section} {/if}
Advertisement Manager
{if $total != 0}

Advertisement Name | Date Added | Impressions | Placement | Action
{assign var = bgcolor value = ""} {section name=list loop=$ads}
{$ads[list].ad_name} | {$ads[list].date_added|date_format} | {$ads[list].ad_impressions} | {$ads[list].placement} | Edit {if $ads[list].ad_status == 0 } Activate It {else} Deactivate it {/if} Delete
### Click Here To Preview {$ads[list].ad_code}
{if $bgcolor == ""} {assign var = bgcolor value = "#EEEEEE"} {else} {assign var = bgcolor value = ""} {/if} {/section}

{else} No Advertisement Has Been Created Yet {/if}