Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

problem with login


Guest

Recommended Posts

Posted

can someone help me? i install loginbox 2.2c. whenever i login,the page still loads but i can't log in.nothing happens.i installed correctly and it works before.But i don't know what did i do and it's broken now

Posted

can someone tell me which file i should view to find the problem?

Posted
can someone tell me which file i should view to find the problem?

Hi, you need to add your site link to your profile (NOT in this thread) so we can see it in action. Just post a note when you have added it.

:-)

Monika

 

addicted to writing code ... can't get enough of databases either, LOL!

 

my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum

 

Interactive Media Award July 2007 ~ category E-Commerce

my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ...

Posted

sorry,i'm doing in localhost.i can explain my problem. i have a login box in index page.when putting email address and password.press login and the page load.but then i can't still login.just like the index page refresh only.

Posted
sorry,i'm doing in localhost.i can explain my problem. i have a login box in index page.when putting email address and password.press login and the page load.but then i can't still login.just like the index page refresh only.

if you cannot have me take a look, you need to rightclick the page you are on, vioew source code and copy that here, so I can review that.

:-)

Monika

 

addicted to writing code ... can't get enough of databases either, LOL!

 

my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum

 

Interactive Media Award July 2007 ~ category E-Commerce

my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ...

Posted

i'm in my homepage which include (index.php and header.php)

here are my files . thanks a lot

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>
<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 //-->
<table border="0" width="100%" cellspacing="0" cellpadding="0">
 <tr>
<!-- body_text //-->
<?php
 if ($category_depth == 'nested') {
$category_query = tep_db_query("select cd.categories_name, c.categories_image 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="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_MODULES . FILENAME_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, " . TABLE_PRODUCTS_DESCRIPTION . " pd, " . TABLE_MANUFACTURERS . " m, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c left join " . TABLE_SPECIALS . " s on p2c.products_id = s.products_id 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_DESCRIPTION . " pd, " . TABLE_MANUFACTURERS . " m, " . TABLE_PRODUCTS . " p left join " . TABLE_SPECIALS . " s on p.products_id = s.products_id 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, " . TABLE_PRODUCTS_DESCRIPTION . " pd, " . TABLE_MANUFACTURERS . " m, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c left join " . TABLE_SPECIALS . " s on p2c.products_id = s.products_id 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, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c left join " . TABLE_SPECIALS . " s on p2c.products_id = s.products_id 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);
  $listing_sql .= ' order by ';
  switch ($column_list[$sort_col-1]) {
	case 'PRODUCT_LIST_MODEL':
	  $listing_sql .= "p.products_model " . ($sort_order == 'd' ? 'desc' : '') . ", pd.products_name";
	  break;
	case 'PRODUCT_LIST_NAME':
	  $listing_sql .= "pd.products_name " . ($sort_order == 'd' ? 'desc' : '');
	  break;
	case 'PRODUCT_LIST_MANUFACTURER':
	  $listing_sql .= "m.manufacturers_name " . ($sort_order == 'd' ? 'desc' : '') . ", pd.products_name";
	  break;
	case 'PRODUCT_LIST_QUANTITY':
	  $listing_sql .= "p.products_quantity " . ($sort_order == 'd' ? 'desc' : '') . ", pd.products_name";
	  break;
	case 'PRODUCT_LIST_IMAGE':
	  $listing_sql .= "pd.products_name";
	  break;
	case 'PRODUCT_LIST_WEIGHT':
	  $listing_sql .= "p.products_weight " . ($sort_order == 'd' ? 'desc' : '') . ", pd.products_name";
	  break;
	case 'PRODUCT_LIST_PRICE':
	  $listing_sql .= "final_price " . ($sort_order == 'd' ? 'desc' : '') . ", pd.products_name";
	  break;
  }
}
?>
<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>
<?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 . ' ';
	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 '</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'];
}
?>
	  </tr>
	</table></td>
  </tr>
  <tr>
	<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
  </tr>


-->


  <tr>
	<td><?php include(DIR_WS_MODULES . FILENAME_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 cellspacing=0 cellpadding=0>
			<tr>
			  <td width=362 valign=top>
<?php include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS); ?>
			   </td>
			   <td width=3></td>
			   <td width=161 valign=top>
				<table cellspacing=0 cellpadding=0>
				 <tr><td>
					  <table cellspacing=0 cellpadding=0>
					   <tr><td colspan=2><a href=<?=tep_href_link('product_info.php', 'cPath=23&products_id=55')?>><img src=images/m54.gif width=161 height=118 border=0></a></td></tr>
					   <tr><td><img src=images/m55.gif width=68 height=30><a href=<?=tep_href_link('product_info.php', 'cPath=23&products_id=55')?>><img src=images/m56.gif width=93 height=30 border=0></a></td></tr>
					   </table>
				 </td></td>
				 <tr><td height=3></td></tr>
				 <tr><td>
					  <table cellspacing=0 cellpadding=0>
					   <tr><td colspan=2><a href=<?=tep_href_link('index.php', 'cPath=21')?>><img src=images/m57.gif width=161 height=145 border=0></a></td></tr>
					  </table>
				 </td></td>
				 <tr><td height=3></td></tr>
				 <tr><td>
					  <table cellspacing=0 cellpadding=0>
					   <tr><td colspan=2><a href=<?=tep_href_link('product_info.php', 'cPath=29&products_id=98')?>><img src=images/m41.gif width=161 height=119 border=0></a></td></tr>
					   <tr><td><img src=images/m40.gif width=63 height=29><a href=#><img src=images/m39.gif width=98 height=29 border=0></a></td></tr>						   
					  </table>
				 </td></td>					 
				</table>
		   </td></tr>
		  </table>



	</td>
  </tr>
</table>

</td>
<?php
 }
?>
<!-- body_text_eof //-->
 </tr>
</table>
<!-- body_eof //-->

