0byt3m1n1 - D7net
0byt3m1n1 - D7net
Path:
/
home
/
s13cf5ef
/
www
/
ropalaboralbarata.com
/
includes
/
classes
/
[
Home
]
Name File: boxes.php
< back
<?php /* $Id: boxes.php 1739 2007-12-20 00:52:16Z hpdl $ 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; } } // ********************************************************************************************** // ********************************************************************************************** // ************************ class infoBoxHeading class infoBoxHeading extends tableBox { function infoBoxHeading($contents, $left_corner = true, $right_corner = true, $right_arrow = false) { $this->table_cellpadding = '0'; $this->table_parameters = ' class="infoBoxHeading_table"'; if ($left_corner == true) { $left_corner = tep_image(DIR_WS_IMAGES . 'infoBoxHeading_tl.gif'); } else { $left_corner = tep_image(DIR_WS_IMAGES . 'infoBoxHeading_tl.gif'); } if ($right_arrow == true) { $right_arrow = ''; } else { $right_arrow = ''; } if ($right_corner == false) { $right_corner = $right_arrow . tep_image(DIR_WS_IMAGES . 'infoBoxHeading_tr.gif'); } else { $right_corner = $right_arrow . tep_image(DIR_WS_IMAGES . 'infoBoxHeading_tr.gif'); } $info_box_contents = array(); $info_box_contents[] = array(array('params' => ' class="infoBoxHeading_td"', 'text' => ' <div class="infoBoxHeading_tl"><div class="infoBoxHeading_tr"><div class="infoBoxHeading_tc fs_lh"></div></div></div> <div class="infoBoxHeading_div">'.$contents[0]['text'].'</div>')); $this->tableBox($info_box_contents, true); } } // ********************************************************************************************** // ************************ class 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="infoBox_table"'; $this->table_data_parameters = ' class="infoBox_td"'; $this->tableBox($info_box_contents, true); } function infoBoxContents($contents) { $this->table_cellpadding = '0'; $this->table_parameters = ' class="infoBoxContents_table"'; $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="boxText"', 'text' => '<div class="boxText_div ie_width_100">'.(isset($contents[$i]['text']) ? $contents[$i]['text'] : '').'</div> <div class="boxText_bl"><div class="boxText_br"><div class="boxText_bc fs_lh"></div></div></div>')); } return $this->tableBox($info_box_contents); } } // ********************************************************************************************** // ************************ class infoBoxHeading2 class infoBoxHeading2 extends tableBox { function infoBoxHeading2($contents, $left_corner = true, $right_corner = true, $right_arrow = false) { $this->table_cellpadding = '0'; $this->table_parameters = ' class="infoBoxHeading2_table"'; if ($left_corner == true) { $left_corner = tep_image(DIR_WS_IMAGES . 'infoBoxHeading_tl.gif'); } else { $left_corner = tep_image(DIR_WS_IMAGES . 'infoBoxHeading_tl.gif'); } if ($right_arrow == true) { $right_arrow = ''; } else { $right_arrow = ''; } if ($right_corner == false) { $right_corner = $right_arrow . tep_image(DIR_WS_IMAGES . 'infoBoxHeading_tr.gif'); } else { $right_corner = $right_arrow . tep_image(DIR_WS_IMAGES . 'infoBoxHeading_tr.gif'); } $info_box_contents = array(); $info_box_contents[] = array(array('params' => ' class="infoBoxHeading2_td"', 'text' => ''.$contents[0]['text'].'')); $this->tableBox($info_box_contents, true); } } // ********************************************************************************************** // ************************ class infoBox2 class infoBox2 extends tableBox { function infoBox2($contents) { $info_box_contents = array(); $info_box_contents[] = array('text' => $this->infoBoxContents($contents)); $this->table_cellpadding = '0'; $this->table_parameters = ' class="infoBox_table"'; $this->table_data_parameters = ' class="infoBox_td"'; $this->tableBox($info_box_contents, true); } function infoBoxContents($contents) { $this->table_cellpadding = '0'; $this->table_parameters = ' class="infoBoxContents2_table"'; $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="boxText"', 'text' => ''.(isset($contents[$i]['text']) ? $contents[$i]['text'] : '').' <div class="boxText2_bl"><div class="boxText2_br"><div class="boxText2_bc fs_lh"></div></div></div>')); } return $this->tableBox($info_box_contents); } } // ********************************************************************************************** // ************************ class infoBox3 class infoBox3 extends tableBox { function infoBox3($contents) { $info_box_contents = array(); $info_box_contents[] = array('text' => $this->infoBoxContents($contents)); $this->table_cellpadding = '0'; $this->table_parameters = ' class="infoBox_table"'; $this->table_data_parameters = ' class="infoBox_td"'; $this->tableBox($info_box_contents, true); } function infoBoxContents($contents) { $this->table_cellpadding = '0'; $this->table_parameters = ' class="infoBoxContents3_table"'; $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="boxText"', 'text' => '<div class="boxText_div ie_width_100">'.(isset($contents[$i]['text']) ? $contents[$i]['text'] : '').'</div> <div class="boxText3_bl"><div class="boxText3_br"><div class="boxText3_bc fs_lh"></div></div></div>')); } return $this->tableBox($info_box_contents); } } // ********************************************************************************************** // ************************ class infoBoxHeading3 class infoBoxHeading3 extends tableBox { function infoBoxHeading3($contents, $left_corner = true, $right_corner = true, $right_arrow = false) { $this->table_cellpadding = '0'; $this->table_parameters = ' class="infoBoxHeading_table"'; if ($left_corner == true) { $left_corner = tep_image(DIR_WS_IMAGES . 'infoBoxHeading_tl.gif'); } else { $left_corner = tep_image(DIR_WS_IMAGES . 'infoBoxHeading_tl.gif'); } if ($right_arrow == true) { $right_arrow = ''; } else { $right_arrow = ''; } if ($right_corner == false) { $right_corner = $right_arrow . tep_image(DIR_WS_IMAGES . 'infoBoxHeading_tr.gif'); } else { $right_corner = $right_arrow . tep_image(DIR_WS_IMAGES . 'infoBoxHeading_tr.gif'); } $info_box_contents = array(); $info_box_contents[] = array(array('params' => ' class="infoBoxHeading_td"', 'text' => ' <div class="infoBoxHeading_tl"><div class="infoBoxHeading_tr"><div class="infoBoxHeading_tc fs_lh"></div></div></div> <div class="infoBoxHeading3_div">'.$contents[0]['text'].'</div>')); $this->tableBox($info_box_contents, true); } } // ********************************************************************************************** // ********************************************************************************************** // ************************ class infoBox4 class infoBox4 extends tableBox { function infoBox4($contents) { $info_box_contents = array(); $info_box_contents[] = array('text' => $this->infoBoxContents($contents)); $this->table_cellpadding = '0'; $this->table_parameters = ' class="infoBox4_table"'; $this->table_data_parameters = ' class="infoBox4_td"'; $this->tableBox($info_box_contents, true); } function infoBoxContents($contents) { $this->table_cellpadding = '0'; $this->table_parameters = ' class="infoBoxContents4_table"'; $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="boxText"', 'text' => ''.(isset($contents[$i]['text']) ? $contents[$i]['text'] : '').'')); } return $this->tableBox($info_box_contents); } } // ********************************************************************************************** // ************************ class errorBox class errorBox extends tableBox { function errorBox($contents) { $this->table_data_parameters = 'class="errorBox"'; $this->tableBox($contents, true); } } // ********************************************************************************************** // ************************ class 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 class="prod_line_x padd_gg" colspan="'.(($x+$x)-1).'">'.tep_draw_separator('spacer.gif', '1', '1').'</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){ if($i == 0) { $tableBox_string .= '<td class="prod_line_y padd_vv">'.tep_draw_separator('spacer.gif', '1', '1').'</td>'; }else{ $tableBox_string .= '<td class="prod_line_y padd_vv">'.tep_draw_separator('spacer.gif', '1', '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; } if ($i >= 1) { $tableBox_string .= '>'.tep_draw_separator('spacer.gif', '1', '14').''; }else{ $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; } } // ********************************************************************************************** // ********************************************************************************************** // ************************ class 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="tableBox_output_table"'; $this->table_data_parameters = ' class="main"'; $this->tableBox_output($info_box_contents, true); } function contentBoxContents($contents) { $this->table_cellpadding = '0'; $this->table_parameters = ''; return $this->tableBox_output($contents); } } // ********************************************************************************************** // ********************************************************************************************** // ******************************** contentBoxHeading ******************************************* class contentBoxHeading extends tableBox { function contentBoxHeading($contents) { $this->table_cellpadding = '0'; $this->table_parameters = ' class="cont_heading_table"'; if ($left_corner == true) { $left_corner = tep_image(DIR_WS_IMAGES . 'cont_heading_tl.gif'); } else { $left_corner = tep_image(DIR_WS_IMAGES . 'cont_heading_tl.gif'); } if ($right_arrow == true) { $right_arrow = ''; } else { $right_arrow = ''; } if ($right_corner == false) { $right_corner = $right_arrow . tep_image(DIR_WS_IMAGES . 'cont_heading_tr.gif'); } else { $right_corner = $right_arrow . tep_image(DIR_WS_IMAGES . 'cont_heading_tr.gif'); } $info_box_contents = array(); $info_box_contents[] = array(array('params' => ' class="cont_heading_td"', 'text' => ' <div class="infoBoxHeading_tl"><div class="infoBoxHeading_tr"><div class="infoBoxHeading_tc fs_lh"></div></div></div> <div class="cont_heading_div" class="cont_heading_div ie_width_100">'.$contents[0]['text'].'</div>')); $this->tableBox($info_box_contents, true); } } // ************************************ contentBoxHeading_WHATS_NEW ***************************** class contentBoxHeading_WHATS_NEW extends tableBox { function contentBoxHeading_WHATS_NEW($contents) { $this->table_cellpadding = '0'; $this->table_parameters = ' class="cont_heading_table"'; if ($left_corner == true) { $left_corner = tep_image(DIR_WS_IMAGES . 'cont_heading_tl.gif'); } else { $left_corner = tep_image(DIR_WS_IMAGES . 'cont_heading_tl.gif'); } if ($right_arrow == true) { $right_arrow = ''; } else { $right_arrow = ''; } if ($right_corner == false) { $right_corner = $right_arrow . tep_image(DIR_WS_IMAGES . 'cont_heading_tr.gif'); } else { $right_corner = $right_arrow . tep_image(DIR_WS_IMAGES . 'cont_heading_tr.gif'); } $info_box_contents = array(); $info_box_contents[] = array(array('params' => ' class="cont_heading_td"', 'text' => ' <div class="infoBoxHeading_tl"><div class="infoBoxHeading_tr"><div class="infoBoxHeading_tc fs_lh"></div></div></div> <div class="cont_heading_div" class="cont_heading_div ie_width_100">'.BOX_HEADING_WHATS_NEW.'</div>')); $this->tableBox($info_box_contents, true); } } // **************************************** contentBoxHeading_ProdNew *************************** class contentBoxHeading_ProdNew extends tableBox { function contentBoxHeading_ProdNew($contents) { $this->table_cellpadding = '0'; $this->table_parameters = ' class="cont_heading_table"'; if ($left_corner == true) { $left_corner = tep_image(DIR_WS_IMAGES . 'cont_heading_tl.gif'); } else { $left_corner = tep_image(DIR_WS_IMAGES . 'cont_heading_tl.gif'); } if ($right_arrow == true) { $right_arrow = ''; } else { $right_arrow = ''; } if ($right_corner == false) { $right_corner = $right_arrow . tep_image(DIR_WS_IMAGES . 'cont_heading_tr.gif'); } else { $right_corner = $right_arrow . tep_image(DIR_WS_IMAGES . 'cont_heading_tr.gif'); } $info_box_contents = array(); $info_box_contents[] = array(array('params' => ' class="cont_heading_td"', 'text' => ' <div class="infoBoxHeading_tl"><div class="infoBoxHeading_tr"><div class="infoBoxHeading_tc fs_lh"></div></div></div> <div class="cont_heading_div" class="cont_heading_div ie_width_100">'.HEADING_TITLE.'</div>')); $this->tableBox($info_box_contents, true); } } // ********************************************************************************************** function tep_draw_title_top() { return $table = ' <table cellpadding="0" cellspacing="0" border="0" class="cont_heading_table"> <tr><td class="cont_heading_td"> <div class="infoBoxHeading_tl"><div class="infoBoxHeading_tr"><div class="infoBoxHeading_tc fs_lh"></div></div></div> <div class="cont_heading_div ie_width_100">'; } // ********************************************************************************************** function tep_draw_title_bottom() { return $table = '</div></td></tr> </table>'; } // ********************************************************************************************** // ********************************************************************************************** // ************************ class 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 = ''; // 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 != 0) { $tableBox_string.='<tr><td class="cart_line_x padd2_gg" colspan="'.(($x+$x)-1).'">'.tep_draw_separator('spacer.gif', '1', '1').'</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){ if($i == 0) { $tableBox_string .= '<td class="cart_line_y padd2_vv">'.tep_draw_separator('spacer.gif', '1', '1').'</td>'; }else{ $tableBox_string .= '<td class="cart_line_y padd2_vv">'.tep_draw_separator('spacer.gif', '1', '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; } if ($i >= 1) { $tableBox_string .= '>'; }else{ $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 .= '>' /* .tep_draw_shop_top_1() */ . $contents[$i]['text'] . /* tep_draw_shop_bottom_1(). */ '</td>' . "\n"; } $tableBox_string .= ' </tr>' . "\n"; /* if ($i >= 2) { */ $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="tableBox_shopping_cart main"'; $this->tableBox_shopping_cart($contents, true); } } // ********************************************************************************************** // ********************************************************************************************** // ********************************************************************************************** function tep_separat() { return $table = '<div style="padding:14px 0px 0px 0px;">'.tep_draw_separator('spacer.gif', '1', '1').'</div>';} // ********************************************************************************************** function tep_separat2() { return $table = '<div style="padding:3px 0px 0px 0px;">'.tep_draw_separator('spacer.gif', '1', '1').'</div>';} // ********************************************************************************************** // ********************************************************************************************** function tep_draw_top() { return $table = ' <table cellpadding="0" cellspacing="0" border="0" align="center" class="content_wrapper_table"> <tr><td class="content_wrapper_td">';} // ********************************************************************************************** function tep_draw_bottom() { return $table = '</td></tr> </table>';} // ********************************************************************************************** // ********************************************************************************************** // ********************************************************************************************** function tep_draw1_top() { return $table = ' <table cellpadding="0" cellspacing="0" border="0" class="content_wrapper1_table"> <tr><td class="content_wrapper1_td">';} // ********************************************************************************************** function tep_draw1_bottom() { return $table = '</td></tr> </table> <div class="content_wrapper_bl"><div class="content_wrapper_br"><div class="content_wrapper_bc fs_lh"></div></div></div>';} // ********************************************************************************************** // ********************************************************************************************** // ********************************************************************************************** function tep_draw2_top() { return $table = '<table cellpadding="0" cellspacing="0" border="0" class="content_wrapper2_table"><tr><td class="content_wrapper2_td">'; } // ********************************************************************************************** function tep_draw2_bottom() { return $table = '</td></tr></table>'; } // ********************************************************************************************** // ********************************************************************************************** function tep_draw4_top() { return $table = ' <table cellpadding="0" cellspacing="0" border="0" class="content_wrapper4_table"> <tr><td class="content_wrapper4_td">';} // ********************************************************************************************** function tep_draw4_bottom() { return $table = '</td></tr> </table> <div class="content_wrapper_bl"><div class="content_wrapper_br"><div class="content_wrapper_bc fs_lh"></div></div></div>';} // ********************************************************************************************** // ********************************************************************************************** // ********************************************************************************************** function tep_draw3_top() { return $table = ' <table cellpadding="0" cellspacing="0" border="0" class="content_wrapper3_table"> <tr><td class="content_wrapper3_td">';} // ********************************************************************************************** function tep_draw3_bottom() { return $table = '</td></tr> </table> <div class="content_wrapper_bl"><div class="content_wrapper_br"><div class="content_wrapper_bc fs_lh"></div></div></div>';} // ********************************************************************************************** // ********************************************************************************************** function tep_draw5_top() { return $table = ' <table cellpadding="0" cellspacing="0" border="0" class="table"><tr><td class="padd_5">';} // ********************************************************************************************** function tep_draw5_bottom() { return $table = '</td></tr></table>';} // ********************************************************************************************** // ********************************************************************************************** function tep_draw_prod_pic2_top() { return $table = ' <table cellpadding="0" cellspacing="0" border="0" align="center" class="wrapper_pic2_table"> <tr><td class="wrapper_pic2_td">'; } // ********************************************************************************************** function tep_draw_prod_pic2_bottom() { return $table = '</td></tr> </table> '; } // ********************************************************************************************** // ********************************************************************************************** function tep_draw_prod_pic_top() { return $table = ' <table cellpadding="0" cellspacing="0" border="0" align="center" class="wrapper_pic_table"> <tr><td class="wrapper_pic_td">'; } // ********************************************************************************************** function tep_draw_prod_pic_bottom() { return $table = '</td></tr> </table>'; } // ********************************************************************************************** // ********************************************************************************************** function tep_draw_prod_top() {return $table = ' <table cellpadding="0" cellspacing="0" border="0" class="prod_table"> <tr><td class="prod_td">';} // ********************************************************************************************** function tep_draw_prod_bottom() { return $table = '</td></tr> </table>';} // ********************************************************************************************** // ********************************************************************************************** function tep_draw_prod2_top() {return $table = ' <table cellpadding="0" cellspacing="0" border="0" class="prod2_table"> <tr><td class="prod2_td">';} // ********************************************************************************************** function tep_draw_prod2_bottom() { return $table = '</td></tr> </table>';} // ********************************************************************************************** // ********************************************************************************************** function panel_top(){ require(DIR_WS_BOXES . 'panel_top.php');} // ********************************************************************************************** function tep_draw_price_top() { return $table = ''; } // ********************************************************************************************** function tep_draw_price_bottom() { return $table = '';} // ********************************************************************************************** // ********************************************************************************************** function tep_pixel_trans() { return $table = '<div style="padding:0px 0px 0px 0px;">'.tep_draw_separator('spacer.gif', '1', '1').'</div>';} // ********************************************************************************************** // ********************************************************************************************** function tep_draw_side_top() { return $table = '';} // ********************************************************************************************** function tep_draw_side_bottom() { return $table = '';} // ********************************************************************************************** // ********************************************************************************************** function tep_draw_name_top() { return $table = ''; } // ********************************************************************************************** function tep_draw_name_bottom() { return $table = ''; } // ********************************************************************************************** // ********************************************************************************************** function tep_draw_name2_top() { return $table = ''; } // ********************************************************************************************** function tep_draw_name2_bottom() { return $table = ''; } // ********************************************************************************************** // ********************************************************************************************** function tep_draw_result1_top() { return $table = '<div class="result result1_top"><div class="result1_bottom">'; } // ********************************************************************************************** function tep_draw_result1_bottom() { return $table = '</div></div>'; } // ********************************************************************************************** // ********************************************************************************************** function tep_draw_result2_top() { return $table = '<div class="result result2_top"><div class="result2_bottom">'; } // ********************************************************************************************** function tep_draw_result2_bottom() { return $table = '</div></div>'; } // **********************************************************************************************'.tep_draw_list_wrapper_top().' // ********************************************************************************************** function tep_draw_infoBox2_top() { return $table = '<table cellpadding="0" cellspacing="5" border="0"><tr><td>'; } // ********************************************************************************************** function tep_draw_infoBox2_bottom() { return $table = '</td></tr></table>'; } // ********************************************************************************************** // ********************************************************************************************** function tep_draw_infoBox_top() {return $table = '<div class="infoBox_"><div class="infoBox__ ie_width_100">'; } // ********************************************************************************************** function tep_draw_infoBox_bottom() {return $table = '</div></div>'; } // ********************************************************************************************** // ********************************************************************************************** function tep_draw_list_top() { return $table = ' <div class="wrapper_corner-bg"> <div class="wrapper_corner-b"> <div class="wrapper_corner-l"> <div class="wrapper_corner-tl"> <div class="wrapper_corner-tr"> <div class="wrapper_corner-bl"> <div class="wrapper_corner-br a">';} // ********************************************************************************************** function tep_draw_list_bottom() { return $table = '</div> </div> </div> </div> </div> </div> </div>';} // ********************************************************************************************** // ********************************************************************************************** function tep_draw_list_act_top() { return $table = ' <div class="wrapper_corner-bg-act"> <div class="wrapper_corner-b-act"> <div class="wrapper_corner-l-act"> <div class="wrapper_corner-tl-act"> <div class="wrapper_corner-tr-act"> <div class="wrapper_corner-bl-act"> <div class="wrapper_corner-br-act a">';} // ********************************************************************************************** function tep_draw_list_act_bottom() { return $table = '</div> </div> </div> </div> </div> </div> </div>';} // ********************************************************************************************** // ************************ class infoBox_search_criteria class infoBox_search_criteria extends tableBox { function infoBox_search_criteria($contents) { $info_box_contents = array(); $info_box_contents[] = array('text' => $this->infoBoxContents($contents)); $this->table_cellpadding = '0'; $this->table_parameters = ''; $this->tableBox($info_box_contents, true); } function infoBoxContents($contents) { $this->table_cellpadding = '3'; $this->table_parameters = ''; $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 search_in"', 'text' => (isset($contents[$i]['text']) ? $contents[$i]['text'] : ''))); } return $this->tableBox($info_box_contents); } } // ********************************************************************************************** // ********************************************************************************************** // ********************************************************************************************** // ********************************************************************************************** // ********************************************************************************************** // ************************ class tableBox_output1 class tableBox_output1 { 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_output1($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 class="prod_line_x padd_gg" colspan="'.(($x+$x)-1).'">'.tep_draw_separator('spacer.gif', '1', '1').'</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){ if($i == 0) { $tableBox_string .= '<td class="prod_line_y padd_vv">'.tep_draw_separator('spacer.gif', '1', '1').'</td>'; }else{ $tableBox_string .= '<td class="prod_line_y padd_vv">'.tep_draw_separator('spacer.gif', '1', '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; } if ($i >= 1) { $tableBox_string .= '>'; }else{ $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; } } // ********************************************************************************************** // ************************ class tableBox_output1 class contentBox1 extends tableBox_output1 { function contentBox1($contents) { $info_box_contents = array(); $info_box_contents[] = array('text' => $this->contentBoxContents($contents)); $this->table_cellpadding = '0'; $this->table_parameters = ''; $this->table_data_parameters = ' class="tableBox_output1_td main"'; $this->tableBox_output1($info_box_contents, true); } function contentBoxContents($contents) { $this->table_cellpadding = '0'; $this->table_parameters = ''; return $this->tableBox_output1($contents); } } // ********************************************************************************************** // ************************ class tableBox_output2 class tableBox_output2 { 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_output2($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 class="prod_line_x padd3_gg" colspan="'.(($x+$x)-1).'">'.tep_draw_separator('spacer.gif', '1', '1').'</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){ if($i == 0) { $tableBox_string .= '<td class="prod_line_y padd3_vv">'.tep_draw_separator('spacer.gif', '1', '1').'</td>'; }else{ $tableBox_string .= '<td class="prod_line_y padd3_vv">'.tep_draw_separator('spacer.gif', '1', '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; } if ($i >= 1) { $tableBox_string .= '>'; }else{ $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; } } // ********************************************************************************************** // ************************ class tableBox_output2 class contentBox2 extends tableBox_output2 { function contentBox2($contents) { $info_box_contents = array(); $info_box_contents[] = array('text' => $this->contentBoxContents($contents)); $this->table_cellpadding = '0'; $this->table_parameters = ''; $this->table_data_parameters = ' class="tableBox_output2_td main"'; $this->tableBox_output2($info_box_contents, true); } function contentBoxContents($contents) { $this->table_cellpadding = '0'; $this->table_parameters = ''; return $this->tableBox_output2($contents); } } // ********************************************************************************************** // ************************ class infoBox_header class infoBox_header extends tableBox { function infoBox_header($contents) { $info_box_contents = array(); $info_box_contents[] = array('text' => $this->infoBoxContents($contents)); $this->table_cellpadding = '0'; $this->table_parameters = ''; $this->tableBox($info_box_contents, true); } function infoBoxContents($contents) { $this->table_cellpadding = '0'; $this->table_parameters = ' style="width:332px;"'; $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); } } // ********************************************************************************************** ?>
©
2018. | Recode by D7net