add(NAVBAR_TITLE, tep_href_link(FILENAME_SPECIALS));
require(DIR_WS_INCLUDES . 'template_top.php');
?>
number_of_rows > 0) {
echo tep_gridlist_build();
}
if (($specials_split->number_of_rows > 0) && ((PREV_NEXT_BAR_LOCATION == '1') || (PREV_NEXT_BAR_LOCATION == '3'))) {
?>
display_count(TEXT_DISPLAY_NUMBER_OF_SPECIALS); ?>
display_links(MAX_DISPLAY_PAGE_LINKS, tep_get_all_get_params(array('page', 'info', 'x', 'y'))) . ''.TEXT_RESULT_PAGE . ''; ?>
sql_query);
$i=0;
while ($specials = tep_db_fetch_array($specials_query)) {
$i++;
$product_query = tep_db_query("select products_description, products_id from " . TABLE_PRODUCTS_DESCRIPTION . " where products_id = '" . (int)$specials['products_id'] . "' and language_id = '" . (int)$languages_id . "'");
$product = tep_db_fetch_array($product_query);
if (strlen(strip_tags($product['products_description'])) > 0 && PRODUCT_LIST_DESCRIPTION_GRID > 0) {
if (strlen(strip_tags($product['products_description'])) > PRODUCT_LIST_DESCRIPTION_GRID) {
$p_desc_grid = ''.mb_substr(strip_tags($product['products_description']), 0, PRODUCT_LIST_DESCRIPTION_GRID, 'UTF-8').'...'.'
';
}
else {
$p_desc_grid = ''.strip_tags($product['products_description']).'
';
}
} else {
$p_desc_grid ='';
}
if (strlen(strip_tags($product['products_description'])) > 0 && PRODUCT_LIST_DESCRIPTION_LIST > 0) {
if (strlen(strip_tags($product['products_description'])) > PRODUCT_LIST_DESCRIPTION_LIST) {
$p_desc_list = ''.mb_substr(strip_tags($product['products_description']), 0, PRODUCT_LIST_DESCRIPTION_LIST, 'UTF-8').'...'.'
';
}
else {
$p_desc_list = ''.strip_tags($product['products_description']).'
';
}
} else {
$p_desc_list ='';
}
$products_price = $currencies->display_price($specials['products_price'], tep_get_tax_rate($specials['products_tax_class_id']));
$products_price_new = $currencies->display_price($specials['specials_new_products_price'], tep_get_tax_rate($specials['products_tax_class_id']));
$specials_content .= tep_product_block_build(
$productId = $specials['products_id'],
$productImage = $specials['products_image'],
$productName = $specials['products_name'],
$productAdded = $specials['products_date_added'],
$productManufacturerId = $specials['manufacturers_id'],
$productManufacturerName = $specials['manufacturers_name'],
$productPrice = $products_price,
$productPriceNew = $products_price_new,
$productWeight = '',
$productQuantity = '',
$productModel = '',
$productDescription = $p_desc_list.$p_desc_grid,
$productButtons = true,
$pageComming = FILENAME_SPECIALS,
$elCount = $i
);
}
echo $specials_content;
?>
number_of_rows > 0) && ((PREV_NEXT_BAR_LOCATION == '2') || (PREV_NEXT_BAR_LOCATION == '3'))) {
?>
display_count(TEXT_DISPLAY_NUMBER_OF_SPECIALS); ?>
display_links(MAX_DISPLAY_PAGE_LINKS, tep_get_all_get_params(array('page', 'info', 'x', 'y'))) . ''.TEXT_RESULT_PAGE .''; ?>