public static function showVendorProductCurozileItems($IBArr) { if (count($IBArr) > 0) { ?> <div class="vendor_image_thumbnail_scroll"> <div class="vendor_image_thumbnail_scroll_inner"> <table> <tr> <?php foreach ($IBArr as $itemIB) { $imgPath = $imgURL = NULL; $partsIB = pathinfo($itemIB->image_small); // echopre($partsIB); $imgPath = DbHelper::getBasePath() . '/products/' . $partsIB['filename'] . '.' . $partsIB['extension']; if (strstr($partsIB['basename'], "http://")) { $imgURL = $partsIB['basename']; } else { if (count($partsIB) == 0 || $partsIB['filename'] == "") { $imgURL = SITE_URL . '/products/noimage.jpg'; } else { $imgURL = SITE_URL . '/products/' . $partsIB['filename'] . '.' . $partsIB['extension']; } } if ($imgURL == "") { $imgURL = SITE_URL . '/products/noimage.jpg'; } // $imgURL = (is_file($imgPath)) ? $imgURL : SITE_URL.'/products/noimage.jpg'; // $imgPath = (is_file($imgPath)) ? $imgPath : DbHelper::getBasePath().'/products/noimage.jpg'; // if(is_file($imgPath)) { ?> <td><a href="<?php echo generalMethods::getProductdetailNavigationURL($itemIB->product_id); ?> "> <img src="<?php echo $imgURL; ?> " width="150" height="143" alt="<?php echo $itemIB->product_name; ?> " title="<?php echo $itemIB->product_name; ?> " border="0" /> </a> </td> <?php // } } ?> </tr> </table> </div> <div class="clear"></div> </div> <div class="clear"></div> </div> <?php } }