<?php
/* **
 * @application PhpMyShopping
 * @part        Admin boutique (AB)
 * @file        menu.php
 * @path        ./admin/
 * @author      Stephane DINE <stephane@phpmyshopping.org>
 * @site        http://www.phpmyshopping.org
 * @license     http://www.php.net/license/3_0.txt  PHP License 3.0
 *
 * PHP version 5
 */

if ((!isset($_SESSION['LoginOk']) or $_SESSION['LoginOk'] != 'IdentOk')) {
    header('Location: ./login.php');
}
?>

<link rel="stylesheet" href="./css/theme.css" type="text/css" />
<script type="text/javascript" src="./js/JSCookMenu.js"></script>
<script type="text/javascript" src="./js/theme.js"></script>
<div id="myMenuID"></div>
<script language="JavaScript"><!--
var myMenu = [
	[null, 'D&eacute;connexion', './logoff.php', null, null],
	_cmSplit,
	[null, 'Catalogue', null, null, null,
		['<img src="./images/article.png" />', 'Articles', '?C1=CA&C2=AR', null, null],
		['<img src="./images/categorie.png" />', 'Cat&eacute;gories', '?C1=CA&C2=CA', null, null],
		['<img src="./images/sous_categorie.png" />', 'Sous-cat&eacute;gories', '?C1=CA&C2=SC', null, null]
	],
	_cmSplit,
	[null, 'Clients/Commandes', null, null, null,
		['<img src="./images/client.png" />', 'Clients', '?C1=CL&C2=CL', null, null],
		['<img src="./images/commande.png" />', 'Commandes', '?C1=CL&C2=CO', null, null]
		/*['<img src="./images/newsletter.png" />', 'Newsletter', '?C1=CL&C2=MA', null, null]*/
	],
	_cmSplit,
	[null, 'Configuration', null, null, null,
		['<img src="./images/setting.png" />', 'Infos soci&eacute;t&eacute;', '?C1=CO&C2=PE&C3=IF', null, null],
		['<img src="./images/template.png" />', 'Templates', '?C1=CO&C2=TP', null, null],
		['<img src="./images/logo.png" />', 'Descriptif et logo de la boutique', '?C1=CO&C2=PE&C3=DE', null, null],
		['<img src="./images/nb_article.png" />', 'Pr&eacute;f&eacute;rences', '?C1=CO&C2=PE&C3=NA', null, null],
		['<img src="./images/page_active.png" />', 'Pages personnalisables', '?C1=CO&C2=PE&C3=AP', null, null],
		['<img src="./images/html.png" />', 'R&eacute;f&eacute;rencement', '?C1=CO&C2=PE&C3=RE', null, null],
		['<img src="./images/taxe.png" />', 'Taxes', '?C1=CO&C2=TA', null, null],
		['<img src="./images/paiement.png" />', 'Modes de paiement', '?C1=CO&C2=MP', null, null],
        ['<img src="./images/configuration.png" />', 'Configuration', '?C1=CO&C2=CO', null, null]
	],
	_cmSplit,
	[null, 'Frais d\'envois', null, null, null,
		['<img src="./images/transporteur.png" />', 'Transporteurs', '?C1=FE&C2=TR', null, null],
		['<img src="./images/zone.png" />', 'Zones de livraison', '?C1=FE&C2=ZG', null, null],
		['<img src="./images/formule.png" />', 'Formules par transporteurs', '?C1=FE&C2=FO', null, null],
		['<img src="./images/poids.png" />', 'Poids et tarifs', '?C1=FE&C2=PT', null, null]
	],
	_cmSplit,
	[null, 'Admins', null, null, null,
		['<img src="./images/admin.png" />', 'Gestion des administrateurs', '?C1=AD&C2=AD', null, null]
	],
	_cmSplit,
	[null, 'Voir la boutique', '../', '_blank', null]
]

cmDraw('myMenuID', myMenu, 'hbr', cmThemeDefault, 'ThemeDefault');
//--></script>
