chrometweaks.org

Is your iPage webpage site(pagebuilder) functioning correctly?

Click Here To View All Answers...


Quick question... Is your iPage webpage site(pagebuilder) functioning correctly? Looking forward for any answer or 2. Another question on my mind: I need help getting rid of both these circled areas. If you know how please share.

Thanks.

This post has been edited by.

Mrserv0n.

: 20 November 2008, 04:54..

Comments (7)

Yep, but... you might want to make sure and wait for someone else here to confirm it as I am unsure of myself. Better yet, why don't you give a call to the iPage guys because they can give you help better...

Comment #1

Thanks scott get rid of the right column one, it was from a header_tags.php addon, The bottom one isnt in my includes/footer.php and I dont have a footer.php in my english folder but no worries..

I do have one other question if possible?.

I want my home page to have the login and create account boxes, I have tried for an hour last night to somehow copy these boxes from login.php to index.php and I just cant get it to work, I finally got it to work but it screwed up the alignment of the iPage site and put the boxes above the header. Any ideas?.

This post has been edited by.

Mrserv0n.

: 20 November 2008, 20:05..

Comment #2

Send me your index.php pasted in code boxes and I'll do the insert for you in a reply with comments if you have stock rc2a login.php.

For the other, I don't have english/footer.php either - my footer text is directly in catalog/includes/footer.php.

You could also try catalog/includes/application_bottom.php.

Scott..

Comment #3

Im running 2.2 RC1 and my login.php looks stock from what I can tell I dont see any contrib tags in there, I assume you want english/index.php and not the root one.

<script type="text/javascript">.

Var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");.

Document.write("\<script src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'>\<\/script>" );.

</script>.

<script type="text/javascript">.

Var pageTracker = _gat._getTracker("UA-3107575-2");.

PageTracker._initData();.

PageTracker._trackPageview();.

</script>.

<?php.

/*.

$Id: index.php,v 1.1 2003/06/11 17:38:00 hpdl Exp $.

OsCommerce, Open Source E-Commerce Solutions.

Http://www.oscommerce.com.

Copyright (c) 2003 osCommerce.

Released under the GNU General Public License.

*/.

Define('TEXT_MAIN', '<FONT color="000000"><center><p><B> </b></p><p><b>MAME .128 IS HERE</p> <p>WE BUILD CUSTOM ARCADE COMPUTERS FOR YOUR CABINET WITH FRONT END, CONTACT US FOR A QUOTE! <p>GET THE LATEST NEWS, UPDATES, AND HELP AT THE FORUMS </p ');.

Define('TABLE_HEADING_NEW_PRODUCTS', 'New Products For %s');.

Define('TABLE_HEADING_UPCOMING_PRODUCTS', 'Upcoming Products');.

Define('TABLE_HEADING_DATE_EXPECTED', 'Date Expected');.

If ( ($category_depth == 'products') || (isset($HTTP_GET_VARS['manufacturers_id'])) ) {.

Define('HEADING_TITLE', 'MAME ROMS,SNES ROMS, PSX ROMS');.

Define('TABLE_HEADING_IMAGE', '');.

Define('TABLE_HEADING_MODEL', 'Model');.

Define('TABLE_HEADING_PRODUCTS', 'Product Name');.

Define('TABLE_HEADING_MANUFACTURER', 'Manufacturer');.

Define('TABLE_HEADING_QUANTITY', 'Quantity');.

Define('TABLE_HEADING_PRICE', 'Price');.

Define('TABLE_HEADING_WEIGHT', 'Weight');.

Define('TABLE_HEADING_BUY_NOW', 'Buy Now');.

Define('TEXT_NO_PRODUCTS', 'There are no products to list in this category.');.

Define('TEXT_NO_PRODUCTS2', 'There is no product available from this manufacturer.');.

Define('TEXT_NUMBER_OF_PRODUCTS', 'Number of Products: ');.

Define('TEXT_SHOW', '<b>Show:</b>');.

Define('TEXT_BUY', 'Buy 1 \'');.

Define('TEXT_NOW', '\' now');.

Define('TEXT_ALL_CATEGORIES', 'All Categories');.

Define('TEXT_ALL_MANUFACTURERS', 'All Manufacturers');.

} elseif ($category_depth == 'top') {.

Define('HEADING_TITLE', '<center><font size="1" face="Verdana"><FONT color="#009933"<b></font></b>');.

} elseif ($category_depth == 'nested') {.

Define('HEADING_TITLE', 'Categories');.

}.

?>.

Heres my application_bottom.php if you see anything out of the ordinary there..

<?php.

/*.

$Id: application_bottom.php,v 1.14 2003/02/10 22:30:41 hpdl Exp $.

OsCommerce, Open Source E-Commerce Solutions.

Http://www.oscommerce.com.

Copyright (c) 2003 osCommerce.

Released under the GNU General Public License.

*/.

// close session (store variables).

Tep_session_close();.

If (STORE_PAGE_PARSE_TIME == 'true') {.

$time_start = explode(' ', PAGE_PARSE_START_TIME);.

$time_end = explode(' ', microtime());.

$parse_time = number_format(($time_end[1] + $time_end[0] - ($time_start[1] + $time_start[0])), 3);.

Error_log(strftime(STORE_PARSE_DATE_TIME_FORMAT)' - 'getenv('REQUEST_URI')' ('$parse_time's)'"\n", 3, STORE_PAGE_PARSE_TIME_LOG);.

If (DISPLAY_PAGE_PARSE_TIME == 'true') {.

Echo '<span class="smallText">Parse Time: '$parse_time's</span>';.

}.

}.

If ( (GZIP_COMPRESSION == 'true') && ($ext_zlib_loaded == true) && ($ini_zlib_output_compression < 1) ) {.

If ( (PHP_VERSION < '4.0.4') && (PHP_VERSION >= '4') ) {.

Tep_gzip_output(GZIP_LEVEL);.

}.

}.

?>.

This post has been edited by.

Mrserv0n.

: 20 November 2008, 21:58..

Comment #4

Should have made myself more clear - I need catalog/index.php - it's ok if your index page has mods, but I'd need to know if you've modded your rc1 login. if you have post it too....

Scott..

Comment #5

I dont think my login is modded, the only contribs I have is Header tags seo and an attribute , I think thats it been a long time since I installed em. Heres index.php.

<?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.

*/.

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>.

<?php.

// BOF: Header Tag Controller v2.6.3.

If ( file_exists(DIR_WS_INCLUDES'header_tags.php') ) {.

Require(DIR_WS_INCLUDES'header_tags.php');.

} else {.

?>.

<title><?php echo TITLE; ?></title>.

<?php.

}.

// EOF: Header Tag Controller v2.6.3.

?>.

<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 //>.

<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">.

<! left_navigation //>.

<?php require(DIR_WS_INCLUDES'column_left.php'); ?>.

<! left_navigation_eof //>.

</table></td>.

<! body_text //>.

<?php.

