| | | | |
| |||||||
| PHP-Fortgeschrittene Arbeiten mit PHP ohne Einschränkungen |
|
| | LinkBack | Themen-Optionen | Thema bewerten |
| | |
| Gast
Beiträge: n/a
| Hallo, habe in Firefox Probleme mit der Darstellung des Menüs. Zu sehen unter www.aktivshop.ch Ich meine die teilweise leeren Menüeinträge. Dies Problem titt im IE nicht auf. http://www.aktivshop.ch/catalog/Bild2.jpg Kann mir einer helfen? */ function tep_show_category($counter) { global $tree, $categories_string, $cPath_array; $navclass= "n1"; for ($i=0; $i<$tree[$counter]['level']; $i++) { //$categories_string .= " "; $navclass= "n11"; } $categories_string .= '<a href="'; if ($tree[$counter]['parent'] == 0) { $cPath_new = 'cPath=' . $counter; } else { $cPath_new = 'cPath=' . $tree[$counter]['path']; } $categories_string .= tep_href_link(FILENAME_DEFAULT, $cPath_new) . '" class="'.$navclass.'">'; if (isset($cPath_array) && in_array($counter, $cPath_array)) { // $categories_string .= ''; } // display category name $categories_string .= '<div class="ntx">[img]images/nav/ar.gif[/img]'.$tree[$counter]['name']; if (isset($cPath_array) && in_array($counter, $cPath_array)) { // $categories_string .= ''; } if (tep_has_category_subcategories($counter)) { //$categories_string .= '->'; } if (SHOW_COUNTS == 'false') { $products_in_category = tep_count_products_in_category($counter); if ($products_in_category > 0) { $categories_string .= '(' . $products_in_category . ')'; } } $categories_string .= '</div></a>'; //$categories_string .= ' '; if ($tree[$counter]['next_id'] != false) { tep_show_category($tree[$counter]['next_id']); } } ?> <tr> <td> <?php //$info_box_contents = array(); //$info_box_contents[] = array('text' => BOX_HEADING_CATEGORIES); $info_box_contents = array(); $info_box_contents[] = array('text' => '<div class="ntx">[img]images/nav/ar.gif[/img]Startseite</div>'); $info_box_contents[] = array('text' => '<div class="ntx">[img]images/nav/ar.gif[/img]Produkte von A-Z</div>'); new infoBox($info_box_contents); $categories_string = ''; $tree = array(); $categories_query = tep_db_query("select c.categories_id, cd.categories_name, c.parent_id from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.parent_id = '0' and c.categories_id = cd.categories_id and cd.language_id='" . (int)$languages_id ."' and c.categories_status = '1' order by sort_order, cd.categories_name"); while ($categories = tep_db_fetch_array($categories_query)) { $tree[$categories['categories_id']] = array('name' => $categories['categories_name'], 'parent' => $categories['parent_id'], 'level' => 0, 'path' => $categories['categories_id'], 'next_id' => false); if (isset($parent_id)) { $tree[$parent_id]['next_id'] = $categories['categories_id']; } $parent_id = $categories['categories_id']; if (!isset($first_element)) { $first_element = $categories['categories_id']; } } //------------------------ if (tep_not_null($cPath)) { $new_path = ''; reset($cPath_array); while (list($key, $value) = each($cPath_array)) { unset($parent_id); unset($first_id); $categories_query = tep_db_query("select c.categories_id, cd.categories_name, c.parent_id from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.parent_id = '" . (int)$value . "' and c.categories_id = cd.categories_id and cd.language_id='" . (int)$languages_id ."' and c.categories_status = '1' order by sort_order, cd.categories_name"); if (tep_db_num_rows($categories_query)) { $new_path .= $value; while ($row = tep_db_fetch_array($categories_query)) { $tree[$row['categories_id']] = array('name' => $row['categories_name'], 'parent' => $row['parent_id'], 'level' => $key+1, 'path' => $new_path . '_' . $row['categories_id'], 'next_id' => false); if (isset($parent_id)) { $tree[$parent_id]['next_id'] = $row['categories_id']; } $parent_id = $row['categories_id']; if (!isset($first_id)) { $first_id = $row['categories_id']; } $last_id = $row['categories_id']; } $tree[$last_id]['next_id'] = $tree[$value]['next_id']; $tree[$value]['next_id'] = $first_id; $new_path .= '_'; } else { break; } } } tep_show_category($first_element); $info_box_contents = array(); $info_box_contents[] = array('text' => $categories_string); new infoBox($info_box_contents,true); $info_box_contents = array(); $info_box_contents[] = array('text' => '<div class="ntx">[img]images/nav/ar.gif[/img]Unsere Top 10</div>'); $info_box_contents[] = array('text' => '<div class="ntx">[img]images/nav/ar.gif[/img]Neuheiten und Trends</div>'); $info_box_contents[] = array('text' => '<div class="ntx">[img]images/nav/ar.gif[/img]Schnäppchen</div>'); new infoBox($info_box_contents,true); ?></td> </tr> Vielen Dank |
|
| | |
| PHP Code Flüsterer Registriert seit: 21.08.2005 Beiträge: 4682 PHP-Kenntnisse: Fortgeschritten | |
| | |
| Gast
Beiträge: n/a
| Erscheint denn bei dir nicht auch das Problem wir auf diesem Bild? http://www.aktivshop.ch/catalog/Bild2.jpg |
|
| | ||
| Erfahrener Benutzer | Firefox 1.0.7 Linux kein Fehler. Firefox 1.5 WinXP kein Fehler. Edit: Linux: die Grafiken oben sind im A**** http://www.web-upload.com/download_14077.html
__________________ Zitat:
| |
| | |
|
| Themen-Optionen | |
| Thema bewerten | |
|
|
Ähnliche Themen | ||||
| Thema | Autor | Forum | Antworten | Letzter Beitrag |
| class.GMapper --> Mit Firefox Problem bei Ajax | Plague | PHP Tipps 2008 | 3 | 08.07.2008 10:31 |
| probleme bei internet explorer und firefox | igron | PHP Tipps 2008 | 0 | 12.05.2008 17:27 |
| Sessions Problem | StephenKing | PHP Tipps 2008 | 3 | 16.10.2007 08:30 |
| CSS Problem mit IE | hans.karl2 | HTML, Usability und Barrierefreiheit | 3 | 25.04.2007 20:18 |
| Box Modell Problem zwischen Internet Explorer 6 und FireFox | DonTermi | HTML, Usability und Barrierefreiheit | 5 | 07.12.2006 16:30 |
| templates oder css mit firefox | rbs_phoenix | HTML, Usability und Barrierefreiheit | 1 | 30.10.2006 15:24 |
| datensätze defekt oder problem mit dem einlesen? | Ministry | Datenbanken | 4 | 06.07.2006 18:42 |
| [Erledigt] problem mit FORM bzw TEXTAREA (FireFox) | HTML, Usability und Barrierefreiheit | 4 | 22.08.2005 14:36 | |
| Problem IE - Firefox | Diego1978 | PHP Tipps 2005-2 | 3 | 10.08.2005 00:01 |
| Problem mit PFad Firefox - Verzeichnis löschen | PHP Tipps 2005-2 | 0 | 19.07.2005 16:05 | |
| Falsche Darstellung in Firefox und Problem mit Div größe | HTML, Usability und Barrierefreiheit | 7 | 14.07.2005 16:40 | |
| [Erledigt] verfluchter Firefox | HTML, Usability und Barrierefreiheit | 5 | 08.07.2005 22:51 | |
| getElementById bei firefox problem | Ohrwurm83 | HTML, Usability und Barrierefreiheit | 6 | 26.05.2005 23:51 |
| Linebreak Problem mit Firefox 1.0.4 | HTML, Usability und Barrierefreiheit | 3 | 19.05.2005 15:11 | |
| Problem seit benutzung von Firefox?? | pit62 | HTML, Usability und Barrierefreiheit | 5 | 03.09.2004 22:33 |
| Besucher kamen über folgende Suchanfragen bei Google auf diese Seite |
| firefox menü defekt, firefox menü weiss problem, \firefox probleme mit der darstellung\ |

Dieser Inhalt ist unter einer Creative Commons-Lizenz lizenziert.