PS3 Page Not Appearing
I'm trying to call a new page (Cigars_Results.php) from the left column1 Accordian menu (Collections/Cigar Art). When I choose this menu option all I get is a blank page for (PostCards_Results.php). Both of these pages are copies of the Products_Results.php with primary changes to the main content section.
The Cigars_Results.php page is Products_Results.php page with a PowerGallery in the main content section and the Accordian menu removed. You can access this page correctly from the menu bar under the "Start Here"/Collections/Cigar Art menu.
I know the addition of the page to the categories table is a change, but I know this works as I am able to change the page name and the other pages work. It seems to be a conflict with something in the PowerGallery code.
Here's the Accordian code that comes from the template AND I have only changed to add the new Category_Page, which has worked with other pages just fine.
<div id="leftColumn1">
<?php
if (!function_exists("getCatAccordian")) {
function getCatAccordian($StartWith=0,$prevLevels=0) {
$retHTML = "";
$retScript = "";
mysql_select_db($GLOBALS['database_PowerStoreConnection'], $GLOBALS['PowerStoreConnection']);
$query_SubCategoryList = "SELECT * FROM ps3_categories WHERE CategoryParent = ".$StartWith . " ORDER BY CategoryName";
$SubCategoryList = mysql_query($query_SubCategoryList, $GLOBALS['PowerStoreConnection']) or die(mysql_error());
$totalRows_SubCategoryList = mysql_num_rows($SubCategoryList);
$row_SubCategoryList = mysql_fetch_assoc($SubCategoryList);
$spaceStr = ' ';
if ($row_SubCategoryList) {
$retHTML .= '<div id="Accordion'.$row_SubCategoryList["CategoryID"].'" class="Accordion" tabindex="0">' . "\n";
$retScript .= 'var Accordion'.$row_SubCategoryList["CategoryID"].' = new Spry.Widget.Accordion("Accordion'.$row_SubCategoryList["CategoryID"].'", { useFixedPanelHeights: false, defaultPanel: -1 });' . "\n";
while ($row_SubCategoryList) {
$suboptions = getCatAccordian($row_SubCategoryList["CategoryID"],(1 + $prevLevels));
$retScript .= $suboptions[1];
$retHTML .= ' <div class="AccordionPanel" >' . "\n";
$retHTML .= ' <div class="AccordionPanelTab" onclick="doHighlighlight(this);updateContant(\''.$row_SubCategoryList["CategoryPage"].'?Search=1&ProductCategoryID[]='.$row_SubCategoryList["CategoryID"].'\')">'.(($prevLevels>0)?substr($spaceStr,0,12*$prevLevels):'') .$row_SubCategoryList["CategoryName"].'</div>' . "\n";
if ($suboptions[0]!="") {
$retHTML .= ' <div class="AccordionPanelContent" >' . "\n";
$retHTML .= $suboptions[0];
$retHTML .= ' </div>' . "\n";
}
$retHTML .= ' </div>' . "\n";
$row_SubCategoryList = mysql_fetch_assoc($SubCategoryList);
}
$retHTML .= '</div>' . "\n";
}
return array($retHTML,$retScript,$totalRows_SubCategoryList);
}
}
?>
<?php
$Accordian = getCatAccordian();
echo($Accordian[0]);
?>
I know the page names are changed, but the overall functions of the PowerStore still power this site. I'm looking for some suggestion as to why the addition of a new category would just not load. It does work correctly off the menu bar. ANY insight is appreciated....
PostCards_Results.php?Search=1&ProductCategoryID[]=13
Thanks...