tuppergirl Posted July 28, 2005 Share Posted July 28, 2005 Hi all, After many tries, I'm still unable to get it right. I'm looking for some in fitting in the two sets of codes below... How to combine both sets of codes into one? Catalog/Includes/column_left.php <?php/* $Id: column_left.php,v 1.13 2002/06/16 22:08:05 lango Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2002 osCommerce Released under the GNU General Public License */ $column_query = tep_db_query('select configuration_column as cfgcol, configuration_title as cfgtitle, configuration_value as cfgvalue, configuration_key as cfgkey, box_heading from ' . TABLE_THEME_CONFIGURATION . ' order by location'); while ($column = tep_db_fetch_array($column_query)) { $column['cfgtitle'] = str_replace(' ', '_', $column['cfgtitle']); $column['cfgtitle'] = str_replace("'", '', $column['cfgtitle']); if ( ($column[cfgvalue] == 'yes') && ($column[cfgcol] == 'left')) { define($column['cfgkey'],$column['box_heading']); if ( file_exists(DIR_WS_BOXES . $column['cfgtitle'] . '.php') ) { require(DIR_WS_BOXES . $column['cfgtitle'] . '.php'); } } } ?> And this....... <?php /* $Id: column_left.php,v 1.15 2003/07/01 14:34:54 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Released under the GNU General Public License */ if (COLUMN_LEFT_SLICE_SET != 0){ $slice_set = COLUMN_LEFT_SLICE_SET; $bgcol = constant('INFOBOX_SKIN_BGCOL' . $slice_set); echo '<table border="0" width="100%" cellspacing="0" cellpadding="0"'; echo '<tr height="100%">'; echo '<td width="' . BOX_WIDTH . '" valign="top" height="100%">'; echo '<table cellspacing="0" cellpadding="0" border="0" height="100%"><tr><td><img src="images/slice_sets/' . $slice_set . '/top_left.jpg"></td>' . '<td background = "' . DIR_WS_IMAGES . 'slice_sets/' . $slice_set . '/top_background.jpg" class="newinfobox_top' . $slice_set . '" valign="middle" align="center" width="100%">' . $header_text; echo '</td><td><img src="images/slice_sets/' . $slice_set . '/top_right.jpg"></td></tr>'; echo '<tr><td background = "' . DIR_WS_IMAGES . 'slice_sets/' . $slice_set . '/left_background.jpg" height="100%"></td>'; echo '<td bgcolor = "' . $bgcol . '" valign="top" width="100%" height="100%">' ; echo '<table cellspacing="0" cellpadding="0" border="0">'; } else { ?> <table border="0" width="100%" cellspacing="3" cellpadding="3"> <tr> <td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2"> <?php } if ((USE_CACHE == 'true') && empty($SID)) { echo tep_cache_categories_box(); } else { include(DIR_WS_BOXES . 'categories.php'); } if ((USE_CACHE == 'true') && empty($SID)) { echo tep_cache_manufacturers_box(); } else { include(DIR_WS_BOXES . 'manufacturers.php'); } require(DIR_WS_BOXES . 'whats_new.php'); require(DIR_WS_BOXES . 'search.php'); require(DIR_WS_BOXES . 'information.php'); if (COLUMN_LEFT_SLICE_SET != 0){ echo '</table>'; echo '</td><td background = "' . DIR_WS_IMAGES . 'slice_sets/' . $slice_set . '/right_background.jpg"></td></tr>'; echo '<tr><td><img src="images/slice_sets/' . $slice_set . '/bottom_left.jpg"></td>'; echo '<td background = "' . DIR_WS_IMAGES . 'slice_sets/' . $slice_set . '/bottom_background.jpg"></td>'; echo '<td><img src="images/slice_sets/' . $slice_set . '/bottom_right.jpg"></td></tr></table></td>'; } else echo '</table></td>'; ?> can a coder help? Thanks Quote Link to comment Share on other sites More sharing options...
tuppergirl Posted July 28, 2005 Author Share Posted July 28, 2005 Please ignored this post. I've managed to figure it out. Finally...... :-" 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.