<!-- footer //-->
<?php require(DIR_WS_INCLUDES . 'footer.php'); ?>
<!-- footer_eof //-->
</body>
</html>
<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>

 

header.php

<?php
/*
 $Id: header.php,v 1.42 2003/06/10 18:20:38 hpdl Exp $

 osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.com

 Copyright (c) 2003 osCommerce

 Released under the GNU General Public License
*/

// START STS 4.1
$sts->restart_capture ('applicationtop2header');
// END STS 4.1
// check if the 'install' directory exists, and warn of its existence
 if (WARN_INSTALL_EXISTENCE == 'true') {
if (file_exists(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/install')) {
  $messageStack->add('header', WARNING_INSTALL_DIRECTORY_EXISTS, 'warning');
}
 }

// check if the configure.php file is writeable
 if (WARN_CONFIG_WRITEABLE == 'true') {
if ( (file_exists(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/includes/configure.php')) && (is_writeable(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/includes/configure.php')) ) {
  $messageStack->add('header', WARNING_CONFIG_FILE_WRITEABLE, 'warning');
}
 }

// check if the session folder is writeable
 if (WARN_SESSION_DIRECTORY_NOT_WRITEABLE == 'true') {
if (STORE_SESSIONS == '') {
  if (!is_dir(tep_session_save_path())) {
	$messageStack->add('header', WARNING_SESSION_DIRECTORY_NON_EXISTENT, 'warning');
  } elseif (!is_writeable(tep_session_save_path())) {
	$messageStack->add('header', WARNING_SESSION_DIRECTORY_NOT_WRITEABLE, 'warning');
  }
}
 }

// check session.auto_start is disabled
 if ( (function_exists('ini_get')) && (WARN_SESSION_AUTO_START == 'true') ) {
if (ini_get('session.auto_start') == '1') {
  $messageStack->add('header', WARNING_SESSION_AUTO_START, 'warning');
}
 }

 if ( (WARN_DOWNLOAD_DIRECTORY_NOT_READABLE == 'true') && (DOWNLOAD_ENABLED == 'true') ) {
if (!is_dir(DIR_FS_DOWNLOAD)) {
  $messageStack->add('header', WARNING_DOWNLOAD_DIRECTORY_NON_EXISTENT, 'warning');
}
 }

 if ($messageStack->size('header') > 0) {
echo $messageStack->output('header');
 }
?>
<script type="text/javascript">
///////  START DISABLING RIGHT CLICK  \\\\\\\\\\\\
var message="disable right click";
function click(e)
{
 if (document.all)
 {
if (event.button==2||event.button==3)
{
  alert(message);
  return false;
}
 }
 else
 {
if (e.button==2||e.button==3)
{
  e.preventDefault();
  e.stopPropagation();
  alert(message);
  return false;
}
 }
}

if (document.all) // for IE
{
 document.onmousedown=click;
}
else // for FF
{
 document.onclick=click;
}

//if IE4+
document.onselectstart=new Function ("return false")

//if NS6
if (window.sidebar){
window.onmousedown=disableselect
document.onclick=reEnable
}

if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById){
document.onmousedown=clickIE4;
}
document.oncontextmenu=new Function("alert(message);return false")

//////  END OF DISABLING RIGHT CLICK  \\\\\\\\\\\
</script>

 <table cellspacing=0 cellpadding=0 width=736 align=center>
  <tr><td>
	<table cellspacing=0 cellpadding=0>
	 <tr><td height=13 colspan=6></td></tr>
	 <tr><td><a href=<?=tep_href_link('index.php')?>><img src=images/m01.gif width=251 height=70 border=0></a></td>
		 <td width=200></td>
		 <td width=125 height=70>
		  <table cellspacing=0 cellpadding=0 width=86 align=center>
				<table cellspacing=0 cellpadding=0 width=127 align=center>
				 <tr><td><img src=images/m12.gif width=3 height=3 align=absmiddle>   <a href=<?=tep_href_link('create_account.php')?> class=ml1>Sign in</a></td></tr>
				 <tr><td height=2></td></tr>						  
				 <tr><td><img src=images/m12.gif width=3 height=3 align=absmiddle>   <a href=<?=tep_href_link('conditions.php')?> class=ml1>Help</a></td></tr>
				 <tr><td height=2></td></tr>						  
				 <tr><td><img src=images/m12.gif width=3 height=3 align=absmiddle>   <a href=<?=tep_href_link('contact_us.php')?> class=ml1>Contact</a></td></tr>
				 <tr><td height=2></td></tr>					 <tr><td>																					

		   </td></tr>
		  </table>					 
		 </td>
		 <td><img src=images/m17.gif width=1 height=70></td>
		 <td width=159 height=70>
		  <table cellspacing=0 cellpadding=0 align=center width=133>
		   <tr><td height=10 colspan=2></td></tr>
		   <tr><td align=center><a href=<?=tep_href_link('shopping_cart.php')?>><img src=images/m03.gif width=33 height=33 border=0></a></td><td class=cy>Shopping cart</td></tr>
		   <tr><td height=3 colspan=2></td></tr>			   
		   <tr><td colspan=2>have<b>  <a href=<?=tep_href_link('shopping_cart.php')?> class=ml><?=$cart->count_contents()?> món</a></b><br>Price: <b>  <a href=<?=tep_href_link('shopping_cart.php')?> class=cy1><?= $currencies->format($cart->show_total())?></td></tr>			   
		   <tr><td height=8 colspan=2></td></tr>
		  </table>															
	 </td></tr>
	</table>
	<table cellspacing=0 cellpadding=0>
	 <tr><td width=199 valign=top>
		  <table cellspacing=0 cellpadding=0>
		   <tr><td><img src=images/m07.gif width=199 height=13></td></tr>			   
		   <tr><td><a href=<?=tep_href_link('index.php')?>><img src=images/m18.gif width=199 height=29 border=0></a></td></tr>
		   <tr><td><a href=<?=tep_href_link('products_new.php')?>><img src=images/m19.gif width=199 height=25 border=0></a></td></tr>
		   <tr><td><a href=<?=tep_href_link('account.php')?>><img src=images/m20.gif width=199 height=24 border=0></a></td></tr>
		   <tr><td><a href=<?=tep_href_link('shopping_cart.php')?>><img src=images/m21.gif width=199 height=24 border=0></a></td></tr>
		   <tr><td><a href=<?=tep_href_link('checkout_shipping.php')?>><img src=images/m22.gif width=199 height=31 border=0></a></td></tr>							  
		   <tr><td><img src=images/m15.gif width=199 height=18></td></tr>
		  </table>
		 </td>
		 <td valign=top><img src=images/m08.jpg width=203 height=164><img src=images/m09.jpg width=174 height=164></td>
		 <td>
		  <table cellspacing=0 cellpadding=0 height=164 border=0>
		   <tr><td><img src=images/m10.gif width=160 height=16></td></tr>
		   <tr><td class=bg>
				<table cellspacing=0 cellpadding=0 width=127 align=center>											   
				 <tr><td>
				 <? require(DIR_WS_BOXES . 'memberlogin.php'); ?>								  
				 </td></tr>
				</table>
		   </td></tr>
		   <tr><td><img src=images/m16.gif width=160 height=18></td></tr>
		  </table>
	 </td></tr>
	</table>
	<table cellspacing=0 cellpadding=0>
	 <tr><td colspan=3 height=3></td></tr>
	 <tr><td width=207 valign=top>
		  <table cellspacing=0 cellpadding=0>
		   <tr><td><img src=images/m24.gif width=207 height=40></td></tr>
		   <tr><td class=bg1>
				<table cellspacing=0 cellpadding=0 width=167 align=center>
				 <tr><td height=18></td></tr>

