Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
805 connectés 

  FORUM HardWare.fr
  Programmation
  PHP

  Modifier Phpdeal

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

Modifier Phpdeal

n°1379573
Sebasti12
Posté le 02-06-2006 à 10:36:16  profilanswer
 

Bonjour à tous, actuellement j'utilise Phpdeal, je me demandais comment il fallait faire pour le modifier de tel sorte que une fois qu'un membre mettent une photo, une petite icone d'un appareil photo s'ajoute à coter de son annonce ? Merci de votre aide ;)

mood
Publicité
Posté le 02-06-2006 à 10:36:16  profilanswer
 

n°1379615
aipsy0783
Posté le 02-06-2006 à 10:59:39  profilanswer
 

phpdeal... encore une framework ou un logiciel un truc vraiment pas perso et pour les neuneu lol

n°1379617
aipsy0783
Posté le 02-06-2006 à 11:01:16  profilanswer
 

envoie au moins un bout de code pour ceux qui connaissent pas Phpdeal ça peut etre sympas déjà, les trucs tout prêts ont trop de limites, rien de tel qu'un bloc note, fait nous part de ces limites ;)

n°1379618
skeye
Posté le 02-06-2006 à 11:01:19  profilanswer
 

tu te démerdes.[:dawa]
 
On ne fait pas le support de logiciels tout faits, pour ça faut demander aux auteurs.:o


---------------
Can't buy what I want because it's free -
n°1379622
Sebasti12
Posté le 02-06-2006 à 11:03:08  profilanswer
 

Ben apparement les auteurs ils sont morts, plus de mise à jour sur leur site, pas de mail, pas de réponse bref le desert quoi...snif

n°1379641
aipsy0783
Posté le 02-06-2006 à 11:14:04  profilanswer
 

yeahh skeye t énorme lool ;)
 
donc tu dis c un logiciel... ben ouais voila koi tu te démerde et surtout post pas ce message sur le forum PHP si tu n'es pas à meme de nous fournir le PHP parsé par ton logiciel
 
on va pas apprendre à utiliser le logiciel, on peut que t'aider à retoucher le code généré

n°1379670
Sebasti12
Posté le 02-06-2006 à 11:31:21  profilanswer
 

Ca doit être ici quelque part qu'il faut ajouter le code pour pouvoir ajouter l'icone:
 

