{php}
   $isExplorer = false;
   $isMozilla = false;
   $agent = strtolower($HTTP_USER_AGENT);
   if ((strpos ($agent, "ie")  !== false)) { $isExplorer = true; } else { $isMozilla = true; }
   if ((strpos ($agent, "jig") !== false)) { $isExplorer = false; $isMozilla = false; }

   $this->assign('isExplorer', $isExplorer);
   $this->assign('isMozilla', $isMozilla);
{/php}
<!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>
   <title>PHP Link Directory v{$smarty.const.CURRENT_VERSION} Admin{if !empty($title)} - {$title|escape|trim}{/if}</title>
   <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
   <link rel="stylesheet" type="text/css" href="{$smarty.const.TEMPLATE_ROOT}/files/style.css" />
   <link rel="stylesheet" type="text/css" href="{$smarty.const.TEMPLATE_ROOT}/files/litbox.css" />

   <!-- Define document root for Javascript -->
   <script type="text/javascript">
   /* <![CDATA[ */
      var DOC_ROOT = '{$smarty.const.DOC_ROOT}';
   /* ]]> */
   </script>

   {* JavaScript libraries *}
   {* SmartyFormtool for manipulating forms with JavaScript *}
   <script type="text/javascript" src="../javascripts/formtool/formtool.js"></script>
   {* Prototype library - all comming JavaScripts are based on this *}
   <script type="text/javascript" src="../javascripts/prototype/prototype.js"></script>
   {* Scriptaculous - Incredible effects and controls library built on Prototype *}
   <script type="text/javascript" src="../javascripts/scriptaculous/scriptaculous.js"></script>
   {* LITBox library for popus and alert messages *}
   <script type="text/javascript" src="../javascripts/litbox/litbox.js"></script>
   <script type="text/javascript" src="../javascripts/litbox/dragdrop.js"></script>
   {* PHP Link Directory - Global JavaScript library *}
   <script type="text/javascript" src="../javascripts/phpld_global.js"></script>
   {* AJAX Category Selection library *}
   <script type="text/javascript" src="../javascripts/categ_selection/categ_selection.js"></script>
   {* TinyMCE text editor *}
   <script type="text/javascript" src="../javascripts/tiny_mce/tiny_mce.js"></script>
   

   {* Powerful library for admin control panel *}
   <script type="text/javascript" src="{$smarty.const.TEMPLATE_ROOT}/files/admin.js"></script>
   <script type="text/javascript" src="{$smarty.const.TEMPLATE_ROOT}/files/style.js"></script>
   
   
{literal}   
<script src="http://www.google.com/jsapi" type="text/javascript"></script> 
{/literal}
{if $show_me eq 1}
<script type="text/javascript" src="../javascripts/google_import.js"></script>
{/if}

<noscript>

<meta http-equiv="refresh" content="2">

</noscript>

</head>
<body onload="showWhich('{$requestUri}')">
{strip}
<!-- Main -->
<div id="wrap">
   <!-- Header -->
   <div id="header">
      <div id="header-title"><a href="http://www.phplinkdirectory.com/" title="{l}Visit PHP Link Directory homepage{/l}" class="phpldBackLink" target="_blank"><img src="{$smarty.const.TEMPLATE_ROOT}/images/phpldlogo.png" alt="PHP Link Directory" id="logo" /></a></div>
      <div class="session">{l}Welcome{/l} {$user_details.NAME|escape|trim} [<a href="{$smarty.const.SITE_URL|escape|trim}" title="{l}View Directory{/l}" target="_blank">{l}View Directory{/l}</a>, <a href="{$smarty.const.DOC_ROOT}/logout.php" title="{l}Logout of admin control panel{/l}">{l}Logout{/l}</a>]</div>
   </div>
   <!-- /Header -->

   {* Show page title *}
   {if !empty($title)}
      <h1><span>{$title|escape|trim}</span></h1>
   {/if}

   <!-- Main Content -->
   <div id="content-main">
      <div class="main-column-box">
         {* Show page content *}
         <!-- Content -->
         <div id="content">{$content}</div>
         <!-- /Content -->
      </div>
   </div>
   <!-- /Main Content -->
   <!-- Secondary Content -->
   <div id="content-secondary">
      <div class="secondary-column-box">
         <div id="admin-top-links">
            <div style="border-top: 1px solid #7B8ACE; border-bottom: 1px solid #7B8ACE;">
               {if $rights.addLink eq 1}
               <a href="{$smarty.const.DOC_ROOT}/dir_links_edit.php?action=N">{l}New link{/l}</a>
               {/if}
               {if $rights.addArt eq 1}
               <a href="{$smarty.const.DOC_ROOT}/article_edit.php?action=N&r=1">{l}New article{/l}</a>
               {/if}
               <div style="clear: left ;"></div>
               {if $rights.addCat eq 1}
               <a href="{$smarty.const.DOC_ROOT}/dir_categs_edit.php?action=N">{l}New category{/l}</a>
               {/if}
               {if $rights.addPage eq 1}
               <a href="{$smarty.const.DOC_ROOT}/dir_pages_edit.php?action=N">{l}New page{/l}</a>
               {/if}
               <div style="clear: left ;"></div>
            </div>
         </div>  
      
         {* Load main menu *}
         {if isset($menu) and !empty($menu) and is_array($menu)}
            <!-- Main menu -->
            <div id="navigation">
			<script type="text/javascript" src="{$smarty.const.TEMPLATE_ROOT}/files/menu_admin.js"></script>
               <h2 class="navigation-title"><span>{l}Navigation{/l}</span></h2>
               <ul>
                  {foreach from=$menu item=mm key=mk}
                     {if is_array($mm) and !empty($mm)}
                        <li title="{$mm.label}" class="code1 closed"><span class="menu-button">{$mm.label}</span>
                     {else}
                        <li><a href="{$mk}.php" title="{$mm}"><span class="menu-button">{$mm}</span></a>
                     {/if}
                     {include file=$smarty.const.ADMIN_TEMPLATE|cat:"/menu.tpl" m=$mm}
                     </li>
                  {/foreach}
               </ul>
            </div>
            <!-- /Main menu -->
         {/if}
      </div>
      <img src="{$smarty.const.TEMPLATE_ROOT}/images/column-shade-bottom.gif" style="float: right;" />
   </div>
   <!-- /Secondary Content -->

   <div class="clearing">&nbsp;</div>

   <!-- Footer -->
   <div id="footer">PHP Link Directory v{$smarty.const.CURRENT_VERSION}, Copyright &copy; 2004-{php}echo date('Y');{/php} NetCreated. More Information: <a href="http://www.phplinkdirectory.com/forum/" title="Browse PHP Link Directory Forums" target="_blank">Community Support</a>.</div>
   <!-- /Footer -->

</div>
<!-- /Main -->

{* Proceed to page redirect if needed *}
{if !empty ($redirect)}
   {$redirect}
{/if}

{$nextUrl}
{/strip}
</body>
</html>