Example #1
0
         $lc_text = ' ';
         if ($OSCOM_Product->hasManufacturer()) {
             $lc_text = ' ' . osc_link_object(OSCOM::getLink(null, 'Index', 'manufacturers=' . $OSCOM_Product->getManufacturerID()), $OSCOM_Product->getManufacturer()) . ' ';
         }
         break;
     case 'PRODUCT_LIST_PRICE':
         $lc_align = 'right';
         $lc_text = ' ' . $OSCOM_Product->getPriceFormated() . ' ';
         break;
     case 'PRODUCT_LIST_QUANTITY':
         $lc_align = 'right';
         $lc_text = ' ' . $OSCOM_Product->getQuantity() . ' ';
         break;
     case 'PRODUCT_LIST_WEIGHT':
         $lc_align = 'right';
         $lc_text = ' ' . $OSCOM_Product->getWeight() . ' ';
         break;
     case 'PRODUCT_LIST_IMAGE':
         $lc_align = 'center';
         if (isset($_GET['manufacturers'])) {
             $lc_text = osc_link_object(OSCOM::getLink(null, 'Products', $OSCOM_Product->getKeyword() . '&manufacturers=' . $_GET['manufacturers']), $OSCOM_Image->show($OSCOM_Product->getImage(), $OSCOM_Product->getTitle()));
         } else {
             $lc_text = ' ' . osc_link_object(OSCOM::getLink(null, 'Products', $OSCOM_Product->getKeyword() . ($OSCOM_Category->getID() > 0 ? '&cPath=' . $OSCOM_Category->getPath() : '')), $OSCOM_Image->show($OSCOM_Product->getImage(), $OSCOM_Product->getTitle())) . ' ';
         }
         break;
     case 'PRODUCT_LIST_BUY_NOW':
         $lc_align = 'center';
         $lc_text = osc_link_object(OSCOM::getLink(null, 'Cart', 'Add&' . $OSCOM_Product->getKeyword()), osc_draw_image_button('button_buy_now.gif', OSCOM::getDef('button_buy_now'))) . ' ';
         break;
 }
 echo '      <td ' . (empty($lc_align) === false ? 'align="' . $lc_align . '" ' : '') . 'class="productListing-data">' . $lc_text . '</td>' . "\n";