Code :
  1. <?
  2. require("data/tools.inc.php" );
  3. $nav=Navigation($parent,$mysql_link);
  4. require("data/header.inc.php" );
  5. require("data/options.inc.php" );
  6. ?>
  7. <?
  8. if($howrub=="column" ) {
  9. if($parent=="0" ) {
  10. ?>
  11. <table width="100%" border="0" cellspacing="0" cellpadding="0">
  12.   <tr>
  13.     <td width="235" valign="top">
  14. <table width="100%" border="0" cellspacing="0" cellpadding="0">
  15.     <tr>
  16.       <td bgcolor="<? echo "$bg1color" ?>">&nbsp;<b>R</b>ubriques</td>
  17.  </tr>
  18. </table>
  19. <table width="100%" border="0" cellspacing="0" cellpadding="0">
  20.     <tr>
  21.       <td valign="top">
  22.         <table width="100%" border="0" cellspacing="0" cellpadding="2">
  23.         <?
  24.         $balise=0;
  25.         $query = "SELECT nom,id_rubrique FROM deal_rubriques WHERE parent='$parent'";
  26.         $mysql_result = mysql_query($query,$mysql_link);
  27.         while($row = mysql_fetch_array($mysql_result))
  28.                {
  29.                $nom=$row[0];
  30.                $rubrique=$row[1];
  31.                $inventaire=Inventaire($rubrique,$mysql_link);
  32.                $line=$balise/2;
  33.                $isset_rubrique="y";
  34.                if(is_integer($line))
  35.                  {
  36.                  echo "<tr><td width=\"2\" bgcolor=\"$bg1color\"><img src=\"images/transparent.gif\" width=\"1\" height=\"1\"></td>
  37.     <td>&nbsp;<a href=\"achat_rubrique.php?parent=$rubrique\"><font color=\"$textcolor\">$nom</font></a> ($inventaire)</td>
  38.     <td width=\"2\" bgcolor=\"$bg1color\"><img src=\"images/transparent.gif\" width=\"1\" height=\"1\"></td></tr>";
  39.                  $balise++;
  40.                  }
  41.                else
  42.                  {
  43.                  echo "<tr bgcolor=\"$bg2color\"><td width=\"2\" bgcolor=\"$bg1color\"><img src=\"images/transparent.gif\" width=\"1\" height=\"1\"></td>
  44.     <td>&nbsp;<a href=\"achat_rubrique.php?parent=$rubrique\"><font color=\"$textcolor\">$nom</font></a> ($inventaire)</td>
  45.     <td width=\"2\" bgcolor=\"$bg1color\"><img src=\"images/transparent.gif\" width=\"1\" height=\"1\"></td></tr>";
  46.                  $balise++;
  47.                  }
  48.                }
  49.         if($isset_rubrique!="y" ) {
  50.         echo "<tr><td colspan=\"3\"><i>Aucune sous-rubrique n'est disponible.</i></td></tr>";
  51.         }
  52.         ?>
  53.         </table>
  54.       </td>   
  55.     </tr>
  56.  <tr bgcolor="<? echo "$bg1color" ?>">
  57.       <td colspan="3" height="2"><img src="images/transparent.gif" width="1" height="1"></td>
  58.     </tr>
  59.    </table>
  60. </td>
  61.     <td width=3><img src="images/transparent.gif" width="1" height="1"></td>
  62. <td valign="top">
  63. <table width="100%" border="0" cellspacing="0" cellpadding="0">
  64.     <? if($okedito=="yes" ) { ?>
  65.  <tr bgcolor="<? echo "$bg1color" ?>">
  66.       <td width="2"><img src="images/transparent.gif" width="1" height="1"></td>
  67.   <td width="1">&nbsp;</td>
  68.   <td colspan="2"><b>E</b>ditorial</td>
  69.   <td width="2"><img src="images/transparent.gif" width="1" height="1"></td>
  70.     </tr>
  71.  <tr>
  72.       <td width="2" bgcolor="<? echo "$bg1color" ?>"><img src="images/transparent.gif" width="1" height="1"></td>
  73.   <td width="1">&nbsp;</td>
  74.   <td colspan="2">
  75.   <?
  76.   $contentedito=ereg_replace("([^>])\n","\\1<BR>\n",$contentedito);
  77.   echo "$contentedito";
  78.   ?>
  79.   </td>
  80.   <td width="2" bgcolor="<? echo "$bg1color" ?>"><img src="images/transparent.gif" width="1" height="1"></td>
  81.     </tr>
  82.  <tr bgcolor="<? echo "$bg1color" ?>">
  83.       <td colspan="5" height="2"><img src="images/transparent.gif" width="1" height="1"></td>
  84.  </tr>
  85.  <tr>
  86.       <td colspan="5" height="3"><img src="images/transparent.gif" width="1" height="1"></td>
  87.  </tr>
  88.  <?
  89.  }
  90.  if($affichnext!="0" and $affichnext!="" ) { ?>
  91.  <tr bgcolor="<? echo "$bg1color" ?>">
  92.       <td width="2"><img src="images/transparent.gif" width="1" height="1"></td>
  93.   <td width="1">&nbsp;</td>
  94.   <td><b>P</b>rochaines clôtures</td>
  95.   <td><div align="right">[<a href="recherche.php"><font color="<? echo "$textcolor" ?>">Rechercher
  96.         une ench&egrave;re</font></a>]</div></td>
  97.   <td width="2"><img src="images/transparent.gif" width="1" height="1"></td>
  98.     </tr>
  99.  <tr>
  100.   <td width="2" bgcolor="<? echo "$bg1color" ?>"><img src="images/transparent.gif" width="1" height="1"></td>
  101.   <td colspan="3">
  102.   <table width="100%" border="0" cellspacing="0" cellpadding="0">
  103.      <tr>
  104.        <td width="35%">&nbsp;D&eacute;signation : </td>
  105.        <td width="21%">Mise &agrave; prix :</td>
  106.        <td width="21%">Prix actuel :</td>
  107.        <td width="23%">Fin de l'ench&egrave;re :</td>
  108.      </tr>
  109.      <tr bgcolor="<? echo "$bg1color" ?>">
  110.        <td colspan="4" height="2"><img src="images/transparent.gif" width="1" height="1"></td>
  111.      </tr>
  112.  </table>
  113.  <table width="100%" border="0" cellspacing="0" cellpadding="0">
  114. <?
  115. $balise=0;
  116. $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";
  117. $mysql_result = mysql_query($query,$mysql_link);
  118. while($row = mysql_fetch_array($mysql_result))
  119.        {
  120.        $designation=stripslashes($row["designation"]);
  121.        $devise=$row["devise"];
  122.        $prix_depart=$row["prix_depart"];
  123.        $prix_actuel=$row["prix_actuel"];
  124.        $fin=DateFrench($row["fin"]);
  125.        $id_article=$row["id_article"];
  126.        $rubrique=$row["nom"];
  127.        $numero=$row["id_rubrique"];
  128.        $line=$balise/2;
  129.        $isset_site="y";
  130.        if(is_integer($line))
  131.           {
  132.           echo "<tr>";
  133.           $balise++;
  134.           }
  135.        else
  136.           {
  137.           echo "<tr bgcolor=\"$bg2color\">";
  138.           $balise++;
  139.           }
  140.        echo "<td width=\"35%\">&nbsp;<a href=\"in_article.php?id_article=$id_article&id_rubrique=$numero&rubrique=$rubrique\"><font color=\"$textcolor\">$designation</font></a></td>
  141.        <td width=\"21%\">$prix_depart $devise</td>
  142.        <td width=\"21%\">$prix_actuel $devise</td>
  143.        <td width=\"23%\">$fin</td>
  144.        </tr>";
  145.        }
  146. if($isset_site!="y" ) {
  147. echo "<tr>
  148. <td colspan=\"4\"><i>Aucun objet en vente actuellement.</i></td>
  149. </tr>";
  150. }
  151. ?>
  152.      <tr bgcolor="<? echo "$bg1color" ?>">
  153.        <td colspan="4" height="2"><img src="images/transparent.gif" width="1" height="1"></td>
  154.      </tr>
  155.  </table>
  156.  </td>
  157.  <td width="2" bgcolor="<? echo "$bg1color" ?>"><img src="images/transparent.gif" width="1" height="1"></td>
  158.     </tr>
  159.  <tr>
  160.       <td colspan="5" height="3"><img src="images/transparent.gif" width="1" height="1"></td>
  161.  </tr>
  162.  <?
  163.  }
  164.  if($topview!="0" and $topview!="" ) { ?>
  165.  <tr bgcolor="<? echo "$bg1color" ?>">
  166.       <td width="2"><img src="images/transparent.gif" width="1" height="1"></td>
  167.   <td width="1">&nbsp;</td>
  168.   <td><b>T</b>op des ventes les plus consultées</td>
  169.   <td><div align="right">[<a href="recherche.php"><font color="<? echo "$textcolor" ?>">Rechercher
  170.         une ench&egrave;re</font></a>]</div></td>
  171.   <td width="2"><img src="images/transparent.gif" width="1" height="1"></td>
  172.     </tr>
  173.  <tr>
  174.   <td width="2" bgcolor="<? echo "$bg1color" ?>"><img src="images/transparent.gif" width="1" height="1"></td>
  175.   <td colspan="3">
  176.   <table width="100%" border="0" cellspacing="0" cellpadding="0">
  177.      <tr>
  178.        <td width="35%">&nbsp;D&eacute;signation : </td>
  179.        <td width="21%">Mise &agrave; prix :</td>
  180.        <td width="21%">Prix actuel :</td>
  181.        <td width="23%">Fin de l'ench&egrave;re :</td>
  182.      </tr>
  183.      <tr bgcolor="<? echo "$bg1color" ?>">
  184.        <td colspan="4" height="2"><img src="images/transparent.gif" width="1" height="1"></td>
  185.      </tr>
  186.  </table>
  187.  <table width="100%" border="0" cellspacing="0" cellpadding="0">
  188. <?
  189. $balise=0;
  190. $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";
  191. $mysql_result = mysql_query($query,$mysql_link);
  192. while($row = mysql_fetch_array($mysql_result))
  193.        {
  194.        $designation=stripslashes($row["designation"]);
  195.        $devise=$row["devise"];
  196.        $prix_depart=$row["prix_depart"];
  197.        $prix_actuel=$row["prix_actuel"];
  198.        $fin=DateFrench($row["fin"]);
  199.        $id_article=$row["id_article"];
  200.        $rubrique=$row["nom"];
  201.        $numero=$row["id_rubrique"];
  202.        $line=$balise/2;
  203.        $isset_site="y";
  204.        if(is_integer($line))
  205.           {
  206.           echo "<tr>";
  207.           $balise++;
  208.           }
  209.        else
  210.           {
  211.           echo "<tr bgcolor=\"$bg2color\">";
  212.           $balise++;
  213.           }
  214.        echo "<td width=\"35%\">&nbsp;$balise.&nbsp;<a href=\"in_article.php?id_article=$id_article&id_rubrique=$numero&rubrique=$rubrique\"><font color=\"$textcolor\">$designation</font></a></td>
  215.        <td width=\"21%\">$prix_depart $devise</td>
  216.        <td width=\"21%\">$prix_actuel $devise</td>
  217.        <td width=\"23%\">$fin</td>
  218.        </tr>";
  219.        }
  220. if($isset_site!="y" ) {
  221. echo "<tr>
  222. <td colspan=\"4\"><i>Aucun objet en vente actuellement.</i></td>
  223. </tr>";
  224. }
  225. ?>
  226.      <tr bgcolor="<? echo "$bg1color" ?>">
  227.        <td colspan="4" height="2"><img src="images/transparent.gif" width="1" height="1"></td>
  228.      </tr>
  229.  </table>
  230.  </td>
  231.  <td width="2" bgcolor="<? echo "$bg1color" ?>"><img src="images/transparent.gif" width="1" height="1"></td>
  232.     </tr>
  233.  <tr>
  234.       <td colspan="5" height="3"><img src="images/transparent.gif" width="1" height="1"></td>
  235.  </tr>
  236.  <? } ?>
  237. </table>
  238. </td>
  239.   </tr>
  240. </table>
  241. <?
  242. }
  243. else {
  244. ?>
  245. <table width="100%" border="0" cellspacing="0" cellpadding="0">
  246.   <tr bgcolor="<? echo "$bg1color" ?>">
  247.     <td width="50%"><b>L</b>iste des
  248.     sous-rubriques disponibles :</td>
  249.     <td width="50%">
  250.       <div align="right">[<a href="recherche.php"><font color="<? echo "$textcolor" ?>">Rechercher
  251.         une ench&egrave;re</font></a>]</div>
  252.     </td>
  253.   </tr>
  254. </table>
  255. <?
  256. $query = "SELECT id_rubrique FROM deal_rubriques WHERE parent='$parent'";
  257. $resu = mysql_query($query,$mysql_link);
  258. $rows = mysql_num_rows($resu);
  259. $demi=$rows/2;
  260. if(!is_integer($demi))
  261.   {
  262.   $demie=$demi;
  263.   $demi=intval($demi)+1;
  264.   }
  265. ?>
  266. <table width="100%" border="0" cellspacing="0" cellpadding="0">
  267.   <tr>
  268.     <td valign="top">
  269.       <table width="100%" border="0" cellspacing="0" cellpadding="0">
  270.         <?
  271.         $balise=0;
  272.         $query = "SELECT nom,id_rubrique FROM deal_rubriques WHERE parent='$parent' limit 0, $demi";
  273.         $mysql_result = mysql_query($query,$mysql_link);
  274.         while($row = mysql_fetch_array($mysql_result))
  275.                {
  276.                $nom=$row[0];
  277.                $rubrique=$row[1];
  278.                $inventaire=Inventaire($rubrique,$mysql_link);
  279.                $line=$balise/2;
  280.                $isset_rubrique="y";
  281.                if(is_integer($line))
  282.                  {
  283.                  echo "<tr><td>• <a href=\"achat_rubrique.php?parent=$rubrique\"><font color=\"$textcolor\">$nom</font></a> ($inventaire)</td></tr>";
  284.                  $balise++;
  285.                  }
  286.                else
  287.                  {
  288.                  echo "<tr bgcolor=\"$bg2color\"><td>• <a href=\"achat_rubrique.php?parent=$rubrique\"><font color=\"$textcolor\">$nom</font></a> ($inventaire)</td></tr>";
  289.                  $balise++;
  290.                  }
  291.                }
  292.         if($isset_rubrique!="y" ) {
  293.         echo "<tr><td><i>Aucune sous-rubrique n'est disponible.</i></td></tr>";
  294.         }
  295.         ?>
  296.       </table>
  297.     </td>
  298.     <td valign="top">
  299.       <table width="100%" border="0" cellspacing="0" cellpadding="0">
  300.         <?
  301.         $balise=0;
  302.         $query = "SELECT nom,id_rubrique FROM deal_rubriques WHERE parent='$parent' limit $demi, $demi";
  303.         $mysql_result = mysql_query($query,$mysql_link);
  304.         while($row = mysql_fetch_array($mysql_result))
  305.                {
  306.                $nom=$row[0];
  307.                $rubrique=$row[1];
  308.                $inventaire=Inventaire($rubrique,$mysql_link);
  309.                $line=$balise/2;
  310.                if(is_integer($line))
  311.                  {
  312.                  echo "<tr><td>• <a href=\"achat_rubrique.php?parent=$rubrique\"><font color=\"$textcolor\">$nom</font></a> ($inventaire)</td></tr>";
  313.                  $balise++;
  314.                  }
  315.                else
  316.                  {
  317.                  echo "<tr bgcolor=\"$bg2color\"><td>• <a href=\"achat_rubrique.php?parent=$rubrique\"><font color=\"$textcolor\">$nom</font></a> ($inventaire)</td></tr>";
  318.                  $balise++;
  319.                  }
  320.                }
  321.         if(isset($demie))
  322.            {
  323.            $line=$balise/2;
  324.            if(is_integer($line))
  325.                  {
  326.                  echo "<tr><td>&nbsp;</td></tr>";
  327.                  }
  328.            else
  329.                  {
  330.                  echo "<tr bgcolor=\"$bg2color\"><td>&nbsp;</td></tr>";
  331.                  }
  332.            }
  333.         ?>
  334.       </table>
  335.     </td>
  336.   </tr>
  337.   <tr bgcolor="<? echo "$bg1color" ?>">
  338.     <td colspan="2" height="3"><img src="images/transparent.gif" width="1" height="1"></td>
  339.   </tr>
  340.   <tr>
  341.     <td colspan="2">&nbsp;</td>
  342.   </tr>
  343. </table>
  344. <table width="100%" border="0" cellspacing="0" cellpadding="0">
  345.   <tr bgcolor="<? echo "$bg1color" ?>">
  346.     <td width="50%"><b>E</b>nch&egrave;res en cours dans cette rubrique :</td>
  347.     <td width="50%">
  348.       <div align="right">[<a href="recherche.php"><font color="<? echo "$textcolor" ?>">Rechercher
  349.         une ench&egrave;re</font></a>]</div>
  350.     </td>
  351.   </tr>
  352. </table>
  353. <table width="100%" border="0" cellspacing="0" cellpadding="0">
  354.   <tr>
  355.     <td width="45%">D&eacute;signation : </td>
  356.     <td width="16%">Mise &agrave; prix :</td>
  357.     <td width="16%">Prix actuel :</td>
  358.     <td width="23%">Fin de l'ench&egrave;re :</td>
  359.   </tr>
  360.   <tr bgcolor="<? echo "$bg1color" ?>">
  361.     <td colspan="4" height="3"><img src="images/transparent.gif" width="1" height="1"></td>
  362.   </tr>
  363. </table>
  364. <table width="100%" border="0" cellspacing="0" cellpadding="0">
  365. <?
  366. $balise=0;
  367. $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";
  368. $mysql_result = mysql_query($query,$mysql_link);
  369. while($row = mysql_fetch_array($mysql_result))
  370.        {
  371.        $designation=stripslashes($row["designation"]);
  372.        $devise=$row["devise"];
  373.        $prix_depart=$row["prix_depart"];
  374.        $prix_actuel=$row["prix_actuel"];
  375.        $fin=DateFrench($row["fin"]);
  376.        $id_article=$row["id_article"];
  377.        $rubrique=$row["nom"];
  378.        $line=$balise/2;
  379.        $isset_site="y";
  380.        if(is_integer($line))
  381.           {
  382.           echo "<tr>";
  383.           $balise++;
  384.           }
  385.        else
  386.           {
  387.           echo "<tr bgcolor=\"$bg2color\">";
  388.           $balise++;
  389.           }
  390.        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>
  391.        <td width=\"16%\">$prix_depart $devise</td>
  392.        <td width=\"16%\">$prix_actuel $devise</td>
  393.        <td width=\"23%\">$fin</td>
  394.        </tr>";
  395.        }
  396. if($isset_site!="y" ) {
  397. echo "<tr>
  398. <td colspan=\"4\"><i>Aucun objet disponible dans cette rubrique.</i></td>
  399. </tr>";
  400. }
  401. ?>
  402.   <tr bgcolor="<? echo "$bg1color" ?>">
  403.     <td colspan="4" height="3"><img src="images/transparent.gif" width="1" height="1"></td>
  404.   </tr>
  405. </table>
  406. <?
  407. }
  408. }
  409. elseif($howrub="column" ) {
  410. ?>
  411. <table width="100%" border="0" cellspacing="0" cellpadding="0">
  412.   <tr bgcolor="<? echo "$bg1color" ?>">
  413.     <td width="50%"><b>L</b>iste des
  414.     <? if($parent!="0" ) { echo "sous-"; } ?>rubriques disponibles :</td>
  415.     <td width="50%">
  416.       <div align="right">[<a href="recherche.php"><font color="<? echo "$textcolor" ?>">Rechercher
  417.         une ench&egrave;re</font></a>]</div>
  418.     </td>
  419.   </tr>
  420. </table>
  421. <?
  422. $query = "SELECT id_rubrique FROM deal_rubriques WHERE parent='$parent'";
  423. $resu = mysql_query($query,$mysql_link);
  424. $rows = mysql_num_rows($resu);
  425. $demi=$rows/2;
  426. if(!is_integer($demi))
  427.   {
  428.   $demie=$demi;
  429.   $demi=intval($demi)+1;
  430.   }
  431. ?>
  432. <table width="100%" border="0" cellspacing="0" cellpadding="0">
  433.   <tr>
  434.     <td valign="top">
  435.       <table width="100%" border="0" cellspacing="0" cellpadding="0">
  436.         <?
  437.         $balise=0;
  438.         $query = "SELECT nom,id_rubrique FROM deal_rubriques WHERE parent='$parent' limit 0, $demi";
  439.         $mysql_result = mysql_query($query,$mysql_link);
  440.         while($row = mysql_fetch_array($mysql_result))
  441.                {
  442.                $nom=$row[0];
  443.                $rubrique=$row[1];
  444.                $inventaire=Inventaire($rubrique,$mysql_link);
  445.                $line=$balise/2;
  446.                $isset_rubrique="y";
  447.                if(is_integer($line))
  448.                  {
  449.                  echo "<tr><td>• <a href=\"achat_rubrique.php?parent=$rubrique\"><font color=\"$textcolor\">$nom</font></a> ($inventaire)</td></tr>";
  450.                  $balise++;
  451.                  }
  452.                else
  453.                  {
  454.                  echo "<tr bgcolor=\"$bg2color\"><td>• <a href=\"achat_rubrique.php?parent=$rubrique\"><font color=\"$textcolor\">$nom</font></a> ($inventaire)</td></tr>";
  455.                  $balise++;
  456.                  }
  457.                }
  458.         if($isset_rubrique!="y" ) {
  459.         echo "<tr><td><i>Aucune sous-rubrique n'est disponible.</i></td></tr>";
  460.         }
  461.         ?>
  462.       </table>
  463.     </td>
  464.     <td valign="top">
  465.       <table width="100%" border="0" cellspacing="0" cellpadding="0">
  466.         <?
  467.         $balise=0;
  468.         $query = "SELECT nom,id_rubrique FROM deal_rubriques WHERE parent='$parent' limit $demi, $demi";
  469.         $mysql_result = mysql_query($query,$mysql_link);
  470.         while($row = mysql_fetch_array($mysql_result))
  471.                {
  472.                $nom=$row[0];
  473.                $rubrique=$row[1];
  474.                $inventaire=Inventaire($rubrique,$mysql_link);
  475.                $line=$balise/2;
  476.                if(is_integer($line))
  477.                  {
  478.                  echo "<tr><td>• <a href=\"achat_rubrique.php?parent=$rubrique\"><font color=\"$textcolor\">$nom</font></a> ($inventaire)</td></tr>";
  479.                  $balise++;
  480.                  }
  481.                else
  482.                  {
  483.                  echo "<tr bgcolor=\"$bg2color\"><td>• <a href=\"achat_rubrique.php?parent=$rubrique\"><font color=\"$textcolor\">$nom</font></a> ($inventaire)</td></tr>";
  484.                  $balise++;
  485.                  }
  486.                }
  487.         if(isset($demie))
  488.            {
  489.            $line=$balise/2;
  490.            if(is_integer($line))
  491.                  {
  492.                  echo "<tr><td>&nbsp;</td></tr>";
  493.                  }
  494.            else
  495.                  {
  496.                  echo "<tr bgcolor=\"$bg2color\"><td>&nbsp;</td></tr>";
  497.                  }
  498.            }
  499.         ?>
  500.       </table>
  501.     </td>
  502.   </tr>
  503. <? if($parent!="0" ) { ?>
  504.   <tr bgcolor="<? echo "$bg1color" ?>">
  505.     <td colspan="2" height="3"><img src="images/transparent.gif" width="1" height="1"></td>
  506.   </tr>
  507.   <tr>
  508.     <td colspan="2">&nbsp;</td>
  509.   </tr>
  510. </table>
  511. <table width="100%" border="0" cellspacing="0" cellpadding="0">
  512.   <tr bgcolor="<? echo "$bg1color" ?>">
  513.     <td width="50%"><b>E</b>nch&egrave;res en cours dans cette rubrique :</td>
  514.     <td width="50%">
  515.       <div align="right">[<a href="recherche.php"><font color="<? echo "$textcolor" ?>">Rechercher
  516.         une ench&egrave;re</font></a>]</div>
  517.     </td>
  518.   </tr>
  519. </table>
  520. <table width="100%" border="0" cellspacing="0" cellpadding="0">
  521.   <tr>
  522.     <td width="45%">D&eacute;signation : </td>
  523.     <td width="16%">Mise &agrave; prix :</td>
  524.     <td width="16%">Prix actuel :</td>
  525.     <td width="23%">Fin de l'ench&egrave;re :</td>
  526.   </tr>
  527.   <tr bgcolor="<? echo "$bg1color" ?>">
  528.     <td colspan="4" height="3"><img src="images/transparent.gif" width="1" height="1"></td>
  529.   </tr>
  530. </table>
  531. <table width="100%" border="0" cellspacing="0" cellpadding="0">
  532. <?
  533. $balise=0;
  534. $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";
  535. $mysql_result = mysql_query($query,$mysql_link);
  536. while($row = mysql_fetch_array($mysql_result))
  537.        {
  538.        $designation=stripslashes($row["designation"]);
  539.        $devise=$row["devise"];
  540.        $prix_depart=$row["prix_depart"];
  541.        $prix_actuel=$row["prix_actuel"];
  542.        $fin=DateFrench($row["fin"]);
  543.        $id_article=$row["id_article"];
  544.        $rubrique=$row["nom"];
  545.        $line=$balise/2;
  546.        $isset_site="y";
  547.        if(is_integer($line))
  548.           {
  549.           echo "<tr>";
  550.           $balise++;
  551.           }
  552.        else
  553.           {
  554.           echo "<tr bgcolor=\"$bg2color\">";
  555.           $balise++;
  556.           }
  557.        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>
  558.        <td width=\"16%\">$prix_depart $devise</td>
  559.        <td width=\"16%\">$prix_actuel $devise</td>
  560.        <td width=\"23%\">$fin</td>
  561.        </tr>";
  562.        }
  563. if($isset_site!="y" ) {
  564. echo "<tr>
  565. <td colspan=\"4\"><i>Aucun objet disponible dans cette rubrique.</i></td>
  566. </tr>";
  567. }
  568. ?>
  569.   <tr bgcolor="<? echo "$bg1color" ?>">
  570.     <td colspan="4" height="3"><img src="images/transparent.gif" width="1" height="1"></td>
  571.   </tr>
  572. </table>
  573. <?
  574. }
  575. else {
  576. ?>
  577.   <tr bgcolor="<? echo "$bg1color" ?>">
  578.     <td colspan="2" height="3"><img src="images/transparent.gif" width="1" height="1"></td>
  579.   </tr>
  580.   <tr>
  581.     <td colspan="2">&nbsp;</td>
  582.   </tr>
  583. </table>
  584. <?
  585. if($affichnext!="0" and $affichnext!="" ) {
  586. ?>
  587. <br>
  588. <table width="100%" border="0" cellspacing="0" cellpadding="0">
  589.   <tr bgcolor="<? echo "$bg1color" ?>">
  590.     <td width="50%"><b>P</b>rochaines clôtures :</td>
  591.     <td width="50%">
  592.       <div align="right">[<a href="recherche.php"><font color="<? echo "$textcolor" ?>">Rechercher
  593.         une ench&egrave;re</font></a>]</div>
  594.     </td>
  595.   </tr>
  596. </table>
  597. <table width="100%" border="0" cellspacing="0" cellpadding="0">
  598.   <tr>
  599.     <td width="45%">D&eacute;signation : </td>
  600.     <td width="16%">Mise &agrave; prix :</td>
  601.     <td width="16%">Prix actuel :</td>
  602.     <td width="23%">Fin de l'ench&egrave;re :</td>
  603.   </tr>
  604.   <tr bgcolor="<? echo "$bg1color" ?>">
  605.     <td colspan="4" height="3"><img src="images/transparent.gif" width="1" height="1"></td>
  606.   </tr>
  607. </table>
  608. <table width="100%" border="0" cellspacing="0" cellpadding="0">
  609. <?
  610. $balise=0;
  611. $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";
  612. $mysql_result = mysql_query($query,$mysql_link);
  613. while($row = mysql_fetch_array($mysql_result))
  614.        {
  615.        $designation=stripslashes($row["designation"]);
  616.        $devise=$row["devise"];
  617.        $prix_depart=$row["prix_depart"];
  618.        $prix_actuel=$row["prix_actuel"];
  619.        $fin=DateFrench($row["fin"]);
  620.        $id_article=$row["id_article"];
  621.        $rubrique=$row["nom"];
  622.        $numero=$row["id_rubrique"];
  623.        $line=$balise/2;
  624.        $isset_site="y";
  625.        if(is_integer($line))
  626.           {
  627.           echo "<tr>";
  628.           $balise++;
  629.           }
  630.        else
  631.           {
  632.           echo "<tr bgcolor=\"$bg2color\">";
  633.           $balise++;
  634.           }
  635.        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>
  636.        <td width=\"16%\">$prix_depart $devise</td>
  637.        <td width=\"16%\">$prix_actuel $devise</td>
  638.        <td width=\"23%\">$fin</td>
  639.        </tr>";
  640.        }
  641. if($isset_site!="y" ) {
  642. echo "<tr>
  643. <td colspan=\"4\"><i>Aucun objet en vente actuellement.</i></td>
  644. </tr>";
  645. }
  646. ?>
  647.   <tr bgcolor="<? echo "$bg1color" ?>">
  648.     <td colspan="4" height="3"><img src="images/transparent.gif" width="1" height="1"></td>
  649.   </tr>
  650. </table>
  651. <?
  652. }
  653. }
  654. }
  655. ?>
  656. <p>&nbsp;</p>
  657. <?
  658. require("data/footer.inc.php" );
  659. ?>

