<?php
/**
  @licence GPL 2005-2011  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  17/03/11, 15:42
  @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);
 @include( DIR_WS_INCLUDES . "content/".$page_admin.".header.inc"); ?>
</head>
<body class="<?php echo $page_admin; ?>">
<div id="glob">
<div id="center">
  <!-- header //-->
  <div id="header">
  <?php if (($header=tep_test_gab_ele('header')) !=false) require($header);  ?>

  <!-- menubar //-->
  <?php
  $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"><?php echo __('recently viewed') ?><?php echo tep_draw_pull_down_menu('page_admin',$Bookmark, '' , 'onchange="this.form.submit();"') ?></p></form></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>
    <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>
    </ul>
    </div>

    <!-- menubar_eof //-->

    <div id="user">
    <?php if ($generic_modules->_show_menu() != false) : ?>
      <ul id="MenuExts">
        <?php echo $generic_modules->_show_menu(); /** Appel des menu specifique au module ACA . Tous module chargé epeut inétegrer des bock au menu */ ?>
      </ul>
    <?php endif; ?>
        <ul class="fright">
			    <li class="w_30 nobr ">
			      <form action="" method="post">
			        <select name="SearchSpeed">
			          <option value="products" <?php if($page_module=='products') echo ' selected="selected" ' ?>><?php echo __('quicksearch products') ?></option>
			          <option value="customers" <?php if($page_module=='customers') echo ' selected="selected" ' ?>><?php echo __('quicksearch customers') ?></option>
			          <option value="categories" <?php if($page_module=='categories') echo ' selected="selected" ' ?>><?php echo __('quicksearch categories') ?></option>
			          <option value="orders" <?php if($page_module=='orders') echo ' selected="selected" ' ?>><?php echo __('quicksearch orders') ?></option>
			        </select>
			        <input type='text' name="sSearch" value="<?php if(isset($_REQUEST['sSearch'])) echo $_REQUEST['sSearch']?>" onchange="this.form.submit();" />
			      </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>



<div class="separator" ></div>
</div>
</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 //-->
