~ubuntu-branches/ubuntu/hoary/moodle/hoary

« back to all changes in this revision

Viewing changes to mod/glossary/report.php

  • Committer: Bazaar Package Importer
  • Author(s): Isaac Clerencia
  • Date: 2004-12-29 00:49:52 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20041229004952-gliyqzpj2w3e7clx
Tags: 1.4.3-1
* Urgency high as upstream release fixes several security bugs
* New upstream release
* Write database creation errors and warn the user about it, 
closes: #285842, #285842

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<?PHP   // $Id: report.php,v 1.2 2004/05/14 19:36:39 stronk7 Exp $
 
1
<?PHP   // $Id: report.php,v 1.3.2.1 2004/08/29 22:03:01 stronk7 Exp $
2
2
//  For a given entry, shows a report of all the ratings it has
3
3
 
4
4
    require_once("../../config.php");
34
34
    $strname = get_string("name");
35
35
    $strtime = get_string("time");
36
36
 
37
 
    print_header("$strratings: $entry->subject");
 
37
    print_header("$strratings: $entry->concept");
38
38
 
39
39
    if (!$ratings = glossary_get_ratings($entry->id, $sort)) {
40
 
        error("No ratings for this entry: \"$entry->subject\"");
 
40
        error("No ratings for this entry: \"$entry->concept\"");
41
41
 
42
42
    } else {
43
43
        echo "<table border=0 cellpadding=3 cellspacing=3 class=generalbox width=100%>";
54
54
            }
55
55
            echo "<td>";
56
56
            print_user_picture($rating->id, $glossary->course, $rating->picture);
57
 
            echo "<td nowrap><p><font size=-1>$rating->firstname $rating->lastname</p>";
58
 
            echo "<td nowrap align=center><p><font size=-1>".$scalemenu[$rating->rating]."</p>";
59
 
            echo "<td nowrap align=center><p><font size=-1>".userdate($rating->time)."</p>";
 
57
            echo '<td nowrap><p><font size="-1">'.fullname($rating).'</p>';
 
58
            echo '<td nowrap align="center"><p><font size="-1">'.$scalemenu[$rating->rating]."</p>";
 
59
            echo '<td nowrap align="center"><p><font size="-1">'.userdate($rating->time)."</p>";
60
60
            echo "</tr>\n";
61
61
        }
62
62
        echo "</table>";