<?   // ---- CATEGORIES

 function tep_show_category($counter) {
global $tree, $categories_string, $cPath_array;

  if(!$tree[$counter]['level']){


$categories_string .= $categories_string ? '<tr><td><img src=images/m26.gif width=167 height=1><br><br class=px2></td></tr>' : '';			 

$categories_string .= '<tr><td><img src=images/m25.gif width=5 height=5 align=absmiddle>   <a class=ml1 href=';

if ($tree[$counter]['parent'] == 0) {
  $cPath_new = 'cPath=' . $counter;
} else {
  $cPath_new = 'cPath=' . $tree[$counter]['path'];
}
$categories_string .= tep_href_link('index.php', $cPath_new) . '>';
// display category name
$categories_string .= $tree[$counter]['name'];
$categories_string .= '</a><br><br class=px4></td></tr>';
  }else{
$categories_string .= '<tr><td>';

for($i=0;$i<$tree[$counter]['level'];$i++)
 $categories_string .= '   ';

$categories_string .= ' - <a class=ml1 href=';   
if ($tree[$counter]['parent'] == 0) {
  $cPath_new = 'cPath=' . $counter;
} else {
  $cPath_new = 'cPath=' . $tree[$counter]['path'];
}
$categories_string .= tep_href_link('index.php', $cPath_new) . '>';
// display category name
$categories_string .= $tree[$counter]['name'];
$categories_string .= '</a><br><br class=px4></td></tr>';
  }  

if ($tree[$counter]['next_id'] != false) {
  tep_show_category($tree[$counter]['next_id']);
}  
 }



 define(TABLE_CATEGORIES, "categories");
 define(TABLE_CATEGORIES_DESCRIPTION, "categories_description");
 $categories_string = '';
 $tree = array();

 $categories_query = tep_db_query("select c.categories_id, cd.categories_name, c.parent_id from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.parent_id = '0' and c.categories_id = cd.categories_id and cd.language_id='" . (int)$languages_id ."' order by sort_order, cd.categories_name");
 while ($categories = tep_db_fetch_array($categories_query))  {
$tree[$categories['categories_id']] = array('name' => $categories['categories_name'],
											'parent' => $categories['parent_id'],
											'level' => 0,
											'path' => $categories['categories_id'],
											'next_id' => false);

if (isset($parent_id)) {
  $tree[$parent_id]['next_id'] = $categories['categories_id'];
}

$parent_id = $categories['categories_id'];

if (!isset($first_element)) {
  $first_element = $categories['categories_id'];
}
 }

 //------------------------
 if ($cPath) {
$new_path = '';
reset($cPath_array);
while (list($key, $value) = each($cPath_array)) {
  unset($parent_id);
  unset($first_id);
  $categories_query = tep_db_query("select c.categories_id, cd.categories_name, c.parent_id from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.parent_id = '" . (int)$value . "' and c.categories_id = cd.categories_id and cd.language_id='" . (int)$languages_id ."' order by sort_order, cd.categories_name");
  if (tep_db_num_rows($categories_query)) {
	$new_path .= $value;
	while ($row = tep_db_fetch_array($categories_query)) {
	  $tree[$row['categories_id']] = array('name' => $row['categories_name'],
										   'parent' => $row['parent_id'],
										   'level' => $key+1,
										   'path' => $new_path . '_' . $row['categories_id'],
										   'next_id' => false);

	  if (isset($parent_id)) {
		$tree[$parent_id]['next_id'] = $row['categories_id'];
	  }

	  $parent_id = $row['categories_id'];

	  if (!isset($first_id)) {
		$first_id = $row['categories_id'];
	  }

	  $last_id = $row['categories_id'];
	}
	$tree[$last_id]['next_id'] = $tree[$value]['next_id'];
	$tree[$value]['next_id'] = $first_id;
	$new_path .= '_';
  } else {
	break;
  }
}
 }
 $categories_string .=  '';
 tep_show_category($first_element); 
 $categories_string .=  '';

 echo $categories_string;
