marcsessoms Posted December 10, 2007 Posted December 10, 2007 Hey guys. i have reworked a new index.php and got it the way I want it. However when I clink a link in my categories it doesnttake me to the category, it reloads my index.php. I know I am forgetting some code if not all of it. I know I need something else, but I dont know what and I dont know where to put it. Thanks. <?php /* $Id: index.php,v 1.1 2003/06/11 17:37:59 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2003 osCommerce Released under the GNU General Public License */ if (isset($_REQUEST['manufacturers_id'])) { if ($_REQUEST['manufacturers_id']=='') { header('Location: index.php'); die(); } } require('includes/application_top.php'); // the following cPath references come from application_top.php $category_depth = 'top'; if (isset($cPath) && tep_not_null($cPath)) { $categories_products_query = tep_db_query("select count(*) as total from " . TABLE_PRODUCTS_TO_CATEGORIES . " where categories_id = '" . (int)$current_category_id . "'"); $cateqories_products = tep_db_fetch_array($categories_products_query); if ($cateqories_products['total'] > 0) { $category_depth = 'products'; // display products } else { $category_parent_query = tep_db_query("select count(*) as total from " . TABLE_CATEGORIES . " where parent_id = '" . (int)$current_category_id . "'"); $category_parent = tep_db_fetch_array($category_parent_query); if ($category_parent['total'] > 0) { $category_depth = 'nested'; // navigate through the categories } else { $category_depth = 'products'; // category has no products, but display the 'no products' message } } } require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_DEFAULT); ?> <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"> <html <?php echo HTML_PARAMS; ?>> <head> <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>"> <title><?php echo TITLE; ?></title> <base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>"> <link rel="stylesheet" type="text/css" href="stylesheet.css"> </head> <body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0"> <!-- header //--> <?php require(DIR_WS_INCLUDES . 'header.php'); ?> <!-- header_eof //--> <!-- body //--> <td width="100%" height="438" valign="top"> <table width="100%" style="height:100%" cellspacing="0" cellpadding="0" border="0"> <tr> <td width="185" height="100%" valign="top"><?php require(DIR_WS_INCLUDES . 'column_left.php'); ?> <!-- body_text //--> <td width="100%" valign="top" class="productListing" bgcolor=#F0F0F0><?php echo tep_draw_form('wishlist_form', tep_href_link(FILENAME_WISHLIST)); ?> <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr> <td> <table width="100%" style="background: #E8F7FD url(images/m3-l-t.gif) no-repeat left top;" cellspacing="0" cellpadding="0" border="0"> <tr><td width="100%" style="background:url(images/m3-r-t.gif) no-repeat right top;" valign="top"> <table width="100%" style="height:100%;" cellspacing="0" cellpadding="0" border="0"> <tr><td width="100%" height="40" style="; padding: 15px 3px 3px 3px;" valign="top"> <div class="h1_text" style="margin: 0px 0px 0px 11px;"><strong>Welcome</strong></div> </td></tr> </table> </td></tr> </table></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <tr> <td valign=top><table border=0 cellspacing=5 summary=""> <tr> <td >Text goes here </td> </tr> <tr><td width="100%" style="background:url(images/m3-r-t.gif) no-repeat right top;" valign="top"> <table width="100%" style="height:100%;" cellspacing="0" cellpadding="0" border="0"> <tr><td width="100%" height="40" style="; padding: 15px 3px 3px 3px;" valign="top" bgcolor=#E8F7FD> <div class="h1_text" style="margin: 0px 0px 0px 11px;"><strong>Today's Featured Products</strong></div> </td></tr> </table> </td></tr> <tr> <td><?php require(DIR_WS_BOXES . 'featured.php');?></td> </tr> <tr> <td><?php require(DIR_WS_BOXES . 'featured.php');?></td> </tr> </table></td> <td><?=tep_image(DIR_WS_IMAGES.'ani-1.jpg')?></td> </tr> <tr> </tr> </table></td> <!-- body_text_eof //--> </tr> </table> <!-- body_eof //--> <!-- footer //--> <?php require(DIR_WS_INCLUDES . 'footer.php'); ?> <!-- footer_eof //--> <br> </body> </html> <?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>
Iniquityclothing Posted December 10, 2007 Posted December 10, 2007 whats the url of your site? View recent 'helpfull' threads: 403 Error problems | Ultimate SEO (contribution support)
marcsessoms Posted December 10, 2007 Author Posted December 10, 2007 whats the url of your site? ladinas.com
Recommended Posts
Archived
This topic is now archived and is closed to further replies.