n°1379673
skeye
Posté le 02-06-2006 à 11:35:11  profilanswer
 

tu crois franchement qu'on va analyser ton paté pour trouver quoi faire à ta place? [:mlc]


---------------
Can't buy what I want because it's free -
n°1379681
aipsy0783
Posté le 02-06-2006 à 11:40:54  profilanswer
 

oh putain comme c sal comme code!!
 
jvois plein plein de table ahhhhhhhhhhhhhhh

n°1379683
aipsy0783
Posté le 02-06-2006 à 11:43:47  profilanswer
 

si tu veux placer une image à un endroit fo ke tu nous dises où... et puis comment ta base est construite.. jle vois bien du genre vérifier si la table photo a une ligne ou plus associée au membre et si oui ajouter un icone

mood
Publicité
Posté le 02-06-2006 à 11:43:47  profilanswer
 

n°1379684
aipsy0783
Posté le 02-06-2006 à 11:44:24  profilanswer
 

j'aimerais avoir le lien de ton site stp

n°1379686
Sebasti12
Posté le 02-06-2006 à 11:44:55  profilanswer
 

http://www.belgepa.info
 
Merci de ton aide et surtout de ta sympatie (pas comme certain)


Message édité par Sebasti12 le 02-06-2006 à 11:45:53
n°1379691
aipsy0783
Posté le 02-06-2006 à 11:48:45  profilanswer
 

