#1 (permalink)  
Alt 14.02.2009, 10:30
Neuer Benutzer
 
Registriert seit: 20.02.2008
Ort: 26209 Hatten in Niedersachsen
Beiträge: 12
Standard Untermenü 3.Ebene

Hallo und guten Tag!

Die 3.Ebene (Untermenü des Untermenüs) soll ein "+" als Zeichen erhalten und eingerückt werden.
Lt. Anweisung im Forum hatte es mit der 1. und 2. Ebene auch geklappt, aber mit der 3. Ebene will es nicht funktionieren...
Kann mir jemand helfen und das dicke Brett von meinem Kopf entfernen?
Vielleicht blickt da jemand aus dem Forum durch...
Vielen Dank schon einmal im voraus und ein schönes Wochenende!
Frank


Anbei die - hoffentlich richtige - PHP-Datei:

<?php
/* -----------------------------------------------------------------------------------------
$Id: xtc_show_category.inc.php 1060 2005-07-21 18:32:58Z mz $

XT-Commerce - community made shopping
http://www.xt-commerce.com

Copyright (c) 2003 XT-Commerce
-----------------------------------------------------------------------------------------
based on:
(c) 2000-2001 The Exchange Project (earlier name of osCommerce)
(c) 2002-2003 osCommerce(categories.php,v 1.23 2002/11/12); www.oscommerce.com
(c) 2003 nextcommerce (xtc_show_category.inc.php,v 1.4 2003/08/13); www.nextcommerce.org

Released under the GNU General Public License
---------------------------------------------------------------------------------------*/

function xtc_show_category($counter) {
global $foo, $categories_string, $id;


// image for first level
$img_1='';

for ($a=0; $a<$foo[$counter]['level']; $a++) {

if ($foo[$counter]['level']=='1') {
$categories_string .= "&nbsp;&nbsp;&raquo;"; //1. Untermenüpunkt
}

$categories_string .= "&nbsp;&nbsp;&nbsp;";


}
if ($foo[$counter]['level']=='') {
if (strlen($categories_string)=='0') {
$categories_string .='<table border="0" cellspacing="0" cellpadding="0" width="100%"><tr><td valign="top" height="16" class="moduleRow2" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)">';
} else {
$categories_string .='</td></tr></table><table border="0" cellspacing="0" cellpadding="0" width="100%"><tr><td valign="top" height="16" class="moduleRow2" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)">';
}

$categories_string .= $img_1;
$categories_string .= '<b><a class="cat" href="';
} else {
$categories_string .= '<a href="';
}

$cPath_new=xtc_category_link($counter,$foo[$counter]['name']);

$categories_string .= xtc_href_link(FILENAME_DEFAULT, $cPath_new);
$categories_string .= '">';

if ( ($id) && (in_array($counter, $id)) ) {
$categories_string .= '<b>';
}

// display category name
$categories_string .= $foo[$counter]['name'];

if ( ($id) && (in_array($counter, $id)) ) {
$categories_string .= '</b>';
}

if ($foo[$counter]['level']=='') {
$categories_string .= '</a></b>';
} else {
$categories_string .= '</a>';
}

if (SHOW_COUNTS == 'true') {
$products_in_category = xtc_count_products_in_category($counter);
if ($products_in_category > 0) {
$categories_string .= '&nbsp;(' . $products_in_category . ')';
}
}

$categories_string .= '</tr><tr><td style="padding-left:25px">';

if ($foo[$counter]['next_id']) {
xtc_show_category($foo[$counter]['next_id']);
} else {
$categories_string .= '</td></tr></table>';
}
}

?>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!
Mit Zitat antworten
Antwort

Lesezeichen

Stichworte
3ebene, untermenü

Themen-Optionen
Ansicht

Forumregeln
Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are aus
Pingbacks are aus
Refbacks are aus


Ähnliche Themen
Thema Autor Forum Antworten Letzter Beitrag
[SOLVED] letztes Untermenü immer im Content anzeigen profinetz Shopbereich 1 21.07.2008 13:16


Alle Zeitangaben in WEZ +1. Es ist jetzt 13:30 Uhr.

Copyright © 2011 xt:Commerce GmbH / xt:Commerce International Ltd. - All Rights Reserved

xt:Commerce is a SafeCharge brand