<?php /* Smarty version 2.6.25, created on 2012-08-26 20:09:02
         compiled from DefaultAdmin/main.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'escape', 'DefaultAdmin/main.tpl', 14, false),array('modifier', 'trim', 'DefaultAdmin/main.tpl', 14, false),array('modifier', 'cat', 'DefaultAdmin/main.tpl', 160, false),)), $this); ?>
<?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);
 ?>
<!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<?php echo @CURRENT_VERSION; ?>
 Admin<?php if (! empty ( $this->_tpl_vars['title'] )): ?> - <?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['title'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)))) ? $this->_run_mod_handler('trim', true, $_tmp) : trim($_tmp)); ?>
<?php endif; ?></title>
   <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
   <link rel="stylesheet" type="text/css" href="<?php echo @TEMPLATE_ROOT; ?>
/files/style.css" />
   <link rel="stylesheet" type="text/css" href="<?php echo @TEMPLATE_ROOT; ?>
/files/litbox.css" />
   <link rel="stylesheet" type="text/css" href="<?php echo @TEMPLATE_ROOT; ?>
/files/fileuploader.css" />

   <!-- Define document root for Javascript -->
   <script type="text/javascript">
   /* <![CDATA[ */
      var DOC_ROOT = '<?php echo @DOC_ROOT; ?>
';
   /* ]]> */
   </script>
   
   <script src="../javascripts/jquery-1.3.2.min.js"></script>

	<script type="text/javascript" src="../javascripts/thickbox/thickbox.js"></script>
   <link rel="stylesheet" href="../javascripts/thickbox/ThickBox.css" type="text/css" media="screen" />   

   <script src="../javascripts/jquery/jquery.jeditable.mini.js"></script>
   <script src="../javascripts/jquery/jquery.dataTables.js"></script>
   <script src="../javascripts/jquery.validate.js"></script>
   <script src="../javascripts/jquery/jquery.field.min.js"></script>
  
   <script type="text/javascript">
   	<?php echo 'jQuery.noConflict();'; ?>

   </script>

   

         <script type="text/javascript" src="../javascripts/formtool/formtool.js"></script>
   
      <script type="text/javascript" src="../javascripts/prototype/prototype.js"></script>
      <script type="text/javascript" src="../javascripts/scriptaculous/scriptaculous.js"></script>

      <script type="text/javascript" src="../javascripts/litbox/litbox.js"></script>
   <script type="text/javascript" src="../javascripts/litbox/dragdrop.js"></script>
      <script type="text/javascript" src="../javascripts/phpld_global.js"></script>
      <script type="text/javascript" src="../javascripts/categ_selection/categ_selection.js"></script>
      <script type="text/javascript" src="../javascripts/tiny_mce/tiny_mce.js"></script>
      <script type="text/javascript" src="../javascripts/ckeditor/ckeditor.js"></script>
   	<!-- Skin CSS file -->
	<link rel="stylesheet" type="text/css" href="../javascripts/yui/css/skin.css">
	<!-- Utility Dependencies -->
	<script type="text/javascript" src="../javascripts/yui/yahoo-dom-event.js"></script>
	<script type="text/javascript" src="../javascripts/yui/element-min.js"></script>
	<!-- Needed for Menus, Buttons and Overlays used in the Toolbar -->
	<script src="../javascripts/yui/container_core-min.js"></script>
	<script src="../javascripts/yui/menu-min.js"></script>
	<script src="../javascripts/yui/button-min.js"></script>
	<!-- Source file for Rich Text Editor-->
	<script src="../javascripts/yui/editor-min.js"></script>
      

      <script type="text/javascript" src="<?php echo @TEMPLATE_ROOT; ?>
/files/admin.js"></script>
   <script type="text/javascript" src="<?php echo @TEMPLATE_ROOT; ?>
/files/style.js"></script>
   

   
<?php echo '   
<script src="../javascripts/google_jsapi.js" type="text/javascript"></script> 
'; ?>

<?php if ($this->_tpl_vars['show_me'] == 1): ?>
<script type="text/javascript" src="../javascripts/google_import.js"></script>
<?php endif; ?>

<noscript>

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

</noscript>

<?php echo '
<script type="text/javascript">
    var valid_obj = new Object();
</script>
'; ?>


</head>
<body onload="showWhich('<?php echo $this->_tpl_vars['requestUri']; ?>
')">