tu veux mettre l'icone photo à coté du nom de l'objet alors :) ou exactement? car si ya pas d'icone ça va tt décaler

n°1379711
Sebasti12
Posté le 02-06-2006 à 12:04:29  profilanswer
 

a coté de l'article dans la rubrique même :), exemple si tu cliques sur véhicule tu verras opel vectra A et bien juste à la gauche ou droit de Opel vectra A, merci


Message édité par Sebasti12 le 02-06-2006 à 12:06:27
n°1379716
aipsy0783
Posté le 02-06-2006 à 12:12:35  profilanswer
 

ligne 392, c'est là qu'il faut insérer l'image, et il suffit just de rajouter ou modifier la requete sql du dessus..
mais si tu lis tes messages privés tu verras que je suis occupée là donc jté laissé mon msn, jpense pas que ça presse tant que ça qd meme ;)

n°1379718
Sebasti12
Posté le 02-06-2006 à 12:15:17  profilanswer
 

Ok dé que tu as le temps, seras tu me donner la requête à insérer (car j'ai pas msn :(), merci ;)

n°1379719
aipsy0783
Posté le 02-06-2006 à 12:16:09  profilanswer
 

je t'aiderai

n°1379728
Sebasti12
Posté le 02-06-2006 à 12:22:52  profilanswer
 

Ok un grand merci :) C'est super sympa car j'ai essayé moi même mais à chaque fois j'ai des erreurs ;) Un grand merci ;)

