예제 #1
0
	$produit = new Produit();
	
	$id_categorie = intval( $_GET[ "idc" ] );
	$id_produit = intval( $_GET[ "idp" ] );
	
	// ---- Liste des catégories enfants ---------- //
	if ( 1 == 1 ) {
		unset( $recherche );
		$recherche[ "id_parent" ] = $id_categorie;
		$liste_categorie = $categorie->getListe( $recherche, $debug );
	}
	// -------------------------------------------- //
	
	// ---- Infos sur le produit à afficher ------- //
	if ( 1 == 1 ) {
		$data = $produit->getInfoProduit( $id_categorie, $id_produit, $debug );
		//print_pre( $data );
		//exit();
		
		$id_produit =	$data[ 0 ][ "id" ];
		$titre = 		$data[ 0 ][ "nom" ];
		$description =	$data[ 0 ][ "description" ];
		$image =		$data[ 0 ][ "image" ];
		$tab_tag =		explode( ";", $data[ 0 ][ "tag" ] );
	}
	// -------------------------------------------- //
?>

<!doctype html>
<html class="no-js" lang="fr">
	<head>