<?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
*/
    @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
    /* Fichier header systheme */
    require(DIR_FS_ADMIN.DIR_WS_INCLUDES . 'header.php');

    /* Appel des js et css */
    if (($stylesheet=tep_test_gab_ele('stylesheet','css')) !=false) tep_include_file ($stylesheet,true);

    tep_include_file (DIR_WS_TEMPLATE ."/jquery-ui-".$_SESSION['login_groups_id'].".css",true);
    tep_include_file ("includes/javascript/jquery-ui.min.js",true);
//     tep_include_file (DIR_WS_TEMPLATE."inc/lib_general-".$_SESSION['login_groups_id'].".js",true);

?>
<?php @include( DIR_WS_INCLUDES . "content/".$page_admin.".header.inc") ?>
<!--[if IE]>
    <?php if (($stylesheet=tep_test_gab_ele('stylesheet-ie','css')) !=false) tep_include_file ($stylesheet,true); ?>
<![endif]-->
</head>

<body class="<?php echo $page_admin ?>">
        <!-- header //-->
        <div id="header">
            <div id="headInfos">
            <h1><?php echo tep_image(DIR_WS_TEMPLATE . 'img/1/oscss.png', 'osCSS'); ?></h1>
            <h2><?php echo PROJECT_VERSION ;?></h2>
                    <a href="<?php echo tep_catalog_href_link() ?>"><?php echo HEADER_TITLE_ONLINE_CATALOG ;?></a>
            </div>
        </div>
        <!-- header_eof //-->

        <!-- user //-->
        <?php
                for ($i = 0, $n = sizeof($languages); $i < $n; $i++) {
                     $languages_array[] = array('id' => $languages[$i]['code'], 'text' => $languages[$i]['name']);
                     if ($languages[$i]['directory'] == $language) { $languages_selected = $languages[$i]['code']; }
                }
                ?>
                <div id="user">
                        <ul>
<!-- 			    <li class="inline langSelector"><?php echo tep_draw_form('menubookmark', 'index.php', '', 'get') .'<p class="themeSwitcher">Bookmark:&nbsp;'. tep_draw_pull_down_menu('page_admin',$Bookmark, '' ,  'onchange="this.form.submit();"')?></p></form></li> -->
                            <li class="account"><?php echo '<a class="buttonimg"  href="' . tep_href_link(FILENAME_LOGOFF, '', 'NONSSL') . '" class="menuBoxContentLink">' . tep_image(DIR_WS_ICONS. 'icon_logoff.png',HEADER_TITLE_LOGOFF) . '</a>'; ?>&nbsp;</li>
                            <li class="userName"><?php echo '<a class="buttonimg"  href="' . tep_href_link(FILENAME_ADMIN_ACCOUNT, '', 'NONSSL') . '" class="menuBoxContentLink" >' . tep_image(DIR_WS_ICONS. 'users.png', HEADER_TITLE_ACCOUNT.' '.$login_firstname)  . '</a>'; ?>&nbsp;</li>
			    <li class="langSelector"><?php echo tep_draw_form('languages', basename($PHP_SELF), '', 'get').tep_draw_pull_down_menu('language', $languages_array, $languages_selected, 'onchange="this.form.submit();"').'</form>'; ?></li>
                        </ul>
                 </div>
        <!-- user_eof //-->

        <div id="accordion">
            <?php  echo $ctr_menu; ?>
        </div>
        <!-- central //-->
        <div id="central" class="<?php echo $page_admin ?>">
                <?php require(DIR_WS_INCLUDES . 'content/'.$page_admin.'.central.inc'); ?>
                <?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_WS_INCLUDES . 'footer.php'); ?>
        </div>
        <!-- footer_eof //-->

<script type="text/javascript"><!--//
$(function() {
  $("#accordion").accordion({active: <?php echo (isset($menu_activ) ? $menu_activ-1:4 ); ?>});
});
//--></script>