Pasted by on Wednesday, March 03, 2010 12:22 AM

Syntax:

											
1 function infoBoxContents($contents) { 2 $this->table_cellpadding = '3'; 3 $this->table_parameters = 'class="infoBoxContents"'; 4 $info_box_contents = array(); 5 $info_box_contents[] = array(array('text' => tep_draw_separator('pixel_trans.gif', '100%', '1'))); 6 for ($i=0, $n=sizeof($contents); $i<$n; $i++) { 7 $info_box_contents[] = array(array('align' => (isset($contents[$i]['align']) ? $contents[$i]['align'] : ''), 8 'form' => (isset($contents[$i]['form']) ? $contents[$i]['form'] : ''), 9 'params' => 'class="boxText"', 10 'text' => (isset($contents[$i]['text']) ? $contents[$i]['text'] : ''))); 11 } 12 $info_box_contents[] = array(array('text' => tep_draw_separator('pixel_trans.gif', '100%', '1'))); 13 return $this->tableBox($info_box_contents); 14 } 15 }