<?php

	session_start();
	
	$_SESSION['database']="local";
	
	if($_SESSION['database']=="local")
	  {
	     $db_host    = "localhost";
	     $db_user   = "root";
	     $db_pass   = "";
     	     $db_name   = "boutique";

	 }
	
	if($_SESSION['database']=="public")
	  {
  	     $db_host    = "sql2";
   	     $db_user   = "analogde";
 	     $db_pass   = "rainbow";
    	     //$db_type   = "mysql";
	     $db_name   = "analogde";
	 }


?>

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

		<head>

		<title>Administration - En cours de développement</title>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  
		<link rel="stylesheet" href="default.css" type="text/css">

		<script type="text/javascript" src="javascript.js"></script>
  
		</head>
		
		<body>

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

		<?php include('menu.php'); ?>
		
		<div class="menu">
		<img src="./images/add.png" alt="" title="" width="12" height="12" />&nbsp;
		<a href="">Cr&eacute;er une cat&eacute;gorie</a>&nbsp;
		<a href="?C1=CA&C2=CA&C3=insert">Editer une cat&eacute;gorie</a>&nbsp;
		
		
		</div>

		

		<div class="heading">Création d'une catégorie</div>


		<form action="creation_categorie.php" method="post" id="creer_categorie" name="creer_categorie" onsubmit="return mess();">
		  

		<table align="left" cellspacing="1" cellpadding="5" border="0" bgcolor="#D5D5D5" width="800">
		<tr bgcolor="#F1F3F5">
		<td colspan="2">&nbsp;</td>
		</tr>
		</tr>
		</td>
		</tr>
						
		<tr bgcolor="#FFFFFF">
		<td align="right" valign="top">Nom de la catégorie :</td>
		<td align="left" valign="middle" colspan="1">
		<input type="text" name="nom_categorie" size="30" maxlength="20" value="" id="nom_categorie" >&nbsp;</td>
		</tr>
		
		<tr bgcolor="#FFFFFF">
		<td align="right" valign="top">Descriptif :</td>
		<td align="left" valign="middle" colspan="1">
		<input type="file" name="fichier_descriptif" />&nbsp;</td>
		</tr>
		
		<tr bgcolor="#FFFFFF">
		<td align="right" valign="top">Filtre :</td>
		<td align="left" valign="middle" colspan="1">
		<input type="file" name="fichier_filtre" />&nbsp;</td>
		</tr>
				
		<tr bgcolor="#F1F3F5">
		<td colspan="2" align="center">
		
		<input type="submit" value="Valider" />
		
		
		</td>
		</tr>
		
		
		</table>
		</div>
		</div>
		
		</form>
	



</body></html>