If ($category_depth == 'nested') {.

$category_query = tep_db_query("select cd.categories_name, c.categories_image, cd.categories_htc_title_tag, cd.categories_htc_description from "TABLE_CATEGORIES" c, "TABLE_CATEGORIES_DESCRIPTION" cd where c.categories_id = '"(int)$current_category_id"' and cd.categories_id = '"(int)$current_category_id"' and cd.language_id = '"(int)$languages_id"'");.

$category = tep_db_fetch_array($category_query);.

?>.

<td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="0">.

<tr>.

<td><table border="0" width="100%" cellspacing="0" cellpadding="0">.

<tr>.

<td><h1><?php echo $category['categories_htc_title_tag']; ?></h1></td>.

<td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES$category['categories_image'], $category['categories_name'], HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>.

</tr>.

<?php if (tep_not_null($category['categories_htc_description'])) { ?>.

<tr>.

<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>.

</tr>.

<tr>.

<td><h2><?php echo $category['categories_htc_description']; ?></h2></td>.

</tr>.

<?php } ?>.

</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="2">.

<tr>.

<td><table border="0" width="100%" cellspacing="0" cellpadding="2">.

<tr>.

<?php.

If (isset($cPath) && strpos('_', $cPath)) {.

// check to see if there are deeper categories within the current category.

$category_links = array_reverse($cPath_array);.

For($i=0, $n=sizeof($category_links); $i<$n; $i++) {.

$categories_query = tep_db_query("select count(*) as total from "TABLE_CATEGORIES" c, "TABLE_CATEGORIES_DESCRIPTION" cd where c.parent_id = '"(int)$category_links[$i]"' and c.categories_id = cd.categories_id and cd.language_id = '"(int)$languages_id"'");.

$categories = tep_db_fetch_array($categories_query);.

If ($categories['total'] < 1) {.

// do nothing, go through the loop.

} else {.

$categories_query = tep_db_query("select c.categories_id, cd.categories_name, c.categories_image, c.parent_id from "TABLE_CATEGORIES" c, "TABLE_CATEGORIES_DESCRIPTION" cd where c.parent_id = '"(int)$category_links[$i]"' and c.categories_id = cd.categories_id and cd.language_id = '"(int)$languages_id"' order by sort_order, cd.categories_name");.

Break; // we've found the deepest category the customer is in.

}.

}.

} else {.

$categories_query = tep_db_query("select c.categories_id, cd.categories_name, c.categories_image, c.parent_id from "TABLE_CATEGORIES" c, "TABLE_CATEGORIES_DESCRIPTION" cd where c.parent_id = '"(int)$current_category_id"' and c.categories_id = cd.categories_id and cd.language_id = '"(int)$languages_id"' order by sort_order, cd.categories_name");.

}.

$number_of_categories = tep_db_num_rows($categories_query);.

$rows = 0;.

While ($categories = tep_db_fetch_array($categories_query)) {.

$rows++;.

$cPath_new = tep_get_path($categories['categories_id']);.

$width = (int)(100 / MAX_DISPLAY_CATEGORIES_PER_ROW)'%';.

Echo ' <td align="center" class="smallText" width="'$width'" valign="top"><a href="'tep_href_link(FILENAME_DEFAULT, $cPath_new)'">'tep_image(DIR_WS_IMAGES$categories['categories_image'], $categories['categories_name'], SUBCATEGORY_IMAGE_WIDTH, SUBCATEGORY_IMAGE_HEIGHT)'<br>'$categories['categories_name']'</a></td>'"\n";.

If ((($rows / MAX_DISPLAY_CATEGORIES_PER_ROW) == floor($rows / MAX_DISPLAY_CATEGORIES_PER_ROW)) && ($rows != $number_of_categories)) {.

Echo ' </tr>'"\n";.

Echo ' <tr>'"\n";.

}.

}.

// needed for the new products module shown below.

$new_products_category_id = $current_category_id;.

?>.

</tr>.

</table></td>.

</tr>.

<tr>.

<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>.

</tr>.

<tr>.

<td><?php include(DIR_WS_MODULESFILENAME_NEW_PRODUCTS); ?></td>.

</tr>.

</table></td>.

</tr>.

</table></td>.

<?php.

} elseif ($category_depth == 'products' || isset($HTTP_GET_VARS['manufacturers_id'])) {.

// create column list.

$define_list = array('PRODUCT_LIST_MODEL' => PRODUCT_LIST_MODEL,.

'PRODUCT_LIST_NAME' => PRODUCT_LIST_NAME,.

'PRODUCT_LIST_MANUFACTURER' => PRODUCT_LIST_MANUFACTURER,.

'PRODUCT_LIST_PRICE' => PRODUCT_LIST_PRICE,.

'PRODUCT_LIST_QUANTITY' => PRODUCT_LIST_QUANTITY,.

'PRODUCT_LIST_WEIGHT' => PRODUCT_LIST_WEIGHT,.

'PRODUCT_LIST_IMAGE' => PRODUCT_LIST_IMAGE,.

'PRODUCT_LIST_BUY_NOW' => PRODUCT_LIST_BUY_NOW);.

Asort($define_list);.

$column_list = array();.

Reset($define_list);.

While (list($key, $value) = each($define_list)) {.

If ($value > 0) $column_list[] = $key;.

}.

$select_column_list = '';.

For ($i=0, $n=sizeof($column_list); $i<$n; $i++) {.

Switch ($column_list[$i]) {.

Case 'PRODUCT_LIST_MODEL':.

$select_column_list .= 'p.products_model, ';.

Break;.

Case 'PRODUCT_LIST_NAME':.

$select_column_list .= 'pd.products_name, ';.

Break;.

Case 'PRODUCT_LIST_MANUFACTURER':.

$select_column_list .= 'm.manufacturers_name, ';.

Break;.

Case 'PRODUCT_LIST_QUANTITY':.

$select_column_list .= 'p.products_quantity, ';.

Break;.

Case 'PRODUCT_LIST_IMAGE':.

$select_column_list .= 'p.products_image, ';.

Break;.

Case 'PRODUCT_LIST_WEIGHT':.

$select_column_list .= 'p.products_weight, ';.

Break;.

}.

}.

// show the products of a specified manufacturer.

If (isset($HTTP_GET_VARS['manufacturers_id'])) {.

If (isset($HTTP_GET_VARS['filter_id']) && tep_not_null($HTTP_GET_VARS['filter_id'])) {.

// We are asked to show only a specific category.

$listing_sql = "select "$select_column_list" p.products_id, p.manufacturers_id, p.products_price, p.products_tax_class_id, IF(s.status, s.specials_new_products_price, NULL) as specials_new_products_price, IF(s.status, s.specials_new_products_price, p.products_price) as final_price from "TABLE_PRODUCTS" p left join "TABLE_SPECIALS" s on p.products_id = s.products_id, "TABLE_PRODUCTS_DESCRIPTION" pd, "TABLE_MANUFACTURERS" m, "TABLE_PRODUCTS_TO_CATEGORIES" p2c where p.products_status = '1' and p.manufacturers_id = m.manufacturers_id and m.manufacturers_id = '"(int)$HTTP_GET_VARS['manufacturers_id']"' and p.products_id = p2c.products_id and pd.products_id = p2c.products_id and pd.language_id = '"(int)$languages_id"' and p2c.categories_id = '"(int)$HTTP_GET_VARS['filter_id']"'";.

} else {.

// We show them all.

$listing_sql = "select "$select_column_list" p.products_id, p.manufacturers_id, p.products_price, p.products_tax_class_id, IF(s.status, s.specials_new_products_price, NULL) as specials_new_products_price, IF(s.status, s.specials_new_products_price, p.products_price) as final_price from "TABLE_PRODUCTS" p left join "TABLE_SPECIALS" s on p.products_id = s.products_id, "TABLE_PRODUCTS_DESCRIPTION" pd, "TABLE_MANUFACTURERS" m where p.products_status = '1' and pd.products_id = p.products_id and pd.language_id = '"(int)$languages_id"' and p.manufacturers_id = m.manufacturers_id and m.manufacturers_id = '"(int)$HTTP_GET_VARS['manufacturers_id']"'";.

}.

} else {.

// show the products in a given categorie.

If (isset($HTTP_GET_VARS['filter_id']) && tep_not_null($HTTP_GET_VARS['filter_id'])) {.

// We are asked to show only specific catgeory.

$listing_sql = "select "$select_column_list" p.products_id, p.manufacturers_id, p.products_price, p.products_tax_class_id, IF(s.status, s.specials_new_products_price, NULL) as specials_new_products_price, IF(s.status, s.specials_new_products_price, p.products_price) as final_price from "TABLE_PRODUCTS" p left join "TABLE_SPECIALS" s on p.products_id = s.products_id, "TABLE_PRODUCTS_DESCRIPTION" pd, "TABLE_MANUFACTURERS" m, "TABLE_PRODUCTS_TO_CATEGORIES" p2c where p.products_status = '1' and p.manufacturers_id = m.manufacturers_id and m.manufacturers_id = '"(int)$HTTP_GET_VARS['filter_id']"' and p.products_id = p2c.products_id and pd.products_id = p2c.products_id and pd.language_id = '"(int)$languages_id"' and p2c.categories_id = '"(int)$current_category_id"'";.

} else {.

// We show them all.

$listing_sql = "select "$select_column_list" p.products_id, p.manufacturers_id, p.products_price, p.products_tax_class_id, IF(s.status, s.specials_new_products_price, NULL) as specials_new_products_price, IF(s.status, s.specials_new_products_price, p.products_price) as final_price from "TABLE_PRODUCTS_DESCRIPTION" pd, "TABLE_PRODUCTS" p left join "TABLE_MANUFACTURERS" m on p.manufacturers_id = m.manufacturers_id left join "TABLE_SPECIALS" s on p.products_id = s.products_id, "TABLE_PRODUCTS_TO_CATEGORIES" p2c where p.products_status = '1' and p.products_id = p2c.products_id and pd.products_id = p2c.products_id and pd.language_id = '"(int)$languages_id"' and p2c.categories_id = '"(int)$current_category_id"'";.

}.

}.

If ( (!isset($HTTP_GET_VARS['sort'])) || (!ereg('^[1-8][ad]$', $HTTP_GET_VARS['sort'])) || (substr($HTTP_GET_VARS['sort'], 0, 1) > sizeof($column_list)) ) {.

For ($i=0, $n=sizeof($column_list); $i<$n; $i++) {.

If ($column_list[$i] == 'PRODUCT_LIST_NAME') {.

$HTTP_GET_VARS['sort'] = $i+1'a';.

$listing_sql .= " order by pd.products_name";.

Break;.

}.

}.

} else {.

$sort_col = substr($HTTP_GET_VARS['sort'], 0 , 1);.

$sort_order = substr($HTTP_GET_VARS['sort'], 1);.

Switch ($column_list[$sort_col-1]) {.

Case 'PRODUCT_LIST_MODEL':.

$listing_sql .= " order by p.products_model "($sort_order == 'd' ? 'desc' : '')", pd.products_name";.

Break;.

Case 'PRODUCT_LIST_NAME':.

$listing_sql .= " order by pd.products_name "($sort_order == 'd' ? 'desc' : '');.

Break;.

Case 'PRODUCT_LIST_MANUFACTURER':.

$listing_sql .= " order by m.manufacturers_name "($sort_order == 'd' ? 'desc' : '')", pd.products_name";.

Break;.

Case 'PRODUCT_LIST_QUANTITY':.

$listing_sql .= " order by p.products_quantity "($sort_order == 'd' ? 'desc' : '')", pd.products_name";.

Break;.

Case 'PRODUCT_LIST_IMAGE':.

$listing_sql .= " order by pd.products_name";.

Break;.

Case 'PRODUCT_LIST_WEIGHT':.

$listing_sql .= " order by p.products_weight "($sort_order == 'd' ? 'desc' : '')", pd.products_name";.

Break;.

Case 'PRODUCT_LIST_PRICE':.

$listing_sql .= " order by final_price "($sort_order == 'd' ? 'desc' : '')", pd.products_name";.

Break;.

}.

}.

If (isset($HTTP_GET_VARS['manufacturers_id'])).

$db_query = tep_db_query("select manufacturers_htc_title_tag as htc_title, manufacturers_htc_description as htc_description from "TABLE_MANUFACTURERS_INFO" where languages_id = '"(int)$languages_id"' and manufacturers_id = '"(int)$HTTP_GET_VARS['manufacturers_id']"'");.

Else.

$db_query = tep_db_query("select categories_htc_title_tag as htc_title, categories_htc_description as htc_description from "TABLE_CATEGORIES_DESCRIPTION" where categories_id = '"(int)$current_category_id"' and language_id = '"(int)$languages_id"'");.

$htc = tep_db_fetch_array($db_query);.

?>.

<td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="0">.

<tr>.

<td><table border="0" width="100%" cellspacing="0" cellpadding="0">.

<tr>.

<td><h1><?php echo $htc['htc_title']; ?></h1></td>.

<?php.

// optional Product List Filter.

If (PRODUCT_LIST_FILTER > 0) {.

If (isset($HTTP_GET_VARS['manufacturers_id'])) {.

$filterlist_sql = "select distinct c.categories_id as id, cd.categories_name as name from "TABLE_PRODUCTS" p, "TABLE_PRODUCTS_TO_CATEGORIES" p2c, "TABLE_CATEGORIES" c, "TABLE_CATEGORIES_DESCRIPTION" cd where p.products_status = '1' and p.products_id = p2c.products_id and p2c.categories_id = c.categories_id and p2c.categories_id = cd.categories_id and cd.language_id = '"(int)$languages_id"' and p.manufacturers_id = '"(int)$HTTP_GET_VARS['manufacturers_id']"' order by cd.categories_name";.

} else {.

$filterlist_sql= "select distinct m.manufacturers_id as id, m.manufacturers_name as name from "TABLE_PRODUCTS" p, "TABLE_PRODUCTS_TO_CATEGORIES" p2c, "TABLE_MANUFACTURERS" m where p.products_status = '1' and p.manufacturers_id = m.manufacturers_id and p.products_id = p2c.products_id and p2c.categories_id = '"(int)$current_category_id"' order by m.manufacturers_name";.

}.

$filterlist_query = tep_db_query($filterlist_sql);.

If (tep_db_num_rows($filterlist_query) > 1) {.

Echo ' <td align="center" class="main">'tep_draw_form('filter', FILENAME_DEFAULT, 'get')TEXT_SHOW'&nbsp;';.

If (isset($HTTP_GET_VARS['manufacturers_id'])) {.

Echo tep_draw_hidden_field('manufacturers_id', $HTTP_GET_VARS['manufacturers_id']);.

$options = array(array('id' => '', 'text' => TEXT_ALL_CATEGORIES));.

} else {.

Echo tep_draw_hidden_field('cPath', $cPath);.

$options = array(array('id' => '', 'text' => TEXT_ALL_MANUFACTURERS));.

}.

Echo 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']);.

}.

Echo tep_draw_pull_down_menu('filter_id', $options, (isset($HTTP_GET_VARS['filter_id']) ? $HTTP_GET_VARS['filter_id'] : ''), 'onchange="this.form.submit()"');.

Echo tep_hide_session_id()'</form></td>'"\n";.

}.

}.