n°1379903
aipsy0783
Posté le 02-06-2006 à 14:38:24  profilanswer
 

quelle est la table où sont stockées les photos?
quelle est la structure de cette table

n°1379984
Sebasti12
Posté le 02-06-2006 à 15:49:30  profilanswer
 

Je ne comprend pas la question (je suis un gros newbies :()

n°1379990
aipsy0783
Posté le 02-06-2006 à 15:57:07  profilanswer
 

Code :
  1. $query = "SELECT deal_articles.*,deal_rubriques.nom,deal_rubriques.id_rubrique
  2. FROM deal_articles,deal_rubriques
  3. WHERE deal_rubriques.id_rubrique=deal_articles.id_rubrique AND deal_articles.en_ligne='Y'
  4. ORDER BY deal_articles.fin ASC LIMIT 0,$affichnext";$mysql_result = mysql_query($query,$mysql_link);while($row = mysql_fetch_array($mysql_result))


 
ça s'est une requete (une demande) effectuée sur des tables (de base de données)
 
FROM deal_articles,deal_rubriques (ça ce sont des tables)


Message édité par aipsy0783 le 02-06-2006 à 15:58:14
n°1379993
skeye
Posté le 02-06-2006 à 15:58:23  profilanswer
 

Oui bon t'as pas compris comment marche la section programmation là hein...c'est pas du libre service de programmeurs gratuits.
On est là pour aider les gens qui programment, pas pour programmer à la place des gens qui n'y pipent rien.:o
 
http://forum.hardware.fr/hardwaref [...] 4544-1.htm
 

Citation :

[0C] On ne fait pas le boulot à votre place.


---------------
Can't buy what I want because it's free -
n°1379996
aipsy0783
Posté le 02-06-2006 à 16:00:28  profilanswer
 

:D

n°1380000
aipsy0783
Posté le 02-06-2006 à 16:01:47  profilanswer
 

moi jsuis pas contre une remise sur les produits en vente lool

n°1380004
aipsy0783
Posté le 02-06-2006 à 16:03:40  profilanswer
 

là ah ce niveau là à moins de me balancer tes codes d'accès en message privé pour voir ça moi meme je pense pas que tu soies capable de répondre à mes questions


Message édité par aipsy0783 le 02-06-2006 à 16:04:03
n°1380006
Sebasti12
Posté le 02-06-2006 à 16:04:47  profilanswer
 

c'est dans la base donnée ?

n°1380021
Sebasti12
Posté le 02-06-2006 à 16:10:28  profilanswer
 

C'est ça?
 

Code :
  1. SELECT COUNT( * ) AS `Enregistrements` , `photo`
  2. FROM `deal_articles`
  3. GROUP BY `photo`
  4. ORDER BY `photo`
  5. LIMIT 0 , 30


 
Merci de ton aide ;)