?>
				 <tr><td height=5></td></tr>					
				</table>
		   </td></tr>
		   <tr><td><img src=images/m27.gif width=207 height=6></td></tr>
		   <tr><td height=3></td></tr>
		  </table>
		  <table cellspacing=0 cellpadding=0>
		   <tr><td><img src=images/m28.gif width=207 height=40></td></tr>
		   <tr><td class=bg1>
				<table cellspacing=0 cellpadding=0 width=175 align=center border=0>   
				<? require(DIR_WS_BOXES . 'manufacturers.php'); ?>  
				</table>
		   </td></tr>
		   <tr><td><img src=images/m27.gif width=207 height=6></td></tr>
		   <tr><td height=3></td></tr>
		  </table>
		  <table cellspacing=0 cellpadding=0>
		   <tr><td><img src=images/m28.gif width=207 height=40></td></tr>
		   <tr><td class=bg1>
				<table cellspacing=0 cellpadding=0 width=175 align=center border=0>

				<?
				 echo tep_draw_form('quick_find', tep_href_link(FILENAME_ADVANCED_SEARCH_RESULT, '', 'NONSSL', false), 'get');

		   echo '<tr><td height=17 colspan=2></td></tr>
				 <tr><td valign=top align=right>'.tep_draw_input_field('keywords', '', 'size="20" maxlength="30" class=go') . ' ' . tep_hide_session_id() . '</td><td valign=top align=left> <input type=image src=images/m30.gif width=31 height=21></td></tr>
				 <tr><td height=8 colspan=2></td></tr>
				 <tr><td colspan=2><a class=ml2 href="' . tep_href_link(FILENAME_ADVANCED_SEARCH) . '">' . BOX_SEARCH_ADVANCED_SEARCH . '</a></td></tr>
				 <tr><td height=8 colspan=2></td></tr>
				</form>';
				?>

				</table>
		   </td></tr>
		   <tr><td><img src=images/m27.gif width=207 height=6></td></tr>
		  </table>
		 </td>
		 <td width=3 valign=top></td>
		 <td width=526 valign=top>

Posted

I'm sorry, this does not help me. Please follow the instructions from my post. You gave me php code.

:-)

Monika

 

addicted to writing code ... can't get enough of databases either, LOL!

 

my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum

 

Interactive Media Award July 2007 ~ category E-Commerce

my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ...

Posted

sorry,here my index file

<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
<html dir="LTR" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 
<title>Thợ Điện.Com</title>
<base href="http://localhost/shop/">
<link rel="stylesheet" type="text/css" href="stylesheet.css">
<script type="text/javascript" src="preload.js"></script>
</head>
<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0">
<div id="preloader">
<div id="preloadIMG"><img src="loading.gif" alt="" /></div>
</div>
<!-- header //-->

<script type="text/javascript">
///////  START DISABLING RIGHT CLICK  \\\\\\\\\\\\
var message="Disable right click";
function click(e)
{
 if (document.all)
 {
if (event.button==2||event.button==3)
{
  alert(message);
  return false;
}
 }
 else
 {
if (e.button==2||e.button==3)
{
  e.preventDefault();
  e.stopPropagation();
  alert(message);
  return false;
}
 }
}

if (document.all) // for IE
{
 document.onmousedown=click;
}
else // for FF
{
 document.onclick=click;
}

//if IE4+
document.onselectstart=new Function ("return false")

//if NS6
if (window.sidebar){
window.onmousedown=disableselect
document.onclick=reEnable
}

if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById){
document.onmousedown=clickIE4;
}
document.oncontextmenu=new Function("alert(message);return false")

//////  END OF DISABLING RIGHT CLICK  \\\\\\\\\\\

</script>

 <table cellspacing=0 cellpadding=0 width=736 align=center>
  <tr><td>
	<table cellspacing=0 cellpadding=0>
	 <tr><td height=13 colspan=6></td></tr>
	 <tr><td><a href=http://localhost/shop/index.php?osCsid=1b8a7f709bb5378e23000db96d58d7ba><img src=images/m01.gif width=251 height=70 border=0></a></td>
		 <td width=200></td>
		 <td width=125 height=70>
		  <table cellspacing=0 cellpadding=0 width=86 align=center>

				<table cellspacing=0 cellpadding=0 width=127 align=center>
				 <tr><td><img src=images/m12.gif width=3 height=3 align=absmiddle>   <a href=http://localhost/shop/create_account.php?osCsid=1b8a7f709bb5378e23000db96d58d7ba class=ml1>Sign up</a></td></tr>
				 <tr><td height=2></td></tr>						  
				 <tr><td><img src=images/m12.gif width=3 height=3 align=absmiddle>   <a href=http://localhost/shop/conditions.php?osCsid=1b8a7f709bb5378e23000db96d58d7ba class=ml1>Help</a></td></tr>
				 <tr><td height=2></td></tr>						  
				 <tr><td><img src=images/m12.gif width=3 height=3 align=absmiddle>   <a href=http://localhost/shop/contact_us.php?osCsid=1b8a7f709bb5378e23000db96d58d7ba class=ml1>Contact</a></td></tr>

				 <tr><td height=2></td></tr>					 <tr><td>																					

		   </td></tr>
		  </table>					 
		 </td>
		 <td><img src=images/m17.gif width=1 height=70></td>
		 <td width=159 height=70>
		  <table cellspacing=0 cellpadding=0 align=center width=133>
		   <tr><td height=10 colspan=2></td></tr>
		   <tr><td align=center><a href=http://localhost/shop/shopping_cart.php?osCsid=1b8a7f709bb5378e23000db96d58d7ba><img src=images/m03.gif width=33 height=33 border=0></a></td><td class=cy>Giỏ hàng</td></tr>

		   <tr><td height=3 colspan=2></td></tr>			   
		   <tr><td colspan=2>you have<b>  <a href=http://localhost/shop/shopping_cart.php?osCsid=1b8a7f709bb5378e23000db96d58d7ba class=ml>0 item</a></b><br>Toal: <b>  <a href=http://localhost/shop/shopping_cart.php?osCsid=1b8a7f709bb5378e23000db96d58d7ba class=cy1>0đ</td></tr>			   
		   <tr><td height=8 colspan=2></td></tr>
		  </table>															
	 </td></tr>
	</table>
	<table cellspacing=0 cellpadding=0>

	 <tr><td width=199 valign=top>
		  <table cellspacing=0 cellpadding=0>
		   <tr><td><img src=images/m07.gif width=199 height=13></td></tr>			   
		   <tr><td><a href=http://localhost/shop/index.php?osCsid=1b8a7f709bb5378e23000db96d58d7ba><img src=images/m18.gif width=199 height=29 border=0></a></td></tr>
		   <tr><td><a href=http://localhost/shop/products_new.php?osCsid=1b8a7f709bb5378e23000db96d58d7ba><img src=images/m19.gif width=199 height=25 border=0></a></td></tr>
		   <tr><td><a href=http://localhost/shop/account.php?osCsid=1b8a7f709bb5378e23000db96d58d7ba><img src=images/m20.gif width=199 height=24 border=0></a></td></tr>
		   <tr><td><a href=http://localhost/shop/shopping_cart.php?osCsid=1b8a7f709bb5378e23000db96d58d7ba><img src=images/m21.gif width=199 height=24 border=0></a></td></tr>
		   <tr><td><a href=http://localhost/shop/checkout_shipping.php?osCsid=1b8a7f709bb5378e23000db96d58d7ba><img src=images/m22.gif width=199 height=31 border=0></a></td></tr>							  
		   <tr><td><img src=images/m15.gif width=199 height=18></td></tr>
		  </table>

		 </td>
		 <td valign=top><img src=images/m08.jpg width=203 height=164><img src=images/m09.jpg width=174 height=164></td>
		 <td>
		  <table cellspacing=0 cellpadding=0 height=164 border=0>
		   <tr><td><img src=images/m10.gif width=160 height=16></td></tr>
		   <tr><td class=bg>
				<table cellspacing=0 cellpadding=0 width=127 align=center>											   
				 <tr><td>
				 <!-- information //-->

	  <tr>
		<td>
