Sebasti12 | Ca doit être ici quelque part qu'il faut ajouter le code pour pouvoir ajouter l'icone:
Code :
- <?
- require("data/tools.inc.php" );
- $nav=Navigation($parent,$mysql_link);
- require("data/header.inc.php" );
- require("data/options.inc.php" );
- ?>
- <?
- if($howrub=="column" ) {
- if($parent=="0" ) {
- ?>
- <table width="100%" border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td width="235" valign="top">
- <table width="100%" border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td bgcolor="<? echo "$bg1color" ?>"> <b>R</b>ubriques</td>
- </tr>
- </table>
- <table width="100%" border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td valign="top">
- <table width="100%" border="0" cellspacing="0" cellpadding="2">
- <?
- $balise=0;
- $query = "SELECT nom,id_rubrique FROM deal_rubriques WHERE parent='$parent'";
- $mysql_result = mysql_query($query,$mysql_link);
- while($row = mysql_fetch_array($mysql_result))
- {
- $nom=$row[0];
- $rubrique=$row[1];
- $inventaire=Inventaire($rubrique,$mysql_link);
- $line=$balise/2;
- $isset_rubrique="y";
- if(is_integer($line))
- {
- echo "<tr><td width=\"2\" bgcolor=\"$bg1color\"><img src=\"images/transparent.gif\" width=\"1\" height=\"1\"></td>
- <td> <a href=\"achat_rubrique.php?parent=$rubrique\"><font color=\"$textcolor\">$nom</font></a> ($inventaire)</td>
- <td width=\"2\" bgcolor=\"$bg1color\"><img src=\"images/transparent.gif\" width=\"1\" height=\"1\"></td></tr>";
- $balise++;
- }
- else
- {
- echo "<tr bgcolor=\"$bg2color\"><td width=\"2\" bgcolor=\"$bg1color\"><img src=\"images/transparent.gif\" width=\"1\" height=\"1\"></td>
- <td> <a href=\"achat_rubrique.php?parent=$rubrique\"><font color=\"$textcolor\">$nom</font></a> ($inventaire)</td>
- <td width=\"2\" bgcolor=\"$bg1color\"><img src=\"images/transparent.gif\" width=\"1\" height=\"1\"></td></tr>";
- $balise++;
- }
- }
- if($isset_rubrique!="y" ) {
- echo "<tr><td colspan=\"3\"><i>Aucune sous-rubrique n'est disponible.</i></td></tr>";
- }
- ?>
- </table>
- </td>
- </tr>
- <tr bgcolor="<? echo "$bg1color" ?>">
- <td colspan="3" height="2"><img src="images/transparent.gif" width="1" height="1"></td>
- </tr>
- </table>
- </td>
- <td width=3><img src="images/transparent.gif" width="1" height="1"></td>
- <td valign="top">
- <table width="100%" border="0" cellspacing="0" cellpadding="0">
- <? if($okedito=="yes" ) { ?>
- <tr bgcolor="<? echo "$bg1color" ?>">
- <td width="2"><img src="images/transparent.gif" width="1" height="1"></td>
- <td width="1"> </td>
- <td colspan="2"><b>E</b>ditorial</td>
- <td width="2"><img src="images/transparent.gif" width="1" height="1"></td>
- </tr>
- <tr>
- <td width="2" bgcolor="<? echo "$bg1color" ?>"><img src="images/transparent.gif" width="1" height="1"></td>
- <td width="1"> </td>
- <td colspan="2">
- <?
- $contentedito=ereg_replace("([^>])\n","\\1<BR>\n",$contentedito);
- echo "$contentedito";
- ?>
- </td>
- <td width="2" bgcolor="<? echo "$bg1color" ?>"><img src="images/transparent.gif" width="1" height="1"></td>
- </tr>
- <tr bgcolor="<? echo "$bg1color" ?>">
- <td colspan="5" height="2"><img src="images/transparent.gif" width="1" height="1"></td>
- </tr>
- <tr>
- <td colspan="5" height="3"><img src="images/transparent.gif" width="1" height="1"></td>
- </tr>
- <?
- }
- if($affichnext!="0" and $affichnext!="" ) { ?>
- <tr bgcolor="<? echo "$bg1color" ?>">
- <td width="2"><img src="images/transparent.gif" width="1" height="1"></td>
- <td width="1"> </td>
- <td><b>P</b>rochaines clôtures</td>
- <td><div align="right">[<a href="recherche.php"><font color="<? echo "$textcolor" ?>">Rechercher
- une enchère</font></a>]</div></td>
- <td width="2"><img src="images/transparent.gif" width="1" height="1"></td>
- </tr>
- <tr>
- <td width="2" bgcolor="<? echo "$bg1color" ?>"><img src="images/transparent.gif" width="1" height="1"></td>
- <td colspan="3">
- <table width="100%" border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td width="35%"> Désignation : </td>
- <td width="21%">Mise à prix :</td>
- <td width="21%">Prix actuel :</td>
- <td width="23%">Fin de l'enchère :</td>
- </tr>
- <tr bgcolor="<? echo "$bg1color" ?>">
- <td colspan="4" height="2"><img src="images/transparent.gif" width="1" height="1"></td>
- </tr>
- </table>
- <table width="100%" border="0" cellspacing="0" cellpadding="0">
- <?
- $balise=0;
- $query = "SELECT deal_articles.*,deal_rubriques.nom,deal_rubriques.id_rubrique FROM deal_articles,deal_rubriques WHERE deal_rubriques.id_rubrique=deal_articles.id_rubrique AND deal_articles.en_ligne='Y' ORDER BY deal_articles.fin ASC LIMIT 0,$affichnext";
- $mysql_result = mysql_query($query,$mysql_link);
- while($row = mysql_fetch_array($mysql_result))
- {
- $designation=stripslashes($row["designation"]);
- $devise=$row["devise"];
- $prix_depart=$row["prix_depart"];
- $prix_actuel=$row["prix_actuel"];
- $fin=DateFrench($row["fin"]);
- $id_article=$row["id_article"];
- $rubrique=$row["nom"];
- $numero=$row["id_rubrique"];
- $line=$balise/2;
- $isset_site="y";
- if(is_integer($line))
- {
- echo "<tr>";
- $balise++;
- }
- else
- {
- echo "<tr bgcolor=\"$bg2color\">";
- $balise++;
- }
- echo "<td width=\"35%\"> <a href=\"in_article.php?id_article=$id_article&id_rubrique=$numero&rubrique=$rubrique\"><font color=\"$textcolor\">$designation</font></a></td>
- <td width=\"21%\">$prix_depart $devise</td>
- <td width=\"21%\">$prix_actuel $devise</td>
- <td width=\"23%\">$fin</td>
- </tr>";
- }
- if($isset_site!="y" ) {
- echo "<tr>
- <td colspan=\"4\"><i>Aucun objet en vente actuellement.</i></td>
- </tr>";
- }
- ?>
- <tr bgcolor="<? echo "$bg1color" ?>">
- <td colspan="4" height="2"><img src="images/transparent.gif" width="1" height="1"></td>
- </tr>
- </table>
- </td>
- <td width="2" bgcolor="<? echo "$bg1color" ?>"><img src="images/transparent.gif" width="1" height="1"></td>
- </tr>
- <tr>
- <td colspan="5" height="3"><img src="images/transparent.gif" width="1" height="1"></td>
- </tr>
- <?
- }
- if($topview!="0" and $topview!="" ) { ?>
- <tr bgcolor="<? echo "$bg1color" ?>">
- <td width="2"><img src="images/transparent.gif" width="1" height="1"></td>
- <td width="1"> </td>
- <td><b>T</b>op des ventes les plus consultées</td>
- <td><div align="right">[<a href="recherche.php"><font color="<? echo "$textcolor" ?>">Rechercher
- une enchère</font></a>]</div></td>
- <td width="2"><img src="images/transparent.gif" width="1" height="1"></td>
- </tr>
- <tr>
- <td width="2" bgcolor="<? echo "$bg1color" ?>"><img src="images/transparent.gif" width="1" height="1"></td>
- <td colspan="3">
- <table width="100%" border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td width="35%"> Désignation : </td>
- <td width="21%">Mise à prix :</td>
- <td width="21%">Prix actuel :</td>
- <td width="23%">Fin de l'enchère :</td>
- </tr>
- <tr bgcolor="<? echo "$bg1color" ?>">
- <td colspan="4" height="2"><img src="images/transparent.gif" width="1" height="1"></td>
- </tr>
- </table>
- <table width="100%" border="0" cellspacing="0" cellpadding="0">
- <?
- $balise=0;
- $query = "SELECT deal_articles.*,deal_rubriques.nom,deal_rubriques.id_rubrique FROM deal_articles,deal_rubriques WHERE deal_rubriques.id_rubrique=deal_articles.id_rubrique AND deal_articles.en_ligne='Y' ORDER BY deal_articles.views DESC LIMIT 0,$topview";
- $mysql_result = mysql_query($query,$mysql_link);
- while($row = mysql_fetch_array($mysql_result))
- {
- $designation=stripslashes($row["designation"]);
- $devise=$row["devise"];
- $prix_depart=$row["prix_depart"];
- $prix_actuel=$row["prix_actuel"];
- $fin=DateFrench($row["fin"]);
- $id_article=$row["id_article"];
- $rubrique=$row["nom"];
- $numero=$row["id_rubrique"];
- $line=$balise/2;
- $isset_site="y";
- if(is_integer($line))
- {
- echo "<tr>";
- $balise++;
- }
- else
- {
- echo "<tr bgcolor=\"$bg2color\">";
- $balise++;
- }
- echo "<td width=\"35%\"> $balise. <a href=\"in_article.php?id_article=$id_article&id_rubrique=$numero&rubrique=$rubrique\"><font color=\"$textcolor\">$designation</font></a></td>
- <td width=\"21%\">$prix_depart $devise</td>
- <td width=\"21%\">$prix_actuel $devise</td>
- <td width=\"23%\">$fin</td>
- </tr>";
- }
- if($isset_site!="y" ) {
- echo "<tr>
- <td colspan=\"4\"><i>Aucun objet en vente actuellement.</i></td>
- </tr>";
- }
- ?>
- <tr bgcolor="<? echo "$bg1color" ?>">
- <td colspan="4" height="2"><img src="images/transparent.gif" width="1" height="1"></td>
- </tr>
- </table>
- </td>
- <td width="2" bgcolor="<? echo "$bg1color" ?>"><img src="images/transparent.gif" width="1" height="1"></td>
- </tr>
- <tr>
- <td colspan="5" height="3"><img src="images/transparent.gif" width="1" height="1"></td>
- </tr>
- <? } ?>
- </table>
- </td>
- </tr>
- </table>
- <?
- }
- else {
- ?>
- <table width="100%" border="0" cellspacing="0" cellpadding="0">
- <tr bgcolor="<? echo "$bg1color" ?>">
- <td width="50%"><b>L</b>iste des
- sous-rubriques disponibles :</td>
- <td width="50%">
- <div align="right">[<a href="recherche.php"><font color="<? echo "$textcolor" ?>">Rechercher
- une enchère</font></a>]</div>
- </td>
- </tr>
- </table>
- <?
- $query = "SELECT id_rubrique FROM deal_rubriques WHERE parent='$parent'";
- $resu = mysql_query($query,$mysql_link);
- $rows = mysql_num_rows($resu);
- $demi=$rows/2;
- if(!is_integer($demi))
- {
- $demie=$demi;
- $demi=intval($demi)+1;
- }
- ?>
- <table width="100%" border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td valign="top">
- <table width="100%" border="0" cellspacing="0" cellpadding="0">
- <?
- $balise=0;
- $query = "SELECT nom,id_rubrique FROM deal_rubriques WHERE parent='$parent' limit 0, $demi";
- $mysql_result = mysql_query($query,$mysql_link);
- while($row = mysql_fetch_array($mysql_result))
- {
- $nom=$row[0];
- $rubrique=$row[1];
- $inventaire=Inventaire($rubrique,$mysql_link);
- $line=$balise/2;
- $isset_rubrique="y";
- if(is_integer($line))
- {
- echo "<tr><td> <a href=\"achat_rubrique.php?parent=$rubrique\"><font color=\"$textcolor\">$nom</font></a> ($inventaire)</td></tr>";
- $balise++;
- }
- else
- {
- echo "<tr bgcolor=\"$bg2color\"><td> <a href=\"achat_rubrique.php?parent=$rubrique\"><font color=\"$textcolor\">$nom</font></a> ($inventaire)</td></tr>";
- $balise++;
- }
- }
- if($isset_rubrique!="y" ) {
- echo "<tr><td><i>Aucune sous-rubrique n'est disponible.</i></td></tr>";
- }
- ?>
- </table>
- </td>
- <td valign="top">
- <table width="100%" border="0" cellspacing="0" cellpadding="0">
- <?
- $balise=0;
- $query = "SELECT nom,id_rubrique FROM deal_rubriques WHERE parent='$parent' limit $demi, $demi";
- $mysql_result = mysql_query($query,$mysql_link);
- while($row = mysql_fetch_array($mysql_result))
- {
- $nom=$row[0];
- $rubrique=$row[1];
- $inventaire=Inventaire($rubrique,$mysql_link);
- $line=$balise/2;
- if(is_integer($line))
- {
- echo "<tr><td> <a href=\"achat_rubrique.php?parent=$rubrique\"><font color=\"$textcolor\">$nom</font></a> ($inventaire)</td></tr>";
- $balise++;
- }
- else
- {
- echo "<tr bgcolor=\"$bg2color\"><td> <a href=\"achat_rubrique.php?parent=$rubrique\"><font color=\"$textcolor\">$nom</font></a> ($inventaire)</td></tr>";
- $balise++;
- }
- }
- if(isset($demie))
- {
- $line=$balise/2;
- if(is_integer($line))
- {
- echo "<tr><td> </td></tr>";
- }
- else
- {
- echo "<tr bgcolor=\"$bg2color\"><td> </td></tr>";
- }
- }
- ?>
- </table>
- </td>
- </tr>
- <tr bgcolor="<? echo "$bg1color" ?>">
- <td colspan="2" height="3"><img src="images/transparent.gif" width="1" height="1"></td>
- </tr>
- <tr>
- <td colspan="2"> </td>
- </tr>
- </table>
- <table width="100%" border="0" cellspacing="0" cellpadding="0">
- <tr bgcolor="<? echo "$bg1color" ?>">
- <td width="50%"><b>E</b>nchères en cours dans cette rubrique :</td>
- <td width="50%">
- <div align="right">[<a href="recherche.php"><font color="<? echo "$textcolor" ?>">Rechercher
- une enchère</font></a>]</div>
- </td>
- </tr>
- </table>
- <table width="100%" border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td width="45%">Désignation : </td>
- <td width="16%">Mise à prix :</td>
- <td width="16%">Prix actuel :</td>
- <td width="23%">Fin de l'enchère :</td>
- </tr>
- <tr bgcolor="<? echo "$bg1color" ?>">
- <td colspan="4" height="3"><img src="images/transparent.gif" width="1" height="1"></td>
- </tr>
- </table>
- <table width="100%" border="0" cellspacing="0" cellpadding="0">
- <?
- $balise=0;
- $query = "SELECT deal_articles.*,deal_rubriques.nom FROM deal_articles,deal_rubriques WHERE deal_articles.id_rubrique='$parent' AND deal_rubriques.id_rubrique=deal_articles.id_rubrique AND deal_articles.en_ligne='Y' ORDER BY deal_articles.fin ASC";
- $mysql_result = mysql_query($query,$mysql_link);
- while($row = mysql_fetch_array($mysql_result))
- {
- $designation=stripslashes($row["designation"]);
- $devise=$row["devise"];
- $prix_depart=$row["prix_depart"];
- $prix_actuel=$row["prix_actuel"];
- $fin=DateFrench($row["fin"]);
- $id_article=$row["id_article"];
- $rubrique=$row["nom"];
- $line=$balise/2;
- $isset_site="y";
- if(is_integer($line))
- {
- echo "<tr>";
- $balise++;
- }
- else
- {
- echo "<tr bgcolor=\"$bg2color\">";
- $balise++;
- }
- echo "<td width=\"45%\"><a href=\"in_article.php?id_article=$id_article&id_rubrique=$parent&rubrique=$rubrique\"><font color=\"$textcolor\">$designation</font></a></td>
- <td width=\"16%\">$prix_depart $devise</td>
- <td width=\"16%\">$prix_actuel $devise</td>
- <td width=\"23%\">$fin</td>
- </tr>";
- }
- if($isset_site!="y" ) {
- echo "<tr>
- <td colspan=\"4\"><i>Aucun objet disponible dans cette rubrique.</i></td>
- </tr>";
- }
- ?>
- <tr bgcolor="<? echo "$bg1color" ?>">
- <td colspan="4" height="3"><img src="images/transparent.gif" width="1" height="1"></td>
- </tr>
- </table>
- <?
- }
- }
- elseif($howrub="column" ) {
- ?>
- <table width="100%" border="0" cellspacing="0" cellpadding="0">
- <tr bgcolor="<? echo "$bg1color" ?>">
- <td width="50%"><b>L</b>iste des
- <? if($parent!="0" ) { echo "sous-"; } ?>rubriques disponibles :</td>
- <td width="50%">
- <div align="right">[<a href="recherche.php"><font color="<? echo "$textcolor" ?>">Rechercher
- une enchère</font></a>]</div>
- </td>
- </tr>
- </table>
- <?
- $query = "SELECT id_rubrique FROM deal_rubriques WHERE parent='$parent'";
- $resu = mysql_query($query,$mysql_link);
- $rows = mysql_num_rows($resu);
- $demi=$rows/2;
- if(!is_integer($demi))
- {
- $demie=$demi;
- $demi=intval($demi)+1;
- }
- ?>
- <table width="100%" border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td valign="top">
- <table width="100%" border="0" cellspacing="0" cellpadding="0">
- <?
- $balise=0;
- $query = "SELECT nom,id_rubrique FROM deal_rubriques WHERE parent='$parent' limit 0, $demi";
- $mysql_result = mysql_query($query,$mysql_link);
- while($row = mysql_fetch_array($mysql_result))
- {
- $nom=$row[0];
- $rubrique=$row[1];
- $inventaire=Inventaire($rubrique,$mysql_link);
- $line=$balise/2;
- $isset_rubrique="y";
- if(is_integer($line))
- {
- echo "<tr><td> <a href=\"achat_rubrique.php?parent=$rubrique\"><font color=\"$textcolor\">$nom</font></a> ($inventaire)</td></tr>";
- $balise++;
- }
- else
- {
- echo "<tr bgcolor=\"$bg2color\"><td> <a href=\"achat_rubrique.php?parent=$rubrique\"><font color=\"$textcolor\">$nom</font></a> ($inventaire)</td></tr>";
- $balise++;
- }
- }
- if($isset_rubrique!="y" ) {
- echo "<tr><td><i>Aucune sous-rubrique n'est disponible.</i></td></tr>";
- }
- ?>
- </table>
- </td>
- <td valign="top">
- <table width="100%" border="0" cellspacing="0" cellpadding="0">
- <?
- $balise=0;
- $query = "SELECT nom,id_rubrique FROM deal_rubriques WHERE parent='$parent' limit $demi, $demi";
- $mysql_result = mysql_query($query,$mysql_link);
- while($row = mysql_fetch_array($mysql_result))
- {
- $nom=$row[0];
- $rubrique=$row[1];
- $inventaire=Inventaire($rubrique,$mysql_link);
- $line=$balise/2;
- if(is_integer($line))
- {
- echo "<tr><td> <a href=\"achat_rubrique.php?parent=$rubrique\"><font color=\"$textcolor\">$nom</font></a> ($inventaire)</td></tr>";
- $balise++;
- }
- else
- {
- echo "<tr bgcolor=\"$bg2color\"><td> <a href=\"achat_rubrique.php?parent=$rubrique\"><font color=\"$textcolor\">$nom</font></a> ($inventaire)</td></tr>";
- $balise++;
- }
- }
- if(isset($demie))
- {
- $line=$balise/2;
- if(is_integer($line))
- {
- echo "<tr><td> </td></tr>";
- }
- else
- {
- echo "<tr bgcolor=\"$bg2color\"><td> </td></tr>";
- }
- }
- ?>
- </table>
- </td>
- </tr>
- <? if($parent!="0" ) { ?>
- <tr bgcolor="<? echo "$bg1color" ?>">
- <td colspan="2" height="3"><img src="images/transparent.gif" width="1" height="1"></td>
- </tr>
- <tr>
- <td colspan="2"> </td>
- </tr>
- </table>
- <table width="100%" border="0" cellspacing="0" cellpadding="0">
- <tr bgcolor="<? echo "$bg1color" ?>">
- <td width="50%"><b>E</b>nchères en cours dans cette rubrique :</td>
- <td width="50%">
- <div align="right">[<a href="recherche.php"><font color="<? echo "$textcolor" ?>">Rechercher
- une enchère</font></a>]</div>
- </td>
- </tr>
- </table>
- <table width="100%" border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td width="45%">Désignation : </td>
- <td width="16%">Mise à prix :</td>
- <td width="16%">Prix actuel :</td>
- <td width="23%">Fin de l'enchère :</td>
- </tr>
- <tr bgcolor="<? echo "$bg1color" ?>">
- <td colspan="4" height="3"><img src="images/transparent.gif" width="1" height="1"></td>
- </tr>
- </table>
- <table width="100%" border="0" cellspacing="0" cellpadding="0">
- <?
- $balise=0;
- $query = "SELECT deal_articles.*,deal_rubriques.nom FROM deal_articles,deal_rubriques WHERE deal_articles.id_rubrique='$parent' AND deal_rubriques.id_rubrique=deal_articles.id_rubrique AND deal_articles.en_ligne='Y' ORDER BY deal_articles.fin ASC";
- $mysql_result = mysql_query($query,$mysql_link);
- while($row = mysql_fetch_array($mysql_result))
- {
- $designation=stripslashes($row["designation"]);
- $devise=$row["devise"];
- $prix_depart=$row["prix_depart"];
- $prix_actuel=$row["prix_actuel"];
- $fin=DateFrench($row["fin"]);
- $id_article=$row["id_article"];
- $rubrique=$row["nom"];
- $line=$balise/2;
- $isset_site="y";
- if(is_integer($line))
- {
- echo "<tr>";
- $balise++;
- }
- else
- {
- echo "<tr bgcolor=\"$bg2color\">";
- $balise++;
- }
- echo "<td width=\"45%\"><a href=\"in_article.php?id_article=$id_article&id_rubrique=$parent&rubrique=$rubrique\"><font color=\"$textcolor\">$designation</font></a></td>
- <td width=\"16%\">$prix_depart $devise</td>
- <td width=\"16%\">$prix_actuel $devise</td>
- <td width=\"23%\">$fin</td>
- </tr>";
- }
- if($isset_site!="y" ) {
- echo "<tr>
- <td colspan=\"4\"><i>Aucun objet disponible dans cette rubrique.</i></td>
- </tr>";
- }
- ?>
- <tr bgcolor="<? echo "$bg1color" ?>">
- <td colspan="4" height="3"><img src="images/transparent.gif" width="1" height="1"></td>
- </tr>
- </table>
- <?
- }
- else {
- ?>
- <tr bgcolor="<? echo "$bg1color" ?>">
- <td colspan="2" height="3"><img src="images/transparent.gif" width="1" height="1"></td>
- </tr>
- <tr>
- <td colspan="2"> </td>
- </tr>
- </table>
- <?
- if($affichnext!="0" and $affichnext!="" ) {
- ?>
- <br>
- <table width="100%" border="0" cellspacing="0" cellpadding="0">
- <tr bgcolor="<? echo "$bg1color" ?>">
- <td width="50%"><b>P</b>rochaines clôtures :</td>
- <td width="50%">
- <div align="right">[<a href="recherche.php"><font color="<? echo "$textcolor" ?>">Rechercher
- une enchère</font></a>]</div>
- </td>
- </tr>
- </table>
- <table width="100%" border="0" cellspacing="0" cellpadding="0">
- <tr>
- <td width="45%">Désignation : </td>
- <td width="16%">Mise à prix :</td>
- <td width="16%">Prix actuel :</td>
- <td width="23%">Fin de l'enchère :</td>
- </tr>
- <tr bgcolor="<? echo "$bg1color" ?>">
- <td colspan="4" height="3"><img src="images/transparent.gif" width="1" height="1"></td>
- </tr>
- </table>
- <table width="100%" border="0" cellspacing="0" cellpadding="0">
- <?
- $balise=0;
- $query = "SELECT deal_articles.*,deal_rubriques.nom,deal_rubriques.id_rubrique FROM deal_articles,deal_rubriques WHERE deal_rubriques.id_rubrique=deal_articles.id_rubrique AND deal_articles.en_ligne='Y' ORDER BY deal_articles.fin ASC LIMIT 0,$affichnext";
- $mysql_result = mysql_query($query,$mysql_link);
- while($row = mysql_fetch_array($mysql_result))
- {
- $designation=stripslashes($row["designation"]);
- $devise=$row["devise"];
- $prix_depart=$row["prix_depart"];
- $prix_actuel=$row["prix_actuel"];
- $fin=DateFrench($row["fin"]);
- $id_article=$row["id_article"];
- $rubrique=$row["nom"];
- $numero=$row["id_rubrique"];
- $line=$balise/2;
- $isset_site="y";
- if(is_integer($line))
- {
- echo "<tr>";
- $balise++;
- }
- else
- {
- echo "<tr bgcolor=\"$bg2color\">";
- $balise++;
- }
- echo "<td width=\"45%\"><a href=\"in_article.php?id_article=$id_article&id_rubrique=$numero&rubrique=$rubrique\"><font color=\"$textcolor\">$designation</font></a></td>
- <td width=\"16%\">$prix_depart $devise</td>
- <td width=\"16%\">$prix_actuel $devise</td>
- <td width=\"23%\">$fin</td>
- </tr>";
- }
- if($isset_site!="y" ) {
- echo "<tr>
- <td colspan=\"4\"><i>Aucun objet en vente actuellement.</i></td>
- </tr>";
- }
- ?>
- <tr bgcolor="<? echo "$bg1color" ?>">
- <td colspan="4" height="3"><img src="images/transparent.gif" width="1" height="1"></td>
- </tr>
- </table>
- <?
- }
- }
- }
- ?>
- <p> </p>
- <?
- require("data/footer.inc.php" );
- ?>
|
|