|
|||
|
Hallöchen nochmal,
unter www.meet-com.de/shop habe ich nur 1 Oberkategorie drin. Wenn man drauf geht (ViewCast) soll dann noch 2 andere Firmen kommen. alle sollen in der gleichen lila Box bleiben, jedoch mit einer Linie voneinander getrennt gezeigt werden. Das Layout hat mal eine Agentur gemacht und ich soll ändern :-/ Ich war schon in box_categories.html und stysheet.css. Aber ich finde nicht, wo ich diese Linie reinbekommen soll. Hast du eine Idee ? danke
|
|
|||
|
Hallo,
uiiih - das ging ja schnell - aber das ist ja hardcore-php und ich kann "nur normales". Ich weiß ja nicht mal, wie ich in PHP eine Linie einbaue ... Bevor ich was crashe - was muß ich wo einfügen, damit diese doofe Linie zwischen den Kats kommt ? Danke nochmal für deine Hilfe.
|
|
|||
|
Hallöchen, dann hier bitte schön :-)
<?php /* ----------------------------------------------------------------------------------------- $Id: xtc_show_category.inc.php,v 1.1 2004/04/26 20:26:42 fanta2k Exp $ 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; $categories_string .= "<li>"; for ($a=0; $a<$foo[$counter]['level']; $a++) { if ($foo[$counter]['level']=='1') { $categories_string .= " - "; } $categories_string .= " "; } if ($foo[$counter]['level']=='') { $categories_string .= '<b><a 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 .= ' (' . $products_in_category . ')'; } } $categories_string .= '</li>'; if ($foo[$counter]['next_id']) { xtc_show_category($foo[$counter]['next_id']); } } ?> Du bist ein SChatz
|
|
|||
|
Die neue show_catory:
Code:
<?php
/* -----------------------------------------------------------------------------------------
$Id: xtc_show_category.inc.php,v 1.1 2004/04/26 20:26:42 fanta2k Exp $
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;
$color_data = array ( // Deine Kategorien
// cat_id => name für css
1 => 'komponenten',
2 => 'software',
3 => 'zubehoer',
4 => 'bundles',
16=> 'komplettsysteme',
);
$categories_string .= '<li><span class="'.$color_data[$counter].'">';
for ($a=0; $a<$foo[$counter]['level']; $a++) {
if ($foo[$counter]['level']=='1') {
$categories_string .= " - ";
}
$categories_string .= " ";
}
if ($foo[$counter]['level']=='') {
$categories_string .= '<b><a 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 .= ' (' . $products_in_category . ')';
}
}
$categories_string .= '</span></li>';
if ($foo[$counter]['next_id']) {
xtc_show_category($foo[$counter]['next_id']);
}
}
?>
bsp. Code:
SPAN.zubehoer {
text-decoration: underline;
}
Hoffe das funktiniert so ! |
|
|||
|
Mensch danke für deine Hilfe. Wir haben uns da wohl mißverstanden. Die Kategorienamen wie Komponenten und software etc. sollen so bleiben. Nur wenn ich die 2. Ebene dazubringe (wie View Cast) soll davor ein Strich sein. Siehe Screenshot als Beispiel.
|
|
|||
|
Da musst du als, erstes deine box_categories.html umbauen,
Da du sonst nicht die umgebenen Tabellenbestandteile teilen kannst, Dann am besten alles aud Divs umbauen, dann kannst sowas wie hier machen, Sonst hab ich für heut erstma feieraben.
|
![]() |
| Lesezeichen |
| Stichworte |
| kats, kriege, linien, navigbox |
| Themen-Optionen | |
| Ansicht | |
|
|
Ähnliche Themen
|
||||
| Thema | Autor | Forum | Antworten | Letzter Beitrag |
| Wie kann ich den Warenbestand in der Artikelbeschreibung anzeigen ? | ina100100 | Template System | 8 | 26.04.2009 10:56 |