n°1380024
aipsy0783
Posté le 02-06-2006 à 16:12:21  profilanswer
 

il peut y avoir qu'une photo par article?
0 ou 1?

n°1380027
Sebasti12
Posté le 02-06-2006 à 16:12:53  profilanswer
 

Oui d'ailleur je trouve ça un peu nul m'enfin ;)

n°1380033
aipsy0783
Posté le 02-06-2006 à 16:20:37  profilanswer
 

essai ça

Code :
  1. ligne:391          }
  2. ligne:392       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>
  3. ligne:393       <td width=\"16%\">$prix_depart $devise</td>


 
->
 

Code :
  1. ligne:391          }
  2. ligne:392       echo "<td width=\"45%\"><a href=\"in_article.php?id_article=$id_article&id_rubrique=$parent&rubrique=$rubrique\"><font color=\"$textcolor\">$designation</font>";
  3. ligne:392bis    if ($row["photo"] != "" ) echo "<img src='photo.jpg' alt='avec photo'>";
  4. ligne:392tris   echo "</a></td>
  5. ligne:393       <td width=\"16%\">$prix_depart $devise</td>


 
corrigé! j'avais mis "désignation" au lieu de "photo"


Message édité par aipsy0783 le 02-06-2006 à 16:25:17
n°1380070
Sebasti12
Posté le 02-06-2006 à 16:57:25  profilanswer
 

