Accueil   Accueil    Forum   Forum    Download   Download    Livre d'or   Livre d'or    Contact   Contact    Liens Web   Liens Web

[création] souci IE7 - CMS KwsPHP - Le site clés en main

Colonne de gauche

Espace membre

Privé Masquer le formulaire de connexion


Se souvenir de moi ?


Mot de passe oublié

Menu

Forum

Sujets Importants

fleche basForum : Masquer l’entête

Accès rapide :

 

Effectuer une Recherche avancée OU


fleche bas[Résolu] [création] souci IE7  [2 réponses]

fleche bas

σjulkien
starsj7.png
Dieu Supreme


avatar
Hors ligne

Nombre de posts: 2484 (0.35/Jour)
Inscrit(e) le: 19 juin 2007
Visiter son site
Imprimer Permalien samedi 28 mars 2009 à 13:42  
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 ......


Le temps file....


Infos CMS KwsPHP


Informations : Avant de poster un sujet sur le forum

Veuillez avant tout vérifiez la comparaison de vos fichiers sur votre site
Mon compte / Outils / Comparaison


La recherche avancée du forum (en ciblant au mieux les options de la recherche)
La Faq - La documentation - La documentation en vidéo - Le sujet "Install et Mise à jour"
Vous devez lire en priorité le topic de la 1.6 pour en découvrir ses fonctionnalités


Afficher



b0b0
starsj3.png
Habitué


avatar
Hors ligne

Nombre de posts: 358 (0.05/Jour)
Inscrit(e) le: 24 juin 2006
Visiter son site
Imprimer Permalien samedi 28 mars 2009 à 14:07  
Hola!

Solution ici smiley sg3bgg29g.gif
http://www.kreacomm.info/spip.php?article26

A bientôt,

b0b0

if it ain't broken, don't fiix it!


σjulkien
starsj7.png
Dieu Supreme


avatar
Hors ligne

Nombre de posts: 2484 (0.35/Jour)
Inscrit(e) le: 19 juin 2007
Visiter son site
Imprimer Permalien samedi 28 mars 2009 à 18:17  
Salut b0b0, et merci de ton aide.

Effectivement c'est donc à priori le js qui merdouille...

Gros gros problème car ce js a toujours fonctionné, et ceux sur tous les modules qui l'utilisent et que je distribue....


Alors je comprend pas pourquoi du jours au lendemain il me fous le dawa chez IE.

Aurais tu une solution a ce problème a tout hasard ?

Réponse ci-dessus posté le samedi 28 mars 2009 : 16:57



Bon, jai retourné le Js dans tout les sens, impossible de le faire marcher a travers ce module...

Je me suis donc dit, si y'a une interférences avec un autre js d'un autre module a moi ou au portail, même si je trouve pourquoi, il se peut que se problème revienne sur un autre site.

J'ai donc opté pour un autre Js (qui de surcroit est plus rapide et plus léger).

Je tag donc résolu smiley sg3agg29g.gif

Le temps file....


fleche bas[Résolu] [création] souci IE7  [2 réponses]