// 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'];.

}.

?>.

<td align="right"><?php echo tep_image(DIR_WS_IMAGES$image, $category['categories_htc_title_tag'], HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>.

</tr>.

<?php if (tep_not_null($htc['htc_description'])) { ?>.

<tr>.

<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>.

</tr>.

<tr>.

<td colspan="2"><h2><?php echo $htc['htc_description']; ?></h2></td>.

</tr>.

<?php } ?>.

</table></td>.

</tr>.

<tr>.

<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>.

</tr>.

<tr>.

<td><?php include(DIR_WS_MODULESFILENAME_PRODUCT_LISTING); ?></td>.

</tr>.

</table></td>.

<?php.

} else { // default page.

?>.

<td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="0">.

<tr>.

<td><table border="0" width="100%" cellspacing="0" cellpadding="0">.

<tr>.

<td class="pageHeading"><?php echo HEADING_TITLE; ?></td>.

<td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES'table_background_default.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></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>.

<tr>.

<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>.

</tr>.

<tr>.

</tr>.

<?php.

Include(DIR_WS_MODULESFILENAME_UPCOMING_PRODUCTS);.

?>.

</table></td>.

</tr>.

</table></td>.

<?php.

}.

?>.

<! body_text_eof //>.

<td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">.

<! right_navigation //>.

