<?php /** * osCommerce Online Merchant * * @copyright Copyright (c) 2011 osCommerce; http://www.oscommerce.com * @license BSD License; http://www.oscommerce.com/bsdlicense.txt */ use osCommerce\OM\Core\HTML; use osCommerce\OM\Core\OSCOM; use osCommerce\OM\Core\PDO; use osCommerce\OM\Core\Site\Shop\Specials; $specials_listing = Specials::getListing(); ?> <h1><?php echo $OSCOM_Template->getPageTitle(); ?> </h1> <div style="overflow: auto;"> <?php foreach ($specials_listing['entries'] as $s) { echo '<span style="width: 33%; float: left; text-align: center;">'; if (!empty($s['image'])) { echo HTML::link(OSCOM::getLink(null, null, $s['products_keyword']), $OSCOM_Image->show($s['image'], $s['products_name'])) . '<br />'; } echo HTML::link(OSCOM::getLink(null, null, $s['products_keyword']), $s['products_name']) . '<br />' . '<s>' . $OSCOM_Currencies->displayPrice($s['products_price'], $s['products_tax_class_id']) . '</s> <span class="productSpecialPrice">' . $OSCOM_Currencies->displayPrice($s['specials_new_products_price'], $s['products_tax_class_id']) . '</span>' . '</span>' . "\n"; } ?>
<?php /* osCommerce Online Merchant $osCommerce-SIG$ Copyright (c) 2010 osCommerce (http://www.oscommerce.com) This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License v2 (1991) as published by the Free Software Foundation. */ use osCommerce\OM\Core\Site\Shop\Specials; use osCommerce\OM\Core\OSCOM; $Qspecials = Specials::getListing(); ?> <?php echo osc_image(DIR_WS_IMAGES . $OSCOM_Template->getPageImage(), $OSCOM_Template->getPageTitle(), HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT, 'id="pageIcon"'); ?> <h1><?php echo $OSCOM_Template->getPageTitle(); ?> </h1> <div style="overflow: auto;"> <?php while ($Qspecials->next()) { echo '<span style="width: 33%; float: left; text-align: center;">'; if (!osc_empty($Qspecials->value('image'))) { echo osc_link_object(OSCOM::getLink(null, null, $Qspecials->value('products_keyword')), $OSCOM_Image->show($Qspecials->value('image'), $Qspecials->value('products_name'))) . '<br />';