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

  FORUM HardWare.fr
  Programmation
  PHP

  probleme affichage données sessions

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

probleme affichage données sessions

n°1243843
vincent220​8
Posté le 11-11-2005 à 13:41:58  profilanswer
 

Bonjour, il me reste un dernier petit probleme pour la conception d'un pannier :  
L'ajout de plusieurs articles et maintenant possible qui sont affichés si l'on ajoute un article dans le panier mais si l'on accede directement au panier les éléments bien que gardés en memoire ne sont plus affichés comment faire:
demo pour test:
http://www.informatiques-consommab [...] /alps1.php
 
code alps1.php
 

Code :
  1. <?php
  2. session_start();
  3. if (isset($_SESSION['panier']['nb_art'])) { // controle si un article existe deja dans le panier
  4. $id_art_sel=$_SESSION['panier']['nb_art']+1; // numero de l'article qui sera ajout‚
  5. } else {$id_art_sel=1;} // si il n'y a pas d'articles d‚j… pr‚sent
  6. echo '<form name="form1" method="post" action="http://www.informatiques-consommables.com/commandes/panier1.php">
  7. <INPUT type="hidden" name="id_art" value="'.$id_art_sel.'">'; // pour passage de l'id article
  8. ?>
  9. <html>
  10. <head>
  11. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  12. <TITLE>CEVENNES TONER ALES</TITLE>
  13. <META NAME="Identifier-URL" CONTENT="http://www.informatiques-consommables.com/Catalogue/1/alps.php">
  14. <META NAME="Description" CONTENT="cevennes toner ales">
  15. <META NAME="Keywords" LANG="fr" CONTENT="catalogue, stockage, alps, produit, produits, services, article, articles, CD-DVD, r-rw vierge, Carte mémoire, Cle usb, Cle mp3, Disque dur">
  16. <META NAME="ROBOTS" CONTENT="INDEX,FOLLOW,ALL">
  17. <META NAME="revisit-after" CONTENT="7">
  18. <META NAME="Author" LANG="fr" CONTENT="aptitude online vincent bonet">
  19. <META HTTP-EQUIV="imagetoolbar" CONTENT="no">
  20. <script language="JavaScript">
  21. msg = "Cevennes Toner Alès // Tous vos consommables & Matériels informatiques...";
  22. timeID = 10;
  23. stcnt = 16;
  24. wmsg = new Array(33);
  25.         wmsg[0]=msg;
  26.         blnk = "                                                               ";
  27.         for (i=1; i<32; i++)
  28.         {
  29.                 b = blnk.substring(0,i);
  30.                 wmsg[i]="";
  31.                 for (j=0; j<msg.length; j++) wmsg[i]=wmsg[i]+msg.charAt(j)+b;
  32.         }
  33. function wiper()
  34. {
  35.         if (stcnt > -1) str = wmsg[stcnt]; else str = wmsg[0];
  36.         if (stcnt-- < -40) stcnt=31;
  37.         status = str;
  38.         clearTimeout(timeID);
  39.         timeID = setTimeout("wiper()",100);
  40. }
  41. wiper()
  42. </script>
  43. <link href="design/styles/styles.css" rel="stylesheet" type="text/css">
  44. <style type="text/css">
  45. <!--
  46. body {
  47. background-image: url(../../design/styles/fond.gif);
  48. background-color: #FFFFFF;
  49. }
  50. .Style15 {color: #BDDFE1}
  51. .Style16 {font-size: 12px; font-style: normal; line-height: normal; font-weight: normal; font-variant: normal; text-transform: Aucune; letter-spacing: normal; text-align: left; vertical-align: baseline; word-spacing: normal; white-space: normal; font-family: Verdana, Arial, Helvetica, sans-serif;}
  52. body,td,th {
  53. color: #006699;
  54. }
  55. a:link {
  56. color: #006699;
  57. text-decoration: none;
  58. }
  59. a:visited {
  60. color: #006699;
  61. text-decoration: none;
  62. }
  63. a:hover {
  64. color: #006699;
  65. text-decoration: underline;
  66. }
  67. a:active {
  68. color: #BDDFE1;
  69. text-decoration: none;
  70. }
  71. .Style19 {font-size: 12px}
  72. .Style20 {font-family: Geneva, Arial, Helvetica, sans-serif}
  73. .Style23 {font-size: 12px; font-style: normal; line-height: normal; font-variant: normal; text-transform: Aucune; color: #006699; letter-spacing: normal; text-align: left; vertical-align: baseline; word-spacing: normal; white-space: normal; font-family: Verdana, Arial, Helvetica, sans-serif;}
  74. -->
  75. <!--
  76. .Style24 {color: #FF0000}
  77. -->
  78. </style>
  79. <link href="../../design/styles/styles.css" rel="stylesheet" type="text/css">
  80. </head>
  81. <body>
  82. <div align="center">
  83.   <table width="800"  border="1" cellpadding="0" cellspacing="0" bordercolor="#9DBEC5" bgcolor="#FFFFFF">
  84.     <tr bordercolor="#D5DDE0">
  85.       <td bordercolor="#FFFFFF" bgcolor="#FFFFFF"><div align="left"><a href="http://www.informatiques-consommables.com/accueil.php" target="_self"><img src="http://www.informatiques-consommables.com/design/img/cevennestoner.jpg" alt="Cevennes Toner Ales" width="100%" height="190" border="0"></a> </div></td>
  86.     </tr>
  87.     <tr bordercolor="#D5DDE0">
  88.       <td bordercolor="#FFFFFF" bgcolor="#FFFFFF"><table width="100%" border="1" cellpadding="0" cellspacing="0" bordercolor="#9DBEC5" bgcolor="#FFFFFF">
  89.           <tr bgcolor="#BDDFE1" class="menuhaut">
  90.             <td><a href="http://www.informatiques-consommables.com/Catalogue/1/stockage.php" target="_self">Stockage</a></td>
  91.             <td><a href="http://www.informatiques-consommables.com/Catalogue/2/composants.php" target="_self">Composants</a></td>
  92.             <td><a href="http://www.informatiques-consommables.com/Catalogue/3/systemes.php" target="_self">Systemes</a></td>
  93.             <td><a href="http://www.informatiques-consommables.com/Catalogue/4/logiciels.php" target="_self">Logiciels</a></td>
  94.             <td><a href="http://www.informatiques-consommables.com/Catalogue/5/reseaux.php" target="_self">Reseaux</a></td>
  95.             <td><a href="http://www.informatiques-consommables.com/Catalogue/6/peripheriques.php" target="_self">Peripheriques</a></td>
  96.             <td><a href="http://www.informatiques-consommables.com/Catalogue/7/consommables.php" target="_self">Consommables</a></td>
  97.             <td><a href="http://www.informatiques-consommables.com/Catalogue/8/services.php" target="_self">Services</a></td>
  98.             <td><a href="http://www.informatiques-consommables.com/Catalogue/9/accessoires.php" target="_self">Accessoires</a></td>
  99.           </tr>
  100.       </table></td>
  101.     </tr>
  102.     <tr bordercolor="#D5DDE0">
  103.       <td bordercolor="#FFFFFF" bgcolor="#FFFFFF"><table width="100%"  border="0" cellpadding="0" cellspacing="0">
  104.           <tr class="textes">
  105.             <td width="50%">
  106.             Bienvenue sur Cevennes Toner
  107.             </td>
  108.             <td width="50%"><div align="right">
  109.             <a href="http://www.informatiques-consommables.com/commandes/panier1.php" target="_self">Mon Panier<img src="http://www.informatiques-consommables.com/design/img/panier.jpg" alt="Mon Panier" width="30" height="18" border="0">              </a></div></td>
  110.           </tr>
  111.       </table></td>
  112.     </tr>
  113.   </table>
  114.   <table width="800" height="500" border="1" cellpadding="0" cellspacing="0" bordercolor="#BDDFE1" bgcolor="#FFFFFF">
  115.     <tr bordercolor="#BDDFE1">
  116.       <td width="135" bgcolor="#FFFFFF"><table width="135" height="100%"  border="1" bordercolor="#FFFFFF" bgcolor="#FFFFFF">
  117.         <tr>
  118.           <td bordercolor="#006699" bgcolor="#BDDFE1"><div align="center" class="menugauche">Ventes Flash</div></td>
  119.         </tr>
  120.         <tr>
  121.           <td width="120" height="120" bordercolor="#006699" bgcolor="#FFFFFF">              <div align="left" class="textes">
  122.             <div align="center"><span class="titres_droite">
  123.               <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="120" height="120">
  124.                 <param name="movie" value="../../design/flash/ventes_flash.swf">
  125.                 <param name="quality" value="high">
  126.                 <embed src="../../design/flash/ventes_flash.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="120" height="120"></embed>
  127.               </object>
  128.             </span></div>
  129.           </div></td></tr>
  130.         <tr>
  131.           <td bordercolor="#FFFFFF" bgcolor="#FFFFFF">
  132.             <div align="left"></div></td>
  133.         </tr>
  134.         <tr>
  135.           <td bordercolor="#006699" bgcolor="#BDDFE1"><div align="center" class="menugauche">Liens Sponris&eacute;s</div></td>
  136.         </tr>
  137.         <tr>
  138.           <td bordercolor="#006699" bgcolor="#FFFFFF">
  139.             <div align="center"><script language="javascript">
  140. var uri = 'http://impfr.tradedoubler.com/imp/js/14499249/1035542?' + new String (Math.random()).substring (2, 11);
  141. document.write('<sc'+'ript language="JavaScript" src="'+uri+'" charset="ISO-8859-1"></sc'+'ript>');
  142. </script></div></td>
  143.         </tr>
  144.         <tr>
  145.           <td bordercolor="#FFFFFF" bgcolor="#FFFFFF"><div align="left"></div></td>
  146.         </tr>
  147.         <tr>
  148.           <td bordercolor="#006699" bgcolor="#BDDFE1" class="menugauche">Espace Clients</td>
  149.         </tr>
  150.         <tr>
  151.           <td bordercolor="#006699" bgcolor="#FFFFFF"><div align="left" class="textes">
  152.             <p><a href="http://www.informatiques-consommables.com/xxxxx/intra.php" target="_self">Professionnels</a></p>
  153.             <p><a href="http://www.informatiques-consommables.com/xxxxx/intra.php" target="_self">Mon Compte</a></p>
  154.           </div></td>
  155.         </tr>
  156.         <tr>
  157.           <td bordercolor="#FFFFFF" bgcolor="#FFFFFF">&nbsp;</td>
  158.         </tr>
  159.         <tr>
  160.           <td bordercolor="#006699" bgcolor="#BDDFE1"><div align="center" class="menugauche">Catalogue</div></td>
  161.         </tr>
  162.         <tr>
  163.           <td bordercolor="#006699" bgcolor="#FFFFFF"><div align="left" class="textes"><a href="http://www.informatiques-consommables.com/Catalogue/catalogue.php" target="_self">tous les articles</a></div></td>
  164.         </tr>
  165.         <tr>
  166.           <td height="100%" bordercolor="#FFFFFF" bgcolor="#FFFFFF">&nbsp;</td>
  167.         </tr>
  168.       </table>      </td>
  169.       <td width="490" bgcolor="#FFFFFF"><div align="center"></div>
  170.         <div align="center">       
  171.           <table width="100%" height="100%"  border="1" bordercolor="#FFFFFF" bgcolor="#FFFFFF">
  172.             <tr>
  173.               <td bordercolor="#FFFFFF" bgcolor="#FFFFFF"><div align="left">
  174.                 <table width="100%" border="1" cellpadding="0" bordercolor="#FFFFFF" bgcolor="#FFFFFF">
  175.                     <tr>
  176.                       <td bordercolor="#006699" bgcolor="#BDDFE1"><div align="left" class="titrescentre"><a href="http://www.informatiques-consommables.com/accueil.php" target="_self">Accueil</a> &gt;&gt; <a href="http://www.informatiques-consommables.com/Catalogue/catalogue.php" target="_blank">Catalogue Produits &amp; Services</a> &gt;&gt; <span class="Style24"><a href="http://www.informatiques-consommables.com/Catalogue/1/stockage.php" target="_self">Stockage</a></span> </div></td>
  177.                     </tr>
  178.                   </table>
  179.                   <table width="100%"  border="0">
  180.                     <tr>
  181.                       <td width="50%" class="titrescentre"><table width="100%" border="0" cellpadding="0" cellspacing="0" >
  182.                           <tr>
  183.                             <td class="menugauche">Constructeur</td>
  184.                           </tr>
  185.                           <tr>
  186.                             <td class="menugauche">Aide Commande <a href="#"onClick="window.open('http://www.informatiques-consommables.com/commandes/aide.php','_blank','toolbar=0, location=0, directories=0, status=0, scrollbars=2, resizable=0, copyhistory=0, menuBar=0, width=650, height=450');return(false)"><img src="http://www.informatiques-consommables.com/design/img/interrogation.jpg" alt="Aide" width="22" height="18" border="0"></a></td>
  187.                           </tr>
  188.                         </table></td>
  189.                       <td width="50%" class="titrescentre"><div align="right"><img src="../../design/fabriquants/alps.gif" width="106" height="31"></div></td>
  190.                     </tr>
  191.                   </table>
  192.                   <table width="100%"  border="1" bordercolor="#FFFFFF" bgcolor="#FFFFFF">
  193.                     <tr bordercolor="#BDDFE1" bgcolor="#BDDFE1" class="menugauche">
  194.                       <td width="14%">Reference</td>
  195.                       <td width="51%" bordercolor="#BDDFE1">Description</td>
  196.                       <td width="14%">Prix HT &euro; </td>
  197.                       <td width="11%">Quantit&eacute;</td>
  198.                       <td width="10%">Ajouter</td>
  199.                     </tr>
  200.                   </table>
  201.                   <table width="100%" border="0" cellpadding="0" cellspacing="0" >
  202.                     <tr>
  203.                       <td>
  204. <table width="100%" border="1" bordercolor="#FFFFFF" bgcolor="#FFFFFF">
  205. <tr bordercolor="#BDDFE1" bgcolor="#FFFFFF">
  206. <td width="14%" class="menugauche"><table width="100%" border="0" cellpadding="0" cellspacing="0" >
  207. <tr>
  208. <td><div align="center"><img src="../../design/img/no_photo.gif" width="45" height="45"></div></td>
  209. </tr>
  210. <tr>
  211. <td><input name="ref" type="text" id="champ1" value="1ALP1" size="8" maxlength="8" onFocus="this.blur()"></td>
  212. </tr>
  213. </table></td>
  214. <td width="51%" class="textes"><textarea name="designation" cols="25" rows="4" id="champ2" onFocus="this.blur()">PACK de 20 lecteurs de
  215. disquettes 3.5 PCE 1.44MB
  216. (coloris : beige)</textarea></td>
  217. <td width="14%" class="textes"><input name="prixht" type="text" id="champ3" value="106.46" size="8" maxlength="8" onFocus="this.blur()"></td>
  218. <td width="11%" class="textes"><select name="quantite" id="champ4">
  219. <option value="0" selected>0</option>
  220. <option value="1">1</option>
  221. <option value="2">2</option>
  222. <option value="3">3</option>
  223. <option value="4">4</option>
  224. <option value="5">5</option>
  225. <option value="6">6</option>
  226. <option value="7">7</option>
  227. <option value="8">8</option>
  228. <option value="9">9</option>
  229. </select></td>
  230. <td width="10%" class="textes"><div align="right">
  231. <input type="submit" value="ajouter">
  232. </div></td>
  233. </tr>
  234. </table>
  235. </form></td>
  236.                     </tr>
  237.                   </table>
  238.                   <table width="100%"  border="0">
  239.                     <tr>
  240.                       <td width="50%" class="titrescentre">&nbsp;</td>
  241.                     </tr>
  242.                   </table>
  243.                   <table width="100%" border="0" cellpadding="0" cellspacing="0" >
  244.                     <tr>
  245.                       <td><form name="form2" method="post" action="http://www.informatiques-consommables.com/commandes/panier.php">
  246.                           <table width="100%"&nbsp;border="1" bordercolor="#FFFFFF" bgcolor="#FFFFFF">
  247.                             <tr bordercolor="#BDDFE1" bgcolor="#FFFFFF">
  248.                               <td width="14%" class="menugauche"><table width="100%" border="0" cellpadding="0" cellspacing="0" >
  249.                                   <tr>
  250.                                     <td><div align="center"><img src="../../design/img/no_photo.gif" width="45" height="45"></div></td>
  251.                                   </tr>
  252.                                   <tr>
  253.                                     <td><input name="ref" type="text" id="champ1" value="1ALP2" size="8" maxlength="8" onFocus="this.blur()"></td>
  254.                                   </tr>
  255.                               </table></td>
  256.                               <td width="51%" class="textes"><textarea name="designation" cols="25" rows="4" id="champ2" onFocus="this.blur()">PACK de 20 lecteurs de
  257. disquettes 3.5 PCE 1.44MB
  258. (coloris : noir)</textarea></td>
  259.                               <td width="14%" class="textes"><input name="prixht" type="text" id="champ3" value="112.68" size="8" maxlength="8" onFocus="this.blur()"></td>
  260.                               <td width="11%" class="textes"><select name="quantite" id="champ4">
  261.                                   <option value="0" selected>0</option>
  262.                                   <option value="1">1</option>
  263.                                   <option value="2">2</option>
  264.                                   <option value="3">3</option>
  265.                                   <option value="4">4</option>
  266.                                   <option value="5">5</option>
  267.                                   <option value="6">6</option>
  268.                                   <option value="7">7</option>
  269.                                   <option value="8">8</option>
  270.                                   <option value="9">9</option>
  271.                               </select></td>
  272.                               <td width="10%" class="textes"><div align="right">
  273.                                   <input type="submit" value="ajouter">
  274.                               </div></td>
  275.                             </tr>
  276.                           </table>
  277.                       </form></td>
  278.                     </tr>
  279.                   </table>
  280.                   <table width="100%"  border="0">
  281.                     <tr>
  282.                       <td width="50%" class="titrescentre">&nbsp;</td>
  283.                     </tr>
  284.                   </table>
  285.                   <table width="100%" border="1" bordercolor="#FFFFFF" bgcolor="#FFFFFF" >
  286.                     <tr>
  287.                       <td bordercolor="#BDDFE1" bgcolor="#BDDFE1" class="menugauche">Vous ne trouvez pas votre r&eacute;f&eacute;rence? Servez-vous du formulaire ci dessous</td>
  288.                     </tr>
  289.                     <tr>
  290.                       <td bordercolor="#BDDFE1"><form name="references" method="post" action="http://www.informatiques-consommables.com/Catalogue/envoi.php3">
  291.                           <table width="100%" >
  292.                             <tr class="textes">
  293.                               <td><input name="champ1" type="text" id="champ1" value="Marque" size="10" maxlength="10"></td>
  294.                               <td><input name="champ2" type="text" id="champ2" value="Model" size="20" maxlength="20"></td>
  295.                               <td><input name="champ3" type="text" id="champ3" value="Ref" size="20" maxlength="20"></td>
  296.                               <td>&nbsp;</td>
  297.                             </tr>
  298.                             <tr class="textes">
  299.                               <td>Recontactez moi par: </td>
  300.                               <td><input name="champ4" type="text" id="champ4" value="Votre Email" size="20" maxlength="20"></td>
  301.                               <td><input name="champ5" type="text" id="champ5" value="Votre Telephone" size="20" maxlength="20"></td>
  302.                               <td><input type="submit" name="Submit" value="Envoyer"></td>
  303.                             </tr>
  304.                           </table>
  305.                       </form></td>
  306.                     </tr>
  307.                   </table>
  308.                   <table width="100%"  border="0">
  309.                     <tr>
  310.                       <td width="50%" class="titrescentre">&nbsp;</td>
  311.                     </tr>
  312.                   </table>
  313.                   <table width="100%"  border="1" bordercolor="#FFFFFF" bgcolor="#FFFFFF">
  314.                     <tr bordercolor="#BDDFE1" bgcolor="#FFFFFF" class="menuhaut">
  315.                       <td><div align="center"><a href="alps.php" target="_self"><img src="../../design/fabriquants/alps.gif" width="106" height="31" border="0"></a></div></td>
  316.                       <td><div align="center"><a href="assus.php" target="_self"><img src="../../design/fabriquants/logo_asus.gif" width="160" height="43" border="0"></a></div></td>
  317.                       <td><div align="center"><a href="creative.php" target="_self"><img src="../../design/fabriquants/logo_creative.gif" width="100" height="28" border="0"></a></div></td>
  318.                     </tr>
  319.                     <tr bordercolor="#BDDFE1" bgcolor="#FFFFFF" class="menuhaut">
  320.                       <td><div align="center"><a href="hp.php" target="_self"><img src="../../design/fabriquants/logo_hp.gif" width="120" height="71" border="0"></a></div></td>
  321.                       <td><div align="center"><a href="iomega.php" target="_self"><img src="../../design/fabriquants/logo_iomega.gif" width="73" height="67" border="0"></a></div></td>
  322.                       <td><div align="center"><a href="lg.php" target="_self"><img src="../../design/fabriquants/logo_lg.gif" width="103" height="57" border="0"></a></div></td>
  323.                     </tr>
  324.                     <tr bordercolor="#BDDFE1" bgcolor="#FFFFFF" class="menuhaut">
  325.                       <td><div align="center"><a href="maxtor.php" target="_self">Maxtor</a></div></td>
  326.                       <td><div align="center"><a href="pioneer.php" target="_self"><img src="../../design/fabriquants/logo_pioneer.gif" width="180" height="38" border="0"></a></div></td>
  327.                       <td><div align="center"><a href="plextor.php" target="_self"><img src="../../design/fabriquants/logo_plextor.gif" width="150" height="45" border="0"></a></div></td>
  328.                     </tr>
  329.                     <tr bordercolor="#BDDFE1" bgcolor="#FFFFFF" class="menuhaut">
  330.                       <td><div align="center"><a href="samsung.php" target="_self"><img src="../../design/fabriquants/logo_samsung.gif" width="120" height="32" border="0"></a></div></td>
  331.                       <td><div align="center"><a href="seagate.php" target="_self"><img src="../../design/fabriquants/logo_seagate.gif" width="145" height="56" border="0"></a></div></td>
  332.                       <td><div align="center"><a href="sony.php" target="_self"><img src="../../design/fabriquants/logo_sony.gif" width="140" height="26" border="0"></a></div></td>
  333.                     </tr>
  334.                   </table>
  335.                   <table width="100%"  border="0">
  336.                     <tr>
  337.                       <td width="50%" class="titrescentre">&nbsp;</td>
  338.                     </tr>
  339.                   </table>
  340.                   <table width="100%"  border="1" bordercolor="#FFFFFF" bgcolor="#FFFFFF">
  341.                     <tr>
  342.                       <td bordercolor="#006699" bgcolor="#BDDFE1" class="titrescentre"><a href="Catalogue/catalogue.php" target="_self">Details</a></td>
  343.                     </tr>
  344.                   </table>
  345.                   </div></td>
  346.             </tr>
  347.             <tr>
  348.               <td bordercolor="#FFFFFF" bgcolor="#FFFFFF"><div align="left">
  349.                   <TABLE width="100%"
  350. border=1 align=center bordercolor="#FFFFFF" bgcolor="#FFFFFF" class=tahoma_gf>
  351.                     <TBODY>
  352.                       <TR>
  353.                         <TD  width="48%" bordercolor="#006699"><div align="left">
  354.                             <table width="100%" border="0" cellpadding="0" cellspacing="0" >
  355.                               <tr>
  356.                                 <td bgcolor="#BDDFE1"><span class="textes"><img
  357. src="../../design/img/fleche.gif" alt="" width="17" height="17" border=0><a href="http://www.informatiques-consommables.com/Catalogue/1/stockage.php" target="_self" class="menugauche">STOCKAGE</a></span></td>
  358.                               </tr>
  359.                               <tr>
  360.                                 <td><span class="textes"><a href="http://www.informatiques-consommables.com/Catalogue/1/stockage.php" target="_self">CD-DVD r-rw vierge</a>, <a href="http://www.informatiques-consommables.com/Catalogue/1/stockage.php" target="_self">Carte m&eacute;moire</a>, <a href="http://www.informatiques-consommables.com/Catalogue/1/stockage.php" target="_self">Cle usb</a>, <a href="http://www.informatiques-consommables.com/Catalogue/1/stockage.php" target="_self">Cle mp3</a>, <a href="http://www.informatiques-consommables.com/Catalogue/1/stockage.php" target="_self">Disque dur</a><a href="http://www.informatiques-consommables.com/Catalogue/1/stockage.php" target="_self">...</a></span></td>
  361.                               </tr>
  362.                               <tr>
  363.                                 <td>&nbsp;</td>
  364.                               </tr>
  365.                               <tr>
  366.                                 <td><span class="textes"><img
  367. src="../../design/img/fleche.gif" alt="" width="17" height="17" border=0><a href="http://www.informatiques-consommables.com/Catalogue/2/composants.php" target="_self" class="menugauche">COMPOSANTS</a></span></td>
  368.                               </tr>
  369.                               <tr>
  370.                                 <td><span class="textes"><a href="http://www.informatiques-consommables.com/Catalogue/2/composants.php" target="_self">Bo&icirc;tier</a>, <a href="http://www.informatiques-consommables.com/Catalogue/2/composants.php" target="_self">Carte graphique</a>, <a href="http://www.informatiques-consommables.com/Catalogue/2/composants.php" target="_self">Carte son</a>, <a href="http://www.informatiques-consommables.com/Catalogue/2/composants.php" target="_self">Carte m&egrave;re</a>, <a href="http://www.informatiques-consommables.com/Catalogue/2/composants.php" target="_self">Graveur CD-DVD</a>, <a href="http://www.informatiques-consommables.com/Catalogue/2/composants.php" target="_self">M&eacute;moire</a>, <a href="http://www.informatiques-consommables.com/Catalogue/2/composants.php" target="_self">Processeur</a>, <a href="http://www.informatiques-consommables.com/Catalogue/2/composants.php" target="_self">Ventilateur</a>, <a href="http://www.informatiques-consommables.com/Catalogue/2/composants.php" target="_self">Carte TNT-TV</a><a href="http://www.informatiques-consommables.com/Catalogue/2/composants.php" target="_self">...</a></span></td>
  371.                               </tr>
  372.                               <tr>
  373.                                 <td>&nbsp;</td>
  374.                               </tr>
  375.                               <tr>
  376.                                 <td><span class="textes"><img
  377. src="../../design/img/fleche.gif" alt="" width="17" height="17" border=0><a href="http://www.informatiques-consommables.com/Catalogue/3/systemes.php" target="_self" class="menugauche">SYSTEMES</a></span></td>
  378.                               </tr>
  379.                               <tr>
  380.                                 <td><span class="textes"><a href="http://www.informatiques-consommables.com/Catalogue/3/systemes.php" target="_self">Ordinateurs sur mesure</a>, <a href="http://www.informatiques-consommables.com/Catalogue/3/systemes.php" target="_self">PC portable</a>, <a href="http://www.informatiques-consommables.com/Catalogue/3/systemes.php" target="_self">PC de bureau</a><a href="http://www.informatiques-consommables.com/Catalogue/3/systemes.php" target="_self">...</a></span></td>
  381.                               </tr>
  382.                               <tr>
  383.                                 <td>&nbsp;</td>
  384.                               </tr>
  385.                               <tr>
  386.                                 <td><span class="textes"><img
  387. src="../../design/img/fleche.gif" alt="" width="17" height="17" border=0><a href="http://www.informatiques-consommables.com/Catalogue/4/logiciels.php" target="_self" class="menugauche">LOGICIELS</a></span></td>
  388.                               </tr>
  389.                               <tr>
  390.                                 <td><span class="textes"><a href="http://www.informatiques-consommables.com/Catalogue/4/logiciels.php" target="_self">Syst&egrave;me</a>, <a href="http://www.informatiques-consommables.com/Catalogue/4/logiciels.php" target="_self">Bureautique</a>, <a href="http://www.informatiques-consommables.com/Catalogue/4/logiciels.php" target="_self">S&eacute;curit&eacute;</a>, <a href="http://www.informatiques-consommables.com/Catalogue/4/logiciels.php" target="_self">Jeux</a><a href="http://www.informatiques-consommables.com/Catalogue/4/logiciels.php" target="_self">...</a></span></td>
  391.                               </tr>
  392.                               <tr>
  393.                                 <td>&nbsp;</td>
  394.                               </tr>
  395.                               <tr>
  396.                                 <td><span class="textes"><img
  397. src="../../design/img/fleche.gif" alt="" width="17" height="17" border=0></span><span class="menugauche Style30"><a href="http://www.informatiques-consommables.com/Catalogue/5/reseaux.php" target="_self">RESEAUX</a></span></td>
  398.                               </tr>
  399.                               <tr>
  400.                                 <td><span class="textes"> <a href="http://www.informatiques-consommables.com/Catalogue/5/reseaux.php" target="_self">Connectique</a>, <a href="http://www.informatiques-consommables.com/Catalogue/5/reseaux.php" target="_self">Logiciels</a>, <a href="http://www.informatiques-consommables.com/Catalogue/5/reseaux.php" target="_self">Switch</a>, <a href="http://www.informatiques-consommables.com/Catalogue/5/reseaux.php" target="_self">Routeurs</a>, <a href="http://www.informatiques-consommables.com/Catalogue/5/reseaux.php" target="_self">Modems</a><a href="http://www.informatiques-consommables.com/Catalogue/5/reseaux.php" target="_self">...</a></span></td>
  401.                               </tr>
  402.                             </table>
  403.                         </div></TD>
  404.                         <TD width="4%" bordercolor="#BDDFE1" bgcolor="#BDDFE1">&nbsp;</TD>
  405.                         <TD width="48%" bordercolor="#006699" class=textes><div align="left">
  406.                             <table width="100%" border="0" cellpadding="0" cellspacing="0" >
  407.                               <tr>
  408.                                 <td class="textes"><img
  409. src="../../design/img/fleche.gif" alt="" width="17" height="17" border=0><a href="http://www.informatiques-consommables.com/Catalogue/6/peripheriques.php" target="_self" class="menugauche">PERIPHERIQUES</a></td>
  410.                               </tr>
  411.                               <tr>
  412.                                 <td class="textes"><a href="http://www.informatiques-consommables.com/Catalogue/6/peripheriques.php" target="_self">Moniteur LCD-TFT</a>, <a href="http://www.informatiques-consommables.com/Catalogue/6/peripheriques.php" target="_self">Enceinte</a>, <a href="http://www.informatiques-consommables.com/Catalogue/6/peripheriques.php" target="_self">Imprimante</a>, <a href="http://www.informatiques-consommables.com/Catalogue/6/peripheriques.php" target="_self">Scanner</a>, <a href="http://www.informatiques-consommables.com/Catalogue/6/peripheriques.php" target="_self">Switch KVM</a>, <a href="http://www.informatiques-consommables.com/Catalogue/6/peripheriques.php" target="_self">Webcam</a>, <a href="http://www.informatiques-consommables.com/Catalogue/6/peripheriques.php" target="_self">Micro</a>, <a href="http://www.informatiques-consommables.com/Catalogue/6/peripheriques.php" target="_self">Casque</a>, <a href="http://www.informatiques-consommables.com/Catalogue/6/peripheriques.php" target="_self">Clavier</a>, <a href="http://www.informatiques-consommables.com/Catalogue/6/peripheriques.php" target="_self">Souris</a>, <a href="http://www.informatiques-consommables.com/Catalogue/6/peripheriques.php" target="_self">Palm</a>, <a href="http://www.informatiques-consommables.com/Catalogue/6/peripheriques.php" target="_self">Pda</a><a href="http://www.informatiques-consommables.com/Catalogue/6/peripheriques.php" target="_self">...</a></td>
  413.                               </tr>
  414.                               <tr>
  415.                                 <td class="textes">&nbsp;</td>
  416.                               </tr>
  417.                               <tr>
  418.                                 <td class="textes"><img
  419. src="../../design/img/fleche.gif" alt="" width="17" height="17" border=0><a href="http://www.informatiques-consommables.com/Catalogue/7/consommables.php" target="_self" class="menugauche">CONSOMMABLES</a></td>
  420.                               </tr>
  421.                               <tr>
  422.                                 <td class="textes"><a href="http://www.informatiques-consommables.com/Catalogue/7/consommables.php" target="_self">Cartouche j.encre - lasers</a>, <a href="http://www.informatiques-consommables.com/Catalogue/7/consommables.php" target="_self">Rubans</a>, <a href="http://www.informatiques-consommables.com/Catalogue/7/consommables.php" target="_self">Toner</a>, <a href="http://www.informatiques-consommables.com/Catalogue/7/consommables.php" target="_self">CD-DVD r-rw vierge</a>, <a href="http://www.informatiques-consommables.com/Catalogue/7/consommables.php" target="_self">Papier</a>, <a href="http://www.informatiques-consommables.com/Catalogue/7/consommables.php" target="_self">Bobines de caisses</a>, <a href="http://www.informatiques-consommables.com/Catalogue/7/consommables.php" target="_self">Piles</a><a href="http://www.informatiques-consommables.com/Catalogue/7/consommables.php" target="_self">...</a></td>
  423.                               </tr>
  424.                               <tr>
  425.                                 <td class="textes">&nbsp;</td>
  426.                               </tr>
  427.                               <tr>
  428.                                 <td class="textes"><img
  429. src="../../design/img/fleche.gif" alt="" width="17" height="17" border=0><a href="http://www.informatiques-consommables.com/Catalogue/8/services.php" target="_self" class="menugauche">SERVICES</a></td>
  430.                               </tr>
  431.                               <tr>
  432.                                 <td class="textes"><a href="http://www.informatiques-consommables.com/Catalogue/8/services.php" target="_self">Location</a>, <a href="http://www.informatiques-consommables.com/Catalogue/8/services.php" target="_self">Conceptions multimedia</a> (programmation-Design), <a href="http://www.informatiques-consommables.com/Catalogue/8/services.php" target="_self">Intervention maintenance pc</a><a href="http://www.informatiques-consommables.com/Catalogue/8/services.php" target="_self">...</a></td>
  433.                               </tr>
  434.                               <tr>
  435.                                 <td class="textes">&nbsp;</td>
  436.                               </tr>
  437.                               <tr>
  438.                                 <td class="textes"><img
  439. src="../../design/img/fleche.gif" alt="" width="17" height="17" border=0><a href="http://www.informatiques-consommables.com/Catalogue/9/accessoires.php" target="_self" class="menugauche">ACCESSOIRES</a></td>
  440.                               </tr>
  441.                               <tr>
  442.                                 <td class="textes"><a href="http://www.informatiques-consommables.com/Catalogue/9/accessoires.php" target="_self">Rangements</a>, <a href="http://www.informatiques-consommables.com/Catalogue/9/accessoires.php" target="_self">Palm</a>, <a href="http://www.informatiques-consommables.com/Catalogue/9/accessoires.php" target="_self">Pda</a>, <a href="http://www.informatiques-consommables.com/Catalogue/9/accessoires.php" target="_self">Pc portables</a>, <a href="http://www.informatiques-consommables.com/Catalogue/9/accessoires.php" target="_self">Pc de bureau</a>, <a href="http://www.informatiques-consommables.com/Catalogue/9/accessoires.php" target="_self">Baladeur MP3</a>, <a href="http://www.informatiques-consommables.com/Catalogue/9/accessoires.php" target="_self">Etuis et sacoches</a>, <a href="http://www.informatiques-consommables.com/Catalogue/9/accessoires.php" target="_self">Pointeurs</a><a href="http://www.informatiques-consommables.com/Catalogue/9/accessoires.php" target="_self">...</a></td>
  443.                               </tr>
  444.                               <tr>
  445.                                 <td class="textes">&nbsp;</td>
  446.                               </tr>
  447.                               <tr>
  448.                                 <td class="textes">&nbsp;</td>
  449.                               </tr>
  450.                               <tr>
  451.                                 <td class="textes">&nbsp;</td>
  452.                               </tr>
  453.                             </table>
  454.                         </div></TD>
  455.                       </TR>
  456.                     </TBODY>
  457.                   </TABLE>
  458.                   <table width="100%"  border="0">
  459.                     <tr>
  460.                       <td width="50%" class="titrescentre">&nbsp;</td>
  461.                     </tr>
  462.                   </table>
  463.                   <table width="100%" border="1" cellpadding="0" bordercolor="#FFFFFF" bgcolor="#FFFFFF">
  464.                     <tr>
  465.                       <td bordercolor="#006699" bgcolor="#BDDFE1"><div align="left"><span class="titrescentre">Hotline</span></div></td>
  466.                     </tr>
  467.                   </table>
  468.                   <table width="100%" border="1" bordercolor="#FFFFFF" bgcolor="#FFFFFF">
  469.                     <tr bordercolor="#006699" bgcolor="#FFFFFF" class="textes">
  470.                       <td><div align="left">0892 680 631 (0,34 euro/min) Code contact: 24225 - Horaires de notre hotline : <font
  471. face="Arial, Helvetica, sans-serif">Du lundi au vendredi de 10H &agrave; 12H et de 14H &agrave; 17H. Le samedi de 9H30 &agrave; 13H et de 14h &agrave; 17H30</font></div></td>
  472.                     </tr>
  473.                   </table>
  474.               </div></td>
  475.             </tr>
  476.             <tr>
  477.               <td height="100%" bordercolor="#FFFFFF" bgcolor="#FFFFFF"><div align="center"></div></td>
  478.             </tr>
  479.           </table>
  480.         </div>
  481.       </td>
  482.       <td width="135" bgcolor="#FFFFFF"><div align="center">
  483.         <table width="135" height="100%"  border="1" bordercolor="#FFFFFF" bgcolor="#FFFFFF">
  484.           <tr>
  485.             <td bordercolor="#BDDFE1" bgcolor="#006699"><div align="left"><span class="titres_droite Style15 Style19 Style20"><strong>Cevennes Toner</strong></span></div></td>
  486.           </tr>
  487.           <tr>
  488.             <td bordercolor="#006699" bgcolor="#FFFFFF">                 
  489.               <div align="center"><marquee behavior="scroll" direction="up" scrollamount="1" scrolldelay="1" onmouseover="this.stop()" onmouseout="this.start()" style="height:40px;width:100%;border:solid #B4C1D3 1px;background:#BDDFE1;padding:5px;" height="40" width="100%">
  490. <span class="textes"><b>A votre Service !</b><br />
  491. &bull; Le choix …<br />
  492. &bull; Les Prix …<br />
  493. &bull; La Qualité …<br />
  494. &bull; La disponibilité…</span><br />
  495. </marquee>
  496.               </div></td></tr>
  497.           <tr>
  498.             <td bordercolor="#FFFFFF" bgcolor="#FFFFFF"><div align="left"><span class="titres_droite"><font color="#FF9933"></font></span></div></td>
  499.           </tr>
  500.           <tr>
  501.             <td bordercolor="#006699" bgcolor="#BDDFE1"><div align="left" class="menugauche">
  502.               Commandes</div></td>
  503.           </tr>
  504.           <tr>
  505.             <td bordercolor="#006699" bgcolor="#FFFFFF"><div align="left" class="titres_droite"><a href="http://www.informatiques-consommables.com/contact.php" target="_self" class="textes"><img src="../../design/img/mrcharpentier.jpg" alt="Contact" width="120" height="100" border="0" align="left" class="Style16"></a></div></td>
  506.           </tr>
  507.           <tr>
  508.             <td bordercolor="#006699" bgcolor="#FFFFFF"><div align="left">
  509.                 <p><strong><span class="textes"><a href="http://www.informatiques-consommables.com/commandes/commandes.php" target="_self">Commandez</a></span></strong></p>
  510.                 <p class="textes"><a href="http://www.informatiques-consommables.com/contact.php" target="_self">Nous Contacter</a></p>
  511.                 <p class="Style23"><a href="http://www.informatiques-consommables.com/acces.php" target="_self">Acc&eacute;s</a></p>
  512.             </div></td>
  513.           </tr>
  514.           <tr>
  515.             <td bordercolor="#FFFFFF" bgcolor="#FFFFFF"><div align="left"><span class="titres_droite"><strong></strong></span></div></td>
  516.           </tr>
  517.           <tr>
  518.             <td bordercolor="#006699" bgcolor="#BDDFE1"><div align="left" class="menugauche">Liens Sponsoris&eacute;s</div></td></tr> 
  519.           <tr>
  520.             <td bordercolor="#006699" bgcolor="#FFFFFF"><div align="center"><span class="textes"><font color="#FF9933"><script language="javascript">
  521. var uri = 'http://impfr.tradedoubler.com/imp/img/69217/1035542?' + new String (Math.random()).substring (2, 11);
  522. document.write('<a href="http://clk.tradedoubler.com/click?p=704&a=1035542&g=69217" target="_blank"><img src="'+uri+'" border=0></a>');
  523. </script></font></span></div></td>
  524.           </tr>
  525.           <tr>
  526.             <td height="100%" bordercolor="#FFFFFF" bgcolor="#FFFFFF"><div align="center" class="Style1"></div></td>
  527.           </tr>
  528.         </table>
  529.       </div>
  530.       </td>
  531.     </tr>
  532.   </table>
  533.   <table width="800" border="1" cellpadding="0" cellspacing="0" bordercolor="#9DBEC5" bgcolor="#FFFFFF">
  534.     <tr>
  535.       <td bordercolor="#FFFFFF" bgcolor="#FFFFFF"><div align="center" class="pied">| <a href="http://www.informatiques-consommables.com/affiliation/affiliation.php" target="_self">Affiliation</a> | <a href="http://www.informatiques-consommables.com/contact.php" target="_self">Contact</a> | <a href="http://www.informatiques-consommables.com/sav/sav.php" target="_self">SAV</a> | <a href="http://www.informatiques-consommables.com/newsletter.php" target="_self">Newsletter</a> | <a href="http://www.informatiques-consommables.com/faq.php" target="_self">FAQ</a> | <a href="http://www.informatiques-consommables.com/cgv.php" target="_self">CGV</a> | <a href="http://www.informatiques-consommables.com/promotions.php" target="_self">Promotions</a> | <a href="http://www.informatiques-consommables.com/plan_site.php" target="_self">Plan du Site</a> |</div></td>
  536.     </tr>
  537.     <tr>
  538.       <td bordercolor="#FFFFFF" bgcolor="#FFFFFF" class="copyright"><a href="http://www.informatiques-consommables.com" target="_self">Copyright Cevennes Toner &copy;2005</a> | <a href="http://www.aptitude-online.com" target="_blank">Protection Aptitude Online</a> | C.N.I.L: En cours d'enregistrement</td>
  539.     </tr>
  540.     <tr>
  541.       <td bordercolor="#FFFFFF" bgcolor="#FFFFFF" class="copyright">Siret: 482 348 505 00017 | Code APE: 524Z | N&deg; TVA Intracommunautaire FR12482348505</td>
  542.     </tr>
  543.   </table>
  544. </div>
  545. </body>
  546. </html>


 
code panier1.php
 

Code :
  1. <?php
  2. session_start();
  3. $_SESSION['panier']['nb_art']=$_POST['id_art']; // nombre d'articles dans le panier
  4. $_SESSION["panierID$_POST[id_art]"]['ref'] = $_POST['ref'];
  5. $_SESSION["panierID$_POST[id_art]"]['designation'] = $_POST['designation'];
  6. $_SESSION["panierID$_POST[id_art]"]['prixht'] = $_POST['prixht'];
  7. $_SESSION["panierID$_POST[id_art]"]['quantite'] = $_POST['quantite'];
  8. //$_SESSION=array();
  9. //print_r($_SESSION);
  10. ?>
  11. <style type="text/css">
  12. <!--
  13. body,td,th {
  14. color: #006699;
  15. }
  16. body {
  17. background-image: url(../design/styles/fond.gif);
  18. }
  19. -->
  20. </style>
  21. <link href="../design/styles/styles.css" rel="stylesheet" type="text/css">
  22. <table width="100%" border="1" bordercolor="#FFFFFF" bgcolor="#FFFFFF">
  23. <tr bordercolor="#BDDFE1" bgcolor="#BDDFE1" class="menugauche">
  24. <td width="25%">Reference</td>
  25. <td width="25%" bordercolor="#BDDFE1">Description</td>
  26. <td width="25%">Prix HT &euro; </td>
  27. <td width="25%">Quantit&eacute;</td>
  28. </tr>
  29. </table>
  30. <?php
  31. for ($i=1;$i <= $_SESSION['panier']['nb_art']; $i++) { // pour chaque article du panier
  32. echo '<table width="100%" border="1" bordercolor="#FFFFFF" bgcolor="#FFFFFF" >
  33. <tr>
  34. <td width="25%">'.$_SESSION["panierID$i"]['ref'].'</td>
  35. <td width="25%">'.$_SESSION["panierID$i"]['designation'].'</td>
  36. <td width="25%">'.$_SESSION["panierID$i"]['prixht'].'</td>
  37. <td width="25%">'.$_SESSION["panierID$i"]['quantite'].'</td>
  38. </tr>
  39. </table>';
  40. }
  41. ?>
  42. <p>&nbsp;</p>
  43. <table width="100%" border="1" bordercolor="#FFFFFF" bgcolor="FFFFFF" >
  44. <tr>
  45. <td bgcolor="#FFFFFF"><a href="javascript:history.go(-1)">Retour</a></td>
  46. </tr>
  47. </table>
  48. <p>&nbsp;</p>


 
Voila merci par avance pour vos reponses

mood
Publicité
Posté le 11-11-2005 à 13:41:58  profilanswer
 

n°1243848
vincent220​8
Posté le 11-11-2005 à 13:57:07  profilanswer
 

ps : je sais que le code est "lourd" mais j'optimiserai tout ca une fois que le panier fonctionnera..


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

  probleme affichage données sessions

 

Sujets relatifs
Probleme avec la STL et un set <int>Probleme avec un Navigateur
Problème ComboBoxproblème pour inserer une image en fond
Problème script basic[CSS] - Probleme double marge IE : position:absolute [résolu]
Les joies des sessions.probleme sessions panier
[ECLIPSE] ClearCase plugin->> Probleme Résolu 
Plus de sujets relatifs à : probleme affichage données sessions


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