Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

boxes.php


Guest

Recommended Posts

I changed the boxes.php and now the leftcorner and the rightcorner images are removed.

class infoBoxHeading extends tableBox {
function infoBoxHeading($contents, $right_arrow = false) {
  $this->table_cellpadding = '0';

if ($right_arrow == true) {
	$right_arrow = '<a href="' . $right_arrow . '">' . tep_image(DIR_WS_IMAGES . 'infobox/arrow_right.gif', ICON_ARROW_RIGHT) . '</a>';
  } else {
	$right_arrow = '';
  }


  $infobox_topgif = tep_image(DIR_WS_IMAGES . 'infobox/infobox_top.gif');

  $info_box_contents = array();
  $info_box_contents[] = array(
							   array('params' => 'height="14" class="infoBoxHeading"',
									 'text' => $infobox_topgif),
							   array('params' => 'width="191" height="14" class="infoBoxHeading"',
									 'text' => $contents[0]['text']));

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

 

I tried to put here the top image but I get this:

 

  <tr>
<td height="14" class="infoBoxHeading"><img src="images/infobox/infobox_top.gif" border="0" alt="" width="191" height="14"></td>
<td width="191" height="14" class="infoBoxHeading">Categories</td>
 </tr>

 

How can i create different table rows?

Link to comment
Share on other sites

  • 1 year later...
I changed the boxes.php and now the leftcorner and the rightcorner images are removed.

class infoBoxHeading extends tableBox {
function infoBoxHeading($contents, $right_arrow = false) {
  $this->table_cellpadding = '0';

if ($right_arrow == true) {
	$right_arrow = '<a href="' . $right_arrow . '">' . tep_image(DIR_WS_IMAGES . 'infobox/arrow_right.gif', ICON_ARROW_RIGHT) . '</a>';
  } else {
	$right_arrow = '';
  }


  $infobox_topgif = tep_image(DIR_WS_IMAGES . 'infobox/infobox_top.gif');

  $info_box_contents = array();
  $info_box_contents[] = array(
							   array('params' => 'height="14" class="infoBoxHeading"',
									 'text' => $infobox_topgif),
							   array('params' => 'width="191" height="14" class="infoBoxHeading"',
									 'text' => $contents[0]['text']));

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

 

I tried to put here the top image but I get this:

 

  <tr>
<td height="14" class="infoBoxHeading"><img src="images/infobox/infobox_top.gif" border="0" alt="" width="191" height="14"></td>
<td width="191" height="14" class="infoBoxHeading">Categories</td>
 </tr>

 

How can i create different table rows?

 

What's the top image? Is it something that is going to be the title header? Or is this something that is going to be different for each box, depending on what the category is?

Link to comment
Share on other sites

$info_box_contents[] = array(
							   array('params' => 'height="14" class="infoBoxHeading"',
									 'text' => $infobox_topgif),
							   array('params' => 'width="191" height="14" class="infoBoxHeading"',
									 'text' => $contents[0]['text']));

 

to create different row (just sample):

 

$info_box_contents[] = array(array('params' => 'colspan="2" height="14" class="infoBoxHeading"', 'text' => $infobox_topgif));
$info_box_contents[] = ....//next row

Sugiartha

------------------------------------------

concept of life: enjoy aja!

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...