<table border="0" width="100%" cellspacing="0" cellpadding="0">
 <tr>
<td height="14" class="infoBoxHeading"><img src="images/infobox/corner_right_left.gif" border="0" alt="" width="10" height="35"></td>
<td width="100%" height="14" class="infoBoxHeading">Sign in</td>
<td height="14" class="infoBoxHeading" nowrap><img src="images/pixel_trans.gif" border="0" alt="" width="11" height="14"></td>
 </tr>
</table>

<table border="0" width="100%" cellspacing="0" cellpadding="1" class="infoBox">
 <tr>
<td><table border="0" width="100%" cellspacing="0" cellpadding="3" class="infoBoxContents">
 <tr>
<td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td>
 </tr>
 <tr>
<td align="left" class="boxText">		
	<form name="login" action="login.php?action=process" method="post">
		 <center>

	  <table border="0" cellpadding="0" cellspacing="0" class="smallText" >
		<tr >
		  <td width="100%" height="16" class="smallText">
		  <p align="center">Email</td>
		</tr>
		<tr>
		  <td width="100%" height="16" class="smallText">
		  <p align="center">

		 <input maxLength="96" name="email_address"size="12">
		 </td>
		</tr>
		<tr>
		  <td width="100%" height="16" class="smallText">
		  <p align="center">Password</font></td>
		</tr>
		<tr>

		  <td width="100%" height="19">
		  <p align="center"><b>
			<font size="1" class="smallText"> <input type="password" maxLength="40" value name="password" size="12"></b>
			</td>
		</tr>
		<tr>
		  <td width="100%" height="1" class="smallText">
		  <p align="center"><input type="submit" value="Sign in" name="Submit"><br><a class="smallText" href="http://localhost/shop/password_forgotten.php?osCsid=1b8a7f709bb5378e23000db96d58d7ba">Forget password?</a>

	</td>
		</tr>
	  </table>
	</form>
	</td>
 </tr>
 <tr>
<td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td>
 </tr>

</table>
</td>
 </tr>
</table>
</td></tr>
<!-- information_eof //-->

				 </td></tr>
				</table>
		   </td></tr>
		   <tr><td><img src=images/m16.gif width=160 height=18></td></tr>
		  </table>

	 </td></tr>
	</table>
	<table cellspacing=0 cellpadding=0>
	 <tr><td colspan=3 height=3></td></tr>
	 <tr><td width=207 valign=top>
		  <table cellspacing=0 cellpadding=0>
		   <tr><td><img src=images/m24.gif width=207 height=40></td></tr>
		   <tr><td class=bg1>
				<table cellspacing=0 cellpadding=0 width=167 align=center>

				 <tr><td height=18></td></tr>

<tr><td><img src=images/m25.gif width=5 height=5 align=absmiddle>   <a class=ml1 href=http://localhost/shop/product2-c-21.html?osCsid=1b8a7f709bb5378e23000db96d58d7ba>Product1</a><br><br class=px4></td></tr><tr><td><img src=images/m26.gif width=167 height=1><br><br class=px2></td></tr><tr><td><img src=images/m25.gif width=5 height=5 align=absmiddle>   <a class=ml1 href=http://localhost/shop/product1-c-22.html?osCsid=1b8a7f709bb5378e23000db96d58d7ba>Product2</a><br><br class=px4></td></tr><tr><td><img src=images/m26.gif width=167 height=1><br><br class=px2></td></tr><tr><td><img src=images/m25.gif width=5 height=5 align=absmiddle>   <a class=ml1 href=http://localhost/shop/product3-c-24.html?osCsid=1b8a7f709bb5378e23000db96d58d7ba>Product3</a><br><br class=px4></td></tr>					 <tr><td height=5></td></tr>					
				</table>

		   </td></tr>
		   <tr><td><img src=images/m27.gif width=207 height=6></td></tr>
		   <tr><td height=3></td></tr>
		  </table>
		  <table cellspacing=0 cellpadding=0>
		   <tr><td><img src=images/m28.gif width=207 height=40></td></tr>
		   <tr><td class=bg1>
				<table cellspacing=0 cellpadding=0 width=175 align=center border=0>   
				<!-- manufacturers //-->

	  <tr>
		<td>
