arrotondare categorie
Inviato: 04/12/2008, 22:03
Mi piacerebbe poter creare delle categorie con gli angoli arrotondati come da immagine allegate.
Mi aiutate ?
Grazie
Mi aiutate ?
Grazie
comunità di utenti e sviluppatori italiani per osCommerce
http://www.oscommerceitalia.com/forums/
http://www.oscommerceitalia.com/forums/viewtopic.php?t=10950
Codice: Seleziona tutto
class infoBoxHeading extends tableBox {
function infoBoxHeading($contents, $left_corner = true, $right_corner = true, $right_arrow = false) {
$this->table_cellpadding = '0';
if ($left_corner == true) {
$left_corner = tep_image(DIR_WS_IMAGES . 'infobox/corner_left_1.gif');
} else {
$left_corner = tep_image(DIR_WS_IMAGES . 'infobox/corner_left_1.gif');
}
if ($right_arrow == true) {
$right_arrow = '<a href="' . $right_arrow . '">' . tep_image(DIR_WS_IMAGES . '', ICON_ARROW_RIGHT) . '</a>';
} else {
$right_arrow = '';
}
if ($right_corner == true) {
$right_corner = $right_arrow . tep_image(DIR_WS_IMAGES . 'infobox/corner_right_2.gif');
} else {
$right_corner = $right_arrow . tep_image(DIR_WS_IMAGES . 'infobox/corner_right_2.gif');
}
$info_box_contents = array();
$info_box_contents[] = array(array('params' => 'height="14" class="infoBoxHeading"',
'text' => $left_corner),
array('params' => 'width="100%" height="14" class="infoBoxHeading"',
'text' => $contents[0]['text']),
array('params' => 'height="14" class="infoBoxHeading" nowrap',
'text' => $right_corner));
$this->tableBox($info_box_contents, true);
}
}