Jin Kazuya Posted June 30, 2007 Share Posted June 30, 2007 congratulations for contribI've installed it on my store, but I've a big problem with the pages lenght. I'd like to insert a scroll bar in central pages. It's possible?? for example www.centroculus.it/catalog/faq.php Best regard pasquale Your solution is here : http://www.richinstyle.com/test/dynamic/overflowscroll.html Quote Link to comment Share on other sites More sharing options...
loziofester Posted June 30, 2007 Share Posted June 30, 2007 Your solution is here : http://www.richinstyle.com/test/dynamic/overflowscroll.html wauuuuuuu. thanks for the answer. it is just what I wanted. But I have not understood how realizing it. Would you explain to me? thanks. excuse my bad English best regard Quote Link to comment Share on other sites More sharing options...
Jin Kazuya Posted June 30, 2007 Share Posted June 30, 2007 (edited) Je parle mieux en français si tu préfères... Si quieres puedo hablar Castellano... If you are looking for something like we see at the bottom at this page http://jinkazuya.creezvotreboutique.com/in...php?cPath=21_22 use the following : <div style="OVERFLOW: auto; WIDTH: 575px; HEIGHT: 207px"> Here your text ! Here your text ! Here your text ! Here your text ! Here your text ! Here your text ! Here your text ! Here your text ! Here your text ! Here your text ! Here your text ! Here your text ! Here your text ! Here your text ! Here your text ! Here your text ! Here your text ! Here your text ! Here your text ! Here your text ! Here your text ! Here your text ! Here your text ! Here your text ! </div> Of course, customize WIDTH and HEIGHT at your resquest. Edited June 30, 2007 by Jin Kazuya Quote Link to comment Share on other sites More sharing options...
loziofester Posted July 2, 2007 Share Posted July 2, 2007 Je parle mieux en français si tu préfères...Si quieres puedo hablar Castellano... If you are looking for something like we see at the bottom at this page http://jinkazuya.creezvotreboutique.com/in...php?cPath=21_22 use the following : <div style="OVERFLOW: auto; WIDTH: 575px; HEIGHT: 207px"> Here your text ! Here your text ! Here your text ! Here your text ! Here your text ! Here your text ! Here your text ! Here your text ! Here your text ! Here your text ! Here your text ! Here your text ! Here your text ! Here your text ! Here your text ! Here your text ! Here your text ! Here your text ! Here your text ! Here your text ! Here your text ! Here your text ! Here your text ! Here your text ! </div> Of course, customize WIDTH and HEIGHT at your resquest. I wouldn't want to seem to you stupid, but just I do not know how to make it. I have not understood where it goes inserted this code. I have to modify the style css? or the page that I have indicated in the link? could you explain step step to me? thanks you, very kind Quote Link to comment Share on other sites More sharing options...
icelos69 Posted August 17, 2007 Share Posted August 17, 2007 great mod! installed as instructed, works as advertised! Quote Link to comment Share on other sites More sharing options...
jane_air Posted August 22, 2007 Share Posted August 22, 2007 (edited) Hi, I have installed the mod too, but have some questions. My boxes are resizing every time with different with, depending on their content. Is there a way to make them with fixed with. I tryed with the new syles in the stylesheet.css, but it just don't work. I'll try to change the quick search botton icon and thet will make the search bix smaller, but there is nothing I can do for the "tell to a friend" box. What I have done can be seen here: izgodno.be Thnx in advantage! Great contrib. :) Edited August 22, 2007 by jane_air Quote Link to comment Share on other sites More sharing options...
diyAUDIOsupply Posted January 24, 2008 Share Posted January 24, 2008 Hello Everyone. Can someone guide me to the correct layer in the .PSD files so I can change the color of the graphic borders. I have tried everything I know to change them in Photoshop but do not seem to be getting the result I am looking for. I tried just changing the background color but that did not work as I would expect it would. Has anyone ever changed the color of the borders? It should be cinch with photoshop but I think I must be missing something along the way. Cheers, Dvaid Quote Link to comment Share on other sites More sharing options...
mathius Posted January 27, 2008 Share Posted January 27, 2008 (edited) Hi I have managed to get graphical borders working on my site, All the infoboxes exept the RSS News addon is displaying the borders correctly heres the code my site is http://members.tronix.co.nz/catalog/index.php any help would be appreciated thanks <?php /* $Id: rss_news.php,v 0.9 2003/02/10 22:31:00 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions [url="http://www.oscommerce.com"]http://www.oscommerce.com[/url] Copyright © 2003 osCommerce Released under the GNU General Public License AZER changé FILENAME_RSS to FILENAME_RSS_NEWS pour compatibilité */ ?> <!-- rss_news //--> <tr> <td> <?php include(DIR_WS_CLASSES . '/' . FILENAME_LAST_RSS); $info_box_contents = array(); $info_box_contents[] = array('text' => BOX_HEADING_RSS_NEWS); new infoBoxHeading($info_box_contents, false, false); $info_box_contents = array(); // Create lastRSS object $rss = new lastRSS; // Set cache dir and cache time limit (minimum 1200 seconds) // (don't forget to chmod cache dir to 777 to allow writing) $rss->cache_dir = './rsscache'; $rss->cache_time = 3600; ?> <table border="0" width="100%" cellspacing="0" cellpadding="1" class="infoBox"> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="3" class="infoBoxContents"> <tr> <td></td> </tr> <tr> <td class="infoBoxContents"> <marquee direction="up" height="150" scrollAmount="2" onMouseover="scrollAmount=0" onMouseout="scrollAmount=2"> <?php if ($rs = $rss->get(AZER_RSSNEWS_URL)) { // todosih mettre en variable foreach($rs['items'] as $item) { echo "<br><FONT SIZE=1><b><a href=\"$item[link]\" target=\"_blank\" > ".$item['title']."</b> </a><br/>".$item['description']."</br>\n"; } } ?> </marquee> </td> </tr> <tr> <td align="center"><?php echo '<a href="' . tep_href_link(FILENAME_RSS_NEWS) . '">' . tep_image(DIR_WS_IMAGES . 'xml_rss2.png', 'RSS') . '</a>'; ?></td> </tr> </table> </td> </tr> </table> </td> </tr> <!-- rss_news_eof //--> / Edited January 27, 2008 by mathius Quote Link to comment Share on other sites More sharing options...
hashi Posted March 11, 2008 Share Posted March 11, 2008 Hi, I am using the Graphical_Borders_v2.1 in my store and I find it as a very useful one as it helps to get rid of the default oscommerce look. However I find a difficulty in changing the font sizes of the box contents. My store is http://espresso4you.ca/ and I wanted to change the font size of the right column box contents (category names etc. )as the current size is very small. As advised I tried changing it through the .infoBoxContents style but nothing happens to the interface. Can you pls. advice me to overcome this problem. Thanks in advance. Quote Link to comment Share on other sites More sharing options...
ronrrico Posted March 17, 2008 Share Posted March 17, 2008 Hi Guys, I'm trying insert a scrip in the header of a Graphical Borders box I currently have this for my categories page: <?php echo mws_header(HEADING_SUBCATEGORIES); ?> I want to replace HEADING_SUBCATEGORIES w/ the breadcrumb trail like this, <?php echo mws_header ($breadcrumb->trail);?> I get nothing! I have spent hours trying to figure this out! Can someone tell me how can I get this done??? Thanks, in advance Ronrrico Quote Link to comment Share on other sites More sharing options...
Guest Posted June 4, 2008 Share Posted June 4, 2008 I'm trying to remove this contribution but its proving tricky, has anyone else managed to remove it, It doesn't have to be a total flush just a fix to disable it and allow STS Infoboxes to function? I like the contribution, but I need more control over the individual boxes, I tried creating a new class in- /includes/classes/boxes.php and then changed the individual box files to read from the new class rather than the infoBox class, this stopped Graphical Boxes from doing its thing, but didn't allow me to take control of the box using the STS template infoboxes. unless there is some addition to this contribution to allow more control than just 1 style for infoxboxes and 1 style for the contents box? thanks in advance for any help Quote Link to comment Share on other sites More sharing options...
desiredin Posted November 20, 2008 Share Posted November 20, 2008 I am having a problem with the info box width. IE, Firefox, and Opera show the boxes at the OSC standard (125px or whatever). But Chrome and Safari are shrinking them down to the size needed by the content. Which throws the continuity out the window. Any ideas? Quote Link to comment Share on other sites More sharing options...
usvi4me Posted November 27, 2008 Share Posted November 27, 2008 I am having a problem with the info box width. IE, Firefox, and Opera show the boxes at the OSC standard (125px or whatever). But Chrome and Safari are shrinking them down to the size needed by the content. Which throws the continuity out the window. Any ideas? After installing graphical borders I had a couple of infoboxes that did not line up correctly. I made a change in the style sheet and added: width: 180px; (note: your width may vary but play around with it) in the mws_boxTop style Hope this will fix it for you as well. Quote Link to comment Share on other sites More sharing options...
desiredin Posted November 27, 2008 Share Posted November 27, 2008 (edited) Perfect. Works like a charm. :) I hate it when browsers follow the rules. Heh. Thanks a bunch. Edited November 27, 2008 by desiredin Quote Link to comment Share on other sites More sharing options...
halluzineyt Posted December 21, 2009 Share Posted December 21, 2009 class productListingBox extends tableBox { function productListingBox($contents) { $this->table_parameters = 'class="productListing"'; $this->tableBox($contents, true); } } my boxex.php seems to be different i cant find these code? can you help me.. here is my boxes.php <?php /* $Id: boxes.php,v 1.33 2003/06/09 22:22:50 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 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 = '0'; var $table_parameters = ''; var $table_row_parameters = ''; var $table_data_parameters = ''; // class constructor function tableBox($contents, $direct_output = false) { $tableBox_string = '<table border="' . tep_output_string($this->table_border) . '" width="' . tep_output_string($this->table_width) . '" cellspacing="' . tep_output_string($this->table_cellspacing) . '" cellpadding="' . tep_output_string($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 (isset($contents[$i][0]) && 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="' . tep_output_string($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="' . tep_output_string($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; } } // ------------------ infoBoxHeading ---------- 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.gif'); } else { $left_corner = tep_image(DIR_WS_IMAGES . 'infobox/corner_right_left.gif'); } 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 = ''; } if ($right_corner == true) { $right_corner = $right_arrow . tep_image(DIR_WS_IMAGES . 'infobox/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' => ' class="column_left_header_txt"', 'text' => ''.$contents[0]['text'].'')); $this->tableBox($info_box_contents, true); } } // ------------------ infoBox ---------- class infoBox extends tableBox { function infoBox($contents) { $info_box_contents = array(); $info_box_contents[] = array('text' => $this->infoBoxContents($contents)); $this->table_cellpadding = '0'; $this->table_parameters = 'class=""'; $this->tableBox($info_box_contents, true); } function infoBoxContents($contents) { $this->table_cellpadding = '0'; $this->table_parameters = 'class=""'; $info_box_contents = array(); 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="column_left"', 'text' => '<br style="line-height:12px">'.(isset($contents[$i]['text']) ? $contents[$i]['text'] : '').'<br style="line-height:1px;"><br style="line-height:10px;">')); } return $this->tableBox($info_box_contents); } } // ------------------ contentBoxHeading ---------- class contentBoxHeading extends tableBox { function contentBoxHeading($contents) { $this->table_width = ''; $this->table_cellpadding = '0'; $this->table_parameters = ' class="b"'; $info_box_contents = array(); $info_box_contents[] = array( array('params' => ' class="content_header_txt"', 'text' => ''.$contents[0]['text'].'<br style="line-height:1px;"><br style="line-height:10px;">')); $this->tableBox($info_box_contents, true); } } //----------------------------------------------- tableBox_output ---------------------------------- class tableBox_output { var $table_border = '0'; var $table_width = ''; var $table_cellspacing = '0'; var $table_cellpadding = '0'; var $table_parameters = ''; var $table_row_parameters = ''; var $table_data_parameters = ''; // class constructor function tableBox_output($contents, $direct_output = false) { $tableBox_string = '<table border="' . tep_output_string($this->table_border) . '" width="' . tep_output_string($this->table_width) . '" cellspacing="' . tep_output_string($this->table_cellspacing) . '" cellpadding="' . tep_output_string($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"; if ($i != 0) { $tableBox_string .= ' <tr><td height="7" colspan="3"></td></tr> ';} $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 (isset($contents[$i][0]) && 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'])) { if ($x >= 1) { $tableBox_string .= '<td height="150">'.tep_draw_separator('spacer.gif', '6', '1').'</td>';} $tableBox_string .= ' <td'; if (isset($contents[$i][$x]['align']) && tep_not_null($contents[$i][$x]['align'])) $tableBox_string .= ' align="' . tep_output_string($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="' . tep_output_string($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; } } //---------------- tableBox_output --------------------- class contentBox extends tableBox_output { function contentBox($contents) { $info_box_contents = array(); $info_box_contents[] = array('text' => $this->contentBoxContents($contents)); $this->table_cellpadding = '0'; $this->table_parameters = ' class="box_width_cont product product1"'; $this->tableBox_output($info_box_contents, true); } function contentBoxContents($contents) { $this->table_cellpadding = ''; $this->table_parameters = 'class=""'; return $this->tableBox_output($contents); } } //---------------- contentBoxHeading_WHATS_NEW --------------------- class contentBoxHeading_WHATS_NEW extends tableBox { function contentBoxHeading_WHATS_NEW($contents) { $this->table_width = '%'; $this->table_cellpadding = '0'; $this->table_parameters = ' class="b"'; $info_box_contents = array(); $info_box_contents[] = array(array('params' => ' class="content_header_txt"', 'text' => ''.BOX_HEADING_WHATS_NEW.'')); $this->tableBox($info_box_contents, true); } } //---------------- contentBoxHeading_ProdNew --------------------- class contentBoxHeading_ProdNew extends tableBox { function contentBoxHeading_ProdNew($contents) { $this->table_width = '100%'; $this->table_cellpadding = '0'; $this->table_parameters = ' class="b"'; $info_box_contents = array(); $info_box_contents[] = array(array('params' => ' class="content_header_txt"', 'text' => ''.HEADING_TITLE.'')); $this->tableBox($info_box_contents, true); } } class errorBox extends tableBox { function errorBox($contents) { $this->table_data_parameters = 'class="errorBox"'; $this->tableBox($contents, true); } } //---------------- tableBox_shopping_cart --------------------- class tableBox_shopping_cart { var $table_border = '0'; var $table_width = ''; var $table_cellspacing = '0'; var $table_cellpadding = '0'; var $table_parameters = ''; var $table_row_parameters = ''; var $table_data_parameters = 'style=""'; // class constructor function tableBox_shopping_cart($contents, $direct_output = false) { $tableBox_string = '<table border="' . tep_output_string($this->table_border) . '" width="' . tep_output_string($this->table_width) . '" cellspacing="' . tep_output_string($this->table_cellspacing) . '" cellpadding="' . tep_output_string($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"; if ($i >= 2) { $tableBox_string .= ' <tr><td height="1" colspan="7" style="background:url(images/4_line.gif) left top repeat-x;"></td></tr> ';} $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 (isset($contents[$i][0]) && 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'])) { if (($x >= 1)&&($i == 0)){ $tableBox_string .= '<td bgcolor="#DDDDDD">'.tep_draw_separator('spacer.gif', '1', '1').'</td>'; } elseif ($x >= 1) { $tableBox_string .= '<td class="bg22">'.tep_draw_separator('spacer.gif', '1', '1').'</td>'; } $tableBox_string .= ' <td style=" width:50%;"'; if (isset($contents[$i][$x]['align']) && tep_not_null($contents[$i][$x]['align'])) $tableBox_string .= ' align="' . tep_output_string($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 ($i == 0) $tableBox_string .= tep_draw_prod_top(); else $tableBox_string .= tep_draw_prod_top_1(); 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>'; if ($i == 0) $tableBox_string .= tep_draw_prod_bottom(); else $tableBox_string .= tep_draw_prod_bottom_1(); $tableBox_string .= '</td>' . "\n"; } } } else { $tableBox_string .= ' <td style=" width:50%;"'; if (isset($contents[$i]['align']) && tep_not_null($contents[$i]['align'])) $tableBox_string .= ' align="' . tep_output_string($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 .= '>'.tep_draw_prod_top_1() . $contents[$i]['text'] . tep_draw_prod_bottom_1().'</td>' . "\n"; } $tableBox_string .= ' </tr>' . "\n"; if ($i >=1 ) { $tableBox_string .= ' '; } 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; } } class productListingBox extends tableBox_shopping_cart { function productListingBox($contents) { $this->table_parameters = ' class="box_width_cont product"'; $this->tableBox_shopping_cart($contents, true); } } // -------------------------------------- -------------------------- function tep_draw_heading_top() { /* require(DIR_WS_BOXES . 'panel_top.php'); */ echo ''; } // -------------------------------------- -------------------------- function tep_draw_heading_bottom() { echo ''; } // -------------------------------------- -------------------------- function tep_draw_heading_top_2() { /* require(DIR_WS_BOXES . 'panel_top.php'); */ echo ''; } // -------------------------------------- -------------------------- function tep_draw_heading_bottom_2() { echo ''; } // -------------------------------------- -------------------------- function tep_draw_heading_top_3() { /* require(DIR_WS_BOXES . 'panel_top.php'); */ echo ' '; } // -------------------------------------- -------------------------- function tep_draw_heading_bottom_3() { echo ''; } // -------------------------------------- -------------------------- function tep_draw_prod_info() { echo ' '; } // -------------------------------------- -------------------------- // -------------------------------------- -------------------------- // -------------------------------------- -------------------------- function tep_draw_heading_top_1() { echo ' '; } // -------------------------------------- -------------------------- function tep_draw_heading_bottom_1() { echo ' '; } // -------------------------------------- -------------------------- // -------------------------------------- -------------------------- // -------------------------------------- -------------------------- function tep_draw_prod_t() { return $table = ' <table cellpadding="0" cellspacing="0" border="1" class="bg3"> <tr><td style=" border:20px solid #ffffff;border-width:0px 18px 0px 18px;"> '; // -------------------------------------- -------------------------- } function tep_draw_prod_b() { return $table = ' </td></tr> </table> '; } // -------------------------------------- -------------------------- function tep_draw_prod_top() { return $table = ' '; } // -------------------------------------- -------------------------- function tep_draw_prod_bottom() { return $table = ''; } // -------------------------------------- -------------------------- function tep_draw_prod_top_1() { return $table = ' '; } // -------------------------------------- -------------------------- function tep_draw_prod_bottom_1() { return $table = ''; } // -------------------------------------- -------------------------- function tep_draw_result_top() { echo ''; } // -------------------------------------- -------------------------- function tep_draw_result_bottom() { echo ''; } // -------------------------------------- -------------------------- // ------------------ infoBox_77 ---------- class infoBox_77 extends tableBox { function infoBox_77($contents) { $info_box_contents = array(); $info_box_contents[] = array('text' => $this->infoBoxContents($contents)); $this->table_cellpadding = '0'; $this->table_parameters = 'class=""'; $this->tableBox($info_box_contents, true); } function infoBoxContents($contents) { $this->table_cellpadding = '0'; $this->table_parameters = ' class="product"'; $info_box_contents = array(); 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' => '', 'text' => ''.(isset($contents[$i]['text']) ? $contents[$i]['text'] : '').'')); } return $this->tableBox($info_box_contents); } } // ------------------ infoBox_78 ---------- class infoBox_78 extends tableBox { function infoBox_78($contents) { $info_box_contents = array(); $info_box_contents[] = array('text' => $this->infoBoxContents($contents)); $this->table_cellpadding = '0'; $this->table_cellspacing = '1'; $this->table_parameters = 'class="infoBox"'; $this->tableBox($info_box_contents, true); } function infoBoxContents($contents) { $this->table_cellpadding = '0'; $this->table_cellspacing = '15'; $this->table_parameters = 'class="infoBoxContents "'; $info_box_contents = array(); 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="main"', 'text' => ''.(isset($contents[$i]['text']) ? $contents[$i]['text'] : '').'')); } return $this->tableBox($info_box_contents); } } ?> pls check? 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.