<?php require(DIR_WS_INCLUDES'column_right.php'); ?>.

<! right_navigation_eof //>.

</table></td>.

</tr>.

</table>.

<! body_eof //>.

<! footer //>.

<?php require(DIR_WS_INCLUDES'footer.php'); ?>.

<! footer_eof //>.

</body>.

</html>.

<?php require(DIR_WS_INCLUDES'application_bottom.php'); ?>.

Here is my catalog/login.php.

<?php.

/*.

$Id: login.php,v 1.80 2003/06/05 23:28:24 hpdl Exp $.

OsCommerce, Open Source E-Commerce Solutions.

Http://www.oscommerce.com.

Copyright (c) 2003 osCommerce.

Released under the GNU General Public License.

*/.

Require('includes/application_top.php');.

// redirect the customer to a friendly cookie-must-be-enabled page if cookies are disabled (or the session has not started).

If ($session_started == false) {.

Tep_redirect(tep_href_link(FILENAME_COOKIE_USAGE));.

}.

Require(DIR_WS_LANGUAGES$language'/'FILENAME_LOGIN);.

$error = false;.

If (isset($HTTP_GET_VARS['action']) && ($HTTP_GET_VARS['action'] == 'process')) {.

$email_address = tep_db_prepare_input($HTTP_POST_VARS['email_address']);.

$password = tep_db_prepare_input($HTTP_POST_VARS['password']);.

// Check if email exists.

$check_customer_query = tep_db_query("select customers_id, customers_firstname, customers_password, customers_email_address, customers_default_address_id from "TABLE_CUSTOMERS" where customers_email_address = '"tep_db_input($email_address)"'");.

If (!tep_db_num_rows($check_customer_query)) {.

$error = true;.

} else {.

$check_customer = tep_db_fetch_array($check_customer_query);.

// Check that password is good.

If (!tep_validate_password($password, $check_customer['customers_password'])) {.

$error = true;.

} else {.

If (SESSION_RECREATE == 'True') {.

Tep_session_recreate();.

}.

$check_country_query = tep_db_query("select entry_country_id, entry_zone_id from "TABLE_ADDRESS_BOOK" where customers_id = '"(int)$check_customer['customers_id']"' and address_book_id = '"(int)$check_customer['customers_default_address_id']"'");.

$check_country = tep_db_fetch_array($check_country_query);.

$customer_id = $check_customer['customers_id'];.

$customer_default_address_id = $check_customer['customers_default_address_id'];.

$customer_first_name = $check_customer['customers_firstname'];.

$customer_country_id = $check_country['entry_country_id'];.

$customer_zone_id = $check_country['entry_zone_id'];.

Tep_session_register('customer_id');.

Tep_session_register('customer_default_address_id');.

Tep_session_register('customer_first_name');.

Tep_session_register('customer_country_id');.

Tep_session_register('customer_zone_id');.

Tep_db_query("update "TABLE_CUSTOMERS_INFO" set customers_info_date_of_last_logon = now(), customers_info_number_of_logons = customers_info_number_of_logons+1 where customers_info_id = '"(int)$customer_id"'");.

// restore cart contents.

$cart->restore_contents();.

If (sizeof($navigation->snapshot) > 0) {.

$origin_href = tep_href_link($navigation->snapshot['page'], tep_array_to_string($navigation->snapshot['get'], array(tep_session_name())), $navigation->snapshot['mode']);.

$navigation->clear_snapshot();.

Tep_redirect($origin_href);.

} else {.

Tep_redirect(tep_href_link(FILENAME_DEFAULT));.

}.

}.

}.

}.

If ($error == true) {.

$messageStack->add('login', TEXT_LOGIN_ERROR);.

}.

$breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_LOGIN, '', 'SSL'));.

?>.

<!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">.

<script language="javascript"><!.

Function session_win() {.

Window.open("<?php echo tep_href_link(FILENAME_INFO_SHOPPING_CART); ?>","info_shopping_cart","height=460,width=430,toolbar=no,statusbar=no,scrollbars=yes").focus();.

}.

//></script>.

</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 //>.

<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">.

<! left_navigation //>.

<?php require(DIR_WS_INCLUDES'column_left.php'); ?>.

<! left_navigation_eof //>.

</table></td>.

<! body_text //>.

<td width="100%" valign="top"><?php echo tep_draw_form('login', tep_href_link(FILENAME_LOGIN, 'action=process', 'SSL')); ?><table border="0" width="100%" cellspacing="0" cellpadding="0">.

<tr>.

<td><table border="0" width="100%" cellspacing="0" cellpadding="0">.

<tr>.

<td class="pageHeading"><?php echo HEADING_TITLE; ?></td>.

<td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES'table_background_login.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>.

</tr>.

</table></td>.

</tr>.

<tr>.

<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>.

</tr>.

<?php.

If ($messageStack->size('login') > 0) {.

?>.

<tr>.

<td><?php echo $messageStack->output('login'); ?></td>.

</tr>.

<tr>.

<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>.

</tr>.

<?php.

}.

If ($cart->count_contents() > 0) {.

?>.

<tr>.

<td class="smallText"><?php echo TEXT_VISITORS_CART; ?></td>.

</tr>.

<tr>.

<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>.

</tr>.

<?php.

}.

?>.

<tr>.

<td><table border="0" width="100%" cellspacing="0" cellpadding="2">.

<tr>.

<td class="main" width="50%" valign="top"><b><?php echo HEADING_NEW_CUSTOMER; ?></b></td>.

<td class="main" width="50%" valign="top"><b><?php echo HEADING_RETURNING_CUSTOMER; ?></b></td>.

</tr>.

<tr>.

<td width="50%" height="100%" valign="top"><table border="0" width="100%" height="100%" cellspacing="1" cellpadding="2" class="infoBox">.

<tr class="infoBoxContents">.

<td><table border="0" width="100%" height="100%" cellspacing="0" cellpadding="2">.

<tr>.

<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>.

</tr>.

<tr>.

<td class="main" valign="top"><?php echo TEXT_NEW_CUSTOMER'<br><br>'TEXT_NEW_CUSTOMER_INTRODUCTION; ?></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="2">.

<tr>.

<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>.

<td align="right"><?php echo '<a href="'tep_href_link(FILENAME_CREATE_ACCOUNT, '', 'SSL')'">'tep_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE)'</a>'; ?></td>.

<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>.

</tr>.

</table></td>.

</tr>.

</table></td>.

</tr>.

</table></td>.

<td width="50%" height="100%" valign="top"><table border="0" width="100%" height="100%" cellspacing="1" cellpadding="2" class="infoBox">.

<tr class="infoBoxContents">.

<td><table border="0" width="100%" height="100%" cellspacing="0" cellpadding="2">.

<tr>.

<td colspan="2"><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>.

</tr>.

<tr>.

<td class="main" colspan="2"><?php echo TEXT_RETURNING_CUSTOMER; ?></td>.

</tr>.

<tr>.

<td colspan="2"><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>.

</tr>.

<tr>.

<td class="main"><b><?php echo ENTRY_EMAIL_ADDRESS; ?></b></td>.

<td class="main"><?php echo tep_draw_input_field('email_address'); ?></td>.

</tr>.

<tr>.

<td class="main"><b><?php echo ENTRY_PASSWORD; ?></b></td>.

<td class="main"><?php echo tep_draw_password_field('password'); ?></td>.

</tr>.

<tr>.

<td colspan="2"><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>.

</tr>.

<tr>.

<td class="smallText" colspan="2"><?php echo '<a href="'tep_href_link(FILENAME_PASSWORD_FORGOTTEN, '', 'SSL')'">'TEXT_PASSWORD_FORGOTTEN'</a>'; ?></td>.

