Link to home
Start Free TrialLog in
Avatar of Jason Yu
Jason YuFlag for United States of America

asked on

How do I locate these php web pages?

I am a new php webmaster for a small website.

When I try to find the page with link address like this: http://homeparadise.com/index.php?cPath=174_287

I could not find those pages. Would you please help me with this? I am attaching part of the index page below.

I appreciate any help from you!!


<div id="slider4" class="sliderwrapper"> <a href="index.php?cPath=174_287">
  <div class="contentdiv" style="background: url(images/content-slider/slider-carpet-collection.jpg) center left no-repeat"> </div>
  </a> <a href="index.php?cPath=259">
  <div class="contentdiv" style="background: url(images/content-slider/slider-appliance.jpg) center left no-repeat"> </div>
  </a> <a href="index.php?cPath=284_307">
  <div class="contentdiv" style="background: url(images/content-slider/slider-cabinet-light.jpg) center left no-repeat"> </div>
  </a> <a href="closet.php">
  <div class="contentdiv" style="background: url(images/content-slider/slider-custom-closet.jpg) center left no-repeat"> </div>
</a> </div>
Avatar of TWCGuy
TWCGuy
Flag of United States of America image

What are you looking for?  It appears your code sinippet has a div class relevant to cPath=174_287.  Are you trying to find the html page that will actually be displayed on an end users browser?
Avatar of Jason Yu

ASKER

yes, I wanna find the exact page which the href tag points to. I tried to find it inside the Index.php page, but not successful. From where can I get these pages ended with cPath=XXX (numbers)?

thanks.
it is index.php in which it is passing a value 174_287 to the variable cPath
ASKER CERTIFIED SOLUTION
Avatar of TWCGuy
TWCGuy
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
TWCGuy, thank you for your kindly reply, I am a beginner of PHP.  

Do you mean the code for displaying those pages are inside the index.php page. I am not sure which part of the page should I locate for those pages, because the index.php page is really very long.

here I will attach part of the index.php page as below.

Please advise, any comments will be appreciated.
<?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>

<!-- Step Carousel Viewer script -->
<!-- Accordion Content begins here-->
<script type="text/javascript" src="jquery-1.2.2.pack.js"></script>
<script type="text/javascript" src="ddaccordion.js">
/***********************************************
* Accordion Content script- (c) Dynamic Drive DHTML code library (www.dynamicdrive.com)
* Visit http://www.dynamicDrive.com for hundreds of DHTML scripts
* This notice must stay intact for legal use
***********************************************/
</script>

<script type="text/javascript">
//Initialize 2nd demo:
ddaccordion.init({
	headerclass: "technology", //Shared CSS class name of headers group
	contentclass: "thelanguage", //Shared CSS class name of contents group
	revealtype: "click", //Reveal content when user clicks or onmouseover the header? Valid value: "click" or "mouseover"
	collapseprev: false, //Collapse previous content (so only one open at any time)? true/false 
	defaultexpanded: [0, 1, 2], //index of content(s) open by default [index1, index2, etc]. [] denotes no content.
	animatedefault: false, //Should contents open by default be animated into view?
	persiststate: false, //persist state of opened contents within browser session?
	toggleclass: ["closedlanguage", "openlanguage"], //Two CSS classes to be applied to the header when it's collapsed and expanded, respectively ["class1", "class2"]
	togglehtml: ["prefix", "<img src='http://i13.tinypic.com/80mxwlz.gif' /> ", "<img src='http://i18.tinypic.com/6tpc4td.gif' /> "], //Additional HTML added to the header when it's collapsed and expanded, respectively  ["position", "html1", "html2"] (see docs)
	animatespeed: "fast", //speed of animation: "fast", "normal", or "slow"
	oninit:function(expandedindices){ //custom code to run when headers have initalized
		//do nothing
	},
	onopenclose:function(header, index, state, isuseractivated){ //custom code to run whenever a header is opened or closed
		//do nothing
	}
})
</script>
<!-- Accordion Content ends here-->
<link rel="stylesheet" type="text/css" href="contentslider.css" />

<script type="text/javascript" src="contentslider.js">

/***********************************************
* Featured Content Slider- (c) Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for this script and 100s more
***********************************************/

</script>

<?php include_once('includes/header-meta.php') ?>

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

<?php if($category_depth != 'products' && !isset($HTTP_GET_VARS['manufacturers_id']) && $category_depth != 'nested' && !isset($_GET['cPath']) ) {
	?>
<div id="slider4" class="sliderwrapper"> <a href="index.php?cPath=174_287">
  <div class="contentdiv" style="background: url(images/content-slider/slider-carpet-collection.jpg) center left no-repeat"> </div>
  </a> <a href="index.php?cPath=259">
  <div class="contentdiv" style="background: url(images/content-slider/slider-appliance.jpg) center left no-repeat"> </div>
  </a> <a href="index.php?cPath=284_307">
  <div class="contentdiv" style="background: url(images/content-slider/slider-cabinet-light.jpg) center left no-repeat"> </div>
  </a> <a href="closet.php">
  <div class="contentdiv" style="background: url(images/content-slider/slider-custom-closet.jpg) center left no-repeat"> </div>
</a> </div>
<div id="paginate-slider4">
		<!--<a href="#" class="toc"><img src="/images/content-slider/slider-icon-carpet.jpg" alt="Carpet collection"></a>
		<a href="#" class="toc someclass"><img src="/images/content-slider/slider-icon-appliance.jpg" alt="appliances"></a>
		<a href="#" class="toc someotheclass"><img src="/images/content-slider/slider-icon-lighting.jpg" alt="lighting"></a>
		<a href="#" class="toc someotheclass"><img src="/images/content-slider/slider-icon-closet.jpg" alt="closet"></a>-->
		</div>
				
		<script type="text/javascript">
		
		featuredcontentslider.init({
		id: "slider4", //id of main slider DIV
		contentsource: ["inline", ""], //Valid values: ["inline", ""] or ["ajax", "path_to_file"]
		toc: "markup", //Valid values: "#increment", "markup", ["label1", "label2", etc]
		nextprev: ["", "Next"], //labels for "prev" and "next" links. Set to "" to hide.
		revealtype: "click", //Behavior of pagination links to reveal the slides: "click" or "mouseover"
		enablefade: [true, 0.1], //[true/false, fadedegree]
		autorotate: [true, 3000], //[true/false, pausetime]
		onChange: function(previndex, curindex){ //event handler fired whenever script changes slide
		//previndex holds index of last slide viewed b4 current (1=1st slide, 2nd=2nd etc)
		//curindex holds index of currently shown slide (1=1st slide, 2nd=2nd etc)
		}
		})
		</script>
<?php } ?>

<!-- body //-->
<table border="0" width="100%" cellspacing="0" cellpadding="0">
  <tr>
    <td valign="top" class="col_left">
	<?php 
		if (!isset($_GET['cPath'])) {
	?>
		<a href="<?php echo $root_url.'vendor-program/';?>"></a>
	<?php 	
		}
	?>
<!-- left_navigation //-->
<?php require(DIR_WS_INCLUDES . 'column_left.php'); ?>
<!-- left_navigation_eof //-->
    </td>
<!-- 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%" class="col_center">
	<?php $category_name_query = tep_db_query("select categories_name from " . TABLE_CATEGORIES_DESCRIPTION . " where categories_id = " . (int)$current_category_id . " and language_id = " . (int)$languages_id);
