IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Langage PHP Discussion :

Probème d'affichage du nom de la catégorie sur internet explorer


Sujet :

Langage PHP

  1. #1
    Candidat au Club
    Profil pro
    Inscrit en
    Avril 2009
    Messages
    3
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Avril 2009
    Messages : 3
    Points : 2
    Points
    2
    Par défaut Probème d'affichage du nom de la catégorie sur internet explorer
    Bonjour,


    Je travaille sur un site os commerce version Ms2.J'ai un problème d'affichage du nom de la catégorie sur internet explorer.le nom de la catégorie qui se trouve au dessus des sous catégories s'affiche bien sous mozilla mais pas sous internet explorer.Pourquoi?

    voici mon code dans le fichier index.php

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
     
    <?php
     
      if ($category_depth == 'nested') {
        $category_query = tep_db_query("select cd.categories_name, c.categories_image from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.categories_id = '" . (int)$current_category_id . "' and cd.categories_id = '" . (int)$current_category_id . "' and cd.language_id = '" . (int)$languages_id . "'");
        $category = tep_db_fetch_array($category_query);
    ?>
        <td width="100%" valign="top"><table border="0" summary="" width="100%" cellspacing="0" cellpadding="0" align="center">
          <tr>
            <td><table border="0" summary="" width="100%" cellspacing="0" cellpadding="0">
              <tr>
    		  <tr>
            <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
          </tr>
            <td align="center" style="font-size: 16px;font-weight: bold; color: #FFD30C;height:25px;background-image:url(images/bd_haut.png);" class="pageHeading"><?php echo tep_image(DIR_WS_IMAGES . $category['categories_image'], $category['categories_name'], HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>
             </tr>
            </table></td>
          </tr>
          <tr>
            <td><table border="0" summary="" width="100%" cellspacing="0" cellpadding="0">
              <tr>
                <td><table border="0" summary="" width="100%" cellspacing="0" cellpadding="0">
                  <tr>
     
    <?php
        if (isset($cPath) && strpos('_', $cPath)) {
    // check to see if there are deeper categories within the current category
          $category_links = array_reverse($cPath_array);
          for($i=0, $n=sizeof($category_links); $i<$n; $i++) {
            $categories_query = tep_db_query("select count(*) as total from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.parent_id = '" . (int)$category_links[$i] . "' and c.categories_id = cd.categories_id and cd.language_id = '" . (int)$languages_id . "'");
            $categories = tep_db_fetch_array($categories_query);
            if ($categories['total'] < 1) {
              // do nothing, go through the loop
    		 // echo "HELLO !";
            } else {
              $categories_query = tep_db_query("select c.categories_id, cd.categories_name, c.categories_image, c.parent_id from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.parent_id = '" . (int)$category_links[$i] . "' and c.categories_id = cd.categories_id and cd.language_id = '" . (int)$languages_id . "' order by sort_order, cd.categories_name");
              break; // we've found the deepest category the customer is in
            }
          }
        } else {
          $categories_query = tep_db_query("select c.categories_id, cd.categories_name, c.categories_image, c.parent_id from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.parent_id = '" . (int)$current_category_id . "' and c.categories_id = cd.categories_id and cd.language_id = '" . (int)$languages_id . "' order by sort_order, cd.categories_name");
        }
     
        $number_of_categories = tep_db_num_rows($categories_query);
     
        $rows = 0;
        while ($categories = tep_db_fetch_array($categories_query)) {
          $rows++;
          $cPath_new = tep_get_path($categories['categories_id']);
          $width = (int)(100 / MAX_DISPLAY_CATEGORIES_PER_ROW) . '%';
          echo '<td align="center" class="smallText" width="' . $width . '" valign="top">
    	  <a href="' . tep_href_link(FILENAME_DEFAULT, $cPath_new) . '">' .
    	  /* avec les icones catégories */
     
    	   tep_image(DIR_WS_IMAGES . $categories['categories_image'], $categories['categories_name'], SUBCATEGORY_IMAGE_WIDTH, SUBCATEGORY_IMAGE_HEIGHT) . '<br>' . $categories['categories_name'] . '</a></td>' . "\n";
     
    	   $categories['categories_name'] .'</a></td>' . "\n";
          if ((($rows / MAX_DISPLAY_CATEGORIES_PER_ROW) == floor($rows / MAX_DISPLAY_CATEGORIES_PER_ROW)) && ($rows != $number_of_categories)) {
            echo '              </tr>' . "\n";
            echo '              <tr>' . "\n";
          }
        }
     
    // needed for the new products module shown below
        $new_products_category_id = $current_category_id;
    ?>
     
                  </tr>
                </table></td>
              </tr>
              <tr>
                <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '25'); ?></td>
              </tr>
              <tr>
                <td><?php include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS); ?></td>
              </tr>
            </table></td>
          </tr>
        </table></td>
    cordialement

  2. #2
    Expert éminent
    Avatar de Séb.
    Profil pro
    Inscrit en
    Mars 2005
    Messages
    5 098
    Détails du profil
    Informations personnelles :
    Âge : 46
    Localisation : France

    Informations professionnelles :
    Secteur : High Tech - Opérateur de télécommunications

    Informations forums :
    Inscription : Mars 2005
    Messages : 5 098
    Points : 8 207
    Points
    8 207
    Billets dans le blog
    17
    Par défaut
    Pb de rendu = pb au niveau de HTML/CSS, pas PHP
    Il faut se pencher sur le code HTML généré.
    Un problème exposé clairement est déjà à moitié résolu
    Keep It Smart and Simple

Discussions similaires

  1. Probleme d'affichage sur Internet explorer
    Par eamon250d dans le forum Mise en page CSS
    Réponses: 4
    Dernier message: 27/07/2010, 14h56
  2. Réponses: 14
    Dernier message: 06/10/2009, 12h03
  3. [AJAX] Affichage sur internet explorer
    Par lekonquerant dans le forum AJAX
    Réponses: 2
    Dernier message: 03/09/2009, 10h09
  4. [Système] Affichage du nom de la catégorie
    Par maximew dans le forum Langage
    Réponses: 1
    Dernier message: 12/02/2007, 12h02
  5. [XHTML] Problème affichage différent sur Internet Explorer et FireFox
    Par espaladito dans le forum Balisage (X)HTML et validation W3C
    Réponses: 4
    Dernier message: 22/09/2006, 18h05

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo