Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Index main


Veebilahendused

Recommended Posts

Hello !

 

Where i can delete these lines ::

			    <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">What's New Here?</td>
           <td class="pageHeading" align="right"><img src="images/table_background_default.gif" border="0" alt="What's New Here?" title=" What's New Here? " width="57" height="40"></td>
         </tr>
       </table></td>
     </tr>
     <tr>
       <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="10"></td>
     </tr>
     <tr>
       <td><table border="0" width="100%" cellspacing="0" cellpadding="0">
         <tr>
           <td class="main">Welcome <span class="greetUser">Guest!</span> Would you like to <a href="http://www.puncar.com/epood/login.php"><u>log yourself in</u></a>? Or would you prefer to <a href="http://www.puncar.com/epood/create_account.php"><u>create an account</u></a>?</td>
         </tr>
         <tr>
           <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="10"></td>
         </tr>
         <tr>
           <td class="main"></td>
         </tr>
         <tr>
           <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="10"></td>
         </tr>
         <tr>
           <td>

 

My index.php code is ::

			<?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);
		?>
		<!-- kategooria sub -->
		<?php
			if (isset($cPath) && strpos('_', $cPath)) {
		// check to see if there are deeper categories within the current category

			  for($i=0, $n=sizeof($category_links); $i<$n; $i++) {
				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 '               <div class="epood"><a class="ep" href="' . tep_href_link(FILENAME_DEFAULT, $cPath_new) . '">' . $categories['categories_name'] . '</a></div>' . "\n";
			  if ((($rows / MAX_DISPLAY_CATEGORIES_PER_ROW) == floor($rows / MAX_DISPLAY_CATEGORIES_PER_ROW)) && ($rows != $number_of_categories)) {
				echo '' . "\n";
				echo '' . "\n";
			  }
			}

		// needed for the new products module shown below
			$new_products_category_id = $current_category_id;
		?>

 

 

Please help me, i had try this already 3 days.

 

Best Reguards

Mike

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...