$category_name = tep_db_fetch_array($category_name_query);
echo '<h2 class="cont_header_txt">'.$category_name['categories_name'].'</h2>'; ?>
    
    <!--
    this section is display when a category name is clicked
    -->
  <?php /*echo tep_draw_title_top();*/?>
	<?php /*echo $breadcrumb->trail(' &raquo; ')*/?>
	<?php /*echo tep_draw_title_bottom();*/ ?>	
    
	<?php include_once('includes/banner_select.php'); ?>
      
  <? /*tep_draw_heading_top();
  new contentBoxHeading_ProdNew($info_box_contents);*/ ?>
  
<?php  

	/*tep_draw_heading_top_3();

	echo '<table border="0" cellspacing="0" cellpadding="0" align="center" class="box_width_cont">
						<tr>';
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 width="' . $width . '">'.tep_draw_prod_top().'
			<table cellpadding="0" cellspacing="0" border="0"  style="height:127px">
				<tr><td style="height:26px"><a href="' . tep_href_link(FILENAME_DEFAULT, $cPath_new) . '">' . $categories['categories_name'] . '</a></td></tr>
				<tr>
					<td align="center">'.tep_draw_prod_top_1().'<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) . '</a>'.tep_draw_prod_bottom_1().'
						</td>
				</tr>
			</table>'.tep_draw_prod_bottom().'
		</td>
	  ' . "\n";
				  if ($col!=(MAX_DISPLAY_CATEGORIES_PER_ROW-1)){
				  echo '
						<td>'.tep_draw_separator('spacer.gif', '2', '1').'</td>					
						';
				  }
				 else{	
				 		      
	  if ((($rows / MAX_DISPLAY_CATEGORIES_PER_ROW) == floor($rows / MAX_DISPLAY_CATEGORIES_PER_ROW)) && ($rows != $number_of_categories)) {
		echo '              
	</tr><tr><td colspan="'.(MAX_DISPLAY_CATEGORIES_PER_ROW + MAX_DISPLAY_CATEGORIES_PER_ROW -1).'">'.tep_draw_separator('spacer.gif', '1', '10').'</td></tr>' . "\n";
		echo '              <tr>' . "\n";
	  }
	}
	if ($col==MAX_DISPLAY_CATEGORIES_PER_ROW-1){
	$col=0;
	}else{
	$col++;
	}
}	
echo '</table>';*/

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

//</table>
	  /*tep_draw_heading_bottom_3();
	  tep_draw_heading_bottom();
	  tep_draw_heading_top();*/
?>

<? /*new contentBoxHeading_WHATS_NEW($info_box_contents, true, false);
	tep_draw_heading_top_3();*/ ?>		

<div style="margin-top:5">
<img src="images/web-images/kitchen-promo_v2_20.jpg" alt="New Arrivals" />
</div>
<?php include(DIR_WS_MODULES . FILENAME_NEW_PRODUCTS); ?></td>
		
<? /*tep_draw_heading_bottom_3();
	tep_draw_heading_bottom();*/ ?>
		
	</td>
<?php
	/**************************************************************************************
	This is the product list page which will list all the products in a category	
	***************************************************************************************/
  } 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 p.products_date_added";*/
		  $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;
      }
    }
?>
    <td width="100%" class="col_center">
	<?php $category_name_query = tep_db_query("select categories_name from " . TABLE_CATEGORIES_DESCRIPTION . " where categories_id = " . (int)$current_category_id . " and language_id = " . (int)$languages_id);
$category_name = tep_db_fetch_array($category_name_query);
echo '<h2 class="cont_header_txt">'.$category_name['categories_name'].'</h2>'; ?>
		<!-- subcategory page -->
    <?php include_once('includes/banner_select.php'); ?>
    
<? /*tep_draw_heading_top();*/?>		
		
<?php

// 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'];
    }
?>
<?php include(DIR_WS_MODULES . FILENAME_PRODUCT_LISTING); ?>
     	
<? tep_draw_heading_bottom_3();?>

<? /*tep_draw_heading_bottom();*/?>		
		
	  </td>