</tr>.

<tr>.

<td colspan="2"><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>.

</tr>.

<tr>.

<td colspan="2"><table border="0" width="100%" cellspacing="0" cellpadding="2">.

<tr>.

<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>.

<td align="right"><?php echo tep_image_submit('button_login.gif', IMAGE_BUTTON_LOGIN); ?></td>.

<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>.

</tr>.

</table></td>.

</tr>.

</table></td>.

</tr>.

</table></td>.

</tr>.

</table></td>.

</tr>.

</table></form></td>.

<! body_text_eof //>.

<td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">.

<! right_navigation //>.

<?php require(DIR_WS_INCLUDES'column_right.php'); ?>.

<! right_navigation_eof //>.

</table></td>.

</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'); ?>.

This post has been edited by.

Mrserv0n.

: 20 November 2008, 22:45..

Comment #6

Try this:.

<?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.

*/.

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>.

<?php.

// BOF: Header Tag Controller v2.6.3.

If ( file_exists(DIR_WS_INCLUDES'header_tags.php') ) {.

Require(DIR_WS_INCLUDES'header_tags.php');.

} else {.

?>.

<title><?php echo TITLE; ?></title>.

<?php.

}.

// EOF: Header Tag Controller v2.6.3.

?>.

<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 //>.

<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">.

<! left_navigation //>.

<?php require(DIR_WS_INCLUDES'column_left.php'); ?>.

<! left_navigation_eof //>.

</table></td>.

<! body_text //>.

<?php.

If ($category_depth == 'nested') {.

$category_query = tep_db_query("select cd.categories_name, c.categories_image, cd.categories_htc_title_tag, cd.categories_htc_description from "TABLE_CATEGORIES" c, "TABLE_CATEGORIES_DESCRIPTION" cd where c.categories_id = '"(int)$current_category_id"' and cd.categories_id = '"(int)$current_category_id"' and cd.language_id = '"(int)$languages_id"'");.

$category = tep_db_fetch_array($category_query);.

?>.

<td width="100%" valign="top">.

<! bof: added for login.php //>.

<?php echo tep_draw_form('login', tep_href_link(FILENAME_LOGIN, 'action=process', 'SSL')); ?>.

<! eof: added for login.php //>.

<table border="0" width="100%" cellspacing="0" cellpadding="0">.

<! bof: added for login.php //>.

<?php.

If ($messageStack->size('login') > 0) {.

?>.

<tr>.

<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>.

</tr>.

<tr>.

<td><?php echo $messageStack->output('login'); ?></td>.

</tr>.

<tr>.

<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>.

</tr>.

<?php.

}.

If ($cart->count_contents() > 0) {.

?>.

<tr>.

<td class="smallText"><?php echo TEXT_VISITORS_CART; ?></td>.

</tr>.

<tr>.

<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>.

</tr>.

<?php.

}.

?>.

<tr>.

<td><table border="0" width="100%" cellspacing="0" cellpadding="2">.

<tr>.

<td class="main" width="50%" valign="top"><b><?php echo HEADING_NEW_CUSTOMER; ?></b></td>.

<td class="main" width="50%" valign="top"><b><?php echo HEADING_RETURNING_CUSTOMER; ?></b></td>.

</tr>.

<tr>.

<td width="50%" height="100%" valign="top"><table border="0" width="100%" height="100%" cellspacing="1" cellpadding="2" class="infoBox">.

<tr class="infoBoxContents">.

<td><table border="0" width="100%" height="100%" cellspacing="0" cellpadding="2">.

<tr>.

<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>.

</tr>.

<tr>.

<td class="main" valign="top"><?php echo TEXT_NEW_CUSTOMER'<br><br>'TEXT_NEW_CUSTOMER_INTRODUCTION; ?></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="2">.

<tr>.

<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>.

<td align="right"><?php echo '<a href="'tep_href_link(FILENAME_CREATE_ACCOUNT, '', 'SSL')'">'tep_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE)'</a>'; ?></td>.

<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>.

</tr>.

</table></td>.

</tr>.

</table></td>.

</tr>.

</table></td>.

<td width="50%" height="100%" valign="top"><table border="0" width="100%" height="100%" cellspacing="1" cellpadding="2" class="infoBox">.

<tr class="infoBoxContents">.

<td><table border="0" width="100%" height="100%" cellspacing="0" cellpadding="2">.

<tr>.

<td colspan="2"><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>.

</tr>.

<tr>.

<td class="main" colspan="2"><?php echo TEXT_RETURNING_CUSTOMER; ?></td>.

</tr>.

<tr>.

<td colspan="2"><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>.

</tr>.

<tr>.

<td class="main"><b><?php echo ENTRY_EMAIL_ADDRESS; ?></b></td>.

<td class="main"><?php echo tep_draw_input_field('email_address'); ?></td>.

</tr>.

<tr>.

<td class="main"><b><?php echo ENTRY_PASSWORD; ?></b></td>.

<td class="main"><?php echo tep_draw_password_field('password'); ?></td>.

</tr>.

<tr>.

<td colspan="2"><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>.

</tr>.

<tr>.

<td class="smallText" colspan="2"><?php echo '<a href="'tep_href_link(FILENAME_PASSWORD_FORGOTTEN, '', 'SSL')'">'TEXT_PASSWORD_FORGOTTEN'</a>'; ?></td>.

</tr>.

<tr>.

<td colspan="2"><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>.

</tr>.

<tr>.

<td colspan="2"><table border="0" width="100%" cellspacing="0" cellpadding="2">.

<tr>.

<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>.

<td align="right"><?php echo tep_image_submit('button_login.gif', IMAGE_BUTTON_LOGIN); ?></td>.

<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>.

</tr>.

</table></td>.

</tr>.

</table></td>.

</tr>.

</table></td>.

</tr>.

</table></td>.

</tr>.

</table></form></td>.

<td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="0">.

<! eof: added for login.php //>.

<tr>.

<td><table border="0" width="100%" cellspacing="0" cellpadding="0">.

<tr>.

<td><h1><?php echo $category['categories_htc_title_tag']; ?></h1></td>.

<td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES$category['categories_image'], $category['categories_name'], HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>.

</tr>.

<?php if (tep_not_null($category['categories_htc_description'])) { ?>.

<tr>.

<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>.

</tr>.

<tr>.

<td><h2><?php echo $category['categories_htc_description']; ?></h2></td>.

</tr>.

<?php } ?>.

</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="2">.

<tr>.

<td><table border="0" width="100%" cellspacing="0" cellpadding="2">.

<tr>.

<?php.

If (isset($cPath) && strpos('_', $cPath)) {.

// check to see if there are deeper categories within the current category.

$category_links = array_reverse($cPath_array);.

For($i=0, $n=sizeof($category_links); $i<$n; $i++) {.

$categories_query = tep_db_query("select count(*) as total from "TABLE_CATEGORIES" c, "TABLE_CATEGORIES_DESCRIPTION" cd where c.parent_id = '"(int)$category_links[$i]"' and c.categories_id = cd.categories_id and cd.language_id = '"(int)$languages_id"'");.

$categories = tep_db_fetch_array($categories_query);.

If ($categories['total'] < 1) {.

// do nothing, go through the loop.

} else {.

$categories_query = tep_db_query("select c.categories_id, cd.categories_name, c.categories_image, c.parent_id from "TABLE_CATEGORIES" c, "TABLE_CATEGORIES_DESCRIPTION" cd where c.parent_id = '"(int)$category_links[$i]"' and c.categories_id = cd.categories_id and cd.language_id = '"(int)$languages_id"' order by sort_order, cd.categories_name");.

Break; // we've found the deepest category the customer is in.

}.

}.

} else {.

$categories_query = tep_db_query("select c.categories_id, cd.categories_name, c.categories_image, c.parent_id from "TABLE_CATEGORIES" c, "TABLE_CATEGORIES_DESCRIPTION" cd where c.parent_id = '"(int)$current_category_id"' and c.categories_id = cd.categories_id and cd.language_id = '"(int)$languages_id"' order by sort_order, cd.categories_name");.

}.

