1) $categoryDrillDown .= " - ";
$workTemp = "";
$workTemp = $nodeURLresponse[BrowseNodeLookupResponse][BrowseNodes][BrowseNode][Name];
$categoryDrillDown .= $workTemp;
}
return $nodeURLresponse;
}
function displayCountriesListBox($selectCountry)
{
$country_LB_Out = "Select Country:
";
}
else
{
$categoryRoot_LB_Out =
"
( End of Category List )
";
}
return $categoryRoot_LB_Out;
}
function displayCategoryListButtons()
{
global $categoryDrillDown,$nodeListArray,$pass;
echo '';
if((count($nodeListArray) > 0)||(($categoryDrillDown == "")))
{
echo '';
}
else
{
echo '';
}
if ($categoryDrillDown != "")
{
echo '';
echo '';
}
else
{
echo '';
echo '';
}
echo '
';
}
function displayFullSearchDetails()
{
global $categoryDrillDown,$selectDisplayWidth;
if ($selectDisplayWidth == "normal") { $getLength = 72; } else { $getLength = 130; }
echo '';
if ($categoryDrillDown == "")
echo 'No Category Selected';
else
{
$strOutput = $categoryDrillDown;
$strWork = strlen($categoryDrillDown);
if ($strWork > $getLength)
{
$strOutput = '... ';
$strOutput .= substr($categoryDrillDown,($strWork-$getLength));
}
echo $strOutput;
}
echo '';
}
function saveSearchDataToFile()
{
global $pass,$selectCountry,$selectRootCategory,$accessKeyID,$secretKey,$associateTag,$categoryDrillDown,$pluginURL;
global $DBWD_search_data_filename,$categoryDrillDownCount,$categoryListArray,$browse_node_id,$searchFor,$selectItemCount;
global $currentTimeStamp,$selectDisplayWidth;
$DBWD_search_data_filename_out = $DBWD_search_data_filename;
$handle = fopen($DBWD_search_data_filename_out, 'w');
fwrite($handle, $selectCountry . '|');
fwrite($handle, $selectRootCategory . '|');
fwrite($handle, $categoryDrillDown . '|');
fwrite($handle, $categoryDrillDownCount . '|');
fwrite($handle, $searchFor . '|');
fwrite($handle, $selectItemCount . '|');
fwrite($handle, $browse_node_id . '|');
fwrite($handle, $categoryListArray[$categoryDrillDownCount-1] . '|');
fwrite($handle, $pluginURL . '|');
fwrite($handle, $selectDisplayWidth . '|');
fwrite($handle, $accessKeyID . '|');
fwrite($handle, $secretKey . '|');
fwrite($handle, $associateTag . '|');
for ($a=0; $a<$categoryDrillDownCount; $a++)
{
fwrite($handle, $categoryListArray[$a] . '|');
}
fclose($handle);
}
?>