Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Stylesheet problems


roxoride

Recommended Posts

yeah i was foolin around with the classes> boxes.php file.. this is my code for categories.. i was trying to comment out the images

 

 

//New CategoriesBox Class

class CategoriesBox extends tableBox {

function CategoriesBox($contents) {

$info_box_contents = array();

$info_box_contents[] = array('text' => $this->CategoriesBoxContents($contents));

$this->table_cellpadding = '1';

$this->table_parameters = 'class="CategoriesBox"';

$this->tableBox($info_box_contents, true);

}

 

function CategoriesBoxContents($contents) {

$this->table_cellpadding = '3';

$this->table_parameters = 'class="CategoriesBoxContents"';

$info_box_contents = array();

$info_box_contents[] = array(array('text' => tep_draw_separator('')));

for ($i=0, $n=sizeof($contents); $i<$n; $i++) {

$info_box_contents[] = array(array('align' => $contents[$i]['align'],

'form' => $contents[$i]['form'],

'params' => 'class="CategoriesBoxContents"',

'text' => $contents[$i]['text']));

}

$info_box_contents[] = array(array('text' => tep_draw_separator('')));

return $this->tableBox($info_box_contents);

}

}

 

class CategoriesBoxHeading extends tableBox {

function CategoriesBoxHeading($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 . '');

} else {

$left_corner = tep_image(DIR_WS_IMAGES . '');

}

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 . '');

} else {

$right_corner = $right_arrow . tep_draw_separator('');

}

 

$info_box_contents = array();

$info_box_contents[] = array(array('params' => 'height="14" class="CategoriesBoxHeading"',

'text' => $left_corner),

array('params' => 'width="100%" height="14" class="CategoriesBoxHeading"',

'text' => $contents[0]['text']),

array('params' => 'height="14" class="CategoriesBoxHeading" nowrap',

'text' => $right_corner));

 

$this->tableBox($info_box_contents, true);

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...