{*<!--

+---------------------------------------------------------------------------+
| OpenX v2.6                                                                |
| =========                                                                 |
|                                                                           |
| Copyright (c) 2003-2008 OpenX Limited                                     |
| For contact details, see: http://www.openx.org/                           |
|                                                                           |
| This program is free software; you can redistribute it and/or modify      |
| it under the terms of the GNU General Public License as published by      |
| the Free Software Foundation; either version 2 of the License, or         |
| (at your option) any later version.                                       |
|                                                                           |
| This program is distributed in the hope that it will be useful,           |
| but WITHOUT ANY WARRANTY; without even the implied warranty of            |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the             |
| GNU General Public License for more details.                              |
|                                                                           |
| You should have received a copy of the GNU General Public License         |
| along with this program; if not, write to the Free Software               |
| Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA |
+---------------------------------------------------------------------------+
$Id:captcha-dialog.html 11612 2007-10-26 11:00:05Z matteo.beccati@openads.org $

-->*}
{if $uiPart == 'header'}
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html{if $phpAds_TextDirection != 'ltr'} dir="{$phpAds_TextDirection}"{/if}>
<head>
<title>{$pageTitle}</title>

<meta name="generator" content="{$metaGenerator}" />
<meta name="robots" content="noindex, nofollow" />

{include file=layout/styles.html}
{include file=layout/scripts.html}

{$jsMPE}
{$jsFlash}

{foreach item=s from=$aSide}
{if $s.top}
<link rel="top" href="{$s.filename|escape}" title="{$s.title|escape}" />
{/if}
{if $s.up}
<link rel="up" href="{$s.filename|escape}" title="{$s.title|escape}" />
{/if}
{/foreach}
{foreach item=s from=$aSideShortcuts}
<link rel="bookmark" href="{$s.link|escape}" title="{$s.name}" />
{/foreach}

</head>
<body class="hasInterface{if $showSidebar} hasSidebar{/if}" onload="initPage();">

{* Using insert to prevent caching *}
{insert name=OA_Admin_UI_CustomHeader}

<div id="oaHeader">

{include file=layout/branding.html}
  <div id="oaNavigationExtraTop">
    <ul>

{if $infoUser}
        <li class="infoUser">{$infoUser|escape}</li>
{/if}

{if $helpLink}
        <li class="buttonHelp"><a href="{$helpLink|escape}" target="help">{t str=Help}</a></li>
{/if}

{if $buttonReportBugs}
        <li class="buttonReportBugs"><a href="http://www.openx.org/support/reporting-bugs" target="_blank">{t str=ReportBug}</a></li>
{/if}

{if $buttonLogout}
        <li class="buttonLogout"><a href="logout.php">{t str=Logout}</a></li>
{/if}

{if $buttonStartOver}
        <li class="buttonStartOver"><a href="index.php">{t str=StartOver}</a></li>
{/if}
    </ul>
    </div>


{if $displaySearch}
    <div id="oaSearch">
        <form name="search" action="admin-search.php" target="SearchWindow" onsubmit="search_window(document.search.keyword.value,'{$searchUrl|escape:js}'); return false;">
            <input type="text" name="keyword" class="search" accesskey='{t key='Search'}'><input class="submit" type="submit" value="&nbsp" >
        </form>
    </div>
{/if}
</div>

<div id="oaNavigation">
{if $showMainNav}
{include file=layout/navigation.html}
{/if}

    <ul id="oaNavigationExtra">

{if $buttonLogout}
        <li class="accountSwitcher">
            <div class="triggerContainer">{$strWorkingAs} <span class="switchTrigger" href="#">{$accountName}</span></div>
            <div class="accountsPanel">
              <div class="switchTop">&nbsp;</div>
              <div class="switchMiddle">
                <div class="switchMiddleBody">
	                <div class="label">{$strSwitchTo}</div>
	                <div class="selection" style="display:none" ></div>
	                <div class="result">
	                  <ul id="accounts">
											{foreach from=$aAdminAccounts  key=accountId item=account}
											    <li><a href="account-switch.php?account_id={$accountId|escape}">{$account}</a></li>
											{/foreach}

		                  {foreach from=$aAccounts  key=groupName item=group}
		                      <li class="opt">{$groupName|escape}</li>
		                      {foreach from=$group key=accountId item=account}
		                        <li class="inopt"><a href="account-switch.php?account_id={$accountId|escape}">{$account}</a></li>
		                      {/foreach}
		                  {/foreach}
	                  </ul>
	                </div>
                </div>
              </div>
              <div class="switchDown">&nbsp;</div>
            </div>
        </li>

        <script type='text/javascript'>
          <!--
          initAccoutSwitcher();
          -->
        </script>
{/if}

    </ul>
    <div class='accountSwitcherOverlay'>&nbsp;</div>
</div>

<div id="oaMain">
{if $showSidebar}
{include file=layout/sidebar.html}
{/if}

    <div id="oaContents">

        <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
{if !$noBorder}
                <td colspan='2' height='10'><img src='{$assetPath}/images/spacer.gif' height='1'></td>
            </tr>
            <tr>
                <td width="20">&nbsp;</td>
{/if}
                <td>

{* Footer *}
{else}

                </td>
{if !$noBorder}
                <td width="40">&nbsp;</td>
            </tr>
            <tr>
                <td width="40" height="20">&nbsp;</td>
                <td height="20">&nbsp;</td>
{/if}
            </tr>

{* Using insert to prevent caching *}
{insert name=OA_Admin_UI_CustomFooter}
{* The insert function call above outputs this HTML code as well
            <tr>
                <td width="40" height="20">&nbsp;</td>
                <td height="20">
                    [...]
                </td>
            </tr>

*}
        </table>

    </div>
</div>

{if $jsMPE}
<div id="runMpe" name="runMpe">&#160;</div>
<script type="text/javascript">
<!--
    xajax_OA_runMPE();
//-->
</script>
{/if}

{if $productUpdatesCheck}
<script type="text/javascript" src="maintenance-updates-js.php"></script>
{/if}

{if $maintenanceAlert}
<script type='text/javascript'>
<!--
    alert('{t str=MaintenanceNotActive}');
    location.replace('maintenance-maintenance.php');
//-->
</script>
{/if}

</body>
</html>
{/if}

