ok...mais ca va prendre de la place !
voici le code de la page:
<?php require_once('maconnection.php'); ?>
<?php
// si visite depuis affilie
if (isset($_GET['track']))
{
$track = $_GET['track'];
//--Mise à jour de la base
mysql_select_db($database_monsite, $monsite);
$sql_update="UPDATE mabase SET click = click + 1 WHERE track='".$track."'";
mysql_query($sql_update) or die (mysql_error());
}
?>
<?php
session_start();
//init des variables
if (!isset($_SESSION['total'])) $_SESSION['total']=0;
if ((!isset($_SESSION['liste']))&&($ajoutPanier=="")) $liste[]=array("VIDE",1,0,0);//init de liste si VIDE
if (isset($_SESSION['liste'])) $liste=$_SESSION['liste'];//recup de la liste de la session
if (!isset($_SESSION['devise'])) $_SESSION['devise']="EUR";
$currency = $_SESSION['devise'];
if (!isset($_SESSION['language'])) $_SESSION['language']="FR";
$language = $_SESSION['language'];
?>
<?php
//-------Mise a jour language
if($_GET["language"] == 'ES')
{
$language = $_GET['language'];
$_SESSION['language']=$language; //mAj de la langue
}
elseif($_GET["language"] == 'FR')
{
$language = $_GET['language'];
$_SESSION['language']=$language; //mAj de la langue
}
?>
<?php
//-------Mise a jour devise
if($_POST["devise"] == 'EUR')
{
$currency = $_POST['devise'];
$_SESSION['devise']=$currency; //mAj de la devise
}
elseif($_POST["devise"] == 'USD')
{
$currency = $_POST['devise'];
$_SESSION['devise']=$currency; //mAj de la devise
}
?>
<?php
$colname_enr_clients = "1";
if (isset($_SESSION['MM_Username'])) {
$colname_enr_clients = (get_magic_quotes_gpc()) ? $_SESSION['MM_Username'] : addslashes($_SESSION['MM_Username']);
}
mysql_select_db($database_monsite, $monsite);
$query_enr_clients = sprintf("SELECT * FROM table_clients WHERE utilisateur = '%s'", $colname_enr_clients);
$enr_clients = mysql_query($query_enr_clients, $monsite) or die(mysql_error());
$row_enr_clients = mysql_fetch_assoc($enr_clients);
$totalRows_enr_clients = mysql_num_rows($enr_clients);
mysql_select_db($database_monsite, $monsite);
$query_enr_taux_usa = "SELECT * FROM devise WHERE pays = 'usa'";
$enr_taux_usa = mysql_query($query_enr_taux_usa, $monsite) or die(mysql_error());
$row_enr_taux_usa = mysql_fetch_assoc($enr_taux_usa);
$totalRows_enr_taux_usa = mysql_num_rows($enr_taux_usa);
mysql_select_db($database_monsite, $monsite);
$query_enr_adecouvrir = "SELECT * FROM table_produits WHERE `ref` = 'A-CTM-001'";
$enr_adecouvrir = mysql_query($query_enr_adecouvrir, $monsite) or die(mysql_error());
$row_enr_adecouvrir = mysql_fetch_assoc($enr_adecouvrir);
$totalRows_enr_adecouvrir = mysql_num_rows($enr_adecouvrir);
$colname_enr_affilie = "1";
if (isset($_GET['track'])) {
$colname_enr_affilie = (get_magic_quotes_gpc()) ? $_GET['track'] : addslashes($_GET['track']);
}
mysql_select_db($database_monsite, $monsite);
$query_enr_affilie = sprintf("SELECT * FROM affilies WHERE track = '%s'", $colname_enr_affilie);
$enr_affilie = mysql_query($query_enr_affilie, $monsite) or die(mysql_error());
$row_enr_affilie = mysql_fetch_assoc($enr_affilie);
$totalRows_enr_affilie = mysql_num_rows($enr_affilie);
$maxRows_enr_produits = 6;
$pageNum_enr_produits = 0;
if (isset($_GET['pageNum_enr_produits'])) {
$pageNum_enr_produits = $_GET['pageNum_enr_produits'];
}
$startRow_enr_produits = $pageNum_enr_produits * $maxRows_enr_produits;
mysql_select_db($database_monsite, $monsite);
$query_enr_produits = "SELECT * FROM table_produits WHERE rubannu2 = 'bijoux' ORDER BY id DESC";
$query_limit_enr_produits = sprintf("%s LIMIT %d, %d", $query_enr_produits, $startRow_enr_produits, $maxRows_enr_produits);
$enr_produits = mysql_query($query_limit_enr_produits, $monsite) or die(mysql_error());
// $row_enr_produits = mysql_fetch_assoc($enr_produits);
if (isset($_GET['totalRows_enr_produits'])) {
$totalRows_enr_produits = $_GET['totalRows_enr_produits'];
} else {
$all_enr_produits = mysql_query($query_enr_produits);
$totalRows_enr_produits = mysql_num_rows($all_enr_produits);
}
$totalPages_enr_produits = ceil($totalRows_enr_produits/$maxRows_enr_produits)-1;
?>
<?php
// *** Validate request to login to this site.
session_start();
$loginFormAction = $_SERVER['PHP_SELF'];
if (isset($accesscheck)) {
$GLOBALS['PrevUrl'] = $accesscheck;
session_register('PrevUrl');
}
if (isset($_POST['client'])) {
$loginUsername=$_POST['client'];
$password=$_POST['pass'];
$MM_fldUserAuthorization = "";
$MM_redirectLoginSuccess = "index.php";
$MM_redirectLoginFailed = "signin.php";
$MM_redirecttoReferrer = false;
mysql_select_db($database_monsite, $monsite);
$LoginRS__query=sprintf("SELECT utilisateur, pass FROM table_clients WHERE utilisateur='%s' AND pass='%s'",
get_magic_quotes_gpc() ? $loginUsername : addslashes($loginUsername), get_magic_quotes_gpc() ? $password : addslashes($password));
$LoginRS = mysql_query($LoginRS__query, $monsite) or die(mysql_error());
$loginFoundUser = mysql_num_rows($LoginRS);
if ($loginFoundUser) {
$loginStrGroup = "";
//declare two session variables and assign them
$GLOBALS['MM_Username'] = $loginUsername;
$GLOBALS['MM_UserGroup'] = $loginStrGroup;
//register the session variables
session_register("MM_Username");
session_register("MM_UserGroup");
if (isset($_SESSION['PrevUrl']) && false) {
$MM_redirectLoginSuccess = $_SESSION['PrevUrl'];
}
header("Location: " . $MM_redirectLoginSuccess );
}
else {
header("Location: ". $MM_redirectLoginFailed );
}
}
?>
<script langage="Javascript">
function popup(fichier) {
ff=window.open(fichier,"popup","width=500,height=200,left=30,top=30") }
</script>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Galerie Latine - Bijoux Lapis lazuli</title>
ink href="CSS/style_monsite.css" rel="stylesheet" type="text/css">
<meta name="verify-v1" content="Li/LrU2VSEBP8PTALSm716GVNvvBtmr3WgQGZ8O7AFw=" />
<SCRIPT language=Javascript type=text/javascript>
<!--
function verification2()
{
if(document.form1.mail.value.indexOf('@') == -1) {
alert("Entrez un email svp");
document.form1.mail.focus();
return false;
}
return true
}
//-->
</SCRIPT>
<style type="text/css">
<!--
body {
background-color: #FFE9D2;
background-image: url();
}
.Style1 {font-weight: bold}
.Style2 {font-size: 14px; font-style: normal; color: #663300; font-family: Arial, Helvetica, sans-serif;}
.Style6 {font-weight: bold}
.Style7 {
font-size: 16px;
font-weight: bold;
color: #FF0000;
font-family: "Comic Sans MS";
}
.Style9 {font-weight: bold}
.Style10 {font-weight: bold; color: #333333; }
.Style11 {color: #666666}
-->
</style>
</head>
<body>
<div align="center"><!-- #BeginLibraryItem "/Library/menu.lbi" --><table width="800" height="155" border="0" align="center" cellspacing="0" background="images/menu2.gif">
<tr>
<td><table width="800" border="0" align="center" cellspacing="0">
<tr>
<td height="30" valign="bottom">
<div align="right"><!-- #BeginLibraryItem "/Library/versions.lbi" --><table width="110" border="0" align="right" cellspacing="0">
<tr>
<td width="31"><div align="center"><strong class="corps_text_moyen">
<?php echo $language; ?>
</strong></div></td>
<td width="31"><div align="center"><a href="http://www.andesgallery.com/index.php?language=ENG"><img src="images/drapeau_england_2.gif" alt="English version" width="25" height="15" border="0"></a></div></td>
<td width="31"><div align="center"><a href="index.php?language=FR"><img src="images/drapeau%20france%20petit%203.jpg" alt="Version française" width="25" height="15" border="0"></a></div></td>
<td width="17"> </td>
</tr>
</table><!-- #EndLibraryItem --></div></td></tr>
</table></td>
</tr>
<tr>
<td height="50"> </td>
</tr>
<tr>
<td valign="bottom"><!-- #BeginLibraryItem "/Library/menu haut monsite.lbi" -->
<link href="CSS/style_monsite.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.Style1 {color: #FFE9D2}
-->
</style>
<!-- #EndLibraryItem --></td>
</tr>
</table><!-- #EndLibraryItem --></div>
<div align="center">
<table width="800" height="450" border="0" align="center" cellspacing="0">
<tr>
<td width="100" valign="top"><div align="center"><!-- #BeginLibraryItem "/Library/menu_gauche.lbi" --><table width="100%" border="0" align="center" cellspacing="0">
<tr>
<td><div align="center"><br><!-- #BeginLibraryItem "/Library/menu devise.lbi" -->
<link href="CSS/style_monsite.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.Style1 {font-weight: bold}
.Style6 {font-weight: bold}
-->
</style>
<table width="95" border="1" align="center" cellspacing="0" bordercolor="#993300">
<tr>
<td bgcolor="#FFCC99"><div align="center"><span class="corps_text_grand">DEVISE</span> </div></td>
</tr>
<tr>
<td><table width="95" border="0" align="center" cellspacing="0" bgcolor="#FFFFFF">
<tr>
<td height="17" bgcolor="#FFFFFF" class="corps_text_moyen"><div align="center" class="Style6"><img src="images/drapeau_usa_c.gif" width="30" height="17"> <span class="Style1">...</span><img src="images/drapeau_europeb.gif" width="30" height="17"></div></td>
</tr>
<tr>
<td height="17" bgcolor="#FFFFFF" class="corps_text_moyen"><form action="" method="post" name="devise" id="devise">
<div align="center">
<select name="devise" id="devise" onChange="javascript:this.form.submit();">
<option value="EUR" <? if ($_SESSION['devise'] == 'EUR') { echo 'selected="selected"'; } ?>>€ Euro</option>
<option value="USD" <? if ($_SESSION['devise'] == 'USD') { echo 'selected="selected"'; } ?>>$ us</option>
</select>
</div>
</form></td>
</tr>
</table></td>
</tr>
</table>
<!-- #EndLibraryItem --><br><!-- #BeginLibraryItem "/Library/menu monsite.lbi" -->
<link href="CSS/style_monsite.css" rel="stylesheet" type="text/css">
<div align="center">
<table width="95" border="1" cellspacing="0" bordercolor="#993300">
<tr>
<td bgcolor="#FFCC99"><div align="center"><span class="corps_text_grand">RECHERCHE</span>
</div></td>
</tr>
<tr>
<td valign="top" bgcolor="#FFFFFF"><div align="center"><span class="corps_text_moyen">Utilisez des mots-clés pour trouver un objet</span><BR>
</div></td>
</tr>
</table>
</div></td>
</tr>
<tr>
<td height="10" bgcolor="#FFCC99" class="corps_text_moyen"><div align="center"><span class="corps_text_grand">PAR PRIX </span></div></td>
</tr>
<tr>
<td valign="top" bgcolor="#FFFFFF" class="corps_text_moyen"><div align="center"> <table width="94" border="0" align="center" cellspacing="0" bgcolor="#FFFFFF">
<tr>
<td height="17" bgcolor="#FFFFFF" class="corps_text_moyen"><div align="center" class="Style6"><a href="rubr_prix.php?prix_ttc=15" style="text-decoration:none" class="corps_text_moyen">moins de
<?php if ($currency == "USD")
{
echo round(15 * ($row_enr_taux_usa['taux']),0);
?>
$
<?php } else {
echo round(15,1);
?>
€
<?php
}
?>
</a> </div></td>
</tr>
<tr>
<td height="17" bgcolor="#FFFFFF" class="corps_text_moyen"><div align="center" class="Style6"><a href="rubr_prix2.php" style="text-decoration:none" class="corps_text_moyen">de <?php if ($currency == "USD")
{
echo round(15 * ($row_enr_taux_usa['taux']),0);
?>
$
<?php } else {
echo round(15,1);
?>
€
<?php
}
?>
a <?php if ($currency == "USD")
{
echo round(30 * ($row_enr_taux_usa['taux']),0);
?>
$
<?php } else {
echo round(30,1);
?>
€
<?php
}
?>
</a></div></td>
</tr>
<tr>
<td height="17" bgcolor="#FFFFFF" class="corps_text_moyen"><div align="center" class="Style6"><a href="rubr_prix3.php" style="text-decoration:none" class="corps_text_moyen">de <?php if ($currency == "USD")
{
echo round(30 * ($row_enr_taux_usa['taux']),0);
?>
$
<?php } else {
echo round(30,1);
?>
€
<?php
}
?>
a <?php if ($currency == "USD")
{
echo round(60 * ($row_enr_taux_usa['taux']),0);
?>
$
<?php } else {
echo round(60,1);
?>
€
<?php
}
?>
</a></div></td>
</tr>
<tr>
<td height="17" bgcolor="#FFFFFF" class="corps_text_moyen"><div align="center"><span class="Style6"><a href="rubr_prix4.php" style="text-decoration:none" class="corps_text_moyen">de <?php if ($currency == "USD")
{
echo round(60 * ($row_enr_taux_usa['taux']),0);
?>
$
<?php } else {
echo round(60,1);
?>
€
<?php
}
?>
a <?php if ($currency == "USD")
{
echo round(120 * ($row_enr_taux_usa['taux']),0);
?>
$
<?php } else {
echo round(120,1);
?>
€
<?php
}
?>
</a></span></div></td>
</tr>
<tr>
<td height="17" bgcolor="#FFFFFF" class="corps_text_moyen"><div align="center"><a href="rubr_prix5.php?prix_ttc=120" style="text-decoration:none" class="corps_text_moyen">plus de
<?php if ($currency == "USD")
{
echo round(120 * ($row_enr_taux_usa['taux']),0);
?>
$
<?php } else {
echo round(120,1);
?>
€
<?php
}
?>
</a></div></td>
</tr>
</table>
</div></td>
</tr>
</table>
</div></td>
</tr>
</table>
</div>
<!-- #EndLibraryItem --><br><!-- #BeginLibraryItem "/Library/compteur live.lbi" -->
<link href="CSS/style_monsite.css" rel="stylesheet" type="text/css">
<table width="100" border="1" align="center" cellspacing="0" bordercolor="#993300">
<tr>
<td bgcolor="#FFCC99"><div align="center" class="corps_text_grand">VISITEURS</div></td>
</tr>
<tr>
<td bgcolor="#FFFFFF"><div align="center" class="corps_text_moyen">
<?php
// Connexion à MySQL
// -------
// ETAPE 1 : on vérifie si l'IP se trouve déjà dans la table
// Pour faire ça, on n'a qu'à compter le nombre d'entrées dont le champ "ip" est l'adresse ip du visiteur
mysql_select_db($database_monsite, $monsite);
$retour = mysql_query('SELECT COUNT(*) AS nbre_entrees FROM connectes WHERE ip=\'' . $_SERVER['REMOTE_ADDR'] . '\'');
$donnees = mysql_fetch_array($retour);
if ($donnees['nbre_entrees'] == 0) // L'ip ne se trouve pas dans la table, on va l'ajouter
{
mysql_select_db($database_monsite, $monsite);
mysql_query('INSERT INTO connectes VALUES(\'' . $_SERVER['REMOTE_ADDR'] . '\', ' . time() . ')');
}
else // L'ip se trouve déjà dans la table, on met juste à jour le timestamp
{
mysql_select_db($database_monsite, $monsite);
mysql_query('UPDATE connectes SET timestamp=' . time() . ' WHERE ip=\'' . $_SERVER['REMOTE_ADDR'] . '\'');
}
// -------
// ETAPE 2 : on supprime toutes les entrées dont le timestamp est plus vieux que 5 minutes
// On stocke dans une variable le timestamp qu'il était il y a 59 minutes :
mysql_select_db($database_monsite, $monsite);
$timestamp_59min = time() - (60 * 59); // 60 * 59 = nombre de secondes écoulées en 90 minutes
mysql_query('DELETE FROM connectes WHERE timestamp < ' . $timestamp_59min);
// -------
// ETAPE 3 : on compte le nombre d'ip stockées dans la table. C'est le nombre de visiteurs connectés
$retour = mysql_query('SELECT COUNT(*) AS nbre_entrees FROM connectes');
$donnees = mysql_fetch_array($retour);
// Ouf ! On n'a plus qu'à afficher le nombre de connectés !
echo '<p>' . $donnees['nbre_entrees'] . ' visiteurs connectés</p>';
?>
</div></td>
</tr>
</table><!-- #EndLibraryItem --></div></td>
</tr>
</table><!-- #EndLibraryItem --><br>
</a></div></td>
<td width="600" height="250" valign="top"><div align="center">
<table width="580" border="0" align="center" cellpadding="5" cellspacing="0">
<tr>
<td width="290" valign="top"><div align="center">
<br>
<table width="98%" border="0" align="center" cellspacing="0">
<tr>
<td><div align="center"> </div>
<div align="center">
<table width="180" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#663333" bgcolor="#CC6633">
<tr>
<td bgcolor="#FFCC99"><div align="center">
<script language="JavaScript">
StartAnim()
</script>
</div></td>
</tr>
</table>
<span class="corps_text_moyen_comic"> </span></div></td>
</tr>
</table>
<table width="280" height="150" border="0" align="center" cellspacing="0" background="images/formule_fraisinclus.gif">
<tr>
<tr>
<td><div align="center" class="corps_text_moyen_blanc"><a href="expeditions.php" target="_self" class="Style10 Style11">En savoir plus</a></div></td>
</tr>
<tr>
<td> </td>
</tr>
</table>
<table width="280" height="120" border="1" align="center" cellspacing="0" bordercolor="#993300">
<tr>
<td bgcolor="#FFCC99"><div align="center"> <span class="corps_text_grand">PROMOTIONS : BIJOUX LAPIS LAZULI </span><br>
</div></td>
</tr>
<tr>
<td bgcolor="#FFFFFF"><table width="260" border="0" align="center" cellspacing="0">
<tr>
<td width="20%"><div align="left"><a href="detail.php?ref=<?php echo $row_enr_promo1['ref']; ?>"><img src="images/<?php echo $row_enr_promo1['photo1p']; ?>" width="50" height="50" border="0"></a></div>
<div align="center"></div>
<div align="center"></div>
<div align="center"></div></td>
<td width="80%" valign="top"><table width="98%" border="0" align="center" cellspacing="0">
<tr>
<td width="30%"><div align="center" class="Style7">-20%</div></td>
<td width="70%"><div align="right"><span class="Style2"><s>
<?php if ($currency == "USD") { ?>
<?php echo round(($row_enr_promo1['prix_ttc']*($row_enr_taux_usa['taux']))*1.26,1); ?>$</span></s><span class="corps_text_grand"> - <?php echo round($row_enr_promo1['prix_ttc']*($row_enr_taux_usa['taux']),1);?>$</span>
<span class="corps_text_grand">
<?php } else { ?>
<?php echo round($row_enr_promo1['prix_ttc']*1.26,1); ?>€</span></s><span class="corps_text_grand"> - <?php echo round($row_enr_promo1['prix_ttc'],1); ?></span><span class="corps_text_grand">€</span>
<?php
}
?>
</div></td>
</tr>
</table>
<div align="left"><span class="corps_text_moyen"><strong>Bracelet esclave <strong>Lapis Lazuli&Argent</strong><br>
</strong></span></div></td>
</tr>
<tr bgcolor="#FFCC99">
<td height="2" colspan="2"><div align="center"></div></td>
</tr>
<tr>
<td width="20%"><div align="left"><a href="detail.php?ref=<?php echo $row_enr_promo2['ref']; ?>"><img src="images/<?php echo $row_enr_promo2['photo2p']; ?>" width="50" height="50" border="0"></a></div></td>
<td width="80%" valign="top"><div align="center">
<table width="98%" border="0" align="center" cellspacing="0">
<tr>
<td width="30%"><div align="center" class="Style7">-20%</div></td>
<td width="70%"><div align="right"><span class="Style2"><s>
<?php if ($currency == "USD") { ?>
<?php echo round(($row_enr_promo2['prix_ttc']*($row_enr_taux_usa['taux']))*1.26,1); ?>$</span></s><span class="corps_text_grand"> - <?php echo round($row_enr_promo2['prix_ttc']*($row_enr_taux_usa['taux']),1);?>$</span>
<span class="corps_text_grand">
<?php } else { ?>
<?php echo round($row_enr_promo2['prix_ttc']*1.26,1); ?>€</span></s><span class="corps_text_grand"> - <?php echo round($row_enr_promo2['prix_ttc'],1); ?></span><span class="corps_text_grand">€</span>
<?php
}
?>
</div></td>
</tr>
</table>
<div align="justify">
<DIV align=left class="corps_text_moyen"><strong>Boucles d'oreilles Lapis Lazuli&Argent</strong><SPAN class=Style18><BR>
</SPAN></DIV>
</div>
</div></td>
</tr>
<tr bgcolor="#FFCC99">
<td height="2" colspan="2"><div align="center"></div></td>
</tr>
<tr>
<td><div align="center"><a href="detail.php?ref=<?php echo $row_enr_promo3['ref']; ?>"><img src="images/<?php echo $row_enr_promo3['photo2p']; ?>" width="50" height="50" border="0"></a></div></td>
<td valign="top"><div align="center">
<table width="98%" border="0" align="center" cellspacing="0">
<tr>
<td width="30%"><div align="center" class="Style7">-20%</div></td>
<td width="70%"><div align="right"><span class="Style2"><s>
<?php if ($currency == "USD") { ?>
<?php echo round(($row_enr_promo3['prix_ttc']*($row_enr_taux_usa['taux']))*1.26,1); ?>$</span></s><span class="corps_text_grand"> - <?php echo round($row_enr_promo3['prix_ttc']*($row_enr_taux_usa['taux']),1);?>$</span>
<span class="corps_text_grand">
<?php } else { ?>
<?php echo round($row_enr_promo3['prix_ttc']*1.26,1); ?>€</span></s><span class="corps_text_grand"> - <?php echo round($row_enr_promo3['prix_ttc'],1); ?></span><span class="corps_text_grand">€</span>
<?php
}
?>
</div></td>
</tr>
</table>
<div align="left"><span class="corps_text_moyen"><strong>Bracelet fin - Lapis Lazuli&Argent</strong></span><br>
</div>
</div></td>
</tr>
<tr>
<td height="2" colspan="2" bgcolor="#FFCC99"><div align="center"></div></td>
</tr>
<tr>
<td><div align="center"><a href="detail.php?ref=<?php echo $row_enr_promo4['ref']; ?>"><img src="images/<?php echo $row_enr_promo4['photo2p']; ?>" width="50" height="50" border="0"></a></div></td>
<td valign="top"><div align="center">
<table width="98%" border="0" align="center" cellspacing="0">
<tr>
<td width="30%"><div align="center" class="Style7">-20%</div></td>
<td width="70%"><div align="right"><span class="Style2"><s>
<?php if ($currency == "USD") { ?>
<?php echo round(($row_enr_promo4['prix_ttc']*($row_enr_taux_usa['taux']))*1.26,1); ?>$</span></s><span class="corps_text_grand"> - <?php echo round($row_enr_promo4['prix_ttc']*($row_enr_taux_usa['taux']),1);?>$</span>
<span class="corps_text_grand">
<?php } else { ?>
<?php echo round($row_enr_promo4['prix_ttc']*1.26,1); ?>€</span></s><span class="corps_text_grand"> - <?php echo round($row_enr_promo4['prix_ttc'],1); ?></span><span class="corps_text_grand">€</span>
<?php
}
?>
</div></td>
</tr>
</table>
<div align="left"><span class="corps_text_moyen"><strong>Boucles d'oreilles 'Chaguaitü' Argent </strong></span><br>
</div>
</div></td>
</tr>
<tr bgcolor="#FFCC99">
<td height="2" colspan="2"><div align="center"></div></td>
</tr>
<tr>
<td><a href="detail.php?ref=<?php echo $row_enr_promo5['ref']; ?>"><img src="images/<?php echo $row_enr_promo5['photo2p']; ?>" width="50" height="50" border="0"></a></td>
<td valign="top"><table width="98%" border="0" align="center" cellspacing="0">
<tr>
<td width="30%"><div align="center" class="Style7">-20%</div></td>
<td width="70%"><div align="right"><span class="Style2"><s>
<?php if ($currency == "USD") { ?>
<?php echo round(($row_enr_promo5['prix_ttc']*($row_enr_taux_usa['taux']))*1.26,1); ?>$</span></s><span class="corps_text_grand"> - <?php echo round($row_enr_promo5['prix_ttc']*($row_enr_taux_usa['taux']),1);?>$</span>
<span class="corps_text_grand">
<?php } else { ?>
<?php echo round($row_enr_promo5['prix_ttc']*1.26,1); ?>€</span></s><span class="corps_text_grand"> - <?php echo round($row_enr_promo5['prix_ttc'],1); ?></span><span class="corps_text_grand">€</span>
<?php
}
?>
</div></td>
</tr>
</table>
<span class="corps_text_moyen"><strong>Pendentif malaquite et obsidienne</strong></span></td>
</tr>
</table></td>
</tr>
</table>
</div> <div align="center">
<br>
<table width="280" height="120" border="1" align="center" cellspacing="0" bordercolor="#993300">
<tr>
<td bgcolor="#FFCC99"><div align="center"> <span class="corps_text_grand">LIVRAISON EXPRESS </span><br>
</div></td>
</tr>
<tr>
<td bgcolor="#FFFFFF"><div align="center">
<table width="98%" border="0" align="center" cellspacing="0">
<tr>
<td colspan="2"><div align="center"></div>
<div align="justify"><span class="corps_text_moyen">Galerie Latine vous propose deux transporteurs au choix. <strong>Livraison rapide</strong> avec le transporteur privé Fedex ou <strong>livraison économique</strong> avec la poste nationale chilienne CORREOS CHILE </span></div></td>
</tr>
<tr>
<td width="50%"><div align="center"><img src="images/logo_fedex_p.GIF" width="80" height="34"></div></td>
<td width="50%" valign="top"><div align="center"><img src="images/logo_correochile_p.jpg" width="80" height="31"></div></td>
</tr>
<tr>
<td colspan="2"><div align="center" class="corps_text_moyen"><a href="expeditions.php" target="_self" class="corps_text_moyen">En savoir plus</a></div></td>
</tr>
</table>
</div></td>
</tr>
</table>
</div></td>
<td width="290" valign="top"> <DIV align=justify class="corps_text_moyen">
<div align="center">
<p align="justify"><strong><br>
Galerie Latine</strong> est une monsite de vente en ligne de bijoux et d'objets déco, <strong>chilien et d'Amérique latine</strong>. Les traditions de cette région du monde sont toujours présentes et on retrouve le <strong>travail manuel</strong> avec des matières premières issues de la nature. Cet héritage du passé donne ainsi naissance à des <strong>produits uniques et d'une grande valeur culturelle, </strong>en <strong>argent et pierres semi précieuses</strong>, comme par exemple nos<strong> bijoux lapis lazuli.</strong></p>
<table width="280" height="120" border="1" align="center" cellspacing="0" bordercolor="#993300">
<tr>
<td bgcolor="#FFFFFF"><div align="center"> <img src="images/icone_coeur.gif" width="25" height="25" align="absmiddle"> <span class="corps_text_grand">FORMULE CADEAU </span> <img src="images/icone_coeur.gif" width="25" height="25" align="absmiddle"><br>
</div></td>
</tr>
<tr>
<td bgcolor="#FFFFFF"><div align="center">
<table width="98%" border="0" align="center" cellspacing="0">
<tr>
<td colspan="2"><div align="center"></div>
<div align="justify" class="corps_text_moyen">
<div align="justify">Expédiez un cadeau à la personne de votre choix, <strong class="corps_text_grand">depuis le Chili avec votre message personnalisé ! </strong></div>
</div></td>
</tr>
<tr>
<td width="50%"><div align="center"><a href="cadeaux.php"><img src="images/formule_cadeaux2.jpg" alt="Cartes postales au choix" width="100" height="71" border="0"></a></div></td>
<td width="50%" valign="top"><div align="center"><a href="cadeaux.php"><img src="images/110_F_1955660_iSpKQFPQxpCij7qr2GHeg3wJpDjFGm.jpg" alt="Un cadeau original !" width="110" height="73" border="0"></a></div></td>
</tr>
<tr>
<td colspan="2"><div align="center" class="corps_text_moyen"><a href="cadeaux.php" target="_self" class="corps_text_moyen">En savoir plus</a></div></td>
</tr>
</table>
</div></td>
</tr>
</table>
<br>
</div>
</DIV> <div align="center">
<table width="300" height="20" border="0" align="center" cellspacing="0" bordercolor="#993300">
<tr>
<td><div align="center"><span class="corps_text_grand">NOUVEAUTÉS</span></div></td>
</tr>
<tr>
<td><div align="center">
<?php do { ?>
<table width="300" height="180" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#993300">
<?php
$i = 0;
while ($row_enr_produits = mysql_fetch_row($enr_produits))
{
if($i % 3 == 0)
{
}
$id = $row_enr_produits[0];
$ref = $row_enr_produits[1];
$rub1 = $row_enr_produits[2];
$rub2 = $row_enr_produits[3];
$titre = $row_enr_produits[14];
$prix = $row_enr_produits[18];
$pays = $row_enr_produits[9];
$photo = $row_enr_produits[28];
?>
<td width="80" height="85
" align="center" valign="top"><div class="corps_text_grand"> </div>
<div align="center" class="corps_text_moyen_marron"><a href="detail.php?ref=<?php echo $row_enr_produits[1]; ?>"><IMG SRC='images/<?php echo ($photo); ?>' ALT='<?php echo($titre); ?>' width="75" border='0' > </a> <br>
</div>
<div class="corps_text_moyen">
<table width="85" border="0" align="center" cellspacing="0">
<tr>
<td class="corps_text_petit"><div align="center" class="corps_text_moyen_marron"></div>
<div align="center" class="corps_text_moyen_marron"><?php echo($titre);?></div></td>
</tr>
<tr>
<td class="corps_text_petit"><div align="center"><span class="corps_text_moyen_marron">Prix:
<?php if ($currency == "USD")
{
echo round($prix * ($row_enr_taux_usa['taux']),1);
?>$
<?php } else {
echo round($prix,1);
?>€
<?php
}
?>
</span></div></td>
</tr>
</table>
</div></td>
<?php
if(($i + 1) % 3 == 0)
{
?>
</tr>
<?php
}
$i++;
}
?>
</table>
<?php } while ($row_enr_produits = mysql_fetch_assoc($enr_produits)); ?>
</div></td>
</tr>
</table>
<br>
</td>
<td width="100" valign="top"><div align="center">
<p>
<!-- #BeginLibraryItem "/Library/menu_droit.lbi" --><table width="100%" border="0" align="center" cellspacing="0">
<tr>
<td><div align="center">
<p><br>
<?php if (isset($_SESSION['MM_Username'])) { ?>
<!-- #BeginLibraryItem "/Library/connection.lbi" -->
<link href="CSS/style_monsite.css" rel="stylesheet" type="text/css">
<table width="95" border="1" align="center" cellspacing="0" bordercolor="#993300">
<tr>
<td bgcolor="#66FF99"><div align="center"><span class="corps_text_moyen">CONNECTION</span></div></td>
</tr>
<tr>
<td><div align="center">
<table width="95" border="0" align="center" cellspacing="0">
<tr>
<td bgcolor="#FFFFFF" class="corps_text_moyen"><div align="center" class="corps_text_moyen"><span class="corps_text_grand">Utilisateur </span>:<br>
<?php echo $row_enr_clients['utilisateur']; ?><br>
<a href="espace_client.php" class="corps_text_moyen">Espace client<br>
</a><a href="maj.php" class="corps_text_moyen">Infos Perso.</a><a href="Library/espace_client.php" class="corps_text_moyen"></a><a href="espace_client.php" class="corps_text_moyen"><br>
</a><a href="resum_command.php" class="corps_text_moyen">Commandes</a><a href="Library/espace_client.php" class="corps_text_moyen"></a><a href="espace_client.php" class="corps_text_moyen"><br>
<span class="Style19"></span></a><span class="Style19"><a href="logout.php" class="corps_text_moyen">Déconnection</a></span>
</div></td>
</tr>
</table>
</div></td>
</tr>
</table>
<!-- #EndLibraryItem --><?php }?>
<?php if (!isset($_SESSION['MM_Username'])) {?><!-- #BeginLibraryItem "/Library/connection monsite.lbi" -->
<link href="CSS/style_monsite.css" rel="stylesheet" type="text/css">
<table width="95" border="1" align="center" cellspacing="0" bordercolor="#993300">
<tr>
<td bgcolor="#FFCC99"><div align="center"><span class="corps_text_grand">CONNECTION</span></div></td>
</tr>
<tr>
<td><div align="center">
<table width="95" border="0" align="center" cellspacing="0">
<tr>
<td bgcolor="#FFFFFF" class="corps_text_moyen"><div align="center" class="corps_text_petit">
<form action="" method="post" name="connection" class="Style1" id="connection">
<p class="corps_text_petit">Utilisateur<br>
<input name="client" type="text" id="client" size="9">
<br>
Mot de passe<br>
<input name="pass" type="password" id="pass" size="9">
<input type="submit" name="Submit" value="Entrer">
</p>
</form>
</div></td>
</tr>
<tr>
<td height="20" bgcolor="#FFFFFF" class="corps_text_moyen"><div align="center"><span class="Style1"><a href="signin.php" class="corps_text_petit">INSCRIPTION</a></span></div></td>
</tr>
<tr>
<td height="35" bgcolor="#FFFFFF" class="corps_text_moyen"><div align="center" class="corps_text_petit"><a href="pass.php" class="corps_text_petit">MOT DE PASSE OUBLIÉ ! </a> </div></td>
</tr>
</table>
</div></td>
</tr>
</table>
<!-- #EndLibraryItem --><?php }?>
<br><!-- #BeginLibraryItem "/Library/panier.lbi" -->
<link href="CSS/style_monsite.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.Style2 {
color: #000000;
font-size: 12px;
}
-->
</style>
<table width="100" border="1" align="center" cellspacing="0" bordercolor="#993300">
<tr>
<td bgcolor="#FFCC99"><div align="center"><span class="corps_text_grand"><strong>PANIER</strong></span> <a href="panier.php"><img src="images/fleche10.gif" width="16" height="12" border="0"></a></div></td>
</tr>
<tr>
<td bgcolor="#FFFFFF"> <?php if($liste[0][0]!="VIDE") { ?> <?php
$total=0.00;
$poids=0.00;
for ($i=0;$i<count($liste);$i++)
{
$query_rsPanier="select * from table_produits where ref = '".$liste[$i][0]."'";
//echo $query_rsPanier;
$rsPanier = mysql_query($query_rsPanier, $monsite) or die(mysql_error());
$row_rsPanier = mysql_fetch_assoc($rsPanier);
?>
<div align="left"><span class="corps_text_moyen"><img src="images/planete1.gif" width="16" height="16"><?php echo $liste[$i][1] ?></span><span class="corps_text_petit"> x <?php echo $row_rsPanier['titre'] ?></span><br>
<?php }?>
<?php } else { ?>
<span class="Style2"><font face="Verdana, Arial, Helvetica, sans-serif"> Votre panier est vide</font></span>
<?php }?>
</div></td>
</tr>
</table><!-- #EndLibraryItem --><br><!-- #BeginLibraryItem "/Library/menu paiement.lbi" -->
<link href="CSS/style_monsite.css" rel="stylesheet" type="text/css">
<table width="95" border="1" align="center" cellspacing="0" bordercolor="#993300">
<tr>
<td bgcolor="#FFCC99"><div align="center"><span class="corps_text_grand">PAIEMENTS</span></div></td>
</tr>
<tr>
<td><div align="center">
<table width="90" border="0" align="center" cellspacing="0">
<tr>
<td valign="bottom" bgcolor="#FFFFFF"><div align="center"> <img src="images/logo-cb.gif" width="80" height="20"><br>
</div></td>
</tr>
<tr>
<td bgcolor="#FFFFFF"><div align="center" class="corps_text_moyen"><img src="images/logo_paypal.gif" width="72" height="27"></div></td>
</tr>
<tr>
<td bgcolor="#FFFFFF"><div align="center" class="corps_text_grand">CHÉQUES</div></td>
</tr>
<tr>
<td bgcolor="#FFFFFF"><div align="center">
<h6><span class="corps_text_moyen"><a href="paiementsecu.php" class="corps_text_moyen">Infos/Paiement </a></span><br>
</h6>
</div></td>
</tr>
</table>
</div></td>
</tr>
</table>
<!-- #EndLibraryItem --><br><!-- #BeginLibraryItem "/Library/menu_revendeurs.lbi" -->
<link href="CSS/style_monsite.css" rel="stylesheet" type="text/css">
<table width="95" border="1" cellspacing="0" bordercolor="#993300">
<tr>
<td bgcolor="#FFCC99"><div align="center"><span class="corps_text_grand">SPÉCIAL</span> </div></td>
</tr>
<tr>
<td><div align="center">
<table width="95" border="0" align="center" cellspacing="0" bgcolor="#FFFFFF">
<tr>
<td bgcolor="#FFFFFF" class="corps_text_moyen"><div align="center" class="corps_text_moyen">Vous souhaitez <strong>revendre</strong> nos produits. Vous êtes un <strong>comité d'entreprise</strong>. Vous souhaitez un <strong>bijou spécial </strong><br>
<a href="prof.php" class="corps_text_moyen">C'EST ICI </a></div>
<div align="center" class="Style6"> </div> <div align="center" class="Style6"></div> <div align="center"></div> <div align="center"></div> <div align="center"><a href="file:///C|/wamp/www/rubr_materiaux.php?rubannu1=obsidienne" style="text-decoration:none" class="corps_text_moyen"> </a></div> <div align="center"></div></td>
</tr>
</table>
</div></td>
</tr>
</table><!-- #EndLibraryItem --><br><!-- #BeginLibraryItem "/Library/menu newsletter.lbi" -->
<link href="CSS/style_monsite.css" rel="stylesheet" type="text/css">
<table width="95" border="1" align="center" cellspacing="0" bordercolor="#993300">
<tr>
<td bgcolor="#FFCC99"><div align="center"><span class="corps_text_grand">NEWSLETTER</span></div></td>
</tr>
<tr>
<td><div align="center">
<table width="95" border="0" align="center" cellpadding="3" cellspacing="0">
<tr>
<td height="0" bgcolor="#FFFFFF"><div align="center"><span class="corps_text_moyen"><a href="newsletter.php" class="corps_text_moyen">Recevoir la Newsletter</a></span></div></td>
</tr>
<tr>
<td bgcolor="#FFFFFF">
<form action="newsletter_abo.php" method="post" name="form1" id="form1" onSubmit="return verification2()">
<div align="center">
<input name="mail" type="text" id="mail" value="Votre email" size="10">
<span class="corps_text_grand"><a href="newsletter_abo.php" class="corps_text_grand"><br>
</a>
<input type="submit" name="Submit" value="Envoyer">
</span></div>
</form>
</td>
</tr>
</table>
</div></td>
</tr>
</table>
<div align="center"></div>
<!-- #EndLibraryItem --><br><!-- #BeginLibraryItem "/Library/liens.lbi" -->
<link href="CSS/style_monsite.css" rel="stylesheet" type="text/css">
<table width="100" border="1" align="center" cellspacing="0" bordercolor="#993300">
<tr>
<td bgcolor="#FFCC99"><div align="center" class="corps_text_grand">PARTENAIRES</div></td>
</tr>
<tr>
<td bgcolor="#FFFFFF"><div align="center" class="corps_text_moyen"><a href="liens.php" class="corps_text_moyen">Liens</a><br>
<a href="echange.php" class="corps_text_moyen">Partenariat</a><br>
</div></td>
</tr>
</table><!-- #EndLibraryItem --><a target=_blank title="Site sélectionné par LeGuide.com" href="http://www.leguide.com/"> <img src="http://img.leguide.com/sticker/leguide_jaune.gif" alt="LeGuide.com.com" border=0> </a>
</div></td>
</tr>
</table><!-- #EndLibraryItem --></div></td>
</tr>
</table>
<!-- #BeginLibraryItem "/Library/menu bas monsite.lbi" -->
<link href="CSS/style_monsite.css" rel="stylesheet" type="text/css">
<table width="800" border="0" align="center" cellspacing="0">
<tr>
<td class="corps_text_moyen_gris"><div align="center">PARTENAIRES : <!-- début du code liendur.com --><a href="http://www.liendur.com/top-clicks.php?lien_en_dur=9303" title="Ce site traitant du sujet Bijoux est validé par liendur.com est certifié conforme aux lois en vigueur dans son pays d'hébergement" target="_blank" class="corps_text_moyen_gris">Annuaire Bijoux</a><!-- fin du code liendur --></div></td>
</tr>
</table>
<!-- #EndLibraryItem --><?php echo $row_enr_affilie['track']; ?><br>
<?php echo $row_enr_affilie['click']; ?></div>
</body>
</html>
<?php
mysql_free_result($enr_clients);
mysql_free_result($enr_taux_usa);
mysql_free_result($enr_adecouvrir);
mysql_free_result($enr_affilie);
mysql_free_result($enr_produits);
?>