Ca marche, tu es super !!! Un grand merci de ton aide !!! franchement merci ;) ;) :)

n°1380075
aipsy0783
Posté le 02-06-2006 à 16:59:44  profilanswer
 

:) merci merci lol... superbe en l'occurence lol ben oui j'ai pas un truc entre les cuisses lool

Message cité 1 fois
Message édité par aipsy0783 le 02-06-2006 à 17:00:45
n°1380100
Sebasti12
Posté le 02-06-2006 à 17:31:06  profilanswer
 

Il y a juste un truc, c'est que la photo est encadré par un cadre bleu, ont sait retiré ça ? Encore un grand merci, tu es merveilleuse lol ;)

n°1380169
aipsy0783
Posté le 02-06-2006 à 19:39:59  profilanswer
 

<img border='0' src=' ...

n°1380328
gooopil
pfiew
Posté le 03-06-2006 à 01:26:19  profilanswer
 

aipsy0783 a écrit :

:) merci merci lol... superbe en l'occurence lol ben oui j'ai pas un truc entre les cuisses lool


Superbe c'est pas le féminin de super :o
 

aipsy0783 a écrit :

<img border='0' src=' ...


 :non: Ca c'est "deprecated". Faut utiliser des styles.
Donc <img style="border:0px">
 
 