<?php
  } else { // default page
?>
    <td width="100%" class="col_center">
    
	<div>
	<a href="index.php?cPath=254">
    
<!--
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="314" height="329" id="flash">
  <param name="movie" value="flash.swf">
  <param name="quality" value="high">
  <embed src="images/web-images/FrontPage-SalesV4_01.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="311" height="329"></embed>
</object>
-->

<img style="display:inline" src="images/web-images/FrontPage-SalesV4_01.jpg" width="311" height="329" title="Browse our kitchen cabinets in gallery" border="0" />


 </a>  
<a href="index.php?cPath=255">
<img style="display:inline" src="images/web-images/FrontPage-SalesV4_02.jpg" title="Browse our kitchen cabinets in gallery" border="0" /></a>

	</div>
	
    

	<div style="margin:5 0 0 0">
	<a href="index.php?cPath=259">
    <img style="display:inline" src="images/web-images/FrontPage-SalesV4_06.jpg" title="Browse our kitchen cabinets in gallery" border="0" /></a><a href="index.php?cPath=254_194"><img style="display:inline; margin:0 3" src="images/web-images/FrontPage-SalesV4_08.jpg" title="Browse our kitchen cabinets in gallery" border="0" /></a><a href="index.php?cPath=284_307"><img style="display:inline" src="images/web-images/FrontPage-SalesV4_10.jpg" title="Browse our kitchen cabinets in gallery" border="0" /></a>	</div>
    
    
	
	<div>
	<img style="display:inline" src="images/web-images/FrontPage-SalesV4_11.jpg" title="Top Brands at Home Paradise" border="0" />
	</div>
	
	<div style="margin:5 0">
	<a href="index.php?cPath=174_296"><img style="display:inline" src="images/web-images/FrontPage-SalesV4_12.jpg" title="Browse our kitchen cabinets in gallery" border="0" /></a><a href="index.php?cPath=174_287"><img style="display:inline;" src="images/web-images/FrontPage-SalesV4_13.jpg" title="Browse our kitchen cabinets in gallery" border="0" /></a><a href="index.php?cPath=174_265"><img style="display:inline" src="images/web-images/FrontPage-SalesV4_14.jpg" title="Browse our kitchen cabinets in gallery" border="0" /></a><a href="index.php?cPath=254_204"><img style="display:inline" src="images/web-images/FrontPage-SalesV4_15.jpg" title="Browse our kitchen cabinets in gallery" border="0" /></a>
	</div>
	
	<div style="margin:5 0">
	<a href="index.php?cPath=174_287"><img style="display:inline" src="images/web-images/FrontPage-SalesV4_16.jpg" title="Browse our kitchen cabinets in gallery" border="0" /></a><a href="index.php?cPath=174_265"><img style="display:inline;" src="images/web-images/FrontPage-SalesV4_17.jpg" title="Browse our kitchen cabinets in gallery" border="0" /></a>
	</div>
	
	<div style="margin:5 0">
	<a href="index.php?cPath=172"><img style="display:inline" src="images/web-images/FrontPage-SalesV4_18.jpg" title="Browse our kitchen cabinets in gallery" border="0" /></a><a href="index.php?cPath=295"><img style="display:inline;" src="images/web-images/FrontPage-SalesV4_19.jpg" title="Browse our kitchen cabinets in gallery" border="0" /></a>
	</div>
	
    </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'); ?>

Open in new window

You are getting closer.  Really php is more like a programming lanuage than html.  index.php posted above has some obvious sections (like the very first code snippet you posted) that will pertain to any specific cPath page.  Sorting out some of the deatils of which lines of php translate to what shows up on the end user's browser can be very tricky.  What do you want this information for?  Is there something on that particular page that you would like to change?  I think there is a better way to approach your problem than trying to brute-force comprehend all of how php works in one shot.  Which element of the finished pages are you interested in changing?
For this part:

<div id="slider4" class="sliderwrapper"> <a href="index.php?cPath=174_287">
  <div class="contentdiv" style="background: url(images/content-slider/slider-carpet-collection.jpg) center left no-repeat"> </div>
  </a> <a href="index.php?cPath=259">
  <div class="contentdiv" style="background: url(images/content-slider/slider-appliance.jpg) center left no-repeat"> </div>
  </a> <a href="index.php?cPath=284_307">
  <div class="contentdiv" style="background: url(images/content-slider/slider-cabinet-light.jpg) center left no-repeat"> </div>
  </a> <a href="closet.php">
  <div class="contentdiv" style="background: url(images/content-slider/slider-custom-closet.jpg) center left no-repeat"> </div>
</a> </div>


I want to add more pages on this dynamic changing part. I want to add a picture to this flash and link that picture to a similar page with cpath=174_287
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I found a file called bannerselection.php, it has the code as list below. I think this is the place where makes the displaying of the corresponding page.

are these case branches make the final page, or what is the function of these case selection code?

Does it display different pages according to customer's clicking on different links? Please advise, thank you.
<?php
switch($cPath){
/* ------------------------------------
kitchen category page
--------------------------------------- */
case '254':
?>
<div>
<a href="kitchen-cabinet.php"><img src="images/web-images/kitchen-promo_v2_01.jpg" title="Kitchen from Home Paradise" border="0" /></a>
</div>
<div style="padding:10px">
<p>All our cabinetry are ready-to-assemble, and can easily meet customer\'s demand in an efficient and money-saving way. Our warehouse has over 50,000 sft and allows the inventory for most of our products. We use advanced machines and modern technology to manufacture our cabinetry in traditional and contemporary styles. We are the member of National Kitchen & Bath  Association, and our products have strictly followed the standard of NKBA.</p>
</div>
<div>
<img src="images/web-images/kitchen-promo_v2_03.jpg" title="Kitchen from Home Paradise" />
</div>

<div>
<a href="kitchen-cabinet.php"><img style="display:inline" src="images/web-images/kitchen-promo_v2_04.jpg" title="Kitchen from Home Paradise" border="0" /></a>
<img style="display:inline" src="images/web-images/kitchen-promo_v2_05.jpg" />

<a href="index.php?cPath=254_204"><img style="display:inline" src="images/web-images/kitchen-promo_v2_06.jpg" title="Kitchen from Home Paradise" border="0" /></a>
<img style="display:inline" src="images/web-images/kitchen-promo_v2_07.jpg" />

<a href="index.php?cPath=254_196_309"><img style="display:inline" src="images/web-images/kitchen-promo_v2_08.jpg" title="Kitchen from Home Paradise" border="0" /></a>
<img style="display:inline" src="images/web-images/kitchen-promo_v2_09.jpg" />

<a href="index.php?cPath=254_194_308"><img style="display:inline" src="images/web-images/kitchen-promo_v2_10.jpg" title="Kitchen from Home Paradise" border="0" /></a>
</div>

<div style="margin-top:5">
<img src="images/web-images/kitchen-promo_v2_12.jpg" title="Kitchen from Home Paradise" />
</div>

<div>
<a href="index.php?cPath=284_307"><img style="display:inline" src="images/web-images/kitchen-promo_v2_13.jpg" title="Kitchen from Home Paradise" /></a><img style="display:inline" src="images/web-images/kitchen-promo_v2_14.jpg" />

<a href="index.php?cPath=284_286"><img style="display:inline" src="images/web-images/kitchen-promo_v2_15.jpg" title="Kitchen from Home Paradise" /></a><img style="display:inline" src="images/web-images/kitchen-promo_v2_16.jpg" />

<a href="index.php?cPath=254_196_309"><img style="display:inline" src="images/web-images/kitchen-promo_v2_17.jpg" title="Kitchen from Home Paradise" /></a><img style="display:inline" src="images/web-images/kitchen-promo_v2_18.jpg" />

<a href="index.php?cPath=259"><img style="display:inline" src="images/web-images/kitchen-promo_v2_19.jpg" title="Kitchen from Home Paradise" /></a>
</div>

<?php
break;

case '254_21': echo '
<center><img src="images/web-images/cat-kitchen-banner.jpg" title="All Kitchen Cabinetry" /></center>
<div style="padding:10px">
<h2 class="cont_header_txt">Kitchen Cabinets</h2>
<p>All our cabinetry are ready-to-assemble, and can easily meet customer\'s demand in an efficient and money-saving way. Our warehouse h1as over 50,000 sft and allows the inventory for most of our products. We use advanced machines and modern technology to manufacture our cabinetry in traditional and contemporary styles. We are the member of National Kitchen & Bath  Association, and our products have strictly followed the standard of NKBA.</p>
</div>
'; break;

case '254_21_238': echo '
<center><img src="images/web-images/lv1-canadian-banner.jpg" title="Canadian Maple" /></center>
<div style="padding:10px"><h2 class="cont_header_txt">Canadian Maple</h2><p>Introducing contemporary kitchen in natural maple color. Available in shaker style. The beauty and charm of true cabinetry emerge into this clean and simple line of Canadian Maple collection. Featured in contemporary style with well shaped  island and mullion frame doors.</p>
</div>	
'; break;

case '254_21_147': echo '
<center><img src="images/web-images/lv1-cherry-banner.jpg" title="Cherry" /></center>
<div style="padding:10px"><h2 class="cont_header_txt">Cherry</h2><p>This classic color warms the heart and home of everyone who enters  the kitchen. Its door frame is designed with mitered corners and raised panel. Accented with mullion frame doors, clean glass inserts, classic crown and toe moldings. With a beautiful collaboration of style and detail, our Cherry collection makes an elegant statement. The traditional style is welcomed by many generations.</p>
</div>	
'; break;

case '254_21_244': echo '
<center><img src="images/web-images/lv1-euro-banner.jpg" title="Euro-style" /></center>
<div style="padding:10px"><h2 class="cont_header_txt">Euro-Style</h2><p>Solid color and open construction capture the best of Euro-style cabinets, and meet the unique needs of young generations.
Imagination If you are an empty nester who wants to remodel your kitchen with an  uncluttered European look, Home Paradise has options to  capture your heart and imagination.</p>
</div>	
'; break;

case '254_21_26': echo '
<center><img src="images/web-images/lv1-oak-banner.jpg" title="Oak finish" /></center>
<div style="padding:10px"><h2 class="cont_header_txt">Oak</h2><p>With the charms of traditional  oak finish, your kitchen becomes very warm and comfortable. Classic, time-honered, and simple - Our Oak collection expresses all and more. Accented with shiny sink and stainless-steel appliances, which adds a cool contrast to the warm color of cabinetry.</p>
</div>	
'; break;

case '254_21_42': echo '
<center><img src="images/web-images/lv1-maple1-banner.jpg" title="Maple I" /></center>
<div style="padding:10px"><h2 class="cont_header_txt">Maple I</h2><p>All our cabinetry are ready-to-assemble, and can easily meet customer\'s demand in an efficient and money-saving way. Our warehouse has over 50,000 sft and allows the inventory for most of our products. We use advanced machines and modern technology to manufacture our cabinetry in traditional and contemporary styles. We are the member of National Kitchen & Bath  Association, and our products have strictly followed the standard of NKBA.</p></div>	
'; break;

case '254_21_41': echo '
<center><img src="images/web-images/lv1-coffee-banner.jpg" title="Coffee Glaze Cabinet" /></center>
<div style="padding:10px">
<table>
<tr>
<td>
<img src="images/sample-door-gallery/doors/door-sample-m2.jpg" />
</td>
<td style="padding:20px;">
<h2 class="cont_header_txt">Maple Coffee Glaze</h2>
<p>Maple II - Maple Coffee glaze is one of our most popular cabinet lines. Raised panel door perfectly matches the rope crown moldings and natural coffee glaze color is welcomed by almost every kitchen.</p>
</td>
</tr>
</table>
<br /><br />
<h2>All Cabinets</h2>
<!--<a href="#" onClick="ddaccordion.expandone("technology", 0); return false">Expand 1st header</a> | <a href="#" onClick="ddaccordion.collapseone("technology", 0); return false">Collapse 1st header</a> | <a href="#" onClick="ddaccordion.toggleone("technology", 1); return false">Toggle 2nd header</a>-->

<h3 class="technology">Base Cabinet</h3>
<div class="thelanguage">
	<table>
		<tr>
			<td><img src="images/cabinets/drawer-base.jpg" /></td>
			<td>
			<p>
			<b>Base Cabinet</b><br />
			B09, B12, B15, B18, B18(pull out), B21, B21(pull out), B24, B24(pull out), B27, B27(pull out), B30, B33, B36, B42
			</p>
			<p>
			<b>Spice Cabinet</b><br />
			BLB06, BLB09, BLB12
			</p>
			<p>
			<b>Trash Can Cabinet</b><br />
			BWK15
			</p>
			<p>
			<b>Sink Base Cabinet</b><br />
			SB30, SB33, SB36, SB42
			</p>
			<p>
			<b>Sink Corner Cabinet</b><br />
			SBA36
			</p>
			<p>
			<b>Drawer Base Cabinet</b><br />
			DB12, DB15, DB18, DB21, DB24, DB27, DB30, DB36
			</p>
			<p>
			<b>Base Corner Cabinet</b><br />
			DCB33, DCB36, BBC36, BBC42
			</p>
			</td>
		</tr>
	</table>
</div>

<h3 class="technology">Wall Cabinet</h3>
<div class="thelanguage">
	<table>
		<tr>
			<td><img src="images/cabinets/wall-cabinet.jpg" /></td>
			<td>
			<p>
			<b>Wall Cabinet</b><br />
			
			</p>
			</td>
		</tr>
	</table>
</div>

<h3 class="technology">Tall Cabinet</h3>
<div class="thelanguage">
  <table>
		<tr>
			<td><img src="images/cabinets/wall-pantry.jpg" /></td>
			<td>
			<p>
			<b>Tall Cabinet</b><br />
			
			</p>
			</td>
		</tr>
	</table>
</div>

</div>	

'; break;

case '254_21_148': echo '
<center><img src="images/web-images/lv1-white-banner.jpg" title="Creamy white cabinets" /></center>
<div style="padding:10px"><h2 class="cont_header_txt">Creamy White</h2><p>Introducing our beadboard panel Creamy White cabinets. Classic and soft color offers a smooth transition between a traditional past and contemporary present. Creamy White provides an even and clean finish. Featured with grooved panel, a wine rack, and self-close drawers.</p></div>	
'; break;

/* Kitchen Faucet */
case '254_308':
?>
<center><img src="images/web-images/kitchen-faucet-banner.jpg" title="Kitchen Ranges by Dacor" /></center>
<?php break;

/* ------------------------------------
Kitchen Sinks
--------------------------------------- */
case '254_196_309':
?>
<center><img src="images/web-images/kitchen-sink-banner.jpg" title="Shop Kohler Kitchen Sink" /></center>
<?php break;

/* ------------------------------------
bathroom category page
--------------------------------------- */
case '255':
?>
<div>
<img src="images/web-images/bath-promo_v1_01.jpg" border="0" usemap="#Map" title="Bathroom products from Kohler" />
<map name="Map" id="Map"><area shape="rect" coords="31,200,155,305" href="index.php?cPath=255_262" />
<area shape="rect" coords="158,43,261,265" href="index.php?cPath=255_314" />
<area shape="rect" coords="193,272,512,405" href="index.php?cPath=255_320" />
</map>
</div>

<div style="margin-top:5">
<a href="service-quote.php"><img src="images/web-images/bath-promo_v1_03.jpg" title="Bathroom products from Kohler" border="0" /></a>
</div>

<div style="margin-top:5">
<img src="images/web-images/bath-promo_v1_05.jpg" title="Kitchen from Home Paradise" />
</div>

<div>
<a href="index.php?cPath=255_262"><img style="display:inline" src="images/web-images/bath-promo_v1_06.jpg" title="Kitchen from Home Paradise" border="0" /></a><img style="display:inline" src="images/web-images/bath-promo_v1_07.jpg" /><a href="index.php?cPath=255_1"><img style="display:inline" src="images/web-images/bath-promo_v1_08.jpg" title="Kitchen from Home Paradise" border="0" /></a><img style="display:inline" src="images/web-images/bath-promo_v1_09.jpg" /><a href="index.php?cPath=255_314"><img style="display:inline" src="images/web-images/bath-promo_v1_10.jpg" title="Kitchen from Home Paradise" border="0" /></a><img style="display:inline" src="images/web-images/bath-promo_v1_11.jpg" /><a href="index.php?cPath=255_323"><img style="display:inline" src="images/web-images/bath-promo_v1_12.jpg" title="Kitchen from Home Paradise" border="0" /></a>
</div>

<div style="margin-top:5">
<img src="images/web-images/bath-promo_v1_14.jpg" title="Other products that may interest you" />
</div>

<div>
<a href="index.php?cPath=174"><img style="display:inline" src="images/web-images/bath-promo_v1_15.jpg" title="Kitchen from Home Paradise" /></a><img style="display:inline" src="images/web-images/bath-promo_v1_16.jpg" /><a href="index.php?cPath=284_307"><img style="display:inline" src="images/web-images/bath-promo_v1_17.jpg" title="Kitchen from Home Paradise" /></a><img style="display:inline" src="images/web-images/bath-promo_v1_18.jpg" /><a href="index.php?cPath=319"><img style="display:inline" src="images/web-images/bath-promo_v1_19.jpg" title="Kitchen from Home Paradise" /></a><img style="display:inline" src="images/web-images/bath-promo_v1_20.jpg" /><a href="index.php?cPath=174_296"><img style="display:inline" src="images/web-images/bath-promo_v1_21.jpg" title="Kitchen from Home Paradise" /></a>
</div>


<?php
break;
/* ------------------------------------
flooring category page
--------------------------------------- */
case '174': ?>
<div>
<a href="index.php?cPath=174_287"><img src="images/web-images/flooring_promo_v1_01.jpg" border="0" /></a>
</div>

<div style="margin-top:5">
<a href="index.php?cPath=174_265"><img src="images/web-images/flooring_promo_v1_03.jpg" title="Kitchen from Home Paradise" border="0" /></a>
</div>

<div style="margin-top:5">
<img src="images/web-images/flooring_promo_v1_05.jpg" title="Kitchen from Home Paradise" />
</div>
<div>
<a href="index.php?cPath=174_81"><img style="display:inline" src="images/web-images/flooring_promo_v1_06.jpg" title="Kitchen from Home Paradise" border="0" /></a><img style="display:inline" src="images/web-images/flooring_promo_v1_07.jpg" /><a href="index.php?cPath=174_287"><img style="display:inline" src="images/web-images/flooring_promo_v1_08.jpg" title="Kitchen from Home Paradise" border="0" /></a><img style="display:inline" src="images/web-images/flooring_promo_v1_09.jpg" /><a href="index.php?cPath=174_296"><img style="display:inline" src="images/web-images/flooring_promo_v1_10.jpg" title="Kitchen from Home Paradise" border="0" /></a><img style="display:inline" src="images/web-images/flooring_promo_v1_11.jpg" /><a href="index.php?cPath=174_177"><img style="display:inline" src="images/web-images/flooring_promo_v1_12.jpg" title="Kitchen from Home Paradise" border="0" /></a>
</div>
<div style="margin-top:5">
<img src="images/web-images/flooring_promo_v1_14.jpg" title="Kitchen from Home Paradise" />
</div>
<div>
<a href="index.php?cPath=284_286"><img style="display:inline" src="images/web-images/flooring_promo_v1_15.jpg" title="Kitchen from Home Paradise" /></a><img style="display:inline" src="images/web-images/flooring_promo_v1_16.jpg" /><a href="index.php?cPath=295"><img style="display:inline" src="images/web-images/flooring_promo_v1_17.jpg" title="Kitchen from Home Paradise" /></a><img style="display:inline" src="images/web-images/flooring_promo_v1_18.jpg" /><a href="index.php?cPath=259"><img style="display:inline" src="images/web-images/flooring_promo_v1_19.jpg" title="Kitchen from Home Paradise" /></a><img style="display:inline" src="images/web-images/flooring_promo_v1_20.jpg" /><a href="index.php?cPath=255"><img style="display:inline" src="images/web-images/flooring_promo_v1_21.jpg" title="Kitchen from Home Paradise" /></a>
</div>

<?php
break;

/* ------------------------------------
mosaic category page
--------------------------------------- */
case '174_265': ?>
<center><img src="images/web-images/flooring-hardwood-banner.jpg" /></center>
<?php break;
/* ------------------------------------
mosaic category page
--------------------------------------- */
case '319':
?>
<div>
<img src="images/web-images/tilestone_promo_v1_01.jpg" />
</div>

<div>
<p style="padding:10px">
Mosaic has played a significant role in home decorating industry for thousands of years. Through-out our collections, you will find not only very latest mosaic styles and concepts, but also luxurious designs and materials.
</p>
</div>

<div style="margin-top:5">
<img src="images/web-images/tilestone_promo_v1_03.jpg" title="Kitchen from Home Paradise" />
</div>
<div>
<a href="index.php?cPath=319_163"><img style="display:inline" src="images/web-images/tilestone_promo_v1_04.jpg" title="Kitchen from Home Paradise" border="0" /></a><img style="display:inline" src="images/web-images/tilestone_promo_v1_05.jpg" /><a href="index.php?cPath=319_275"><img style="display:inline" src="images/web-images/tilestone_promo_v1_06.jpg" title="Kitchen from Home Paradise" border="0" /></a><img style="display:inline" src="images/web-images/tilestone_promo_v1_07.jpg" /><a href="index.php?cPath=319_40"><img style="display:inline" src="images/web-images/tilestone_promo_v1_08.jpg" title="Kitchen from Home Paradise" border="0" /></a><img style="display:inline" src="images/web-images/tilestone_promo_v1_09.jpg" /><a href="index.php?cPath=319_261"><img style="display:inline" src="images/web-images/tilestone_promo_v1_10.jpg" title="Kitchen from Home Paradise" border="0" /></a>
</div>
<div style="margin-top:5">
<img src="images/web-images/tilestone_promo_v1_12.jpg" title="Kitchen from Home Paradise" />
</div>
<div>
<a href="index.php?cPath=255_195"><img style="display:inline" src="images/web-images/tilestone_promo_v1_13.jpg" title="Kitchen from Home Paradise" /></a><img style="display:inline" src="images/web-images/tilestone_promo_v1_14.jpg" /><a href="index.php?cPath=254_204"><img style="display:inline" src="images/web-images/tilestone_promo_v1_15.jpg" title="Kitchen from Home Paradise" /></a><img style="display:inline" src="images/web-images/tilestone_promo_v1_16.jpg" /><a href="index.php?cPath=255_320"><img style="display:inline" src="images/web-images/tilestone_promo_v1_17.jpg" title="Kitchen from Home Paradise" /></a><img style="display:inline" src="images/web-images/tilestone_promo_v1_18.jpg" /><a href="index.php?cPath=255_262"><img style="display:inline" src="images/web-images/tilestone_promo_v1_19.jpg" title="Kitchen from Home Paradise" /></a>
</div>

<?php
break;

/* ------------------------------------
appliances category page
--------------------------------------- */
case '259': 
?>
<div>
<img src="images/web-images/appliances_promo_v1_02.jpg" />
</div>
<div>
<img src="images/web-images/appliances_promo_v1_01.jpg" title="Kitchen from Home Paradise" border="0" />
</div>

<div style="margin-top:5">
<img src="images/web-images/appliances_promo_v1_03.jpg" title="Kitchen from Home Paradise" />
</div>
<div>
<a href="index.php?cPath=259_263"><img style="display:inline" src="images/web-images/appliances_promo_v1_04.jpg" title="Kitchen from Home Paradise" border="0" /></a><img style="display:inline" src="images/web-images/appliances_promo_v1_05.jpg" /><a href="index.php?cPath=259_264"><img style="display:inline" src="images/web-images/appliances_promo_v1_06.jpg" title="Kitchen from Home Paradise" border="0" /></a><img style="display:inline" src="images/web-images/appliances_promo_v1_07.jpg" /><a href="index.php?cPath=259_276"><img style="display:inline" src="images/web-images/appliances_promo_v1_08.jpg" title="Kitchen from Home Paradise" border="0" /></a><img style="display:inline" src="images/web-images/appliances_promo_v1_09.jpg" /><a href="index.php?cPath=259_281"><img style="display:inline" src="images/web-images/appliances_promo_v1_10.jpg" title="Kitchen from Home Paradise" border="0" /></a>
</div>
<div style="margin-top:5">
<img src="images/web-images/appliances_promo_v1_12.jpg" title="Kitchen from Home Paradise" />
</div>
<div>
<a href="index.php?cPath=174_265"><img style="display:inline" src="images/web-images/appliances_promo_v1_13.jpg" title="Kitchen from Home Paradise" /></a><img style="display:inline" src="images/web-images/appliances_promo_v1_14.jpg" /><a href="index.php?cPath=284_307"><img style="display:inline" src="images/web-images/appliances_promo_v1_15.jpg" title="Kitchen from Home Paradise" /></a><img style="display:inline" src="images/web-images/appliances_promo_v1_16.jpg" /><a href="index.php?cPath=319"><img style="display:inline" src="images/web-images/appliances_promo_v1_17.jpg" title="Kitchen from Home Paradise" /></a><img style="display:inline" src="images/web-images/appliances_promo_v1_18.jpg" /><a href="index.php?cPath=174_81"><img style="display:inline" src="images/web-images/appliances_promo_v1_19.jpg" title="Kitchen from Home Paradise" /></a>
</div>

<?php break;

/* Appliance Ranges */
case '259_263':
?>
<center><img src="images/web-images/appliance-rang-banner.jpg" title="Kitchen Ranges by Dacor" /></center>
<?php break;

/* Appliance Regrigeration */
case '259_264':
?>
<center><img src="images/web-images/appliance-refri-banner.jpg" title="Kitchen Refrigeration by Dacor" /></center>
<?php break;

/* Appliance Wall Oven */
case '259_276':
?>
<center><img src="images/web-images/app-wall-oven-banner.jpg" title="Kitchen Wall Oven by Dacor" /></center>
<?php break;

/* Appliance Cooktop */
case '259_277':
?>
<center><img src="images/web-images/app-cooktop-banner.jpg" title="Kitchen Cooktop by Dacor" /></center>
<?php break;

/* Appliance Dishwasher */
case '259_278':
?>
<center><img src="images/web-images/app-dishwasher-banner.jpg" title="Kitchen Dishwasher by Dacor" /></center>
<?php break;

/* Appliance Microwaves */
case '259_280':
?>
<center><img src="images/web-images/app-microwaves-banner.jpg" title="Kitchen Microwaves by Dacor" /></center>
<?php break;

/* Appliance Ventilation */
case '259_281':
?>
<center><img src="images/web-images/app-ventilation-banner.jpg" title="Kitchen Ventilation by Dacor" /></center>
<?php break;

/* Appliance Ranges */
case '259_263':
?>
<center><img src="images/web-images/appliance-rang-banner.jpg" title="Kitchen Ranges by Dacor" /></center>
<?php break;

/*------------------------------------------
Bathroom Vanity
--------------------------------------------*/
case '255_1': echo '
<center><img src="images/web-images/lv1-bath-banner.jpg" title="Bathroom Vanity" /></center>
<div style="padding:10px"><p>Home Paradise\' bathroom cabinetry is accented with all kind the vanity. Our flexible design and wide range of vanity and lined cabinets offer endless possibilities. A Home Paradise Designer can show you how to put that passibity\'s to work in your home.</p></div>
'; break;

/*------------------------------------------
Bathroom Countertop
--------------------------------------------*/
case '255_214': echo '
<center><img src="images/web-images/lv1-vanity-banner.jpg" title="Bathroom Countertop" /></center>
<div style="padding:10px"><h2 class="cont_header_txt">Vanity Countertop</h2><p>Home Paradise provides custom-made bathroom countertops which can be tailored to fit your bathroom design in any color, pattern, size and shape.</p></div>
'; break;

/*------------------------------------------
Bathroom Toilet
--------------------------------------------*/
case '255_323':
?>
<center><img src="images/web-images/lv1-bath-toilet-banner.jpg" title="Kohler Bathroom Toilet" /></center>
<?php break;

/*------------------------------------------
Bathroom Toilet
--------------------------------------------*/
case '255_329':
?>
<center><img src="images/web-images/bath-toilet-seat-banner.jpg" title="Kohler Bathroom Toilet Seat" /></center>
<?php break;

/*------------------------------------------
Bathroom Sinks
--------------------------------------------*/
case '255_262': 
?>
<center><img src="images/web-images/lv1-bathroom-sink-banner.jpg" title="Bathroom Sinks" /></center>
<div style="margin-top:5">
<img src="images/web-images/appliances_promo_v1_03.jpg" title="Kitchen from Home Paradise" />
</div>
<table>
<tr>
    <td style="width: 33%;" align="center"><div style="border: 1px solid rgb(204, 204, 204); width: 160px; text-align: center;" align="center">
<table border="0" cellpadding="0" cellspacing="0">
                        <tbody><tr align="center">
                            <td style="height: 40px;"><a href="http://homeparadise.com/product_info.php?cPath=255_262_175&amp;products_id=1342">PH-A112</a></td>
                        </tr>
                        <tr style="height: 160px;" align="center">
                            <td><a href="http://homeparadise.com/product_info.php?cPath=255_262_175&amp;products_id=1342"><img src="images/100/PH-A-112.jpg" alt="PH-A112" title=" PH-A112 " width="150" border="0" height="150"></a></td>

                        </tr>
						<tr align="center">
                            <td class="middle" style="height: 26px;"><span class="productSpecialPrice">$140.00</span> </td>
                        </tr>
                        <tr align="center">
                            <td class="middle"><a style="height: 50px;" href="http://homeparadise.com/products_new.php?action=buy_now&amp;products_id=1342"><img src="includes/languages/english/images/buttons/button_add_to_cart2.gif" alt="" width="132" border="0" height="21"></a></td>
                        </tr>
                    </tbody></table>										   
	</div></td>  

<td style="width: 1px;"><img src="images/spacer.gif" alt="" width="2" border="0" height="1"></td>    <td style="width: 33%;" align="center"><div style="border: 1px solid rgb(204, 204, 204); width: 160px; text-align: center;" align="center">
                    <table border="0" cellpadding="0" cellspacing="0">
                        <tbody><tr align="center">
                            <td style="height: 40px;"><a href="http://homeparadise.com/product_info.php?cPath=255_262_175&amp;products_id=1343">PH-A113</a></td>
                        </tr>
                        <tr style="height: 160px;" align="center">
                            <td><a href="http://homeparadise.com/product_info.php?cPath=255_262_175&amp;products_id=1343"><img src="images/100/PH-A-113.jpg" alt="PH-A113" title=" PH-A113 " width="150" border="0" height="150"></a></td>
                        </tr>

						<tr align="center">
                            <td class="middle" style="height: 26px;"><span class="productSpecialPrice">$140.00</span> </td>
                        </tr>
                        <tr align="center">
                            <td class="middle"><a style="height: 50px;" href="http://homeparadise.com/products_new.php?action=buy_now&amp;products_id=1343"><img src="includes/languages/english/images/buttons/button_add_to_cart2.gif" alt="" width="132" border="0" height="21"></a></td>
                        </tr>
                    </tbody></table>										   
	</div></td>  

<td style="width: 1px;"><img src="images/spacer.gif" alt="" width="2" border="0" height="1"></td>    <td style="width: 33%;" align="center"><div style="border: 1px solid rgb(204, 204, 204); width: 160px; text-align: center;" align="center">
                    <table border="0" cellpadding="0" cellspacing="0">
                        <tbody><tr align="center">
                            <td style="height: 40px;"><a href="http://homeparadise.com/product_info.php?cPath=255_262_175&amp;products_id=1344">PH-A114</a></td>
                        </tr>
                        <tr style="height: 160px;" align="center">
                            <td><a href="http://homeparadise.com/product_info.php?cPath=255_262_175&amp;products_id=1344"><img src="images/100/PH-A-114.jpg" alt="PH-A114" title=" PH-A114 " width="150" border="0" height="150"></a></td>
                        </tr>

						<tr align="center">
                            <td class="middle" style="height: 26px;"><span class="productSpecialPrice">$140.00</span> </td>
                        </tr>
                        <tr align="center">
                            <td class="middle"><a style="height: 50px;" href="http://homeparadise.com/products_new.php?action=buy_now&amp;products_id=1344"><img src="includes/languages/english/images/buttons/button_add_to_cart2.gif" alt="" width="132" border="0" height="21"></a></td>
                        </tr>
                    </tbody></table>	
					</div></td></tr></table>	
<?php break;

/*------------------------------------------
Furniture
--------------------------------------------*/
case '270': 
?>

<div>
<img src="images/web-images/furniture_promo_v1_01.jpg" title="Kitchen from Home Paradise" border="0" />
</div>

<div>
<p style="padding:10;">
Check out our brand new storage-efficient Bookcase and Media Cabinets. With a complete sense of symmetry and balance, the cabinets are dedicated to providing the highest quality goods. Our selection of bookcase and media cabinets let you find the perfect complement to your living rooms or bedrooms.
</p>
</div>

<div style="margin-top:5">
<img src="images/web-images/furniture_promo_v1_03.jpg" title="Kitchen from Home Paradise" />
</div>
<div>
<a href="index.php?cPath=259"><img style="display:inline" src="images/web-images/furniture_promo_v1_04.jpg" title="Kitchen from Home Paradise" border="0" /></a><img style="display:inline" src="images/web-images/furniture_promo_v1_05.jpg" /><a href="index.php?cPath=284_307"><img style="display:inline" src="images/web-images/furniture_promo_v1_06.jpg" title="Kitchen from Home Paradise" border="0" /></a><img style="display:inline" src="images/web-images/furniture_promo_v1_07.jpg" /><a href="index.php?cPath=284_286"><img style="display:inline" src="images/web-images/furniture_promo_v1_08.jpg" title="Kitchen from Home Paradise" border="0" /></a><img style="display:inline" src="images/web-images/furniture_promo_v1_09.jpg" /><a href="index.php?cPath=270_271"><img style="display:inline" src="images/web-images/furniture_promo_v1_10.jpg" title="Kitchen from Home Paradise" border="0" /></a>
</div>
<div style="margin-top:5">
<img src="images/web-images/furniture_promo_v1_12.jpg" title="Kitchen from Home Paradise" />
</div>
<div>
<a href="index.php?cPath=174_265"><img style="display:inline" src="images/web-images/furniture_promo_v1_13.jpg" title="Kitchen from Home Paradise" /></a><img style="display:inline" src="images/web-images/furniture_promo_v1_14.jpg" /><a href="index.php?cPath=255_262"><img style="display:inline" src="images/web-images/furniture_promo_v1_15.jpg" title="Kitchen from Home Paradise" /></a><img style="display:inline" src="images/web-images/furniture_promo_v1_16.jpg" /><a href="index.php?cPath=319_163"><img style="display:inline" src="images/web-images/furniture_promo_v1_17.jpg" title="Kitchen from Home Paradise" /></a><img style="display:inline" src="images/web-images/furniture_promo_v1_18.jpg" /><a href="index.php?cPath=174_287"><img style="display:inline" src="images/web-images/furniture_promo_v1_19.jpg" title="Kitchen from Home Paradise" /></a>
</div>


<?php break;

/*------------------------------------------
Lightings
--------------------------------------------*/
case '284': 
?>
<div>
<a href="index.php?cPath=284_307"><img src="images/web-images/lighting_promo_v1_01.jpg" border="0" /></a>
</div>
<div style="padding:10;">
Home Paradise offers you many types of lighting and with our broad product selections. From bath bars and sconces to pendants and chandeliers and even outdoor lights. 
</div>

<div style="margin-top:5">
<img src="images/web-images/lighting_promo_v1_03.jpg" title="Kitchen from Home Paradise" />
</div>
<div>
<a href="index.php?cPath=284_286"><img style="display:inline" src="images/web-images/lighting_promo_v1_04.jpg" title="Kitchen from Home Paradise" border="0" /></a><img style="display:inline" src="images/web-images/lighting_promo_v1_05.jpg" /><a href="index.php?cPath=284_307"><img style="display:inline" src="images/web-images/lighting_promo_v1_06.jpg" title="Kitchen from Home Paradise" border="0" /></a><img style="display:inline" src="images/web-images/lighting_promo_v1_07.jpg" /><a href="index.php?cPath=284_286"><img style="display:inline" src="images/web-images/lighting_promo_v1_08.jpg" title="Kitchen from Home Paradise" border="0" /></a><img style="display:inline" src="images/web-images/lighting_promo_v1_09.jpg" /><a href="index.php?cPath=254_204"><img style="display:inline" src="images/web-images/lighting_promo_v1_10.jpg" title="Kitchen from Home Paradise" border="0" /></a>
</div>
<div style="margin-top:5">
<img src="images/web-images/lighting_promo_v1_12.jpg" title="Kitchen from Home Paradise" />
</div>
<div>
<a href="index.php?cPath=174_265"><img style="display:inline" src="images/web-images/lighting_promo_v1_13.jpg" title="Kitchen from Home Paradise" /></a><img style="display:inline" src="images/web-images/lighting_promo_v1_14.jpg" /><a href="index.php?cPath=295"><img style="display:inline" src="images/web-images/lighting_promo_v1_15.jpg" title="Kitchen from Home Paradise" /></a><img style="display:inline" src="images/web-images/lighting_promo_v1_16.jpg" /><a href="index.php?cPath=319"><img style="display:inline" src="images/web-images/lighting_promo_v1_17.jpg" title="Kitchen from Home Paradise" /></a><img style="display:inline" src="images/web-images/lighting_promo_v1_18.jpg" /><a href="index.php?cPath=174_287"><img style="display:inline" src="images/web-images/lighting_promo_v1_19.jpg" title="Kitchen from Home Paradise" /></a>
</div>

<?php
break;

/* ++++++++++++++++++++++++++++++++++++
	Lighting Chandeliers
	+++++++++++++++++++++++++++++++++++++++ */
	case '284_322': ?>
	<center><img src="images/web-images/lighting-chandelier-banner.jpg" title="Lighting Chandelier by Kichler" /></center>
	<?php break;
	
/* ++++++++++++++++++++++++++++++++++++
	Lighting Cabinet Lights
	+++++++++++++++++++++++++++++++++++++++ */
	case '284_286': ?>
	<center><img src="images/web-images/lighting-cabinet-banner.jpg" title="Lighting Cabinet Lights by Kichler" /></center>
	<?php break;

/*------------------------------------------
Windows and Doors
--------------------------------------------*/
case '295': 
?>
<div>
<img src="images/web-images/windoors_promo_v1_01.jpg" border="0" />
</div>

<div style="margin-top:5">
<img src="images/web-images/windoors_promo_v1_03.jpg" title="Kitchen from Home Paradise" />
</div>
<div>
<a href="doors-and-windows.php"><img style="display:inline" src="images/web-images/windoors_promo_v1_04.jpg" title="Kitchen from Home Paradise" border="0" /></a><img style="display:inline" src="images/web-images/windoors_promo_v1_05.jpg" /><a href="index.php?cPath=174_287"><img style="display:inline" src="images/web-images/windoors_promo_v1_06.jpg" title="Kitchen from Home Paradise" border="0" /></a><img style="display:inline" src="images/web-images/windoors_promo_v1_07.jpg" /><a href="index.php?cPath=295_310"><img style="display:inline" src="images/web-images/windoors_promo_v1_08.jpg" title="Kitchen from Home Paradise" border="0" /></a><img style="display:inline" src="images/web-images/windoors_promo_v1_09.jpg" /><a href="index.php?cPath=174_265"><img style="display:inline" src="images/web-images/windoors_promo_v1_10.jpg" title="Kitchen from Home Paradise" border="0" /></a>
</div>
<div style="margin-top:5">
<img src="images/web-images/windoors_promo_v1_12.jpg" title="Kitchen from Home Paradise" />
</div>
<div>
<a href="index.php?cPath=174_81"><img style="display:inline" src="images/web-images/windoors_promo_v1_13.jpg" title="Kitchen from Home Paradise" /></a><img style="display:inline" src="images/web-images/windoors_promo_v1_14.jpg" /><a href="index.php?cPath=174_296"><img style="display:inline" src="images/web-images/windoors_promo_v1_15.jpg" title="Kitchen from Home Paradise" /></a><img style="display:inline" src="images/web-images/windoors_promo_v1_16.jpg" /><a href="index.php?cPath=319_261"><img style="display:inline" src="images/web-images/windoors_promo_v1_17.jpg" title="Kitchen from Home Paradise" /></a><img style="display:inline" src="images/web-images/windoors_promo_v1_18.jpg" /><a href="index.php?cPath=255_262"><img style="display:inline" src="images/web-images/windoors_promo_v1_19.jpg" title="Kitchen from Home Paradise" /></a>
</div>

<?php
break;

case '255_195': echo '
<center><img src="images/web-images/lv1-bath-faucet-banner.jpg" title="Kohler Bathroom Faucet" /></center>
'; break;

case '255_314': echo '
<center><img src="images/web-images/banner-bath-shower.jpg" title="Kohler Bathroom Shower System" /></center>
'; break;

case '255_320': echo '
<center><img src="images/web-images/banner-bath-bathing.jpg" title="Kohler Bathroom Shower System" /></center>
'; break;

case '254_204': ?>
	<center><img src="images/web-images/lv1-countertop-banner.jpg" title="Kitchen Countertops" /></center>
<?php break;
		
	case '254_252': echo '
	<center><img src="images/web-images/products-header-side-countertop.jpg" title="Kitchen Side Countertops" /></center>
<div style="padding:10px">
<p>The diamond-like hardness of granite makes it virtually impervious to abrasions, stains, and extreme heat. Besides, the unique patterns and beautiful natural colors of granite have made it become the best choice of todayÇs kitchen designers.<br />Cabinet Home Inc. offers a high level of expertise in the field of durable, decorative, long-lasting granite countertops. We have a wide range of appealing color choices for the discriminating eye. </p>
</div>
	'; break;
	
	case '254_21': echo '
	<center><img src="images/web-images/cat-kitchen-banner.jpg" title="Appliances" /></center>
<div style="padding:10px">
<p>All our cabinetry are ready-to-assemble, and can easily meet customer\'s demand in an efficient and money-saving way. Our warehouse has over 50,000 sft and allows the inventory for most of our products. We use advanced machines and modern technology to manufacture our cabinetry in traditional and contemporary styles. We are the member of National Kitchen & Bath  Association, and our products have strictly followed the standard of NKBA.</p>

<table>
<tr>
<td><a href="http://www.homeparadise.com/index.php?cPath=254_21_269"><img src="images/web-images/category-chocolate-icon.gif" border="0" /></a><br />
<h3>Chocolate</h3></td>
<td><a href="http://www.homeparadise.com/index.php?cPath=254_21_41"><img src="images/web-images/category-coffee-icon.jpg" border="0" /></a><br />
<h3>Coffee Glaze</h3></td>
<td><a href="http://www.homeparadise.com/index.php?cPath=254_21_148"><img src="images/web-images/category-white-icon.jpg" border="0" /></a><br />
<h3>Creamy White</h3></td>
</tr>
<tr>
<td><a href="http://www.homeparadise.com/index.php?cPath=254_21_238"><img src="images/web-images/category-canadian-icon.jpg" border="0" /></a><br />
<h3>Canadian Maple</h3></td>
<td><a href="http://www.homeparadise.com/index.php?cPath=254_21_26"><img src="images/web-images/category-oak-icon.jpg" border="0" /></a><br />
<h3>Oak</h3></td>
<td><a href="http://www.homeparadise.com/index.php?cPath=254_21_147"><img src="images/web-images/category-cherry-icon.jpg" border="0" /></a><br />
<h3>Cherry</h3></td>
</tr>
</table>
</div>

	'; break;
	
	case '254_21_269': echo '
	<center><img src="images/web-images/lv1-chocolate-banner.jpg" title="Chocolate cabinets" /></center>
	<div style="padding:10px">
	<table>
	<tr>
	<td>
	<img src="images/sample-door-gallery/doors/door-sample-chocolate.jpg" />
	</td>
	<td style="padding:20px;">
	<h2 class="cont_header_txt">Chocolate</h2>
	<p></p>
	</td>
	</tr>
	</table>
	</div>	
	'; break;

	/*************************************************
	Furniture - Bookcases cabinet
	**************************************************/
	case '270_272': echo '
	<center><img src="images/web-images/lv1-bookcases-banner.jpg" title="Bookcase cabinets" /></center>

	<p>Transform your living room to an entertainment center with any of our Media/TV cabinet. Made by our chocolate cabinets, the entertainment unit is sized to fit on all living rooms and bedrooms in any sizes. It has an open center compartment that accommodates many standard size televisions. Four adjustable shelves on each side provide ample storage for your media collection. Available in Chocolate or our new antique Coffee Glaze finish.</p>
	
	<table>
	<tr>
	<td><img src="images/bookcase/bookcase_04.jpg" /><br /><b>Natural Oak Bookselves</b></td>
	<td><img src="images/bookcase/bookcase_02.jpg" /><br /><b>Chocolate Wall Suite</b></td>
	<td><img src="images/bookcase/bookcase_03.jpg" /><br /><b>Chocolate Office Suite</b></td>
	</tr>
	</table>
	
	<p>Please call 1-866-779-5666 with any questions.</p>
	'; break;
	
	/*************************************************
	Furniture - Closet cabinet
	**************************************************/
	case '270_273': echo '
	<center><img src="images/web-images/furniture-closet-banner.jpg" title="Closet cabinets" /></center>
	<h2>Custom Closets</h2>

	<p>Custom closets have become a very highly requested home improvement by consumers nationally. Home Paradise will custom design, manufacture and install custom closets for any closet in your home. So whether you have a small wardrobe closet or a large walkin closet, our closet storage design experts can create the ultimate custom closet design for you. We build custom closet organizers in a variety of woods and materials ensuring that the closets you choose match your personal style.</p>
	
	<p>Remember, Home Paradise will design, manufacture and install custom closets for any closet in your home. We offer a FREE design consultation and FREE INSTALLATION with your purchase. Please call 1-866-779-5666 with any questions.</p>
	'; break;
	
	/* ++++++++++++++++++++++++++++++++++++
	Carpet Flooring
	+++++++++++++++++++++++++++++++++++++++ */
	case '174_287': ?>
	<center><img src="images/web-images/carpet-banner.jpg" title="Carpet Flooring" /></center>
	<?php break;
	
	/* ++++++++++++++++++++++++++++++++++++
	Carpet Rug Flooring
	+++++++++++++++++++++++++++++++++++++++ */
	case '174_296': ?>
	<center><img src="images/web-images/flooring-rug-banner.jpg" title="Carpet Rug Flooring" /></center>
	<?php break;

	/*************************************************
	Furniture - Media Cabinet
	**************************************************/
	case '270_271': echo '
	<center><img src="images/web-images/lv1-media-banner.jpg" title="Media TV cabinets" /></center>

	<p>Transform your living room to an entertainment center with any of our Media/TV cabinet. Made by our chocolate cabinets, the entertainment unit is sized to fit on all living rooms and bedrooms in any sizes. It has an open center compartment that accommodates many standard size televisions. Four adjustable shelves on each side provide ample storage for your media collection. Available in Chocolate or our new antique Coffee Glaze finish.</p>
	
	<table>
	<tr height="180px">
	<td><img src="images/media/media_00.jpg" /><br /><b>Corner Cabinet Wall Suite</b></td>
	<td><img src="images/media/media_01.jpg" /><br /><b>Modular Componets</b></td>
	<td><img src="images/media/media_04.jpg" /><br /><b>Full Media Suite with Bridge</b></td>
	</tr>
	<tr>
	<td><img src="images/media/media_05.jpg" /><br /><b>Corner Cabinet Wall Suite</b></td>
	<td><img src="images/media/media_06.jpg" /><br /><b>Modular Componets</b></td>
	<td></td>
	</tr>
	</table>
	
	<p>Please call 1-866-779-5666 with any questions.</p>
	'; break;
	
	default: ''; break;
}
?>

Open in new window

I am unsure what determines which case is displayed, probably it is user input related.  Each case in that section will display a different webpage to the user.  I believe you have the basic concepts down.