|
|
products_name; ?> customers_name; ?>
date_added); ?> |
products_image, $rInfo->products_name, SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"'); ?> |
|
|
|
| reviews_rating) . ' '; echo TEXT_GOOD; ?> |
|
| reviews_id) . tep_draw_hidden_field('products_id', $rInfo->products_id) . tep_draw_hidden_field('customers_name', $rInfo->customers_name) . tep_draw_hidden_field('products_name', $rInfo->products_name) . tep_draw_hidden_field('products_image', $rInfo->products_image) . tep_draw_hidden_field('date_added', $rInfo->date_added) . tep_image_submit('button_preview.gif', IMAGE_PREVIEW) . ' ' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . ''; ?> |
products_name; ?> customers_name; ?>
date_added); ?> |
products_image, $rInfo->products_name, SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"'); ?> |
|
|
|
| reviews_rating . '.gif', sprintf(TEXT_OF_5_STARS, $rInfo->reviews_rating)); ?> [reviews_rating); ?>] |
|
| reviews_id) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . ''; ?> |
reviews_id;
}
?>
| ' . tep_image_button('button_back.gif', IMAGE_BACK) . ''; ?> |
|
|
|
|
|
|
reviews_id) ) {
echo ' ' . "\n";
} else {
echo ' ' . "\n";
}
?>
| ' . tep_image(DIR_WS_ICONS . 'preview.gif', ICON_PREVIEW) . ' ' . tep_get_products_name($reviews['products_id']); ?> |
|
|
' . tep_image(DIR_WS_IMAGES . 'icon_status_green.gif', IMAGE_ICON_STATUS_GREEN, 10, 10) . ' ' . tep_image(DIR_WS_IMAGES . 'icon_status_red_light.gif', IMAGE_ICON_STATUS_RED, 10, 10) . '':'' . tep_image(DIR_WS_IMAGES . 'icon_status_green_light.gif', IMAGE_ICON_STATUS_GREEN, 10, 10) . ' ' . tep_image(DIR_WS_IMAGES . 'icon_status_red.gif', IMAGE_ICON_STATUS_RED, 10, 10) . '' ?> |
reviews_id) ) { echo tep_image(DIR_WS_IMAGES . 'icon_arrow_right.gif'); } else { echo '' . tep_image(DIR_WS_IMAGES . 'icon_info.gif', IMAGE_ICON_INFO) . ''; } ?> |
|
|
|
'' . TEXT_INFO_HEADING_DELETE_REVIEW . '');
$contents = array('form' => tep_draw_form('reviews', tep_href_link(FILENAME_REVIEWS, 'page=' . $_REQUEST['page'] . '&rID=' . $rInfo->reviews_id . '&action=deleteconfirm')));
$contents[] = array('text' => TEXT_INFO_DELETE_REVIEW_INTRO);
$contents[] = array('text' => ' ' . $rInfo->products_name . '');
$contents[] = array('align' => 'center', 'text' => ' ' . tep_image_submit('button_delete.gif', IMAGE_DELETE) . ' ' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '');
break;
default:
if (isset($rInfo) && is_object($rInfo)) {
$heading[] = array('text' => '' . $rInfo->products_name . '');
$contents[] = array('align' => 'center', 'text' => '' . tep_image_button('button_edit.gif', IMAGE_EDIT) . ' ' . tep_image_button('button_delete.gif', IMAGE_DELETE) . '');
$contents[] = array('text' => ' ' . TEXT_INFO_DATE_ADDED . ' ' . tep_date_short($rInfo->date_added));
if (tep_not_null($rInfo->last_modified)) $contents[] = array('text' => TEXT_INFO_LAST_MODIFIED . ' ' . tep_date_short($rInfo->last_modified));
$contents[] = array('text' => ' ' . tep_info_image($rInfo->products_image, $rInfo->products_name, SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT));
$contents[] = array('text' => ' ' . TEXT_INFO_REVIEW_AUTHOR . ' ' . $rInfo->customers_name);
$contents[] = array('text' => TEXT_INFO_REVIEW_RATING . ' ' . tep_image(HTTP_CATALOG_SERVER . DIR_WS_CATALOG_IMAGES . 'stars_' . $rInfo->reviews_rating . '.gif'));
$contents[] = array('text' => TEXT_INFO_REVIEW_READ . ' ' . $rInfo->reviews_read);
$contents[] = array('text' => ' ' . TEXT_INFO_REVIEW_SIZE . ' ' . $rInfo->reviews_text_size . ' bytes');
$contents[] = array('text' => ' ' . TEXT_INFO_PRODUCTS_AVERAGE_RATING . ' ' . number_format($rInfo->average_rating, 2) . '%');
if($rInfo->approved==0){
$contents[] = array('align' => 'left', 'text' => ' ' . TEXT_APPROVED . ': ' . TEXT_NO );
$contents[] = array('align' => 'center', 'text' => '' . tep_image_button('review_approve.gif', TEXT_APPROVE) . '');
}
elseif($rInfo->approved==1) {
$contents[] = array('align' => 'left', 'text' => ' ' . TEXT_APPROVED . ': ' . TEXT_YES );
$contents[] = array('align' => 'center', 'text' => '' . tep_image_button('review_disapprove.gif', TEXT_DISAPPROVE) . '');
}
else{
$contents[] = array('align' => 'left', 'text' => ' ' . TEXT_APPROVED . ': ' . "Unknown" );
}
}
break;
if ( (tep_not_null($heading)) && (tep_not_null($contents)) ) {
echo ' ' . "\n";
$box = new box;
echo $box->infoBox($heading, $contents);
echo ' | ' . "\n";
}
?>
|
|