[création] souci IE7

Bonjour tous le monde les gens,

Je suis en train de faire un nouveau module à mes heures perdus, et j'ai un souci qu'avec IE7. (bien que je n'est pas le 6 pour tester mais bon....)

Peut être ce souci n'apparaitrai t-il qu'en local, mais dans le doute, et vu que pour l'instant je ne peux pas tester en ligne, je vous soumet mon problème :

Donc quand j'arrive sur une page du "catalogue", j' obtient ce message avec IE7 :

erreur.PNG

Le hic c'est que ça ne le fait pas avec les autres navigateurs...

Je ne comprend pas, j'ai repris la page plusieurs fois, refait l'indentation, les conditions, les requêtes... je ne trouve rien de mauvais (o erreurs HTML, 0 avertissements)...

Voici le code de la page (ps : ça me le fait sur plusieurs pages, alors que je travail avec un dérivé du module boutique qui lui fonctionne sans problème, donc le JS ne peux pas être en cause par exemple) :


Code PHP :
Pour copier le contenu exact du code,
Veuillez citer le message
  1. <?php
  2.  
  3. if (!(defined('__KWS__'))) {die ('Erreur d\'appel de fichier.');}
  4.  
  5. if (get_grade() >= GRD_VISIT) {
  6.     
  7. // js d'affichage image ===========================================
  8.  
  9. echo'
  10. <script type="text/javascript" src="modules/vente/js/prototype.js"></script>
  11. <script type="text/javascript" src="modules/vente/js/scriptaculous.js?load=effects,builder"></script>
  12. <script type="text/javascript" src="modules/vente/js/lightbox.js"></script>
  13. <script type="text/javascript"> 
  14.             // <![CDATA[ 
  15.                 var head = document.getElementsByTagName("head")[0]; 
  16.                 var head_inc = document.createElement("link"); 
  17.                 head_inc.rel = "stylesheet"; 
  18.                 head_inc.type = "text/css"; 
  19.                 head_inc.href = "modules/vente/css/lightbox.css";
  20.                 head_inc.media ="screen";
  21.                 head.appendChild(head_inc); 
  22.             // ]]> 
  23. </script>';
  24.  
  25. // =================================================================
  26.  
  27.     $id = $_GET['int_id'];
  28.  
  29. // ======= REQUETES DU PANIER DU CLIENT ============================
  30.  
  31.          $req80 = reqmysql("SELECT * FROM `vente_panier` WHERE `pseudo`='".$K_user->pseudo."' ;");
  32.                 if(mysql_num_rows($req80) > 0) 
  33.                 {
  34.                 $row80 = mysql_fetch_array($req80);
  35.                 $query = "SELECT COUNT(id_obj) FROM `vente_panier` WHERE `pseudo`='".$K_user->pseudo."' ";
  36.                 $result = mysql_query($query) or die (mysql_error());
  37.                 $resultat=mysql_fetch_row($result);
  38.                 $querya = "SELECT SUM(prixfinal) FROM `vente_panier` WHERE `pseudo`='".$K_user->pseudo."' ";
  39.                 $resultit = mysql_query($querya) or die (mysql_error());
  40.                 $resultaut=mysql_fetch_row($resultit);
  41.                 }
  42.  
  43. // ================================================================
  44.  
  45. // ======== LECTURE DE LA MONNAIE =================================
  46.  
  47.     $req25 = reqmysql("SELECT `monnaie`, `fixe_prix` FROM `vente_catalogue` WHERE `id`='1' ;");
  48.                 $row25 = mysql_fetch_array($req25);
  49.  
  50. // ===== AFFICHAGE DU TITRE DU BLOC ===============================
  51.  
  52.     $req4 = reqmysql("SELECT `cat` FROM `vente_categorie` WHERE `id`='".$id."' ;");
  53.             if(mysql_num_rows($req4) > 0)
  54.             {
  55.             $row4 = mysql_fetch_array($req4);
  56.             bloc_head($row4['cat']);
  57.             }
  58.             else
  59.             {
  60.             bloc_head('Cat&eacute;gorie');
  61.             }
  62.  
  63.     echo '<fieldset style="background-color:#C9C9C9;">';
  64.  
  65. // === AFFICHAGE DU PANIER ==========================================
  66.                     if ($K_user->pseudo == $row80['pseudo'])
  67.                      {
  68.                         if ($resultat[0]>=2)
  69.                         {
  70.                         $ss = "s";
  71.                         }
  72.                         echo'<table align="center" border="2"><tr><th>&nbsp;&nbsp;<a href="index.php?mod=vente&amp;ac=fin_commande"><img src="modules/vente/images/cady.png" border="0" /><font color="#8000FF">'.$resultat[0].' article'.$ss.' dans votre panier d\'une valeur de '.$resultaut[0].' '.$row25['monnaie'].' '.$row25['fixe_prix'].'</font></a>&nbsp;&nbsp;</th></tr></table>';
  73.                     }
  74.  
  75. // ===================================================================
  76.  
  77.     echo '<br /><img src="modules/vente/images/puce.png" />
  78.     <a href="index.php?mod=vente&amp;ac=catalogue/#">
  79.     <font color="#4AB6EF">&nbsp;Retour au sommaire</font>
  80.     </a><table align="center" cellspacing="0" width="100%" border="0">';
  81.     
  82.     
  83. // === CHOIX D'AFFICHAGE NUMERO 1 =====================================
  84.  
  85.         if ($sql_occas ==1)
  86.         {
  87.         $req5 = reqmysql('SELECT * FROM `vente_article` WHERE `soucat`="'.$id.'" ORDER BY `id` DESC LIMIT 0, 30;');
  88.         $compteur1=0;
  89.          while($row5 = mysql_fetch_array($req5))
  90.              {
  91.                  if ($row5['distrib'] ==1 or $row5['distrib']==2)
  92.                  {
  93.                 $compteur1++;
  94.                       echo '<tr>
  95.                               <td style="background-image: url(modules/vente/images/gauche.png);background-repeat:no-repeat; background-position:bottom;vertical-align:top;left;height:80px;">&nbsp;
  96.                             </td>
  97.                               <td style="background-image: url(modules/vente/images/repeat.png);background-repeat:repeat-x; background-position:bottom;vertical-align:middle;left;height:80px;">
  98.                                   <a href="modules/vente/produit/'.$row5['image'].'.jpg" rel="lightbox" title="'.ax($row5['titre']).'"><img src="modules/vente/produit/'.$row5['image'].'.jpg" width="60" height="60" border="0" />
  99.                                     </a>
  100.                             </td>
  101.                             <td style="background-image: url(modules/vente/images/repeat.png);background-repeat:repeat-x; background-position:bottom;vertical-align:middle;left;height:80px;">
  102.                                    <img src="modules/vente/images/puce3.png" />&nbsp;&nbsp;<a href="index.php?mod=vente&amp;ac=image&amp;int_id='.ax($row5['id']).'"><font style="font-size:14px;color:#000000;">'.ax($row5['titre']).'</font></a>
  103.                             </td>
  104.                             <td style="background-image: url(modules/vente/images/repeat.png);background-repeat:repeat-x; background-position:right;vertical-align:left;height:80px;text-align:left;">
  105.                                    <font style="font-size:14px;color:#000000;font-weight:bold;">'.ax($row5['prix']).'&nbsp;'.$row25['monnaie'].'</font>
  106.                             </td>
  107.                             <td style="background-image: url(modules/vente/images/droite.png);background-repeat:no-repeat; background-position:right;vertical-align:top;left;height:80px;">&nbsp;
  108.                             </td>
  109.                         </tr>';
  110.                 }
  111.             }
  112.         }
  113.  
  114. // === CHOIX D'AFFICHAGE NUMERO 2 ======================================
  115.  
  116.         elseif ($sql_occas ==2)
  117.         {
  118.         $req6 = reqmysql('SELECT * FROM `vente_article` WHERE `soucat`="'.$id.'" ORDER BY `id` DESC LIMIT 0, 30;');
  119.         $compteur2=0;
  120.          while($row6 = mysql_fetch_array($req6))
  121.              {
  122.                  if ($row6['distrib'] ==3)
  123.                  {
  124.                 $compteur2++;
  125.                       echo '<tr>
  126.                               <td style="background-image: url(modules/vente/images/gauche.png);background-repeat:no-repeat; background-position:bottom;vertical-align:top;left;height:80px;">&nbsp;
  127.                             </td>
  128.                               <td style="background-image: url(modules/vente/images/repeat.png);background-repeat:repeat-x; background-position:bottom;vertical-align:middle;left;height:80px;">
  129.                                   <a href="modules/vente/produit/'.$row6['image'].'.jpg" rel="lightbox" title="'.ax($row6['titre']).'"><img src="modules/vente/produit/'.$row6['image'].'.jpg" width="60" height="60" border="0" />
  130.                                    </a>
  131.                             </td>
  132.                            <td style="background-image: url(modules/vente/images/repeat.png);background-repeat:repeat-x; background-position:bottom;vertical-align:middle;left;height:80px;">
  133.                                    <img src="modules/vente/images/puce3.png" />&nbsp;&nbsp;<a href="index.php?mod=vente&amp;ac=image&amp;int_id='.ax($row6['id']).'"><font style="font-size:14px;color:#000000;">'.ax($row6['titre']).'</font></a>
  134.                            </td>
  135.                            <td style="background-image: url(modules/vente/images/repeat.png);background-repeat:repeat-x; background-position:right;vertical-align:left;height:80px;text-align:left;">
  136.                                    <font style="font-size:14px;color:#000000;font-weight:bold;">'.ax($row6['prix']).'&nbsp;'.$row25['monnaie'].'</font>
  137.                            </td>
  138.                            <td style="background-image: url(modules/vente/images/droite.png);background-repeat:no-repeat; background-position:right;vertical-align:top;left;height:80px;">&nbsp;
  139.                            </td>
  140.                         </tr>';
  141.                 }
  142.             }
  143.         }
  144.         
  145. // === CHOIX D'AFFICHAGE NUMERO 3 =======================================
  146.  
  147.         elseif ($sql_occas ==3)
  148.         {
  149.         $req7 = reqmysql('SELECT * FROM `vente_article` WHERE `soucat`="'.$id.'" ORDER BY `id` DESC LIMIT 0, 30;');
  150.         $compteur3=0;
  151.          while($row7 = mysql_fetch_array($req7))
  152.              {
  153.                  if ($row7['distrib'] ==4)
  154.                  {
  155.                 $compteur3++;
  156.                       echo '<tr>
  157.                               <td style="background-image: url(modules/vente/images/gauche.png);background-repeat:no-repeat; background-position:bottom;vertical-align:top;left;height:80px;">&nbsp;
  158.                             </td>
  159.                               <td style="background-image: url(modules/vente/images/repeat.png);background-repeat:repeat-x; background-position:bottom;vertical-align:middle;left;height:80px;">
  160.                                   <a href="modules/vente/produit/'.$row7['image'].'.jpg" rel="lightbox" title="'.ax($row7['titre']).'"><img src="modules/vente/produit/'.$row7['image'].'.jpg" width="60" height="60" border="0" />
  161.                                    </a>
  162.                             </td>
  163.                                <td style="background-image: url(modules/vente/images/repeat.png);background-repeat:repeat-x; background-position:bottom;vertical-align:middle;left;height:80px;">
  164.                                    <img src="modules/vente/images/puce3.png" />&nbsp;&nbsp;<a href="index.php?mod=vente&amp;ac=image&amp;int_id='.ax($row7['id']).'"><font style="font-size:14px;color:#000000;">'.ax($row7['titre']).'</font></a>
  165.                                </td>
  166.                                <td style="background-image: url(modules/vente/images/repeat.png);background-repeat:repeat-x; background-position:right;vertical-align:left;height:80px;text-align:left;">
  167.                                    <font style="font-size:14px;color:#000000;font-weight:bold;">'.ax($row7['prix']).'&nbsp;'.$row25['monnaie'].'</font>
  168.                             </td>
  169.                                <td style="background-image: url(modules/vente/images/droite.png);background-repeat:no-repeat; background-position:right;vertical-align:top;left;height:80px;">&nbsp;
  170.                             </td>
  171.                           </tr>';
  172.                 }
  173.             }
  174.         }
  175.         
  176. // =========================================================================
  177.  
  178.            echo '</table>';
  179.  
  180.                 echo '<br/></fieldset>';
  181.  
  182.  
  183. }
  184.  
  185. close_table();
  186. ?>


Je remercie tous ceux qui sauront m'aider à trouver solution a ce problème que je ne vois nul part ......


Sujet écrit par julkien le samedi 28 mars 2009 à 13:42

[ Imprimer ] - [ Fermer la fenêtre ]