<table border="0" width="100%" cellspacing="0" cellpadding="0">
 <tr>
<td height="14" class="infoBoxHeading"><img src="images/infobox/corner_right_left.gif" border="0" alt="" width="10" height="35"></td>
<td width="100%" height="14" class="infoBoxHeading">Manufactures</td>
<td height="14" class="infoBoxHeading" nowrap><img src="images/pixel_trans.gif" border="0" alt="" width="11" height="14"></td>
 </tr>
</table>

<table border="0" width="100%" cellspacing="0" cellpadding="1" class="infoBox">
 <tr>
<td><table border="0" width="100%" cellspacing="0" cellpadding="3" class="infoBoxContents">
 <tr>
<td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td>
 </tr>
 <tr>
<td class="boxText"><form name="manufacturers" action="http://localhost/shop/index.php" method="get"><select name="manufacturers_id" onChange="this.form.submit();" size="1" style="width: 100%"><option value="" SELECTED>Please select</option><option value="42">AC</option><option value="14">TCL</option><option value="38">Tihen</option><option value="39">Viwa</option></select><input type="hidden" name="osCsid" value="1b8a7f709bb5378e23000db96d58d7ba"></form></td>

 </tr>
 <tr>
<td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="1"></td>
 </tr>
</table>
</td>
 </tr>
</table>
		</td>
	  </tr>

<!-- manufacturers_eof //-->

				</table>
		   </td></tr>
		   <tr><td><img src=images/m27.gif width=207 height=6></td></tr>
		   <tr><td height=3></td></tr>
		  </table>
		  <table cellspacing=0 cellpadding=0>
		   <tr><td><img src=images/m28.gif width=207 height=40></td></tr>
		   <tr><td class=bg1>

				<table cellspacing=0 cellpadding=0 width=175 align=center border=0>

				<form name="quick_find" action="http://localhost/shop/advanced_search_result.php" method="get"><tr><td height=17 colspan=2></td></tr>
				 <tr><td valign=top align=right><input type="text" name="keywords" class=go size="20" maxlength="30" class=go> <input type="hidden" name="osCsid" value="1b8a7f709bb5378e23000db96d58d7ba"></td><td valign=top align=left> <input type=image src=images/m30.gif width=31 height=21></td></tr>
				 <tr><td height=8 colspan=2></td></tr>
				 <tr><td colspan=2><a class=ml2 href="http://localhost/shop/advanced_search.php?osCsid=1b8a7f709bb5378e23000db96d58d7ba">Advanced Search</a></td></tr>
				 <tr><td height=8 colspan=2></td></tr>
				</form>						   
				</table>
		   </td></tr>

		   <tr><td><img src=images/m27.gif width=207 height=6></td></tr>
		  </table>
		 </td>
		 <td width=3 valign=top></td>
		 <td width=526 valign=top>
<!-- header_eof //-->

<!-- body //-->
<table border="0" width="100%" cellspacing="0" cellpadding="0">
 <tr>
<!-- body_text //-->

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


		  <table cellspacing=0 cellpadding=0>
			<tr>
			  <td width=362 valign=top>
<!-- new_products //-->

				<table cellspacing=0 cellpadding=0>

				 <tr><td><img src=images/m61.gif width=362 height=5></td></tr>
				 <tr><td class=bg4>
				  <table cellspacing=0 cellpadding=0><tr>

						   <td width=180 valign=top>
							<table cellspacing=0 cellpadding=0 width=150 align=center>

							 <tr><td colspan=2 height=10></td></tr>
							 <tr>
							   <td><a href="http://localhost/shop/dvd4-p-4203.html?osCsid=1b8a7f709bb5378e23000db96d58d7ba"><img src="images/chengli/RC3P63.jpg" border="0" alt="dvd2" title=" dvd2 " width="70" height="70" class=shadow1></a></td>
							   <td valign=top align=right>
								<table cellspacing=0 cellpadding=0>
								 <tr height=70><td class=cy valign=top align=right><a href="http://localhost/shop/dvd6-p-4203.html?osCsid=1b8a7f709bb5378e23000db96d58d7ba">dvd2</a></td></tr>
								 <tr><td class=cy1 align=right>0đ</td></tr>
								</table>

							   </td>
							 </tr>
							 <tr><td colspan=2 height=8></td></tr>
							 <tr><td colspan=2 align=center><img src=images/m36.gif width=143 height=1></td></tr>
							 <tr><td colspan=2 height=12></td></tr>
							 <tr><td colspan=2 align=center><a href="http://localhost/shop/dvd9-p-4203.html?osCsid=1b8a7f709bb5378e23000db96d58d7ba"><img src="includes/languages/english/images/buttons/small_view.gif" border="0" alt=" Details " title=" Details " width="71" height="19"></a> <a href="http://localhost/shop/index.php?products_id=4203&action=buy_now&osCsid=1b8a7f709bb5378e23000db96d58d7ba"><img src="includes/languages/english/images/buttons/button_in_cart.gif" border="0" alt=" Put this product to cart " title=" Put this product to cart " width="56" height="19"></a></td></tr>
							 <tr><td colspan=2 height=12></td></tr>
							</table>						 
						   </td>

<!--
				 <tr><td valign=top></td>
					 <td width=108 valign=top>
					  <table cellspacing=0 cellpadding=0 width=100 height=110 align=right>
					   <tr><td><b></b><br><br class=px2></td></tr>
					   <tr><td class=bc1></td></tr>
					   <tr><td></td></tr>
					   <tr><td></td></tr>
					  </table>
				 </td></tr>										  
				</table>
			   </td>
