{*<!--

+---------------------------------------------------------------------------+
| Revive Adserver                                                           |
| http://www.revive-adserver.com                                            |
|                                                                           |
| Copyright: See the COPYRIGHT.txt file.                                    |
| License: GPLv2 or later, see the LICENSE.txt file.                        |
+---------------------------------------------------------------------------+

-->*}<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <title>{t str=CampaignOverview}</title>
  <link rel='stylesheet' type='text/css' href='{$assetPath}/css/dashboard-widget.css'>
  <!--[if IE]>
      <link rel="stylesheet" type="text/css" href="{$assetPath}/css/dashboard-widget-ie.css" />
  <![endif]-->
</head>

<body>

{if $screen == 'enabled'}
    {if $aCampaign|@count > 0}
    <div class="widgetContainer widgetListWrapper">
        <!-- normal view -->
        <ul class="widgetList campaignList">
           {foreach from=$aCampaign key=key item=aValue}
           <li><div class="title">
              {if $aValue.campaignid != ""}
                 <a target="_top" href="{$baseUrl}?clientid={$aValue.clientid}&campaignid={$aValue.campaignid}" title="{$aValue.name|escape}">{$aValue.name|escape}</a>
           	  {else}
           	     {$aValue.name|escape}
           	  {/if}
           	</div><div class="campaign-{$aValue.action}">{$aValue.actionDesc}</div></li>
            {/foreach}
        </ul>
    </div>
    <div><a class="site-link" target="_top" href="{$siteUrl}">{t str=CampaignGoTo}</a></div>
    <!-- end of normal view -->
    {else}
        {if $hasCampaigns}
	<!-- no items view  -->
	<div class="widgetListWrapper widgetContainer">
	    <ul class="widgetList campaignNoItems">
	        <li>{t str=CampaignNoDataTimeSpan}</li>
	    </ul>
	</div>
	<div><a class="site-link" target="_top" href="{$siteUrl}">{t str=CampaignSetUp}</a></div>
	<!-- end of no items view  -->
	{else}
    <!-- no campaigns view -->
    <div class="widgetListWrapper widgetContainer">
        <ul class="widgetList campaignList">
            {if $isAdmin == true}
                {t str=CampaignNoRecordsAdmin}
            {else}
                {t str=CampaignNoRecords}
            {/if}
        </ul>
    </div>
    {if $isAdmin != true}
    <div><a class="site-link" target="_top" href="{$siteUrl}">{t str=CampaignSetUp}</a></div>
    {/if}
    <!-- end of no campaigns view -->
    {/if}
    {/if}
{else}
	<!-- Audit Trail inactive view -->
	<div class="widgetListWrapper widgetContainer">
	    <ul class="widgetList campaignAuditNotActivated">
	       {t str=CampaignAuditNotActivated}
	    </ul>
	</div>
	<div><a class="site-link" target="_top" href="{$siteUrl}">{$siteTitle}</div>
	<!-- end of Audit Trail inactive view-->
{/if}

</body>
</html>