$number_of_categories = tep_db_num_rows($categories_query);.

$rows = 0;.

While ($categories = tep_db_fetch_array($categories_query)) {.

$rows++;.

$cPath_new = tep_get_path($categories['categories_id']);.

$width = (int)(100 / MAX_DISPLAY_CATEGORIES_PER_ROW)'%';.

Echo ' <td align="center" class="smallText" width="'$width'" valign="top"><a href="'tep_href_link(FILENAME_DEFAULT, $cPath_new)'">'tep_image(DIR_WS_IMAGES$categories['categories_image'], $categories['categories_name'], SUBCATEGORY_IMAGE_WIDTH, SUBCATEGORY_IMAGE_HEIGHT)'<br>'$categories['categories_name']'</a></td>'"\n";.

If ((($rows / MAX_DISPLAY_CATEGORIES_PER_ROW) == floor($rows / MAX_DISPLAY_CATEGORIES_PER_ROW)) && ($rows != $number_of_categories)) {.

Echo ' </tr>'"\n";.

Echo ' <tr>'"\n";.

}.

}.

// needed for the new products module shown below.

$new_products_category_id = $current_category_id;.

?>.

</tr>.

</table></td>.

</tr>.

<tr>.

<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>.

</tr>.

<tr>.

<td><?php include(DIR_WS_MODULESFILENAME_NEW_PRODUCTS); ?></td>.

</tr>.

</table></td>.

</tr>.

</table></td>.

