$include_file = DIR_WS_INCLUDES . 'column_left.php'; include(DIR_WS_INCLUDES . 'include_once.php'); ?>
|
|
| FONT_STYLE_TOP_BAR echo TOP_BAR_TITLE; ?> |
|
| FONT_STYLE_HEADING echo HEADING_TITLE; ?> |
echo tep_image(DIR_WS_IMAGES . 'table_background_reviews_new.gif', HEADING_TITLE, HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?> |
|
| echo tep_black_line(); ?> |
$new = tep_db_query("select r.reviews_id, r.reviews_text, r.reviews_rating, re.date_added, p.products_id, p.products_name, p.products_image, c.customers_firstname, c.customers_lastname from reviews r, reviews_extra re, products p, customers c where p.products_status = '1' and r.reviews_id = re.reviews_id and re.products_id = p.products_id and re.customers_id = c.customers_id order by r.reviews_id DESC limit " . MAX_DISPLAY_NEW_REVIEWS);
$row = 0;
while ($new_values = tep_db_fetch_array($new)) {
$row++;
$review = htmlspecialchars(substr($new_values['reviews_text'], 0, 60));
$review = tep_break_string($review, 15);
echo ' ' . FONT_STYLE_SMALL_TEXT . '' . tep_image($new_values['products_image'], $new_values['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT) . ' ' . $new_values['products_name'] . ' ' . $review . ' ..
' . tep_image(DIR_WS_IMAGES . 'stars_' . $new_values['reviews_rating'] . '.gif', sprintf(TEXT_OF_5_STARS, $new_values['reviews_rating'])) . ' | ' . "\n";
if ((($row / 3) == floor($row / 3)) && ($row != 6)) {
echo ' ' . "\n";
echo ' ' . "\n";
echo ' | | ' . "\n";
echo ' ' . "\n";
echo ' ' . "\n";
}
}
?>
|
echo tep_black_line(); ?> |
FONT_STYLE_MAIN echo tep_image(DIR_WS_IMAGES . 'button_main_menu.gif', IMAGE_MAIN_MENU); ?> |
|
$include_file = DIR_WS_INCLUDES . 'column_right.php'; include(DIR_WS_INCLUDES . 'include_once.php'); ?>
|
|