Jeg kan godt nok ikke finde fejlen
her der lidt kode håber i kan hjælpe
$contents[] = array('text' => '<br>' . TEXT_PRODUCTS_AVERAGE_RATING . ' ' . number_format($pInfo->average_rating, 2) . '%');
}
} else { // create category/product info
$heading[] = array('text' => '<b>' . EMPTY_CATEGORY . '</b>');
$contents[] = array('text' => TEXT_NO_CHILD_CATEGORIES_OR_PRODUCTS);
}
break;
}
if ( (tep_not_null($heading)) && (tep_not_null($contents)) ) {
echo ' <td width="25%" valign="top">' . "\n";
$box = new box;
echo $box->infoBox($heading, $contents);
echo ' </td>' . "\n";
}
?>
} else { // create category/product info
$heading[] = array('text' => '<b>' . EMPTY_CATEGORY . '</b>');
$contents[] = array('text' => TEXT_NO_CHILD_CATEGORIES_OR_PRODUCTS);
}
break;
}
if ( (tep_not_null($heading)) && (tep_not_null($contents)) ) {
echo ' <td width="25%" valign="top">' . "\n";
$box = new box;
echo $box->infoBox($heading, $contents);
echo ' </td>' . "\n";
// Add neccessary JS for WYSIWYG editor of category image
if($action=='edit_category'){
if (HTML_AREA_WYSIWYG_DISABLE != 'Disable'){
echo '
<script language="JavaScript1.2" defer>
var config = new Object(); // create new config object
config.width = "250px";
config.height = "35px";
config.bodyStyle = "background-color: white; font-family: Arial; color: black; font-size: 12px;";
config.debug = ' . HTML_AREA_WYSIWYG_DEBUG . ';
config.toolbar = [ ["InsertImageURL"] ];
config.OscImageRoot = "' . trim(HTTP_SERVER . DIR_WS_CATALOG_IMAGES) . '";
editor_generate("categories_image",config);
</script>
';
}
}
}
?>
Mvh Tage K