<?php.

} elseif ($category_depth == 'products' || isset($HTTP_GET_VARS['manufacturers_id'])) {.

// create column list.

$define_list = array('PRODUCT_LIST_MODEL' => PRODUCT_LIST_MODEL,.

'PRODUCT_LIST_NAME' => PRODUCT_LIST_NAME,.

'PRODUCT_LIST_MANUFACTURER' => PRODUCT_LIST_MANUFACTURER,.

'PRODUCT_LIST_PRICE' => PRODUCT_LIST_PRICE,.

'PRODUCT_LIST_QUANTITY' => PRODUCT_LIST_QUANTITY,.

'PRODUCT_LIST_WEIGHT' => PRODUCT_LIST_WEIGHT,.

'PRODUCT_LIST_IMAGE' => PRODUCT_LIST_IMAGE,.

'PRODUCT_LIST_BUY_NOW' => PRODUCT_LIST_BUY_NOW);.

Asort($define_list);.

$column_list = array();.

Reset($define_list);.

While (list($key, $value) = each($define_list)) {.

If ($value > 0) $column_list[] = $key;.

}.

$select_column_list = '';.

For ($i=0, $n=sizeof($column_list); $i<$n; $i++) {.

Switch ($column_list[$i]) {.

Case 'PRODUCT_LIST_MODEL':.

$select_column_list .= 'p.products_model, ';.

Break;.

Case 'PRODUCT_LIST_NAME':.

$select_column_list .= 'pd.products_name, ';.

Break;.

Case 'PRODUCT_LIST_MANUFACTURER':.

$select_column_list .= 'm.manufacturers_name, ';.

Break;.

Case 'PRODUCT_LIST_QUANTITY':.

$select_column_list .= 'p.products_quantity, ';.

Break;.

Case 'PRODUCT_LIST_IMAGE':.

$select_column_list .= 'p.products_image, ';.

Break;.

Case 'PRODUCT_LIST_WEIGHT':.

$select_column_list .= 'p.products_weight, ';.

Break;.

}.

}.

// show the products of a specified manufacturer.

If (isset($HTTP_GET_VARS['manufacturers_id'])) {.

If (isset($HTTP_GET_VARS['filter_id']) && tep_not_null($HTTP_GET_VARS['filter_id'])) {.

// We are asked to show only a specific category.

$listing_sql = "select "$select_column_list" p.products_id, p.manufacturers_id, p.products_price, p.products_tax_class_id, IF(s.status, s.specials_new_products_price, NULL) as specials_new_products_price, IF(s.status, s.specials_new_products_price, p.products_price) as final_price from "TABLE_PRODUCTS" p left join "TABLE_SPECIALS" s on p.products_id = s.products_id, "TABLE_PRODUCTS_DESCRIPTION" pd, "TABLE_MANUFACTURERS" m, "TABLE_PRODUCTS_TO_CATEGORIES" p2c where p.products_status = '1' and p.manufacturers_id = m.manufacturers_id and m.manufacturers_id = '"(int)$HTTP_GET_VARS['manufacturers_id']"' and p.products_id = p2c.products_id and pd.products_id = p2c.products_id and pd.language_id = '"(int)$languages_id"' and p2c.categories_id = '"(int)$HTTP_GET_VARS['filter_id']"'";.

} else {.

// We show them all.

$listing_sql = "select "$select_column_list" p.products_id, p.manufacturers_id, p.products_price, p.products_tax_class_id, IF(s.status, s.specials_new_products_price, NULL) as specials_new_products_price, IF(s.status, s.specials_new_products_price, p.products_price) as final_price from "TABLE_PRODUCTS" p left join "TABLE_SPECIALS" s on p.products_id = s.products_id, "TABLE_PRODUCTS_DESCRIPTION" pd, "TABLE_MANUFACTURERS" m where p.products_status = '1' and pd.products_id = p.products_id and pd.language_id = '"(int)$languages_id"' and p.manufacturers_id = m.manufacturers_id and m.manufacturers_id = '"(int)$HTTP_GET_VARS['manufacturers_id']"'";.

}.

} else {.

// show the products in a given categorie.

If (isset($HTTP_GET_VARS['filter_id']) && tep_not_null($HTTP_GET_VARS['filter_id'])) {.

// We are asked to show only specific catgeory.

$listing_sql = "select "$select_column_list" p.products_id, p.manufacturers_id, p.products_price, p.products_tax_class_id, IF(s.status, s.specials_new_products_price, NULL) as specials_new_products_price, IF(s.status, s.specials_new_products_price, p.products_price) as final_price from "TABLE_PRODUCTS" p left join "TABLE_SPECIALS" s on p.products_id = s.products_id, "TABLE_PRODUCTS_DESCRIPTION" pd, "TABLE_MANUFACTURERS" m, "TABLE_PRODUCTS_TO_CATEGORIES" p2c where p.products_status = '1' and p.manufacturers_id = m.manufacturers_id and m.manufacturers_id = '"(int)$HTTP_GET_VARS['filter_id']"' and p.products_id = p2c.products_id and pd.products_id = p2c.products_id and pd.language_id = '"(int)$languages_id"' and p2c.categories_id = '"(int)$current_category_id"'";.

} else {.

// We show them all.

$listing_sql = "select "$select_column_list" p.products_id, p.manufacturers_id, p.products_price, p.products_tax_class_id, IF(s.status, s.specials_new_products_price, NULL) as specials_new_products_price, IF(s.status, s.specials_new_products_price, p.products_price) as final_price from "TABLE_PRODUCTS_DESCRIPTION" pd, "TABLE_PRODUCTS" p left join "TABLE_MANUFACTURERS" m on p.manufacturers_id = m.manufacturers_id left join "TABLE_SPECIALS" s on p.products_id = s.products_id, "TABLE_PRODUCTS_TO_CATEGORIES" p2c where p.products_status = '1' and p.products_id = p2c.products_id and pd.products_id = p2c.products_id and pd.language_id = '"(int)$languages_id"' and p2c.categories_id = '"(int)$current_category_id"'";.

}.

}.

If ( (!isset($HTTP_GET_VARS['sort'])) || (!ereg('^[1-8][ad] , $HTTP_GET_VARS['sort'])) || (substr($HTTP_GET_VARS['sort'], 0, 1) > sizeof($column_list)) ) {.

For ($i=0, $n=sizeof($column_list); $i<$n; $i++) {.

If ($column_list[$i] == 'PRODUCT_LIST_NAME') {.

$HTTP_GET_VARS['sort'] = $i+1'a';.

$listing_sql .= " order by pd.products_name";.

Break;.

}.

}.

} else {.

$sort_col = substr($HTTP_GET_VARS['sort'], 0 , 1);.

$sort_order = substr($HTTP_GET_VARS['sort'], 1);.

Switch ($column_list[$sort_col-1]) {.

Case 'PRODUCT_LIST_MODEL':.

$listing_sql .= " order by p.products_model "($sort_order == 'd' ? 'desc' : '')", pd.products_name";.

Break;.

Case 'PRODUCT_LIST_NAME':.

$listing_sql .= " order by pd.products_name "($sort_order == 'd' ? 'desc' : '');.

Break;.

Case 'PRODUCT_LIST_MANUFACTURER':.

$listing_sql .= " order by m.manufacturers_name "($sort_order == 'd' ? 'desc' : '')", pd.products_name";.

Break;.

Case 'PRODUCT_LIST_QUANTITY':.

$listing_sql .= " order by p.products_quantity "($sort_order == 'd' ? 'desc' : '')", pd.products_name";.

Break;.

Case 'PRODUCT_LIST_IMAGE':.

$listing_sql .= " order by pd.products_name";.

Break;.

Case 'PRODUCT_LIST_WEIGHT':.

$listing_sql .= " order by p.products_weight "($sort_order == 'd' ? 'desc' : '')", pd.products_name";.

Break;.

Case 'PRODUCT_LIST_PRICE':.

$listing_sql .= " order by final_price "($sort_order == 'd' ? 'desc' : '')", pd.products_name";.

Break;.

}.

}.

If (isset($HTTP_GET_VARS['manufacturers_id'])).

$db_query = tep_db_query("select manufacturers_htc_title_tag as htc_title, manufacturers_htc_description as htc_description from "TABLE_MANUFACTURERS_INFO" where languages_id = '"(int)$languages_id"' and manufacturers_id = '"(int)$HTTP_GET_VARS['manufacturers_id']"'");.

Else.

$db_query = tep_db_query("select categories_htc_title_tag as htc_title, categories_htc_description as htc_description from "TABLE_CATEGORIES_DESCRIPTION" where categories_id = '"(int)$current_category_id"' and language_id = '"(int)$languages_id"'");.

$htc = tep_db_fetch_array($db_query);.

?>.

<td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="0">.

<tr>.

<td><table border="0" width="100%" cellspacing="0" cellpadding="0">.

<tr>.

<td><h1><?php echo $htc['htc_title']; ?></h1></td>.

<?php.

// optional Product List Filter.

If (PRODUCT_LIST_FILTER > 0) {.

If (isset($HTTP_GET_VARS['manufacturers_id'])) {.

$filterlist_sql = "select distinct c.categories_id as id, cd.categories_name as name from "TABLE_PRODUCTS" p, "TABLE_PRODUCTS_TO_CATEGORIES" p2c, "TABLE_CATEGORIES" c, "TABLE_CATEGORIES_DESCRIPTION" cd where p.products_status = '1' and p.products_id = p2c.products_id and p2c.categories_id = c.categories_id and p2c.categories_id = cd.categories_id and cd.language_id = '"(int)$languages_id"' and p.manufacturers_id = '"(int)$HTTP_GET_VARS['manufacturers_id']"' order by cd.categories_name";.

} else {.

$filterlist_sql= "select distinct m.manufacturers_id as id, m.manufacturers_name as name from "TABLE_PRODUCTS" p, "TABLE_PRODUCTS_TO_CATEGORIES" p2c, "TABLE_MANUFACTURERS" m where p.products_status = '1' and p.manufacturers_id = m.manufacturers_id and p.products_id = p2c.products_id and p2c.categories_id = '"(int)$current_category_id"' order by m.manufacturers_name";.

}.

$filterlist_query = tep_db_query($filterlist_sql);.

If (tep_db_num_rows($filterlist_query) > 1) {.

Echo ' <td align="center" class="main">'tep_draw_form('filter', FILENAME_DEFAULT, 'get')TEXT_SHOW'&nbsp;';.

If (isset($HTTP_GET_VARS['manufacturers_id'])) {.

Echo tep_draw_hidden_field('manufacturers_id', $HTTP_GET_VARS['manufacturers_id']);.

$options = array(array('id' => '', 'text' => TEXT_ALL_CATEGORIES));.

} else {.

Echo tep_draw_hidden_field('cPath', $cPath);.

$options = array(array('id' => '', 'text' => TEXT_ALL_MANUFACTURERS));.

}.

Echo 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']);.

}.

Echo tep_draw_pull_down_menu('filter_id', $options, (isset($HTTP_GET_VARS['filter_id']) ? $HTTP_GET_VARS['filter_id'] : ''), 'onchange="this.form.submit()"');.

Echo tep_hide_session_id()'</form></td>'"\n";.

}.

}.

// 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'];.

}.

?>.

<td align="right"><?php echo tep_image(DIR_WS_IMAGES$image, $category['categories_htc_title_tag'], HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>.

</tr>.

<?php if (tep_not_null($htc['htc_description'])) { ?>.

<tr>.

<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>.

</tr>.

<tr>.

<td colspan="2"><h2><?php echo $htc['htc_description']; ?></h2></td>.

</tr>.

<?php } ?>.

</table></td>.

</tr>.

<tr>.

<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>.

</tr>.

<tr>.

<td><?php include(DIR_WS_MODULESFILENAME_PRODUCT_LISTING); ?></td>.

</tr>.

</table></td>.

<?php.

} else { // default page.

?>.

<td width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="0">.

<tr>.

<td><table border="0" width="100%" cellspacing="0" cellpadding="0">.

<tr>.

<td class="pageHeading"><?php echo HEADING_TITLE; ?></td>.

<td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES'table_background_default.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></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>.

<tr>.

<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>.

</tr>.

<tr>.

</tr>.

<?php.

Include(DIR_WS_MODULESFILENAME_UPCOMING_PRODUCTS);.

?>.

</table></td>.

</tr>.

</table></td>.

<?php.

}.

?>.

<! body_text_eof //>.

<td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">.

<! right_navigation //>.

<?php require(DIR_WS_INCLUDES'column_right.php'); ?>.

<! right_navigation_eof //>.

</table></td>.

</tr>.

</table>.

<! body_eof //>.

<! footer //>.

<?php require(DIR_WS_INCLUDES'footer.php'); ?>.

<! footer_eof //>.

</body>.

</html>.

<?php require(DIR_WS_INCLUDES'application_bottom.php'); ?>.

Here is my catalog/login.php.

<?php.

/*.

$Id: login.php,v 1.80 2003/06/05 23:28:24 hpdl Exp $.

OsCommerce, Open Source E-Commerce Solutions.

Http://www.oscommerce.com.

Copyright (c) 2003 osCommerce.

Released under the GNU General Public License.

*/.

Require('includes/application_top.php');.

// redirect the customer to a friendly cookie-must-be-enabled page if cookies are disabled (or the session has not started).

If ($session_started == false) {.

Tep_redirect(tep_href_link(FILENAME_COOKIE_USAGE));.

}.

Require(DIR_WS_LANGUAGES$language'/'FILENAME_LOGIN);.

$error = false;.

If (isset($HTTP_GET_VARS['action']) && ($HTTP_GET_VARS['action'] == 'process')) {.

$email_address = tep_db_prepare_input($HTTP_POST_VARS['email_address']);.

$password = tep_db_prepare_input($HTTP_POST_VARS['password']);.

// Check if email exists.

$check_customer_query = tep_db_query("select customers_id, customers_firstname, customers_password, customers_email_address, customers_default_address_id from "TABLE_CUSTOMERS" where customers_email_address = '"tep_db_input($email_address)"'");.

If (!tep_db_num_rows($check_customer_query)) {.

$error = true;.

} else {.

$check_customer = tep_db_fetch_array($check_customer_query);.

// Check that password is good.

If (!tep_validate_password($password, $check_customer['customers_password'])) {.

$error = true;.

} else {.

If (SESSION_RECREATE == 'True') {.

Tep_session_recreate();.

}.

$check_country_query = tep_db_query("select entry_country_id, entry_zone_id from "TABLE_ADDRESS_BOOK" where customers_id = '"(int)$check_customer['customers_id']"' and address_book_id = '"(int)$check_customer['customers_default_address_id']"'");.

$check_country = tep_db_fetch_array($check_country_query);.

$customer_id = $check_customer['customers_id'];.

$customer_default_address_id = $check_customer['customers_default_address_id'];.

$customer_first_name = $check_customer['customers_firstname'];.

$customer_country_id = $check_country['entry_country_id'];.

$customer_zone_id = $check_country['entry_zone_id'];.

Tep_session_register('customer_id');.

Tep_session_register('customer_default_address_id');.

Tep_session_register('customer_first_name');.

Tep_session_register('customer_country_id');.

Tep_session_register('customer_zone_id');.

Tep_db_query("update "TABLE_CUSTOMERS_INFO" set customers_info_date_of_last_logon = now(), customers_info_number_of_logons = customers_info_number_of_logons+1 where customers_info_id = '"(int)$customer_id"'");.

// restore cart contents.

$cart->restore_contents();.

If (sizeof($navigation->snapshot) > 0) {.

$origin_href = tep_href_link($navigation->snapshot['page'], tep_array_to_string($navigation->snapshot['get'], array(tep_session_name())), $navigation->snapshot['mode']);.

$navigation->clear_snapshot();.

Tep_redirect($origin_href);.

} else {.

Tep_redirect(tep_href_link(FILENAME_DEFAULT));.

}.

}.

}.

}.

If ($error == true) {.

$messageStack->add('login', TEXT_LOGIN_ERROR);.

}.

$breadcrumb->add(NAVBAR_TITLE, tep_href_link(FILENAME_LOGIN, '', 'SSL'));.

?>.

<!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">.

<script language="javascript"><!.

Function session_win() {.

Window.open("<?php echo tep_href_link(FILENAME_INFO_SHOPPING_CART); ?>","info_shopping_cart","height=460,width=430,toolbar=no,statusbar=no,scrollbars=yes").focus();.

}.

//></script>.

</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 //>.

<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">.

<! left_navigation //>.

<?php require(DIR_WS_INCLUDES'column_left.php'); ?>.

<! left_navigation_eof //>.

</table></td>.

<! body_text //>.

<td width="100%" valign="top"><?php echo tep_draw_form('login', tep_href_link(FILENAME_LOGIN, 'action=process', 'SSL')); ?><table border="0" width="100%" cellspacing="0" cellpadding="0">.

<tr>.

<td><table border="0" width="100%" cellspacing="0" cellpadding="0">.

<tr>.

<td class="pageHeading"><?php echo HEADING_TITLE; ?></td>.

<td class="pageHeading" align="right"><?php echo tep_image(DIR_WS_IMAGES'table_background_login.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>.

</tr>.

</table></td>.

</tr>.

<tr>.

<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>.

</tr>.

<?php.

If ($messageStack->size('login') > 0) {.

?>.

<tr>.

<td><?php echo $messageStack->output('login'); ?></td>.

</tr>.

<tr>.

<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>.

</tr>.

<?php.

}.

If ($cart->count_contents() > 0) {.

?>.

<tr>.

<td class="smallText"><?php echo TEXT_VISITORS_CART; ?></td>.

</tr>.

<tr>.

<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>.

</tr>.

<?php.

}.

?>.

<tr>.

<td><table border="0" width="100%" cellspacing="0" cellpadding="2">.

<tr>.

<td class="main" width="50%" valign="top"><b><?php echo HEADING_NEW_CUSTOMER; ?></b></td>.

<td class="main" width="50%" valign="top"><b><?php echo HEADING_RETURNING_CUSTOMER; ?></b></td>.

</tr>.

<tr>.

<td width="50%" height="100%" valign="top"><table border="0" width="100%" height="100%" cellspacing="1" cellpadding="2" class="infoBox">.

<tr class="infoBoxContents">.

<td><table border="0" width="100%" height="100%" cellspacing="0" cellpadding="2">.

<tr>.

<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>.

</tr>.

<tr>.

<td class="main" valign="top"><?php echo TEXT_NEW_CUSTOMER'<br><br>'TEXT_NEW_CUSTOMER_INTRODUCTION; ?></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="2">.

<tr>.

<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>.

<td align="right"><?php echo '<a href="'tep_href_link(FILENAME_CREATE_ACCOUNT, '', 'SSL')'">'tep_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE)'</a>'; ?></td>.

<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>.

</tr>.

</table></td>.

</tr>.

</table></td>.

</tr>.

</table></td>.

<td width="50%" height="100%" valign="top"><table border="0" width="100%" height="100%" cellspacing="1" cellpadding="2" class="infoBox">.

<tr class="infoBoxContents">.

<td><table border="0" width="100%" height="100%" cellspacing="0" cellpadding="2">.

<tr>.

<td colspan="2"><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>.

</tr>.

<tr>.

<td class="main" colspan="2"><?php echo TEXT_RETURNING_CUSTOMER; ?></td>.

</tr>.

<tr>.

<td colspan="2"><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>.

</tr>.

<tr>.

<td class="main"><b><?php echo ENTRY_EMAIL_ADDRESS; ?></b></td>.

<td class="main"><?php echo tep_draw_input_field('email_address'); ?></td>.

</tr>.

<tr>.

<td class="main"><b><?php echo ENTRY_PASSWORD; ?></b></td>.

<td class="main"><?php echo tep_draw_password_field('password'); ?></td>.

</tr>.

<tr>.

<td colspan="2"><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>.

</tr>.

<tr>.

<td class="smallText" colspan="2"><?php echo '<a href="'tep_href_link(FILENAME_PASSWORD_FORGOTTEN, '', 'SSL')'">'TEXT_PASSWORD_FORGOTTEN'</a>'; ?></td>.

</tr>.

<tr>.

<td colspan="2"><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>.

</tr>.

<tr>.

<td colspan="2"><table border="0" width="100%" cellspacing="0" cellpadding="2">.

<tr>.

<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>.

<td align="right"><?php echo tep_image_submit('button_login.gif', IMAGE_BUTTON_LOGIN); ?></td>.

<td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td>.

</tr>.

</table></td>.

</tr>.

</table></td>.

</tr>.

</table></td>.

</tr>.

</table></td>.

</tr>.

</table></form></td>.

<! body_text_eof //>.

<td width="<?php echo BOX_WIDTH; ?>" valign="top"><table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="0" cellpadding="2">.

<! right_navigation //>.

<?php require(DIR_WS_INCLUDES'column_right.php'); ?>.

<! right_navigation_eof //>.

</table></td>.

</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'); ?>..

Comment #7

I get this error.

Parse error: parse error, unexpected T_STRING in /home/content/m/r/s/mrserv0n18/html/index.php on line 528.

I sent you my FTP info so we dont have to keep going back and forth.

This post has been edited by.

Mrserv0n.

: 20 November 2008, 23:45..

Comment #8


This question was taken from a support group/message board and re-posted here so others can learn from it.