-->	<td width=0></td>
						   <td width=180 valign=top>
							<table cellspacing=0 cellpadding=0 width=150 align=center>
							 <tr><td colspan=2 height=10></td></tr>
							 <tr>
							   <td><a href="http://localhost/shop/dvd8-p-4202.html?osCsid=1b8a7f709bb5378e23000db96d58d7ba"><img src="images/chengli/RC3P50.jpg" border="0" alt="dvd6" title=" dvd6  " width="70" height="70" class=shadow1></a></td>
							   <td valign=top align=right>
								<table cellspacing=0 cellpadding=0>

								 <tr height=70><td class=cy valign=top align=right><a href="http://localhost/shop/dvd5-p-4202.html?osCsid=1b8a7f709bb5378e23000db96d58d7ba">Product 1</a></td></tr>
								 <tr><td class=cy1 align=right>0đ</td></tr>
								</table>
							   </td>
							 </tr>
							 <tr><td colspan=2 height=8></td></tr>
							 <tr><td colspan=2 align=center><img src=images/m36.gif width=143 height=1></td></tr>
							 <tr><td colspan=2 height=12></td></tr>

							 <tr><td colspan=2 align=center><a href="http://localhost/shop/cau-dao-p-4202.html?osCsid=1b8a7f709bb5378e23000db96d58d7ba"><img src="includes/languages/english/images/buttons/small_view.gif" border="0" alt="Details" title=" Details " width="71" height="19"></a> <a href="http://localhost/shop/index.php?products_id=4202&action=buy_now&osCsid=1b8a7f709bb5378e23000db96d58d7ba"><img src="includes/languages/english/images/buttons/button_in_cart.gif" border="0" alt="Put this product to cart" title=" Put this product to cart " width="56" height="19"></a></td></tr>
							 <tr><td colspan=2 height=12></td></tr>
							</table>						 
						   </td>

<!--
				 <tr><td valign=top></td>
					 <td width=108 valign=top>
					  <table cellspacing=0 cellpadding=0 width=100 height=110 align=right>
					   <tr><td><b></b><br><br class=px2></td></tr>
					   <tr><td class=bc1></td></tr>
					   <tr><td></td></tr>
					   <tr><td></td></tr>
					  </table>
				 </td></tr>										  
				</table>
			   </td>
-->	
					   </tr>
					  </table>
					  <table cellspacing=0 cellpadding=0>
					   <tr><td><img src=images/m58.gif width=359 height=1></td></tr>
					  </table>	 
					  <table cellspacing=0 cellpadding=0 align=center width=360>						   
					   <tr>


					 </tr></table>
				   </td></tr>
				 <tr><td><img src=images/m60.gif width=362 height=5></td></tr>
				</table>
   <!-- new_products_eof //-->
			   </td>
			   <td width=3></td>
			   <td width=161 valign=top>
				<table cellspacing=0 cellpadding=0>

				 <tr><td>
					  <table cellspacing=0 cellpadding=0>
					   <tr><td colspan=2><a href=http://localhost/shop/dvd4-55.html?osCsid=1b8a7f709bb5378e23000db96d58d7ba><img src=images/m54.gif width=161 height=118 border=0></a></td></tr>
					   <tr><td><img src=images/m55.gif width=68 height=30><a href=http://localhost/shop/dvd3-p-55.html?osCsid=1b8a7f709bb5378e23000db96d58d7ba><img src=images/m56.gif width=93 height=30 border=0></a></td></tr>
					   </table>
				 </td></td>
				 <tr><td height=3></td></tr>
				 <tr><td>
					  <table cellspacing=0 cellpadding=0>

					   <tr><td colspan=2><a href=http://localhost/shop/dvd2-c-21.html?osCsid=1b8a7f709bb5378e23000db96d58d7ba><img src=images/m57.gif width=161 height=145 border=0></a></td></tr>
					  </table>
				 </td></td>
				 <tr><td height=3></td></tr>
				 <tr><td>
					  <table cellspacing=0 cellpadding=0>
					   <tr><td colspan=2><a href=http://localhost/shop/dvd1-p-98.html?osCsid=1b8a7f709bb5378e23000db96d58d7ba><img src=images/m41.gif width=161 height=119 border=0></a></td></tr>
					   <tr><td><img src=images/m40.gif width=63 height=29><a href=#><img src=images/m39.gif width=98 height=29 border=0></a></td></tr>						   
					  </table>

				 </td></td>					 
				</table>
		   </td></tr>
		  </table>



	</td>
  </tr>
</table>

</td>

<!-- body_text_eof //-->
 </tr>
</table>
<!-- body_eof //-->

<!-- footer //-->


	 </td></tr>
	</table>
	<table cellspacing=0 cellpadding=0>
	 <tr><td height=5 colspan=4></td></tr>

	 <tr><td width=736 height=6 bgcolor=#d9d9d9 colspan=4></td></tr>
	 <tr><td height=14 colspan=4></td></tr>
	 <tr><td width=207 align=center valign=center><img src=images/m33.gif width=161 height=26></td>
		 <td><img src=images/m31.gif width=1 height=63></td>
		 <td width=21></td>
		 <td width=506>
		  <table cellspacing=0 cellpadding=0>
		   <tr><td height=15></td></tr>
		   <tr><td><a href=http://localhost/shop/index.php?osCsid=1b8a7f709bb5378e23000db96d58d7ba class=ml>Homepage</a>  <img src=images/m32.gif width=1 height=11 align=absmiddle>  <a href=http://localhost/shop/account.php?osCsid=1b8a7f709bb5378e23000db96d58d7ba class=ml>My account</a>  <img src=images/m32.gif width=1 height=11 align=absmiddle>  <a href=http://localhost/shop/shopping_cart.php?osCsid=1b8a7f709bb5378e23000db96d58d7ba class=ml>Shopping Cart</a>  <img src=images/m32.gif width=1 height=11 align=absmiddle>  <a href=http://localhost/shop/checkout_shipping.php?osCsid=1b8a7f709bb5378e23000db96d58d7ba class=ml>Shipping</a>  <img src=images/m32.gif width=1 height=11 align=absmiddle>  <a href=http://localhost/shop/privacy.php?osCsid=1b8a7f709bb5378e23000db96d58d7ba class=ml>Privacy</a></td></tr>

		   <tr><td height=10></td></tr>
		   <tr><td>Copyright © 2007 - Powered by <b><a href=http://oscommerce.com target=_blank class=ml1>Oscommerce</a></b></td></tr>
		   <tr><td height=30></td></tr>
		  </table>	  
		 </td></tr>
	 <tr><td height=20 colspan=4></td></tr>
	</table>

  </td></tr>
 </table>










