Hy das ist von OScommerce ein Shop und hier ist die zugehörige PHP Datei
PHP-Code:
<?php
function tep_show_category($counter) {
global $tree, $categories_string, $cPath_array, $aa;
for ($a=0; $a<$tree[$counter]['level']; $a++) {
// $categories_string .= " ";
}
//category start
if ($tree[$counter]['level'] == 0)
{
if ($aa == 1)
{
$categories_string .= '<img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="2"><br><img src="images/pixel_ltgray.gif" border="0" alt="" width="100%" height="1"><br><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="2">';
}
else
{$aa=1;}
}
if ($tree[$counter]['level'] == 0) {$categories_string .= '<div id="topcat">';}
if ($tree[$counter]['level'] == 1) {$categories_string .= '<div id="secondcat">';}
if ($tree[$counter]['level'] == 2) {$categories_string .= '<div id="thirdcat">';}
if ($tree[$counter]['level'] == 3) {$categories_string .= '<div id="fourthcat">';}
if ($tree[$counter]['level'] == 4) {$categories_string .= '<div id="fifthcat">';}
$categories_string .= '<a';
if ( ($cPath_array) && (@in_array($counter, $cPath_array)) ) {
$categories_string .= ' class="activelink"';
}
if ($tree[$counter]['parent'] == 0) {
$cPath_new = 'cPath=' . $counter;
} else {
$cPath_new = 'cPath=' . $tree[$counter]['path'];
}
$categories_string .= ' href="'.tep_href_link(FILENAME_DEFAULT, $cPath_new);
$categories_string .= '">';
// display category name
if (tep_has_category_subcategories($counter) || $tree[$counter]['level'] == 0) {
if ( ($cPath_array) && (@in_array($counter, $cPath_array)) ) {
$categories_string .= '<span class="catwithsubs">'.tep_image(DIR_WS_IMAGES . 'categories/arrow_down.gif', '', '9', '9') . "</span>";
} else {
$categories_string .= '<span class="catwithsubs">'.tep_image(DIR_WS_IMAGES . 'categories/arrow_right.gif', '', '9', '9') . "</span>";
}
} else {
$categories_string .= '<span class="catwithnosubs">' .tep_image(DIR_WS_IMAGES . 'categories/arrow_bullet.gif', 'nokta', '9', '9') . "</span>";
}
//category name
$categories_string .= $tree[$counter]['name'];
if ( ($cPath_array) && (@in_array($counter, $cPath_array)) ) {
//end of active link
$categories_string .= '';
}
if (tep_has_category_subcategories($counter)) {
$categories_string .= '';
}
$categories_string .= '</a>';
if (SHOW_COUNTS == 'true') {
$products_in_category = tep_count_products_in_category($counter);
if ($products_in_category > 0) {
$categories_string .= '(' . $products_in_category . ')';
}
}
// $categories_string .= '<br>';
$categories_string .= '</div>';
if ($tree[$counter]['next_id']) {
tep_show_category($tree[$counter]['next_id']);
}
}
?>
<!-- categories //-->
<tr>
<td>
<?php
$info_box_contents = array();
$info_box_contents[] = array('align' => 'left',
'text' => BOX_HEADING_CATEGORIES);
new infoBoxHeading($info_box_contents, true, false);
$categories_string = '<div id="thecategories">';
$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='" . $languages_id ."' 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 ($cPath) {
$cPath_array = split('_', $cPath);
reset($cPath_array);
while (list($key, $value) = each($cPath_array)) {
$new_path .= $value;
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 = '" . $value . "' and c.categories_id = cd.categories_id and cd.language_id='" . $languages_id ."' order by sort_order, cd.categories_name");
$category_check = tep_db_num_rows($categories_query);
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'];
}
if ($category_check != 0) {
$tree[$last_id]['next_id'] = $tree[$value]['next_id'];
$tree[$value]['next_id'] = $first_id;
}
$new_path .= '_';
}
}
tep_show_category($first_element);
$info_box_contents = array();
$info_box_contents[] = array('align' => 'left',
'text' => $categories_string.'</div>');
new infoBox($info_box_contents);
?>
</td>
</tr>
<!-- categories_eof //-->
Und hier die CSS
Code:
.boxText { font-family: Verdana, Arial, sans-serif; font-size: 10px; }
.errorBox { font-family : Verdana, Arial, sans-serif; font-size : 10px; background: #ffb3b5; font-weight: bold; }
.stockWarning { font-family : Verdana, Arial, sans-serif; font-size : 10px; color: #cc0033; }
.productsNotifications { background: #f2fff7; }
.orderEdit { font-family : Verdana, Arial, sans-serif; font-size : 10px; color: #70d250; text-decoration: underline; }
BODY {
font-family: Verdana, Arial, Helvetica, sans-serif;
background: #8C8C8C;
color: #000000;
overflow:auto;
overflow: -moz-scrollbars-vertical;
text-align: center;
}
#tableise {
background: #ffffff;
margin: 0 auto;
width: 800px;
}
#wrapper {
width: 800px;
margin: 10px auto;
}
#logo1 {
width:800px;
height:97px;
background-repeat:repeat-x ;
background-color: #FFFFFF;
background-image: url(ise/header_background.jpg);
background-position: top;
}
#logo2{
height:97px;
background-image:url(ise/header_left.jpg);
background-repeat:no-repeat;
background-position:left;
}
#logo3{
height:97px;
background-image:url(ise/header_right.jpg);
background-repeat:no-repeat;
background-position:right;
}
#mainphoto {
height:170px;
border-bottom:1px solid #C8C8C8;
border-top: 1px solid #8c8c8c;
padding:3px 5px 5px 3px;
margin-top:5px;
margin-left:7px;
background-repeat:no-repeat;
clear: both;
}
A {
color: #000000;
text-decoration: none;
}
A:hover {
color: #0d8bf6;
text-decoration: underline;
}
FORM {
display: inline;
}
TR.header {
background: #ffffff;
}
div.pathway {
font-family: Verdana, Arial, sans-serif;
font-size: 10px;
background: #ffffff;
color: #0d8bf6;
font-weight: bold;
text-align: left;
margin: 2px 0 2px 10px;
}
a.pathway {
color: #0d8bf6;
}
.home {
margin-top: -15px;
}
.tableheader {
background: #ffffff;
height: 23px;
width: 800px;
}
.headerNavigation {
padding-right: 10px;
margin-top:-15px;
height:23px;
}
a.navi {
margin: 0px;
color: #0d8bf6;
white-space: nowrap;
font-weight: bold;
list-style-type: none;
display: inline;
text-decoration: none;
padding: 0 3px 0 0;
float:right;
width:81px;
height:22px;
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
background-image: url(ise/bg-button.gif);
background-repeat: no-repeat;
text-align:center;
line-height:22px;
}
a.navi:link {
color: #0d8bf6;
}
a.navi:hover {
color: #0d8bf6;
text-decoration:underline;
background: url(ise/bg-button.gif);
background-repeat: no-repeat;
}
TR.headerError {
background: #ff0000;
}
TD.headerError {
font-family: Tahoma, Verdana, Arial, sans-serif;
font-size: 12px;
background: #ff0000;
color: #0d8bf6;
font-weight : bold;
text-align : center;
}
TR.headerInfo {
background: #00ff00;
}
TD.headerInfo {
font-family: Tahoma, Verdana, Arial, sans-serif;
font-size: 12px;
background: #00ff00;
color: #0d8bf6;
font-weight: bold;
text-align: center;
}
TR.footer {
background: #bbc3d3;
}
TD.footer {
font-family: Verdana, Arial, sans-serif;
font-size: 10px;
background: #bbc3d3;
color: #0d8bf6;
font-weight: bold;
}
#copy {
clear:both;
font-size: 10px;
color:#FFFFFF;
text-align:center;
padding:12px;
line-height:18px;
}
#copy a:link, #footer a:visited {
color:#FFFFFF;
text-decoration:none;
}
#copy a:hover {
color:#FFFFFF;
text-decoration:underline;
}
.infoBox {
background: #b6b7cb;
}
.infoBoxContents {
background: #f8f8f9;
font-family: Verdana, Arial, sans-serif;
font-size: 10px;
}
.infoBoxNotice {
background: #FF8E90;
}
.infoBoxNoticeContents {
background: #FFE6E6;
font-family: Verdana, Arial, sans-serif;
font-size: 10px;
}
TD.infoBoxHeading {
font-family: Verdana, Arial, sans-serif;
font-size: 10px;
font-weight: bold;
background: #bbc3d3;
color: #0d8bf6;
}
TD.infoBox, SPAN.infoBox {
font-family: Verdana, Arial, sans-serif;
font-size: 10px;
}
TR.accountHistory-odd, TR.addressBook-odd, TR.alsoPurchased-odd, TR.payment-odd, TR.productListing-odd, TR.productReviews-odd, TR.upcomingProducts-odd, TR.shippingOptions-odd {
background: #f8f8f9;
}
TR.accountHistory-even, TR.addressBook-even, TR.alsoPurchased-even, TR.payment-even, TR.productListing-even, TR.productReviews-even, TR.upcomingProducts-even, TR.shippingOptions-even {
background: #f8f8f9;
}
TABLE.productListing {
border: 1px;
border-style: solid;
border-color: #b6b7cb;
border-spacing: 1px;
}
.productListing-heading {
font-family: Verdana, Arial, sans-serif;
font-size: 10px;
background: #b6b7cb;
color: #0d8bf6;
font-weight: bold;
}
TD.productListing-data {
font-family: Verdana, Arial, sans-serif;
font-size: 10px;
}
A.pageResults {
color: #0000FF;
}
A.pageResults:hover {
color: #0000FF;
background: #FFFF33;
}
TD.pageHeading, DIV.pageHeading {
font-family: Verdana, Arial, sans-serif;
font-size: 15px;
font-weight: bold;
color: #9a9a9a;
}
TR.subBar {
background: #f4f7fd;
}
TD.subBar {
font-family: Verdana, Arial, sans-serif;
font-size: 10px;
color: #000000;
}
TD.main, P.main {
font-family: Verdana, Arial, sans-serif;
font-size: 11px;
line-height: 1.5;
}
TD.smallText, SPAN.smallText, P.smallText {
font-family: Verdana, Arial, sans-serif;
font-size: 10px;
}
TD.accountCategory {
font-family: Verdana, Arial, sans-serif;
font-size: 13px;
color: #0d8bf6;
}
TD.fieldKey {
font-family: Verdana, Arial, sans-serif;
font-size: 12px;
font-weight: bold;
}
TD.fieldValue {
font-family: Verdana, Arial, sans-serif;
font-size: 12px;
}
TD.tableHeading {
font-family: Verdana, Arial, sans-serif;
font-size: 12px;
font-weight: bold;
}
SPAN.newItemInCart {
font-family: Verdana, Arial, sans-serif;
font-size: 10px;
color: #ff0000;
}
CHECKBOX, INPUT, RADIO, SELECT {
font-family: Verdana, Arial, sans-serif;
font-size: 11px;
}
TEXTAREA {
width: 100%;
font-family: Verdana, Arial, sans-serif;
font-size: 11px;
}
SPAN.greetUser {
font-family: Verdana, Arial, sans-serif;
font-size: 12px;
color: #0d8bf6;
font-weight: bold;
}
TABLE.formArea {
background: #f1f9fe;
border-color: #7b9ebd;
border-style: solid;
border-width: 1px;
}
TD.formAreaTitle {
font-family: Tahoma, Verdana, Arial, sans-serif;
font-size: 12px;
font-weight: bold;
}
SPAN.markProductOutOfStock {
font-family: Tahoma, Verdana, Arial, sans-serif;
font-size: 12px;
color: #c76170;
font-weight: bold;
}
SPAN.productSpecialPrice {
font-family: Verdana, Arial, sans-serif;
color: #ff0000;
}
SPAN.errorText {
font-family: Verdana, Arial, sans-serif;
color: #0d8bf6;
}
.moduleRow { }
.moduleRowOver { background-color: #D7E9F7; cursor: pointer; cursor: hand; }
.moduleRowSelected { background-color: #E9F4FC; }
.checkoutBarFrom, .checkoutBarTo { font-family: Verdana, Arial, sans-serif; font-size: 10px; color: #8c8c8c; }
.checkoutBarCurrent { font-family: Verdana, Arial, sans-serif; font-size: 10px; color: #000000; }
/* message box */
.messageBox { font-family: Verdana, Arial, sans-serif; font-size: 10px; }
.messageStackError, .messageStackWarning { font-family: Verdana, Arial, sans-serif; font-size: 10px; background-color: #ffb3b5; }
.messageStackSuccess { font-family: Verdana, Arial, sans-serif; font-size: 10px; background-color: #99ff00; }
/* input requirement */
.inputRequirement { font-family: Verdana, Arial, sans-serif; font-size: 10px; color: #ff0000; }
#logo_bottom1{
height: 34px;
margin-left: 0px;
background-image: url(ise/bottom_left.jpg);
background-repeat: no-repeat;
}
#logo_bottom2{
height: 34px;
margin-top: -34px;
margin-left: 760px;
background-image: url(ise/bottom_right.jpg);
background-repeat: no-repeat;
}
#logo-bottom3{
width: 800px;
background-image: url(ise/bottom_background.jpg);
background-repeat: repeat-x;
}
.infoBoxNewCat {
background: #ffffff;
font-family: Verdana, Arial, sans-serif;
font-size: 10px;
padding: 5px 5px 5px 5px;
border-bottom: 1px solid #cccccc;
}
/*change the menu hover color below*/
#thecategories a:hover {
background-color: #eeeeee;
color: #000000;
}
.catwithsubs, .catwithnosubs {
padding-right: 5px;
}
#thecategories {
position: relative;
top: -9px;
margin-bottom: -16px;
width: 140px;
}
.activelink {
display: block;
font-weight: bold;
}
#thecategories a {
display: block;
padding-bottom: 7px;
padding-top: 3px;
width: 100%;
}
/*mozilla fix*/
html>body #thecategories a {
width: auto;
}
/*end of mozilla fix*/
#topcat a {
padding-left: 5px;
}
#secondcat a {
padding-left: 20px;
}
#thirdcat a {
padding-left: 35px;
}
#fourthcat a {
padding-left: 50px;
}
#fifthcat a {
padding-left: 65px;
}
.datenschutz {
font-size: 10px;
}
|