<?php
	session_start();



	if( isset($_GET['action']) && !empty($_GET['action']) ) 
	  { 

		$action = $_GET['action'];
		
		if($action == "ajouter_projet")
	  	  { header('Location: ajouter_projet.php');
		  }
		  
		if($action == "ajouter_bloc")
	  	  { header('Location: ajouter_bloc.php');
		  }  
		  

		if($action == "lister_projet")
	  	  { header("Location: lister_projet.php");
		  }

		if($action == "lister_bloc")
	  	  { header("Location: lister_bloc.php");
		  }
		
		if($action == "ajouter_utilisateur")
	  	  { header("Location: ajouter_utilisateur.php");
		  }
		 
		if($action == "lister_utilisateur")
	  	  { header("Location: lister_utilisateur.php");
		  } 
		  
		if($action == "ajouter_droit")
	  	  { header("Location: ajouter_droit.php");
		  }  
		  
		if($action == "affecter_projet")
	  	  { header("Location: affecter_projet.php");
		  }   
		  
		if($action == "droits_projet")
	  	  { header("Location: droits_projet.php");
		  }   
		  
		/*  
		if($action == "descriptif_categorie")
	  	  { header("Location: creer_template_descriptif.php");
		  }  
		  
		if($action == "clients")
	  	  { header("Location: clients.php");
		  }  
		  
		if($action == "commandes")
	  	  { header("Location: commandes.php");
		  }    */

	}
?>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
		<html dir="ltr" lang="en">

		<head>

		<title>Gestionnaire de projet - En cours de développement</title>
		
		
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

		
		
  
		<link rel="stylesheet" href="default.css" type="text/css">
	
		
		
		</head>
		
		<body>

		<div id="header"><h1>Administration</h1>
		<div class="a">Vous Ãªtes connectÃ© en tant que <b><?php echo $_SESSION['logged_identifiant'] ." - " .$_SESSION['logged_droits']; ?> </b></div>
		</div>		


<link rel="stylesheet" href="theme.css" type="text/css">

<div id="myMenuID">
<table summary="main menu" class="ThemeDefaultMenu" cellspacing="0">
<tbody>
<tr>

<td class="ThemeDefaultMainItem" onmouseover="cmItemMouseOverOpenSub (this,1,null,0,0)" onmousedown="cmItemMouseDown (this,1,null,0,0)" 
onmouseout="cmItemMouseOut (this,1,null,0,0)" onmouseup="cmItemMouseUp (this,1,null,0,0)">

<span class="ThemeDefaultMainItemLeft">&nbsp;</span>
<span class="ThemeDefaultMainItemText">DÃ©connexion</span>
<span class="ThemeDefaultMainItemRight">&nbsp;</span></td>

<td class="ThemeDefaultMainItem" onmouseover="cmItemMouseOverOpenSub (this,1,null,0,1)" onmousedown="cmItemMouseDown (this,1,null,0,1)" 
onmouseout="cmItemMouseOut (this,1,null,0,1)" onmouseup="cmItemMouseUp (this,1,null,0,1)">
&nbsp;</td>

<td class="ThemeDefaultMainItem" onmouseover="cmItemMouseOverOpenSub (this,1,'cmSubMenuID1',0,2)" onmousedown="cmItemMouseDown (this,1,'cmSubMenuID1',0,2)" 
onmouseout="cmItemMouseOut (this,1,'cmSubMenuID1',0,2)" onmouseup="cmItemMouseUp (this,1,'cmSubMenuID1',0,2)">

<span class="ThemeDefaultMainFolderLeft">&nbsp;</span>
<span class="ThemeDefaultMainFolderText">Projet</span>
<span class="ThemeDefaultMainFolderRight">&nbsp;</span>
</td>

<td class="ThemeDefaultMainItem" onmouseover="cmItemMouseOverOpenSub (this,1,null,0,6)" onmousedown="cmItemMouseDown (this,1,null,0,6)" 
onmouseout="cmItemMouseOut (this,1,null,0,6)" onmouseup="cmItemMouseUp (this,1,null,0,6)">
&nbsp;</td>