<?php echo '<!-- Main --><div id="wrap"><!-- Header --><div id="header"><div id="header-title"><a href="http://www.phplinkdirectory.com/" title="Visit PHP Link Directory homepage" class="phpldBackLink" target="_blank" style="float: left;"><img src="'; ?><?php echo @TEMPLATE_ROOT; ?><?php echo '/images/phpldlogo.png" alt="PHP Link Directory" id="logo" /></a><div id="admin-top-links">'; ?><?php if ($this->_tpl_vars['rights']['addLink'] == 1): ?><?php echo '<a href="'; ?><?php echo @DOC_ROOT; ?><?php echo '/dir_links_edit.php?action=N" class="new_link">New link</a>'; ?><?php endif; ?><?php echo ''; ?><?php if ($this->_tpl_vars['rights']['addArt'] == 1): ?><?php echo '<a href="'; ?><?php echo @DOC_ROOT; ?><?php echo '/article_edit.php?action=N&r=1" class="new_art">New article</a>'; ?><?php endif; ?><?php echo ''; ?><?php if ($this->_tpl_vars['rights']['addCat'] == 1): ?><?php echo '<a href="'; ?><?php echo @DOC_ROOT; ?><?php echo '/dir_categs_edit.php?action=N" class="new_cat">New category</a>'; ?><?php endif; ?><?php echo ''; ?><?php if ($this->_tpl_vars['rights']['addPage'] == 1): ?><?php echo '<a href="'; ?><?php echo @DOC_ROOT; ?><?php echo '/dir_pages_edit.php?action=N" class="new_page">New page</a>'; ?><?php endif; ?><?php echo '<div style="clear: left ;"></div></div></div><div class="session">Welcome '; ?><?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['user_details']['NAME'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)))) ? $this->_run_mod_handler('trim', true, $_tmp) : trim($_tmp)); ?><?php echo ' [<a href="'; ?><?php echo ((is_array($_tmp=((is_array($_tmp=@SITE_URL)) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)))) ? $this->_run_mod_handler('trim', true, $_tmp) : trim($_tmp)); ?><?php echo '" title="View Directory" target="_blank">View Directory</a>, <a href="'; ?><?php echo @DOC_ROOT; ?><?php echo '/logout.php" title="Logout of admin control panel">Logout</a>]</div></div><!-- /Header -->'; ?><?php echo ''; ?><?php if (! empty ( $this->_tpl_vars['title'] )): ?><?php echo '<h1><span>'; ?><?php echo ((is_array($_tmp=((is_array($_tmp=$this->_tpl_vars['title'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)))) ? $this->_run_mod_handler('trim', true, $_tmp) : trim($_tmp)); ?><?php echo '</span></h1>'; ?><?php endif; ?><?php echo '<!-- Secondary Content --><div id="content-secondary"><div class="secondary-column-box">'; ?><?php echo ''; ?><?php if (isset ( $this->_tpl_vars['menu'] ) && ! empty ( $this->_tpl_vars['menu'] ) && is_array ( $this->_tpl_vars['menu'] )): ?><?php echo '<!-- Main menu --><div id="navigation"><script type="text/javascript" src="'; ?><?php echo @TEMPLATE_ROOT; ?><?php echo '/files/menu_admin.js"></script><h2 class="navigation-title"><span>Navigation</span></h2><ul>'; ?><?php $_from = $this->_tpl_vars['menu']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['mk'] => $this->_tpl_vars['mm']):
?><?php echo ''; ?><?php if (is_array ( $this->_tpl_vars['mm']['menu'] ) && ! empty ( $this->_tpl_vars['mm']['menu'] )): ?><?php echo '<li title="'; ?><?php echo $this->_tpl_vars['mm']['label']; ?><?php echo '" class="code1 closed" style="padding-top: 3px;"><span class="menu-button '; ?><?php echo $this->_tpl_vars['mm']['class']; ?><?php echo '">'; ?><?php echo $this->_tpl_vars['mm']['label']; ?><?php echo '</span>'; ?><?php else: ?><?php echo '<li  style="padding-top: 3px;"><a href="'; ?><?php echo $this->_tpl_vars['mk']; ?><?php echo '.php" title="'; ?><?php echo $this->_tpl_vars['mm']; ?><?php echo '" class="topmenu"><span class="menu-button  '; ?><?php echo $this->_tpl_vars['mm']['class']; ?><?php echo '">'; ?><?php echo $this->_tpl_vars['mm']['label']; ?><?php echo '</span></a>'; ?><?php endif; ?><?php echo ''; ?><?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ((is_array($_tmp=@ADMIN_TEMPLATE)) ? $this->_run_mod_handler('cat', true, $_tmp, "/menu.tpl") : smarty_modifier_cat($_tmp, "/menu.tpl")), 'smarty_include_vars' => array('m' => $this->_tpl_vars['mm'])));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?><?php echo '</li>'; ?><?php endforeach; endif; unset($_from); ?><?php echo '</ul></div><!-- /Main menu -->'; ?><?php endif; ?><?php echo '</div></div><!-- /Secondary Content --><!-- Main Content --><div id="content-main"><div class="main-column-box">'; ?><?php echo '<!-- Content --><div id="content">'; ?><?php echo $this->_tpl_vars['content']; ?><?php echo '</div><!-- /Content --></div></div><!-- /Main Content --><div class="clearing">&nbsp;</div><!-- Footer --><div id="footer">PHP Link Directory v'; ?><?php echo @CURRENT_VERSION; ?><?php echo ', Copyright &copy; 2004-'; ?><?php echo date('Y'); ?><?php echo ' 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 -->'; ?><?php echo ''; ?><?php if (! empty ( $this->_tpl_vars['redirect'] )): ?><?php echo ''; ?><?php echo $this->_tpl_vars['redirect']; ?><?php echo ''; ?><?php endif; ?><?php echo ''; ?><?php echo $this->_tpl_vars['nextUrl']; ?><?php echo ''; ?>

</body>
</html>