} $xoopsTpl->assign("sortfield", tep_draw_hidden_field('sort', $HTTP_GET_VARS['sort'])); while ($filterlist = tep_db_fetch_array($filterlist_query)) { $options[] = array('id' => $filterlist['id'], 'text' => $filterlist['name']); } $xoopsTpl->assign("filterid", tep_draw_pull_down_menu('filter_id', $options, isset($HTTP_GET_VARS['filter_id']) ? $HTTP_GET_VARS['filter_id'] : '', 'onchange="this.form.submit()"')); } } // Get the right image for the top-right $image = DIR_WS_IMAGES . 'table_background_list.gif'; if (isset($HTTP_GET_VARS['manufacturers_id'])) { $image = tep_db_query("select manufacturers_image from " . TABLE_MANUFACTURERS . " where manufacturers_id = '" . (int) $HTTP_GET_VARS['manufacturers_id'] . "'"); $image = tep_db_fetch_array($image); $image = $image['manufacturers_image']; } elseif ($current_category_id) { $image = tep_db_query("select categories_image from " . TABLE_CATEGORIES . " where categories_id = '" . (int) $current_category_id . "'"); $image = tep_db_fetch_array($image); $image = $image['categories_image']; } $xoopsTpl->assign("top_image", tep_image(DIR_WS_IMAGES . $image, HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT)); include DIR_WS_MODULES . FILENAME_PRODUCT_LISTING; } else { // default page $xoopsTpl->assign("default", 1); $xoopsTpl->assign("back_image", tep_image(DIR_WS_IMAGES . 'table_background_default.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT)); $xoopsTpl->assign("greeting", tep_customer_greeting()); include DIR_WS_MODULES . FILENAME_NEW_PRODUCTS; include DIR_WS_MODULES . FILENAME_UPCOMING_PRODUCTS; } include_once XOOPS_ROOT_PATH . '/footer.php'; include "includes/application_bottom.php";
?> </td> </tr> </table></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?> </td> </tr> <tr> <td><table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td class="main"><?php echo tep_customer_greeting(); ?> </td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?> </td> </tr> <tr> <td class="main"><?php echo TEXT_MAIN; ?> </td> </tr>