WebDudeSlo Posted January 6, 2007 Share Posted January 6, 2007 Hello! i tryed to installed graphical borders2.1 on Basic Design pack9 but i see uncomplete. But the problem is that i think i didnt missed nothing or did wrong... Its strange because i dont see graphics modules on the left column and right column... i think i need to change something in includes/classes/boxes.php , but dont know what. I would be really glad if you help me here... i will put picture of my side to see this problem better. thanks Quote Link to comment Share on other sites More sharing options...
WebDudeSlo Posted January 6, 2007 Author Share Posted January 6, 2007 ok i will put codes of includes/classes/boxes.php ____________________________________________________________ <?php /* $Id: boxes.php,v 1.31 2003/02/11 00:04:48 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Released under the GNU General Public License */ class tableBox { var $table_border = '0'; var $table_width = '100%'; var $table_cellspacing = '0'; var $table_cellpadding = '2'; var $table_parameters = ''; var $table_row_parameters = ''; var $table_data_parameters = ''; // class constructor function tableBox($contents, $direct_output = false) { $tableBox_string = '<table border="' . $this->table_border . '" width="' . $this->table_width . '" cellspacing="' . $this->table_cellspacing . '" cellpadding="' . $this->table_cellpadding . '"'; if (tep_not_null($this->table_parameters)) $tableBox_string .= ' ' . $this->table_parameters; $tableBox_string .= '>' . "\n"; for ($i=0, $n=sizeof($contents); $i<$n; $i++) { if (isset($contents[$i]['form']) && tep_not_null($contents[$i]['form'])) $tableBox_string .= $contents[$i]['form'] . "\n"; $tableBox_string .= ' <tr'; if (tep_not_null($this->table_row_parameters)) $tableBox_string .= ' ' . $this->table_row_parameters; if (isset($contents[$i]['params']) && tep_not_null($contents[$i]['params'])) $tableBox_string .= ' ' . $contents[$i]['params']; $tableBox_string .= '>' . "\n"; if (is_array($contents[$i][0])) { for ($x=0, $n2=sizeof($contents[$i]); $x<$n2; $x++) { if (isset($contents[$i][$x]['text']) && tep_not_null($contents[$i][$x]['text'])) { $tableBox_string .= ' <td'; if (isset($contents[$i][$x]['align']) && tep_not_null($contents[$i][$x]['align'])) $tableBox_string .= ' align="' . $contents[$i][$x]['align'] . '"'; if (isset($contents[$i][$x]['params']) && tep_not_null($contents[$i][$x]['params'])) { $tableBox_string .= ' ' . $contents[$i][$x]['params']; } elseif (tep_not_null($this->table_data_parameters)) { $tableBox_string .= ' ' . $this->table_data_parameters; } $tableBox_string .= '>'; if (isset($contents[$i][$x]['form']) && tep_not_null($contents[$i][$x]['form'])) $tableBox_string .= $contents[$i][$x]['form']; $tableBox_string .= $contents[$i][$x]['text']; if (isset($contents[$i][$x]['form']) && tep_not_null($contents[$i][$x]['form'])) $tableBox_string .= '</form>'; $tableBox_string .= '</td>' . "\n"; } } } else { $tableBox_string .= ' <td'; if (isset($contents[$i]['align']) && tep_not_null($contents[$i]['align'])) $tableBox_string .= ' align="' . $contents[$i]['align'] . '"'; if (isset($contents[$i]['params']) && tep_not_null($contents[$i]['params'])) { $tableBox_string .= ' ' . $contents[$i]['params']; } elseif (tep_not_null($this->table_data_parameters)) { $tableBox_string .= ' ' . $this->table_data_parameters; } $tableBox_string .= '>' . $contents[$i]['text'] . '</td>' . "\n"; } $tableBox_string .= ' </tr>' . "\n"; if (isset($contents[$i]['form']) && tep_not_null($contents[$i]['form'])) $tableBox_string .= '</form>' . "\n"; } $tableBox_string .= '</table>' . "\n"; if ($direct_output == true) echo $tableBox_string; return $tableBox_string; } } //Default infoBox Class class infoBox extends tableBox { // Graphical Borders function infoBox($contents) { $info_box_contents = array(); $info_box_contents[] = array('text' => $this->mws_infoBoxContents($contents)); $this->tableBox($info_box_contents, true); } function mws_infoboxcontents($contents) { global $mws_headerText, $mws_headerLink; $this->table_cellpadding = '0'; $this->align = 'center'; $info_box_contents = array(); $info_box_contents[] = array(array('text' => tep_draw_separator('pixel_trans.gif', '100%', '1'))); for ($i=0, $n=sizeof($contents); $i<$n; $i++) { $info_box_contents[] = array(array('align' => (isset($contents[$i]['align']) ? $contents[$i]['align'] : ''), 'form' => (isset($contents[$i]['form']) ? $contents[$i]['form'] : ''), 'params' => 'class="boxText"', 'text' => (isset($contents[$i]['text']) ? $contents[$i]['text'] : ''))); } $output = ' <table cellspacing="0" cellpadding="0" border="0"> <tr> <td>' . tep_image(DIR_WS_IMAGES . 'infobox/upper_left.gif','') . '</td> <td class="mws_boxTop" width="100%">' . $mws_headerText; if ($mws_headerLink != false) { $output .= ' <a href="' . $mws_headerLink . '">' . tep_image(DIR_WS_IMAGES . 'infobox/arrow_right.gif', ICON_ARROW_RIGHT) . '</a>'; } $output .= '</td> <td>' . tep_image(DIR_WS_IMAGES . 'infobox/upper_right.gif','') . '</td> </tr> <tr> <td class="mws_boxLeft"></td> <td class="mws_boxCenter">' . $this->tableBox($info_box_contents) . '</td> <td class="mws_boxRight"></td> </tr> <tr> <td>' . tep_image(DIR_WS_IMAGES . 'infobox/lower_left.gif','') . '</td> <td class="mws_boxBottom"></td> <td>' . tep_image(DIR_WS_IMAGES . 'infobox/lower_right.gif','') . '</td> </tr> </table>'; return $output; } // Graphical Borders - end modification function infoBoxContents($contents) { $this->table_cellpadding = '3'; $this->table_parameters = 'class="infoBoxContents"'; $info_box_contents = array(); $info_box_contents[] = array(array('text' => tep_draw_separator('pixel_trans.gif', '100%', '1'))); for ($i=0, $n=sizeof($contents); $i<$n; $i++) { $info_box_contents[] = array(array('align' => $contents[$i]['align'], 'form' => $contents[$i]['form'], 'params' => 'class="TextBox"', 'text' => $contents[$i]['text'])); } $info_box_contents[] = array(array('text' => tep_draw_separator('pixel_trans.gif', '100%', '1'))); return $this->tableBox($info_box_contents); } } // Graphical Borders class infoBoxHeading extends tableBox { function infoBoxHeading($contents, $left_corner = true, $right_corner = true, $right_arrow = false) { global $mws_headerText, $mws_headerLink; $mws_headerText = $contents[0]['text']; $mws_headerLink = $right_arrow; } } // Graphical Borders - end modification //Default contenBox Class class contentBox extends tableBox { function contentBox($contents) { $info_box_contents = array(); $info_box_contents[] = array('text' => $this->contentBoxContents($contents)); $this->table_cellpadding = '1'; $this->table_parameters = 'class="contentBox"'; $this->tableBox($info_box_contents, true); } function contentBoxContents($contents) { $this->table_cellpadding = '4'; $this->table_parameters = 'class="contentBoxContents"'; return $this->tableBox($contents); } } class contentBoxHeading extends tableBox { function contentBoxHeading($contents) { $this->table_width = '100%'; $this->table_cellpadding = '0'; $info_box_contents = array(); $info_box_contents[] = array(array('params' => 'height="14" class="contentBoxHeading"', 'text' => tep_image(DIR_WS_IMAGES . 'contentBox/corner_left.gif')), array('params' => 'height="14" class="contentBoxHeading" width="100%"', 'text' => $contents[0]['text']), array('params' => 'height="14" class="contentBoxHeading"', 'text' => tep_image(DIR_WS_IMAGES . 'contentBox/corner_right_left.gif'))); $this->tableBox($info_box_contents, true); } } class errorBox extends tableBox { function errorBox($contents) { $this->table_data_parameters = 'class="errorBox"'; $this->tableBox($contents, true); } } class productListingBox extends tableBox { function productListingBox($contents) { $this->table_parameters = 'class="productListing"'; $this->tableBox($contents, true); } } //New BestSellersBox Class class BestSellersBox extends tableBox { function BestSellersBox($contents) { $info_box_contents = array(); $info_box_contents[] = array('text' => $this->BestSellersBoxContents($contents)); $this->table_cellpadding = '1'; $this->table_parameters = 'class="BestSellersBox"'; $this->tableBox($info_box_contents, true); } function BestSellersBoxContents($contents) { $this->table_cellpadding = '3'; $this->table_parameters = 'class="BestSellersBoxContents"'; $info_box_contents = array(); $info_box_contents[] = array(array('text' => tep_draw_separator('pixel_trans.gif', '100%', '1'))); for ($i=0, $n=sizeof($contents); $i<$n; $i++) { $info_box_contents[] = array(array('align' => $contents[$i]['align'], 'form' => $contents[$i]['form'], 'params' => 'class="BestSellersBoxContents"', 'text' => $contents[$i]['text'])); } $info_box_contents[] = array(array('text' => tep_draw_separator('pixel_trans.gif', '100%', '1'))); return $this->tableBox($info_box_contents); } } class BestSellersBoxHeading extends tableBox { function BestSellersBoxHeading($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 . 'BestSellersBox/corner_left.gif'); } else { $left_corner = tep_image(DIR_WS_IMAGES . 'BestSellersBox/corner_right_left.gif'); } if ($right_arrow == true) { $right_arrow = '<a href="' . $right_arrow . '">' . tep_image(DIR_WS_IMAGES . 'BestSellersBox/arrow_right.gif', ICON_ARROW_RIGHT) . '</a>'; } else { $right_arrow = ''; } if ($right_corner == true) { $right_corner = $right_arrow . tep_image(DIR_WS_IMAGES . 'BestSellersBox/corner_right.gif'); } else { $right_corner = $right_arrow . tep_draw_separator('pixel_trans.gif', '11', '14'); } $info_box_contents = array(); $info_box_contents[] = array(array('params' => 'height="14" class="BestSellersBoxHeading"', 'text' => $left_corner), array('params' => 'width="100%" height="14" class="BestSellersBoxHeading"', 'text' => $contents[0]['text']), array('params' => 'height="14" class="BestSellersBoxHeading" nowrap', 'text' => $right_corner)); $this->tableBox($info_box_contents, true); } } //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('pixel_trans.gif', '100%', '1'))); 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('pixel_trans.gif', '100%', '1'))); 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 . 'CategoriesBox/corner_left.gif'); } else { $left_corner = tep_image(DIR_WS_IMAGES . 'CategoriesBox/corner_right_left.gif'); } if ($right_arrow == true) { $right_arrow = '<a href="' . $right_arrow . '">' . tep_image(DIR_WS_IMAGES . 'CategoriesBox/arrow_right.gif', ICON_ARROW_RIGHT) . '</a>'; } else { $right_arrow = ''; } if ($right_corner == true) { $right_corner = $right_arrow . tep_image(DIR_WS_IMAGES . 'CategoriesBox/corner_right.gif'); } else { $right_corner = $right_arrow . tep_draw_separator('pixel_trans.gif', '11', '14'); } $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); } } //New CurrenciesBox Class class CurrenciesBox extends tableBox { function CurrenciesBox($contents) { $info_box_contents = array(); $info_box_contents[] = array('text' => $this->CurrenciesBoxContents($contents)); $this->table_cellpadding = '1'; $this->table_parameters = 'class="CurrenciesBox"'; $this->tableBox($info_box_contents, true); } function CurrenciesBoxContents($contents) { $this->table_cellpadding = '3'; $this->table_parameters = 'class="CurrenciesBoxContents"'; $info_box_contents = array(); $info_box_contents[] = array(array('text' => tep_draw_separator('pixel_trans.gif', '100%', '1'))); for ($i=0, $n=sizeof($contents); $i<$n; $i++) { $info_box_contents[] = array(array('align' => $contents[$i]['align'], 'form' => $contents[$i]['form'], 'params' => 'class="CurrenciesBoxContents"', 'text' => $contents[$i]['text'])); } $info_box_contents[] = array(array('text' => tep_draw_separator('pixel_trans.gif', '100%', '1'))); return $this->tableBox($info_box_contents); } } class CurrenciesBoxHeading extends tableBox { function CurrenciesBoxHeading($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 . 'CurrenciesBox/corner_left.gif'); } else { $left_corner = tep_image(DIR_WS_IMAGES . 'CurrenciesBox/corner_right_left.gif'); } if ($right_arrow == true) { $right_arrow = '<a href="' . $right_arrow . '">' . tep_image(DIR_WS_IMAGES . 'CurrenciesBox/arrow_right.gif', ICON_ARROW_RIGHT) . '</a>'; } else { $right_arrow = ''; } if ($right_corner == true) { $right_corner = $right_arrow . tep_image(DIR_WS_IMAGES . 'CurrenciesBox/corner_right.gif'); } else { $right_corner = $right_arrow . tep_draw_separator('pixel_trans.gif', '11', '14'); } $info_box_contents = array(); $info_box_contents[] = array(array('params' => 'height="14" class="CurrenciesBoxHeading"', 'text' => $left_corner), array('params' => 'width="100%" height="14" class="CurrenciesBoxHeading"', 'text' => $contents[0]['text']), array('params' => 'height="14" class="CurrenciesBoxHeading" nowrap', 'text' => $right_corner)); $this->tableBox($info_box_contents, true); } } //New InformationBox Class class InformationBox extends tableBox { function InformationBox($contents) { $info_box_contents = array(); $info_box_contents[] = array('text' => $this->InformationBoxContents($contents)); $this->table_cellpadding = '1'; $this->table_parameters = 'class="InformationBox"'; $this->tableBox($info_box_contents, true); } function InformationBoxContents($contents) { $this->table_cellpadding = '3'; $this->table_parameters = 'class="InformationBoxContents"'; $info_box_contents = array(); $info_box_contents[] = array(array('text' => tep_draw_separator('pixel_trans.gif', '100%', '1'))); for ($i=0, $n=sizeof($contents); $i<$n; $i++) { $info_box_contents[] = array(array('align' => $contents[$i]['align'], 'form' => $contents[$i]['form'], 'params' => 'class="InformationBoxContents"', 'text' => $contents[$i]['text'])); } $info_box_contents[] = array(array('text' => tep_draw_separator('pixel_trans.gif', '100%', '1'))); return $this->tableBox($info_box_contents); } } class InformationBoxHeading extends tableBox { function InformationBoxHeading($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 . 'InformationBox/corner_left.gif'); } else { $left_corner = tep_image(DIR_WS_IMAGES . 'InformationBox/corner_right_left.gif'); } if ($right_arrow == true) { $right_arrow = '<a href="' . $right_arrow . '">' . tep_image(DIR_WS_IMAGES . 'InformationBox/arrow_right.gif', ICON_ARROW_RIGHT) . '</a>'; } else { $right_arrow = ''; } if ($right_corner == true) { $right_corner = $right_arrow . tep_image(DIR_WS_IMAGES . 'InformationBox/corner_right.gif'); } else { $right_corner = $right_arrow . tep_draw_separator('pixel_trans.gif', '11', '14'); } $info_box_contents = array(); $info_box_contents[] = array(array('params' => 'height="14" class="InformationBoxHeading"', 'text' => $left_corner), array('params' => 'width="100%" height="14" class="InformationBoxHeading"', 'text' => $contents[0]['text']), array('params' => 'height="14" class="InformationBoxHeading" nowrap', 'text' => $right_corner)); $this->tableBox($info_box_contents, true); } } //New LanguagesBox Class class LanguagesBox extends tableBox { function LanguagesBox($contents) { $info_box_contents = array(); $info_box_contents[] = array('text' => $this->LanguagesBoxContents($contents)); $this->table_cellpadding = '1'; $this->table_parameters = 'class="LanguagesBox"'; $this->tableBox($info_box_contents, true); } function LanguagesBoxContents($contents) { $this->table_cellpadding = '3'; $this->table_parameters = 'class="LanguagesBoxContents"'; $info_box_contents = array(); $info_box_contents[] = array(array('text' => tep_draw_separator('pixel_trans.gif', '100%', '1'))); for ($i=0, $n=sizeof($contents); $i<$n; $i++) { $info_box_contents[] = array(array('align' => $contents[$i]['align'], 'form' => $contents[$i]['form'], 'params' => 'class="LanguagesBoxContents"', 'text' => $contents[$i]['text'])); } $info_box_contents[] = array(array('text' => tep_draw_separator('pixel_trans.gif', '100%', '1'))); return $this->tableBox($info_box_contents); } } class LanguagesBoxHeading extends tableBox { function LanguagesBoxHeading($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 . 'LanguagesBox/corner_left.gif'); } else { $left_corner = tep_image(DIR_WS_IMAGES . 'LanguagesBox/corner_right_left.gif'); } if ($right_arrow == true) { $right_arrow = '<a href="' . $right_arrow . '">' . tep_image(DIR_WS_IMAGES . 'LanguagesBox/arrow_right.gif', ICON_ARROW_RIGHT) . '</a>'; } else { $right_arrow = ''; } if ($right_corner == true) { $right_corner = $right_arrow . tep_image(DIR_WS_IMAGES . 'LanguagesBox/corner_right.gif'); } else { $right_corner = $right_arrow . tep_draw_separator('pixel_trans.gif', '11', '14'); } $info_box_contents = array(); $info_box_contents[] = array(array('params' => 'height="14" class="LanguagesBoxHeading"', 'text' => $left_corner), array('params' => 'width="100%" height="14" class="LanguagesBoxHeading"', 'text' => $contents[0]['text']), array('params' => 'height="14" class="LanguagesBoxHeading" nowrap', 'text' => $right_corner)); $this->tableBox($info_box_contents, true); } } //New ManufacturerInfoBox Class class ManufacturerInfoBox extends tableBox { function ManufacturerInfoBox($contents) { $info_box_contents = array(); $info_box_contents[] = array('text' => $this->ManufacturerInfoBoxContents($contents)); $this->table_cellpadding = '1'; $this->table_parameters = 'class="ManufacturerInfoBox"'; $this->tableBox($info_box_contents, true); } function ManufacturerInfoBoxContents($contents) { $this->table_cellpadding = '3'; $this->table_parameters = 'class="ManufacturerInfoBoxContents"'; $info_box_contents = array(); $info_box_contents[] = array(array('text' => tep_draw_separator('pixel_trans.gif', '100%', '1'))); for ($i=0, $n=sizeof($contents); $i<$n; $i++) { $info_box_contents[] = array(array('align' => $contents[$i]['align'], 'form' => $contents[$i]['form'], 'params' => 'class="ManufacturerInfoBoxContents"', 'text' => $contents[$i]['text'])); } $info_box_contents[] = array(array('text' => tep_draw_separator('pixel_trans.gif', '100%', '1'))); return $this->tableBox($info_box_contents); } } class ManufacturerInfoBoxHeading extends tableBox { function ManufacturerInfoBoxHeading($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 . 'ManufacturerInfoBox/corner_left.gif'); } else { $left_corner = tep_image(DIR_WS_IMAGES . 'ManufacturerInfoBox/corner_right_left.gif'); } if ($right_arrow == true) { $right_arrow = '<a href="' . $right_arrow . '">' . tep_image(DIR_WS_IMAGES . 'ManufacturerInfoBox/arrow_right.gif', ICON_ARROW_RIGHT) . '</a>'; } else { $right_arrow = ''; } if ($right_corner == true) { $right_corner = $right_arrow . tep_image(DIR_WS_IMAGES . 'ManufacturerInfoBox/corner_right.gif'); } else { $right_corner = $right_arrow . tep_draw_separator('pixel_trans.gif', '11', '14'); } $info_box_contents = array(); $info_box_contents[] = array(array('params' => 'height="14" class="ManufacturerInfoBoxHeading"', 'text' => $left_corner), array('params' => 'width="100%" height="14" class="ManufacturerInfoBoxHeading"', 'text' => $contents[0]['text']), array('params' => 'height="14" class="ManufacturerInfoBoxHeading" nowrap', 'text' => $right_corner)); $this->tableBox($info_box_contents, true); } } //New ManufacturersBox Class class ManufacturersBox extends tableBox { function ManufacturersBox($contents) { $info_box_contents = array(); $info_box_contents[] = array('text' => $this->ManufacturersBoxContents($contents)); $this->table_cellpadding = '1'; $this->table_parameters = 'class="ManufacturersBox"'; $this->tableBox($info_box_contents, true); } function ManufacturersBoxContents($contents) { $this->table_cellpadding = '3'; $this->table_parameters = 'class="ManufacturersBoxContents"'; $info_box_contents = array(); $info_box_contents[] = array(array('text' => tep_draw_separator('pixel_trans.gif', '100%', '1'))); for ($i=0, $n=sizeof($contents); $i<$n; $i++) { $info_box_contents[] = array(array('align' => $contents[$i]['align'], 'form' => $contents[$i]['form'], 'params' => 'class="ManufacturersBoxContents"', 'text' => $contents[$i]['text'])); } $info_box_contents[] = array(array('text' => tep_draw_separator('pixel_trans.gif', '100%', '1'))); return $this->tableBox($info_box_contents); } } class ManufacturersBoxHeading extends tableBox { function ManufacturersBoxHeading($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 . 'ManufacturersBox/corner_left.gif'); } else { $left_corner = tep_image(DIR_WS_IMAGES . 'ManufacturersBox/corner_right_left.gif'); } if ($right_arrow == true) { $right_arrow = '<a href="' . $right_arrow . '">' . tep_image(DIR_WS_IMAGES . 'ManufacturersBox/arrow_right.gif', ICON_ARROW_RIGHT) . '</a>'; } else { $right_arrow = ''; } if ($right_corner == true) { $right_corner = $right_arrow . tep_image(DIR_WS_IMAGES . 'ManufacturersBox/corner_right.gif'); } else { $right_corner = $right_arrow . tep_draw_separator('pixel_trans.gif', '11', '14'); } $info_box_contents = array(); $info_box_contents[] = array(array('params' => 'height="14" class="ManufacturersBoxHeading"', 'text' => $left_corner), array('params' => 'width="100%" height="14" class="ManufacturersBoxHeading"', 'text' => $contents[0]['text']), array('params' => 'height="14" class="ManufacturersBoxHeading" nowrap', 'text' => $right_corner)); $this->tableBox($info_box_contents, true); } } //New OrderHistoryBox Class class OrderHistoryBox extends tableBox { function OrderHistoryBox($contents) { $info_box_contents = array(); $info_box_contents[] = array('text' => $this->OrderHistoryBoxContents($contents)); $this->table_cellpadding = '1'; $this->table_parameters = 'class="OrderHistoryBox"'; $this->tableBox($info_box_contents, true); } function OrderHistoryBoxContents($contents) { $this->table_cellpadding = '3'; $this->table_parameters = 'class="OrderHistoryBoxContents"'; $info_box_contents = array(); $info_box_contents[] = array(array('text' => tep_draw_separator('pixel_trans.gif', '100%', '1'))); for ($i=0, $n=sizeof($contents); $i<$n; $i++) { $info_box_contents[] = array(array('align' => $contents[$i]['align'], 'form' => $contents[$i]['form'], 'params' => 'class="OrderHistoryBoxContents"', 'text' => $contents[$i]['text'])); } $info_box_contents[] = array(array('text' => tep_draw_separator('pixel_trans.gif', '100%', '1'))); return $this->tableBox($info_box_contents); } } class OrderHistoryBoxHeading extends tableBox { function OrderHistoryBoxHeading($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 . 'OrderHistoryBox/corner_left.gif'); } else { $left_corner = tep_image(DIR_WS_IMAGES . 'OrderHistoryBox/corner_right_left.gif'); } if ($right_arrow == true) { $right_arrow = '<a href="' . $right_arrow . '">' . tep_image(DIR_WS_IMAGES . 'OrderHistoryBox/arrow_right.gif', ICON_ARROW_RIGHT) . '</a>'; } else { $right_arrow = ''; } if ($right_corner == true) { $right_corner = $right_arrow . tep_image(DIR_WS_IMAGES . 'OrderHistoryBox/corner_right.gif'); } else { $right_corner = $right_arrow . tep_draw_separator('pixel_trans.gif', '11', '14'); } $info_box_contents = array(); $info_box_contents[] = array(array('params' => 'height="14" class="OrderHistoryBoxHeading"', 'text' => $left_corner), array('params' => 'width="100%" height="14" class="OrderHistoryBoxHeading"', 'text' => $contents[0]['text']), array('params' => 'height="14" class="OrderHistoryBoxHeading" nowrap', 'text' => $right_corner)); $this->tableBox($info_box_contents, true); } } //New ProductNotificationsBox Class class ProductNotificationsBox extends tableBox { function ProductNotificationsBox($contents) { $info_box_contents = array(); $info_box_contents[] = array('text' => $this->ProductNotificationsBoxContents($contents)); $this->table_cellpadding = '1'; $this->table_parameters = 'class="ProductNotificationsBox"'; $this->tableBox($info_box_contents, true); } function ProductNotificationsBoxContents($contents) { $this->table_cellpadding = '3'; $this->table_parameters = 'class="ProductNotificationsBoxContents"'; $info_box_contents = array(); $info_box_contents[] = array(array('text' => tep_draw_separator('pixel_trans.gif', '100%', '1'))); for ($i=0, $n=sizeof($contents); $i<$n; $i++) { $info_box_contents[] = array(array('align' => $contents[$i]['align'], 'form' => $contents[$i]['form'], 'params' => 'class="ProductNotificationsBoxContents"', 'text' => $contents[$i]['text'])); } $info_box_contents[] = array(array('text' => tep_draw_separator('pixel_trans.gif', '100%', '1'))); return $this->tableBox($info_box_contents); } } class ProductNotificationsBoxHeading extends tableBox { function ProductNotificationsBoxHeading($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 . 'ProductNotificationsBox/corner_left.gif'); } else { $left_corner = tep_image(DIR_WS_IMAGES . 'ProductNotificationsBox/corner_right_left.gif'); } if ($right_arrow == true) { $right_arrow = '<a href="' . $right_arrow . '">' . tep_image(DIR_WS_IMAGES . 'ProductNotificationsBox/arrow_right.gif', ICON_ARROW_RIGHT) . '</a>'; } else { $right_arrow = ''; } if ($right_corner == true) { $right_corner = $right_arrow . tep_image(DIR_WS_IMAGES . 'ProductNotificationsBox/corner_right.gif'); } else { $right_corner = $right_arrow . tep_draw_separator('pixel_trans.gif', '11', '14'); } $info_box_contents = array(); $info_box_contents[] = array(array('params' => 'height="14" class="ProductNotificationsBoxHeading"', 'text' => $left_corner), array('params' => 'width="100%" height="14" class="ProductNotificationsBoxHeading"', 'text' => $contents[0]['text']), array('params' => 'height="14" class="ProductNotificationsBoxHeading" nowrap', 'text' => $right_corner)); $this->tableBox($info_box_contents, true); } } //New ReviewsBox Class class ReviewsBox extends tableBox { function ReviewsBox($contents) { $info_box_contents = array(); $info_box_contents[] = array('text' => $this->ReviewsBoxContents($contents)); $this->table_cellpadding = '1'; $this->table_parameters = 'class="ReviewsBox"'; $this->tableBox($info_box_contents, true); } function ReviewsBoxContents($contents) { $this->table_cellpadding = '3'; $this->table_parameters = 'class="ReviewsBoxContents"'; $info_box_contents = array(); $info_box_contents[] = array(array('text' => tep_draw_separator('pixel_trans.gif', '100%', '1'))); for ($i=0, $n=sizeof($contents); $i<$n; $i++) { $info_box_contents[] = array(array('align' => $contents[$i]['align'], 'form' => $contents[$i]['form'], 'params' => 'class="ReviewsBoxContents"', 'text' => $contents[$i]['text'])); } $info_box_contents[] = array(array('text' => tep_draw_separator('pixel_trans.gif', '100%', '1'))); return $this->tableBox($info_box_contents); } } class ReviewsBoxHeading extends tableBox { function ReviewsBoxHeading($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 . 'ReviewsBox/corner_left.gif'); } else { $left_corner = tep_image(DIR_WS_IMAGES . 'ReviewsBox/corner_right_left.gif'); } if ($right_arrow == true) { $right_arrow = '<a href="' . $right_arrow . '">' . tep_image(DIR_WS_IMAGES . 'ReviewsBox/arrow_right.gif', ICON_ARROW_RIGHT) . '</a>'; } else { $right_arrow = ''; } if ($right_corner == true) { $right_corner = $right_arrow . tep_image(DIR_WS_IMAGES . 'ReviewsBox/corner_right.gif'); } else { $right_corner = $right_arrow . tep_draw_separator('pixel_trans.gif', '11', '14'); } $info_box_contents = array(); $info_box_contents[] = array(array('params' => 'height="14" class="ReviewsBoxHeading"', 'text' => $left_corner), array('params' => 'width="100%" height="14" class="ReviewsBoxHeading"', 'text' => $contents[0]['text']), array('params' => 'height="14" class="ReviewsBoxHeading" nowrap', 'text' => $right_corner)); $this->tableBox($info_box_contents, true); } } //New SearchBox Class class SearchBox extends tableBox { function SearchBox($contents) { $info_box_contents = array(); $info_box_contents[] = array('text' => $this->SearchBoxContents($contents)); $this->table_cellpadding = '1'; $this->table_parameters = 'class="SearchBox"'; $this->tableBox($info_box_contents, true); } function SearchBoxContents($contents) { $this->table_cellpadding = '3'; $this->table_parameters = 'class="SearchBoxContents"'; $info_box_contents = array(); $info_box_contents[] = array(array('text' => tep_draw_separator('pixel_trans.gif', '100%', '1'))); for ($i=0, $n=sizeof($contents); $i<$n; $i++) { $info_box_contents[] = array(array('align' => $contents[$i]['align'], 'form' => $contents[$i]['form'], 'params' => 'class="SearchBoxContents"', 'text' => $contents[$i]['text'])); } $info_box_contents[] = array(array('text' => tep_draw_separator('pixel_trans.gif', '100%', '1'))); return $this->tableBox($info_box_contents); } } class SearchBoxHeading extends tableBox { function SearchBoxHeading($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 . 'SearchBox/corner_left.gif'); } else { $left_corner = tep_image(DIR_WS_IMAGES . 'SearchBox/corner_right_left.gif'); } if ($right_arrow == true) { $right_arrow = '<a href="' . $right_arrow . '">' . tep_image(DIR_WS_IMAGES . 'SearchBox/arrow_right.gif', ICON_ARROW_RIGHT) . '</a>'; } else { $right_arrow = ''; } if ($right_corner == true) { $right_corner = $right_arrow . tep_image(DIR_WS_IMAGES . 'SearchBox/corner_right.gif'); } else { $right_corner = $right_arrow . tep_draw_separator('pixel_trans.gif', '11', '14'); } $info_box_contents = array(); $info_box_contents[] = array(array('params' => 'height="14" class="SearchBoxHeading"', 'text' => $left_corner), array('params' => 'width="100%" height="14" class="SearchBoxHeading"', 'text' => $contents[0]['text']), array('params' => 'height="14" class="SearchBoxHeading" nowrap', 'text' => $right_corner)); $this->tableBox($info_box_contents, true); } } //New ShoppingCartBox Class class ShoppingCartBox extends tableBox { function ShoppingCartBox($contents) { $info_box_contents = array(); $info_box_contents[] = array('text' => $this->ShoppingCartBoxContents($contents)); $this->table_cellpadding = '1'; $this->table_parameters = 'class="ShoppingCartBox"'; $this->tableBox($info_box_contents, true); } function ShoppingCartBoxContents($contents) { $this->table_cellpadding = '3'; $this->table_parameters = 'class="ShoppingCartBoxContents"'; $info_box_contents = array(); $info_box_contents[] = array(array('text' => tep_draw_separator('pixel_trans.gif', '100%', '1'))); for ($i=0, $n=sizeof($contents); $i<$n; $i++) { $info_box_contents[] = array(array('align' => $contents[$i]['align'], 'form' => $contents[$i]['form'], 'params' => 'class="ShoppingCartBoxContents"', 'text' => $contents[$i]['text'])); } $info_box_contents[] = array(array('text' => tep_draw_separator('pixel_trans.gif', '100%', '1'))); return $this->tableBox($info_box_contents); } } class ShoppingCartBoxHeading extends tableBox { function ShoppingCartBoxHeading($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 . 'ShoppingCartBox/corner_left.gif'); } else { $left_corner = tep_image(DIR_WS_IMAGES . 'ShoppingCartBox/corner_right_left.gif'); } if ($right_arrow == true) { $right_arrow = '<a href="' . $right_arrow . '">' . tep_image(DIR_WS_IMAGES . 'ShoppingCartBox/arrow_right.gif', ICON_ARROW_RIGHT) . '</a>'; } else { $right_arrow = ''; } if ($right_corner == true) { $right_corner = $right_arrow . tep_image(DIR_WS_IMAGES . 'ShoppingCartBox/corner_right.gif'); } else { $right_corner = $right_arrow . tep_draw_separator('pixel_trans.gif', '11', '14'); } $info_box_contents = array(); $info_box_contents[] = array(array('params' => 'height="14" class="ShoppingCartBoxHeading"', 'text' => $left_corner), array('params' => 'width="100%" height="14" class="ShoppingCartBoxHeading"', 'text' => $contents[0]['text']), array('params' => 'height="14" class="ShoppingCartBoxHeading" nowrap', 'text' => $right_corner)); $this->tableBox($info_box_contents, true); } } //New SpecialsBox Class class SpecialsBox extends tableBox { function SpecialsBox($contents) { $info_box_contents = array(); $info_box_contents[] = array('text' => $this->SpecialsBoxContents($contents)); $this->table_cellpadding = '1'; $this->table_parameters = 'class="SpecialsBox"'; $this->tableBox($info_box_contents, true); } function SpecialsBoxContents($contents) { $this->table_cellpadding = '3'; $this->table_parameters = 'class="SpecialsBoxContents"'; $info_box_contents = array(); $info_box_contents[] = array(array('text' => tep_draw_separator('pixel_trans.gif', '100%', '1'))); for ($i=0, $n=sizeof($contents); $i<$n; $i++) { $info_box_contents[] = array(array('align' => $contents[$i]['align'], 'form' => $contents[$i]['form'], 'params' => 'class="SpecialsBoxContents"', 'text' => $contents[$i]['text'])); } $info_box_contents[] = array(array('text' => tep_draw_separator('pixel_trans.gif', '100%', '1'))); return $this->tableBox($info_box_contents); } } class SpecialsBoxHeading extends tableBox { function SpecialsBoxHeading($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 . 'SpecialsBox/corner_left.gif'); } else { $left_corner = tep_image(DIR_WS_IMAGES . 'SpecialsBox/corner_right_left.gif'); } if ($right_arrow == true) { $right_arrow = '<a href="' . $right_arrow . '">' . tep_image(DIR_WS_IMAGES . 'SpecialsBox/arrow_right.gif', ICON_ARROW_RIGHT) . '</a>'; } else { $right_arrow = ''; } if ($right_corner == true) { $right_corner = $right_arrow . tep_image(DIR_WS_IMAGES . 'SpecialsBox/corner_right.gif'); } else { $right_corner = $right_arrow . tep_draw_separator('pixel_trans.gif', '11', '14'); } $info_box_contents = array(); $info_box_contents[] = array(array('params' => 'height="14" class="SpecialsBoxHeading"', 'text' => $left_corner), array('params' => 'width="100%" height="14" class="SpecialsBoxHeading"', 'text' => $contents[0]['text']), array('params' => 'height="14" class="SpecialsBoxHeading" nowrap', 'text' => $right_corner)); $this->tableBox($info_box_contents, true); } } //New TellaFriendBox Class class TellaFriendBox extends tableBox { function TellaFriendBox($contents) { $info_box_contents = array(); $info_box_contents[] = array('text' => $this->TellaFriendBoxContents($contents)); $this->table_cellpadding = '1'; $this->table_parameters = 'class="TellaFriendBox"'; $this->tableBox($info_box_contents, true); } function TellaFriendBoxContents($contents) { $this->table_cellpadding = '3'; $this->table_parameters = 'class="TellaFriendBoxContents"'; $info_box_contents = array(); $info_box_contents[] = array(array('text' => tep_draw_separator('pixel_trans.gif', '100%', '1'))); for ($i=0, $n=sizeof($contents); $i<$n; $i++) { $info_box_contents[] = array(array('align' => $contents[$i]['align'], 'form' => $contents[$i]['form'], 'params' => 'class="TellaFriendBoxContents"', 'text' => $contents[$i]['text'])); } $info_box_contents[] = array(array('text' => tep_draw_separator('pixel_trans.gif', '100%', '1'))); return $this->tableBox($info_box_contents); } } class TellaFriendBoxHeading extends tableBox { function TellaFriendBoxHeading($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 . 'TellaFriendBox/corner_left.gif'); } else { $l Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.