<!-- footer_eof //-->
</body>
</html>

Posted

ok, the main structure is fine ... pleae now show me the PHP file for your loginbox

:-)

Monika

 

addicted to writing code ... can't get enough of databases either, LOL!

 

my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum

 

Interactive Media Award July 2007 ~ category E-Commerce

my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ...

Posted

here's my memberlogin.php file in shop\includes\boxes

<?php
/*
 $Id: information.php,v 1.5 2002/01/11 22:04:06 dgw_ Exp $

 osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.com

 Copyright (c) 2001 osCommerce

 Released under the GNU General Public License
*/
?>
<!-- information //-->
	  <tr>
		<td>
<?php

require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_LOGIN_WELCOME);

if (tep_session_is_registered('customer_id')) {

 $info_box_contents = array();
  $info_box_contents[] = array('align' => 'left',
							   'text'  => BOX_HEADING_MEMBERLOGGED_IN
							  );



$db=DB_DATABASE;

$select="select customers_firstname from customers where customers_id=\"$customer_id\"";
$result=mysql_db_query($db,$select);
$res=mysql_fetch_object($result);

	 $in_out_action = "<center>";
	 $in_out_action.= LOGIN_BOX_WELCOME_TEXT;
	 $in_out_action.= "<strong>$res->customers_firstname</strong><br><br>";
	 $in_out_action.= "<img src=images/m14.gif width=127 height=1>";
	 $in_out_action.='<a href="'.tep_href_link(FILENAME_ACCOUNT, '', 'SSL').'">';
	 $in_out_action.= LOGIN_BOX_WELCOME_MYACCOUNT;
	 $in_out_action.="<br><br>";
	 $in_out_action.='<a href="'.tep_href_link(FILENAME_LOGOFF, '', 'NONSSL').'">';
	 $in_out_action.= LOGIN_BOX_WELCOME_LOGOUT;
	 $in_out_action.="</a></center>";
 	} else {

	  $info_box_contents = array();
	  $info_box_contents[] = array('align' => 'left',
								   'text'  => BOX_HEADING_MEMBERLOGIN
									  );

	  $in_out_action = '		
	<form name="login" action="login.php?action=process" method="post">
		 <center>
	  <table border="0" cellpadding="0" cellspacing="0" class="smallText" >
		<tr >
		  <td width="100%" height="16" class="smallText">
		  <p align="center">';
	  $in_out_action.= LOGIN_BOX_WELCOME_EMAILADDRESS;
	  $in_out_action.= '</td>
		</tr>
		<tr>
		  <td width="100%" height="16" class="smallText">
		  <p align="center">
		 <input maxLength="96" name="email_address"size="12">
		 </td>
		</tr>
		<tr>
		  <td width="100%" height="16" class="smallText">
		  <p align="center">';
	  $in_out_action.=LOGIN_BOX_WELCOME_PASSWORD;
	  $in_out_action.='</font></td>
		</tr>
		<tr>
		  <td width="100%" height="19">
		  <p align="center"><b>
			<font size="1" class="smallText"> <input type="password" maxLength="40" value name="password" size="12"></b>
			</td>
		</tr>
		<tr>
		  <td width="100%" height="1" class="smallText">
		  <p align="center">';

	  $in_out_action.='<input type="submit" value="';
	  $in_out_action.= LOGIN_BOX_WELCOME_LOGIN;
	  $in_out_action.='" name="Submit">';
	//Forgotten Password
	  $in_out_action.= '<br>';
	  $in_out_action.='<a class="smallText" href="';
	  $in_out_action.=tep_href_link(FILENAME_PASSWORD_FORGOTTEN);
	  $in_out_action.='">';
	  $in_out_action.= LOGIN_BOX_PASSWORD_FORGOTTEN;
	  $in_out_action.='</a>
	</td>
		</tr>
	  </table>
	</form>
	';
 }

 new infoBoxHeading($info_box_contents, false, false);


 $info_box_contents = array();
 $info_box_contents[] = array('align' => 'left',
						   'params' => 'class="smallText" valign="top"',
						   'text'  => $in_out_action						   			
							);

 new infoBox($info_box_contents);

?></td></tr>
<!-- information_eof //-->

Posted

nothing that immediately strikes me ... I'd try changing this

 

<input type="password" maxLength="40" value name="password" size="12">

 

to this though

 

<input type="password" maxLength="40" value="" name="password" size="12">

:-)

Monika

 

addicted to writing code ... can't get enough of databases either, LOL!

 

my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum

 

Interactive Media Award July 2007 ~ category E-Commerce

my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ...

Posted

i tried as your follow but the problem still happen.i can't login.is there anyway ?

 

thanks a lot

Posted
i tried as your follow but the problem still happen.i can't login.is there anyway ?

 

thanks a lot

Hello, nope I'm sorry, I've reached the point where I would have to see it and add my own debug code to understand what is going wrong.

:-)

Monika

 

addicted to writing code ... can't get enough of databases either, LOL!

 

my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum

 

Interactive Media Award July 2007 ~ category E-Commerce

my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ...

Posted

thanks for your help

i'm waiting for your response

  • 1 month later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...