<td class="ThemeDefaultMainItem" onmouseover="cmItemMouseOverOpenSub (this,1,'cmSubMenuID2',0,7)" onmousedown="cmItemMouseDown (this,1,'cmSubMenuID2',0,7)" 
onmouseout="cmItemMouseOut (this,1,'cmSubMenuID2',0,7)" onmouseup="cmItemMouseUp (this,1,'cmSubMenuID2',0,7)">



	
	  	<span class=\"ThemeDefaultMainFolderLeft\">&nbsp;</span>
		<span class=\"ThemeDefaultMainFolderText\">Utilisateurs</span>
		<span class=\"ThemeDefaultMainFolderRight\">&nbsp;</span>
		</td> 

		<td class=\"ThemeDefaultMainItem\" onmouseover=\"cmItemMouseOverOpenSub (this,1,null,0,10)\" onmousedown=\"cmItemMouseDown (this,1,null,0,10)\" 
		onmouseout=\"cmItemMouseOut (this,1,null,0,10)\" onmouseup=\"cmItemMouseUp (this,1,null,0,10)\">
		&nbsp;</td>

		<td class=\"ThemeDefaultMainItem\" onmouseover=\"cmItemMouseOverOpenSub (this,1,'cmSubMenuID3',0,11)\" onmousedown=\"cmItemMouseDown (this,1,'cmSubMenuID3',0,11)\" 
		onmouseout=\"cmItemMouseOut (this,1,'cmSubMenuID3',0,11)\" onmouseup=\"cmItemMouseUp (this,1,'cmSubMenuID3',0,11)\"> ";

    	  }					





</tbody>
</table>
</div>
</div>





<script language="JavaScript">

var myMenu = [
	[null, 'D&eacute;connexion', 'logoff.php', null, null],
	_cmSplit,
	[null, 'Projet', null, null, null,
		['<img src="images/article.png" />', 'Ajouter un projet', '?action=ajouter_projet', null, null],
		['<img src="images/article.png" />', 'Ajouter un bloc', '?action=ajouter_bloc', null, null],
		['<img src="images/categorie.png" />', 'Lister projet', '?action=lister_projet', null, null],
		['<img src="images/sous_categorie.png" />', 'Lister bloc', '?action=lister_bloc', null, null]
	],

	_cmSplit,
	[null, 'Utilisateurs', null, null, null,
		['<img src="images/admin.png" />', 'Ajouter utilisateur', '?action=ajouter_utilisateur', null, null],
		['<img src="images/article.png" />', 'Lister utilisateur', '?action=lister_utilisateur', null, null],
		['<img src="images/droit.png" />', 'Affecter projet', '?action=affecter_projet', null, null],
		['<img src="images/droit.png" />', 'Droits projet', '?action=droits_projet', null, null]
	],
	
	]

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





<?php	
/*
		['<img src="images/droit.png" />', 'Droits utilisateur', '?action=ajouter_droit', null, null]

	_cmSplit,
	[null, 'Categorie', null, null, null,
		['<img src="images/article.png" />', 'Cr&eacute;er Cat&eacute;gorie', '?action=creer_categorie', null, null],
		['<img src="images/categorie.png" />', 'Cr&eacute;er descriptif Cat&eacute;gorie', '?action=descriptif_categorie', null, null],
		['<img src="images/sous_categorie.png" />', 'Sous-cat&eacute;gories', '?C1=CA&C2=SC', null, null]
	],
	
	
	
	_cmSplit,
	[null, 'Clients', null, null, null,
		['<img src="images/client.png" />', 'Comptes', '?action=clients', null, null],
	],
	_cmSplit,
	[null, 'Commandes', null, null, null,
		['<img src="images/commande.png" />', 'Visualiser', '?action=commandes', 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', '?action=admin', null, null]
	],
	_cmSplit,
	[null, 'Voir la boutique', '../', '_blank', null]*/
/*]

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

?>
