echo SITE_THEMA;
    ?>
/infobox/background_main.gif" width="100%" class="infoBoxHeading"><?php 
    echo $default_specials['products_name'];
    ?>
                        </td>
                        <td class="infoBoxHeading" nowrap>
                        <img src="includes/classes/thema/<?php 
    echo SITE_THEMA;
    ?>
/infobox/corner_right_left.gif" border="0" ></td>
                      </tr>
                    </table>
<?php 
    $default_specials['products_description'] = smn_get_products_description($default_specials['products_id']);
    $default_specials['products_name'] = smn_get_products_name($default_specials['products_id']);
    $info_box_contents[] = array('align' => 'center', 'text' => '<a href="' . smn_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $default_specials['products_id'] . '&ID=' . $default_specials['store_id']) . '">' . smn_image(DIR_WS_CATALOG_IMAGES . $default_specials['products_image'], $default_specials['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a></td><td><a href="' . smn_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $default_specials['products_id']) . '"></a></td><td align="center"><s>' . $currencies->display_price($default_specials['products_price'], smn_get_tax_rate($default_specials['products_tax_class_id'], '', '', $default_specials['store_id'])) . '</s><br><span class="productSpecialPrice">' . $currencies->display_price($default_specials['specials_new_products_price'], smn_get_tax_rate($default_specials['products_tax_class_id'], '', '', $default_specials['store_id'])) . '</span><br><br><a href="' . smn_href_link(basename($PHP_SELF), smn_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $default_specials['products_id'], 'NONSSL') . '">' . smn_image_button('button_buy_now.gif') . '</a>&nbsp;<br></td><tr><td colspan="3" align="top" valign="top" height="100">' . osc_trunc_string(strip_tags($default_specials['products_description'])) . '<br><br><a href="' . smn_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $default_specials['products_id']) . '">More Info...</a>
    ');
    new infoBox($info_box_contents);
    $info_box_contents = array();
    $info_box_contents[] = array('align' => 'left', 'text' => ' ');
    new infoBoxDefault($info_box_contents, true, true);
    $count++;
    if ($count > 1) {
        $count = 0;
        echo '</tr><tr>';
    }
}
?>
</tr></table></td></tr>
<!-- default_specials_eof //-->
示例#2
0
} else {
    $featured_products_query = smn_db_query("select distinct p.products_id, p.products_image, p.products_tax_class_id, s.status as specstat, s.specials_new_products_price, p.products_price, p.store_id from " . TABLE_PRODUCTS . " p left join " . TABLE_SPECIALS . " s on p.products_id = s.products_id, " . TABLE_PRODUCTS_TO_CATEGORIES . " p2c, " . TABLE_CATEGORIES . " c left join " . TABLE_FEATURED . " f on p.products_id = f.products_id where p.store_id = '" . $store_id . "' and p.products_id = p2c.products_id and p2c.categories_id = c.categories_id and c.parent_id = '" . $featured_products_category_id . "' and p.products_status = '1' and f.status = '1' order by rand() DESC limit " . MAX_DISPLAY_FEATURED_PRODUCTS);
}
$count = 0;
while ($featured_products = smn_db_fetch_array($featured_products_query)) {
    if ($featured_products['specials_new_products_price']) {
        $whats_new_price = '<s>' . $currencies->display_price($featured_products['products_price'], smn_get_tax_rate($featured_products['products_tax_class_id'], '', '', $featured_products['store_id'])) . '</s><br>';
        $whats_new_price .= '<span class="productSpecialPrice">' . $currencies->display_price($featured_products['specials_new_products_price'], smn_get_tax_rate($featured_products['products_tax_class_id'], '', '', $featured_products['store_id'])) . '</span>';
    } else {
        $whats_new_price = $currencies->display_price($featured_products['products_price'], smn_get_tax_rate($featured_products['products_tax_class_id'], '', '', $featured_products['store_id']));
    }
    $featured_products['products_description'] = smn_get_products_description($featured_products['products_id']);
    $featured_products['products_name'] = smn_get_products_name($featured_products['products_id']);
    $store_images = 'images/' . $featured_products['store_id'] . '_images/';
    ?>
    <td width="50%">
<?php 
    $info_box_contents[] = array('align' => 'center', 'text' => '<a href="' . smn_href_link(FILENAME_PRODUCT_INFO, 'ID=' . $featured_products['store_id'] . '&products_id=' . $featured_products['products_id']) . '">' . smn_image($store_images . $featured_products['products_image'], $featured_products['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . '</a></td><td><a href="' . smn_href_link(FILENAME_PRODUCT_INFO, 'ID=' . $featured_products['store_id'] . '&products_id=' . $featured_products['products_id']) . '"></a></td><td align="center">' . $whats_new_price . '<br><br><a href="' . smn_href_link(basename($PHP_SELF), smn_get_all_get_params(array('action')) . 'action=buy_now&products_id=' . $featured_products['products_id'], 'NONSSL') . '">' . smn_image_button('button_buy_now.gif') . '</a>&nbsp;<br></td><tr><td colspan="3" align="top" valign="top" height="100">' . osc_trunc_string(strip_tags($featured_products['products_description'])) . '<br><br><a href="' . smn_href_link(FILENAME_PRODUCT_INFO, 'ID=' . $featured_products['store_id'] . '&products_id=' . $featured_products['products_id']) . '">More Info...</a>');
    new infoBox($info_box_contents);
    $info_box_contents = array();
    $info_box_contents[] = array('align' => 'left', 'text' => ' ');
    new infoBoxDefault($info_box_contents, true, true);
    //echo '</td>';
    $count++;
    if ($count > 1) {
        $count = 0;
        echo '</tr><tr>';
    }
}
?>
<!-- default_specials_eof //-->
     break;
 case 'MASTER_LIST_NAME':
     $lc_align = '';
     if (isset($_GET['manufacturers_id'])) {
         $lc_text = '<a href="' . smn_href_link(FILENAME_PRODUCT_INFO, 'manufacturers_id=' . $_GET['manufacturers_id'] . '&products_id=' . $listing['products_id']) . '">' . $listing['products_name'] . '</a>';
     } elseif ($listing_product_type == 'date_price') {
         $lc_text = '&nbsp;<a href="' . smn_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $listing['products_id'] . '&action=custom_dates') . '">' . $listing['products_name'] . '</a>&nbsp;';
     } elseif ($listing_product_type == 'price_mod') {
         $lc_text = '&nbsp;<a href="' . smn_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $listing['products_id'] . '&action=selected_dates') . '">' . $listing['products_name'] . '</a>&nbsp;';
     } else {
         $lc_text = '&nbsp;<a href="' . smn_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $listing['products_id']) . '">' . $listing['products_name'] . '</a>&nbsp;';
     }
     break;
 case 'MASTER_LIST_DESCRIPTION':
     $lc_align = '';
     $lc_text = '&nbsp;' . osc_trunc_string(strip_tags($listing['products_description'], '<a><b><em><font><i><s><span><strong><sub><sup><u>'), MASTER_LIST_DESCRIPTION_LENGTH) . '&nbsp;';
     break;
 case 'MASTER_LIST_MANUFACTURER':
     $lc_align = '';
     $lc_text = '&nbsp;<a href="' . smn_href_link(FILENAME_DEFAULT, 'manufacturers_id=' . $listing['manufacturers_id']) . '">' . $listing['manufacturers_name'] . '</a>&nbsp;';
     break;
 case 'MASTER_LIST_PRICE':
     $lc_align = 'right';
     if (smn_not_null($listing['specials_new_products_price'])) {
         $lc_text = '&nbsp;<s>' . $currencies->display_price($listing['products_price'], smn_get_tax_rate($listing['products_tax_class_id'], '', '', $listing['store_id'])) . '</s>&nbsp;&nbsp;<span class="productSpecialPrice">' . $currencies->display_price($listing['specials_new_products_price'], smn_get_tax_rate($listing['products_tax_class_id'], '', '', $listing['store_id'])) . '</span>&nbsp;';
     } else {
         $lc_text = '&nbsp;' . $currencies->display_price($listing['products_price'], smn_get_tax_rate($listing['products_tax_class_id'], '', '', $listing['store_id'])) . '&nbsp;';
     }
     break;
 case 'MASTER_LIST_QUANTITY':
     $lc_align = 'center';