<?php
/**
  @licence GPL 2005-2010  The osCSS developers - osCSS Open Source E-commerce
  @portion code Copyright (c) 2002 osCommerce
  @package osCSS-2 <www http://www.oscss.org>
  @version 2.1.0
  @date  24/10/10, 17:14
  @author oscim <mail aurelien@oscim.fr> <www http://www.oscim.fr>
  @encode UTF-8
*/

  /** Prechargement */
  @include(DIR_WS_INCLUDES . 'content/'.$page_admin.'.top.inc');
  require(DIR_WS_TEMPLATE.'inc/lib.template.php');
  if (($init_theme=tep_test_gab_ele('inc/init_theme')) !=false) require($init_theme);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" <?php echo HTML_PARAMS; ?> >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>" />
<title><?php echo $page_admin.' | '.TITLE; ?></title>
<base href="<?php echo tep_get_http().DIR_WS_ADMIN ?>" />
<?php
  /** Appel des css */
  if (($stylesheet=tep_test_gab_ele('stylesheet','css')) !=false) tep_include_file ($stylesheet,true);
  /** Fichier header systheme */
  require(DIR_FS_ADMIN.DIR_WS_INCLUDES . 'header.php');
  /** Appel des js */
  tep_include_file (DIR_WS_TEMPLATE."inc/lib_general-1.js",true);
  tep_include_file (DIR_WS_JS."jquery.min.js",true);
 @include( DIR_WS_INCLUDES . "content/".$page_admin.".header.inc"); ?>
</head>
<body class="<?php echo $page_admin; ?>">

  <!-- header //-->
  <div id="header">
  <?php if (($header=tep_test_gab_ele('header')) !=false) require($header);  ?>

  <!-- menubar //-->
  <?php $menu=menu::resetInstance();
  $menu_link = '<div id="menubar">'."\n";
  $menu_link .= '<ul id="menutitre">'."\n";
  $menu_link .=$menu->cstr();
  $menu_link .= '</ul>'."\n";
  echo $menu_link;?>
  <ul class="fright">
  <li class="inline"><?php echo tep_draw_form('menubookmark', 'index.php', '', 'get') ?><p class="themeSwitcher">Bookmark: <?php echo tep_draw_pull_down_menu('page_admin',$Bookmark, '' , 'onchange="this.form.submit();"') ?></p></form></li>
  <li class="account inline"><a class="buttonimg"  href="<?php echo tep_href_link(FILENAME_LOGOFF, '', 'NONSSL') ?>"><?php echo tep_image(DIR_WS_ICONS. 'icon_logoff.png',HEADER_TITLE_LOGOFF) ?></a></li>
  <li class="userName inline"><a class="buttonimg"  href="<?php echo tep_href_link(FILENAME_ADMIN_ACCOUNT, '', 'NONSSL') ?>"><?php echo tep_image(DIR_WS_ICONS. 'users.png', HEADER_TITLE_ACCOUNT.' '.$login_firstname) ?></a></li>
  </ul>
  </div>

  <!-- menubar_eof //-->

  <div id="user">
    <ul>
      <?php /** Appel des menu specifique au module ACA . Tous module chargé epeut inétegrer des bock au menu */ echo $generic_modules->_show_menu(); ?>
      <li class="inline">
	<?php /** themes swither */ echo tep_draw_form('menutheme', $current_page, '', 'get') .'<p class="themeSwitcher">Theme switcher:&nbsp;'. tep_draw_pull_down_menu('menu_theme', oscss_list_templates_admin() , $current_theme , 'onchange="this.form.submit();"') . '</p></form>'; ?>
      </li>
      <li class="langSelector">
	<?php /** Selecteur de lang */ echo tep_draw_form('languages', basename($PHP_SELF), '', 'get') .'<p class="themeSwitcher">'. tep_draw_pull_down_menu('language', language::ArrayPullDown(),  language::LangueSelected(), 'onchange="this.form.submit();"').'</p></form>'; ?>
      </li>
    </ul>
    </div>
  </div>
  <!-- header_eof //-->

  <!-- central //-->
  <div id="central" class="<?php echo $page_admin; ?>">
    <!-- return_erreur //-->
    <?php if ($messageStack->size > 0) echo $messageStack->output(); ?>
    <!-- return_erreur_eof //-->

    <?php if(!include(DIR_WS_INCLUDES . 'content/'.$page_admin.'.central.inc')) print ERR_404; ?>

    <?php if(isset($_GET['origin'])) : ?>
    <div class="button_nav">
      <?php echo ' <a class="button"  href="' . tep_href_link(basename($_GET['origin']), strchr('?',$_GET['origin'])) .'">' .IMAGE_BACK . '</a>'; ?>
    </div>
    <?php endif; ?>
    <div class="separator" ></div>
  </div>
  <!-- central_eof //-->

  <div class="separator" ></div>
  <!-- footer_gabarit_eof //-->
  <div id="bas">
    <?php if (($footer=tep_test_gab_ele('footer')) !=false) require($footer);  ?>
  </div>
  <!-- footer_gabarit_eof //-->

  <!-- footer //-->
  <div id="footer">
    <?php require(DIR_FS_ADMIN.DIR_WS_INCLUDES . 'footer.php'); ?>
  </div>
  <!-- footer_eof //-->