|
||||||||||||
search results for: '' '; foreach ($sResults as $prod) { $productLinkSrc = ""; switch ($prod['cName']) { case 'Artwork': case 'Furniture': case 'Lighting': $productLinkSrc = 'ProductsDetailOther.html?pid=' . $prod['pID']; break; case 'Prints': $productLinkSrc = 'ProductsDetailPrints.html?pid=' . $prod['pID']; break; default: break; } //$html .= ' | ||||||||||||
' . $prod['cName'] . ' | '; $html .= '||||||||||||
'; $image = ""; if(isset($prod['pSmallPix']) && file_exists('console/' . $prod['pSmallPix'])) { //$dims = ($prod['cName'] == 'Prints') ? '45%' : '60%'; $dims = ' width="94px" height="94px" '; if ($prod['cName'] != 'Prints') { $dims = ' width="175px" height="95px" '; } $image = ''; } else { $image = $prod['pName']; } $pName = str_ireplace($stext, "$stext", $prod['pName']); $pMaterials = str_ireplace($stext, "$stext", $prod['pMaterials']); if (strlen($productLinkSrc) > 0) { $html .= ' | ' . $image . ' | '; $html .= '' . $pName . ': ' . $pMaterials . ' | ';
} else {
$html .= '' . $image . ' | '; $html .= '' . $pName . ': ' . $pMaterials . ' | ';
}
$html .= '