Home


'; }else{ // Amazon function returned XML data if($d_ar[$i_ar['ErrorMsg'][0]]['type']=='open' || $d_ar[$i_ar['ErrorMsg'][0]]['type']=='complete'){ // no results were found from the search echo 'Sorry, no results were found.

'; }else{ // results were found, so display the products for($i=0; $iSetTemplate("productpageheader"); echo $tmpl->ParseTemplate(); if($Author != ''){ foreach($Author as $auth){ if($seo){ $authors .= '' .$auth. '
'; }else{ $authors .= '' .$auth. '
'; } } $tmpl->SetTemplate("productpageauthors"); echo $tmpl->ParseTemplate(); } if( count($Track) > 0 ){ for ($m = 0; $m < count($Track); $m++){ $mytracks .= $Track[$m].'
'; } $tmpl->SetTemplate("productpagetracks"); echo $tmpl->ParseTemplate(); } if( count($Features) > 0 ){ for ($m = 0; $m < count($Features); $m++){ $features .= $Feature[$m].'
'; } $tmpl->SetTemplate("productpagefeatures"); echo $tmpl->ParseTemplate(); } $crating = ""; if( count($Rating) > 0 ){ for ($m = 0; $m < count($Rating); $m++){ $stars = getRatingBar($Rating[$m]); $crating .= 'Customer Rating: ' .$stars. '
'; $crating .= 'Summary: ' .$Summary[$m]. '
'; $crating .= 'Comment: ' .$Comment[$m]. '

'; } } $tmpl->SetTemplate("productpage"); echo $tmpl->ParseTemplate(); if($showSimiliar){ include("similiar.php"); } $tmpl->SetTemplate("productpagefooter"); echo $tmpl->ParseTemplate(); } } } } ?> [Back to Previous Page]