n°1380344
Sebasti12
Posté le 03-06-2006 à 09:39:51  profilanswer
 

Merci ça marche nickel chrome :), un tout grand merci (vous avez fait mon bonheur :))

n°1380753
aipsy0783
Posté le 04-06-2006 à 13:13:05  profilanswer
 

jsuis superbe qd meme lol
et puis coté dépréciated moi je fais tout en xhtml alors je préfère pas regarder tout le code généré mais doit pas y avoir que ça de deprecated

n°2022517
racemul
Posté le 12-09-2010 à 20:18:23  profilanswer
 

salut pour ceux ke sa interesse encore je viens de trouver le script ici : http://www.orange-ville.fr/phpdeal/index.html

mood
Publicité
Posté le   profilanswer
 


Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Programmation
  PHP

  Modifier Phpdeal

 

Sujets relatifs
Modifier un champ XML a partir d'un xslModifier service windows
Modifier le refererVB 6 : comment modifier la definition d'un champs (allowzeolenght)
phpnuke 'Comment modifier logos / couleurs etc"Modifier évènement après rechargement
Modifier la taille de l'ascenseur[macro excel Modifier tout les lien hypertexte
[JExcelAPI] Modifier un fichier excelModifier liens avec à onchange [RESOLU]
Plus de sujets relatifs à : Modifier Phpdeal


Copyright © 1997-2022 Hardware.fr SARL (Signaler un contenu illicite / Données personnelles) / Groupe LDLC / Shop HFR