Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
35 lines (33 sloc) 1.15 KB
<?php
/**
* SOPAC is The Social OPAC: a Drupal module that serves as a wholly integrated web OPAC for the Drupal CMS
* This file contains the Drupal include functions for all the SOPAC admin pieces and configuration options
* This file is called via hook_user
*
* @package SOPAC
* @version 2.1
* @author John Blyberg
*/
?>
<?php
if (count($ratings_arr['ratings'])) {
print '
<table class="overview-ratings" width="100%">
<tr><th></th><th>' . t('Title') . '</th><th>' . t('Date Rated') . '</th></tr>
<tr><td colspan="3" style="padding-top:5px;"></td></tr>
';
foreach ($ratings_arr['ratings'] as $rating) {
print '<tr><td style="width: 100px;">';
print theme_sopac_get_rating_stars($rating['bnum'], $rating['rating'], FALSE, TRUE) . ' ';
print '</td><td>';
$path = variable_get('sopac_url_prefix', 'cat/seek') . '/record/' . $rating['bnum'];
print l($ratings_arr['bibs'][$rating['bnum']]['title'], $path);
print '</td><td>';
print date("m-d-Y", $rating['rate_date']);
print '</td></tr>';
}
print '</table>';
}
else {
print '<div class="overview-nodata">' . t('You have not rated any items yet.') . '</div>';
}