|
|
articles_name; ?> customers_name; ?>
date_added); ?> |
|
|
|
reviews_rating) . ' '; echo TEXT_GOOD; ?> |
|
reviews_id) . tep_draw_hidden_field('articles_id', $rInfo->articles_id) . tep_draw_hidden_field('customers_name', $rInfo->customers_name) . tep_draw_hidden_field('articles_name', $rInfo->articles_name) . 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) . ''; ?> |
articles_name; ?> customers_name; ?>
date_added); ?> |
|
|
|
reviews_rating . '.gif', sprintf(TEXT_OF_5_STARS, $rInfo->reviews_rating)); ?> [reviews_rating); ?>] |
|
reviews_id . '&action=edit') . '">' . tep_image_button('button_back.gif', IMAGE_BACK) . ' ' . tep_image_submit('button_update.gif', IMAGE_UPDATE) . ' ' . 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_articles_name($reviews['articles_id']); ?> |
|
|
|
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) . ''; } ?> |
display_count($reviews_query_numrows, MAX_DISPLAY_SEARCH_RESULTS, $HTTP_GET_VARS['page'], TEXT_DISPLAY_NUMBER_OF_REVIEWS); ?> |
display_links($reviews_query_numrows, MAX_DISPLAY_SEARCH_RESULTS, MAX_DISPLAY_PAGE_LINKS, $HTTP_GET_VARS['page']); ?> |
|
|
'' . TEXT_INFO_HEADING_DELETE_REVIEW . '');
$contents = array('form' => tep_draw_form('reviews', FILENAME_ARTICLE_REVIEWS, 'page=' . $HTTP_GET_VARS['page'] . '&rID=' . $rInfo->reviews_id . '&action=deleteconfirm'));
$contents[] = array('text' => TEXT_INFO_DELETE_REVIEW_INTRO);
$contents[] = array('text' => ' ' . $rInfo->articles_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->articles_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' => ' ' . 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_ARTICLES_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";
}
?>
|
|