<?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">
<meta http-equiv="Pragma" content="no-cache">
  
<link rel="stylesheet" href="default.css" type="text/css">
  
</head>
<body>

		<div id="header"><h1>Administration</h1>
		<div class="membre">Vous Ãªtes connectÃ© en tant qu'<b>admin</b></div>
		</div>		

		<div class="heading">Modification de l'article "<b class="blue">bidule</b>"</div>

		<table align="left" cellspacing="1" cellpadding="5" border="0" bgcolor="#D5D5D5" width="800">
		<tr bgcolor="#F1F3F5">
		<td colspan="2">&nbsp;</td>
		</tr>
		</tr>
		
		<tr bgcolor="#FFFFFF">
		<td align="right" valign="top">ID catalogue :</td>
		<td align="left" valign="middle" colspan="1">
		<input type="text" name="produit" size="70" maxlength="120" value="" id="">&nbsp;</td>
		</tr>
		
		<tr bgcolor="#FFFFFF">
		<td align="right" valign="top">Désignation :</td>
		<td align="left" valign="middle" colspan="1">
		<input type="text" name="designation" size="30" maxlength="40" value="" id="">&nbsp;</td>
		</tr>
		
		<tr bgcolor="#FFFFFF">
		<td align="right" valign="top">R&eacute;f&eacute;rence :</td>
		<td align="left" valign="middle" colspan="1">
		<input type="text" name="reference" size="30" maxlength="40" value="" id="">&nbsp;</td>
		</tr>
		
		<tr bgcolor="#FFFFFF">
		<td align="right" valign="top">Modéle :</td>
		<td align="left" valign="middle" colspan="1">
		<input type="text" name="modele" size="30" maxlength="40" value="" id="">&nbsp;</td>
		</tr>
		
		<tr bgcolor="#FFFFFF">
		<td align="right" valign="top">Fournisseur :</td>
		<td align="left" valign="middle" colspan="1">
		<input type="text" name="fournisseur" size="30" maxlength="40" value="" id="">&nbsp;</td>
		</tr>
		
		<tr bgcolor="#FFFFFF">
		<td align="right" valign="top">Prix TTC:</td>
		<td align="left" valign="middle" colspan="1">
		<input type="text" name="prix_ttc" size="10" maxlength="10" value="" id="">&nbsp;<b>&euro;</b>
		</td>
		</tr>
		
		<tr bgcolor="#FFFFFF">
		<td align="right" valign="top">Prix HT:</td>
		<td align="left" valign="middle" colspan="1">
		<input type="text" name="prix_ht" size="10" maxlength="10" value="" id="">&nbsp;<b>&euro;</b>
		</td>
		</tr>
		
		
		
		<tr bgcolor="#FFFFFF">
		<td align="right">Remise :</td>
		<td align="left">
		<select name="champ[SalePriceType]" size="1">
		<option value="0">Non d&eacute;finie</option>
		<option value="1" selected="selected">En % sur le prix HT</option>
		<option value="2">En &euro; sur le prix HT</option>
		</select>&nbsp;
		<input type="text" name="champ[SalePrice]" size="7" maxlength="12" value="10.00" />
		<b class="green">Laissez vide ce champ si pas de remise</b>
		</td>
		</tr>
		
		<tr bgcolor="#FFFFFF">
		<td align="right">Taxe :</td>
		<td align="left">
		<select name="champ[ID_Tax]" size="1">
		<option value="1">Taxe n°1 - Valeur : 19.60% - 19.60 %</option>
		<option value="2" selected="selected">Taxe n°2 - Valeur : 5.55% - 5.55 %</option>
		<option value="3">Taxe n°3 - Valeur : 10% - 10.00 %</option>
		</select></td>
		</tr>
		
		<tr bgcolor="#FFFFFF">
		<td align="right" valign="top">Descriptif :</td>
		<td align="left" valign="middle" colspan="1"><textarea name="champ[ProductDescription]" rows="12" cols="90" id="">
		pipi</textarea>&nbsp;</td>
		</tr>
		
		<tr bgcolor="#FFFFFF">
		<td align="right">G&eacute;rer le stock pour ce produit ? :</td>
		<td align="left">
		<input type="radio" name="champ[ManageStock]" value="1" checked="checked" /> Oui
		<input type="radio" name="champ[ManageStock]" value="0" /> Non&nbsp;&nbsp;&nbsp;
		<b class="green">Si vous ne g&eacute;rez pas de stock pour ce produit, celui-ci sera mis &agrave; z&eacute;ro.
		</td>
		</tr>

		<tr bgcolor="#FFFFFF">
		<td align="right">Vente hors stock ? :</td>
		<td align="left">
		<input type="radio" name="champ[EmptyStockSale]" value="1" checked="checked" /> Oui
		<input type="radio" name="champ[EmptyStockSale]" value="0" /> Non&nbsp;&nbsp;&nbsp;
		<b class="green">Autoriser la vente si le stock est &eacute;puis&eacute; ?
		</td>
		</tr>
			
		<tr bgcolor="#FFFFFF">
		<td align="right" valign="top">Stock :</td>
		<td align="left" valign="middle" colspan="1">
		<input type="number" name="champ[ProductStock]" size="5" maxlength="5" value="900" id="">&nbsp;</td>
		</tr>
		
		<tr bgcolor="#FFFFFF">
		<td align="right">Poids du produit :</td>
		<td align="left">
		<input type="number" name="champ[Weight]" value="50" size="12" maxlength="10" />
		<input type="radio" name="champ[WeightType]" value="G" checked="checked" /> grammes
		<input type="radio" name="champ[WeightType]" value="K" /> kilos
		</td>
		</tr>
			
		<tr bgcolor="#FFFFFF">
		<td align="right">Status :</td>
		<td align="left">
		<select name="champ[Status]">
		<option value="E" selected="selected">Produit actif</option>
		<option value="H">Produit cach&eacute;</option>
		</select>
		</td>
		</tr>
			
		<tr bgcolor="#FFFFFF">
		<td align="right" valign="top">Ce produit sera d&eacute;sactiv&eacute; le :</td>
		<td align="left" valign="middle" colspan="1">
		<input type="text" name="champ[DateEnd]]" size="18" maxlength="16" value="0000-00-00" id="">&nbsp;Format : AAAA-MM-JJ<br />Si vous ne  souhaitez pas utiliser cette fonctionnalit&eacute;,<br />laissez vide ce champ ou assurez-vous qu'il ne contienne que des 0, ex :<br />0000-00-00 00:00</td>
		</tr>
		
		<tr bgcolor="#F1F3F5">
		<td colspan="2" align="center">
		<a href="#" onClick="checkForm('editProduct')" class="formButton">Enregistrer</a>
		<b>::</b>
		<a href="?C1=CA&C2=AR&C3=list&debut=0" class="formButton">Annuler</a>
		</td>
		</tr>
		
		
		</table>
		</div>
		</div>
	



</body></html>