-
Notifications
You must be signed in to change notification settings - Fork 0
/
sopac-ratings-page.tpl.php
34 lines (33 loc) · 1.15 KB
/
sopac-ratings-page.tpl.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?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>';
}