<?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";
	 }
	 

	 $id = $_GET['id'];
	 $table= $_GET['table'];

	if(isset($_POST['soumettre']) && $_POST['soumettre'] == "Suite")
	  { 
  		
  		  header("Location: generation.php?id=$id&table=$table");
  		
	  }

	

?>	 




	<!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">
		<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  
		<link rel="stylesheet" href="default.css" type="text/css">
		<link rel="stylesheet" href="onglet.css" type="text/css" media="screen" />
		<link rel="stylesheet" href="theme.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="heading">Genérer la page produit</div>

		<form action="" method="post" id="ajouter_produit" name="ajouter_produit" >

		<table align="left" cellspacing="1" cellpadding="5" border="0" bgcolor="#D5D5D5" width="800">
		
		
				
		<tr bgcolor="#F1F3F5">
		<td colspan="2" align="center">
		<input type="submit" name="soumettre" value="Générer" />
		</td>
		</tr>
		
		
		</table>
		</div>
		</div>
		
		</form>


</body></html>
