Added styles and cleaned up some code for XHTML compatibility

This commit is contained in:
moodler 2005-02-22 08:29:12 +00:00
parent 82af563584
commit deb0ab54c3

View File

@ -43,20 +43,21 @@
echo "<table border=\"0\" cellpadding=\"3\" cellspacing=\"3\" class=\"generalbox\" width=\"100%\">";
echo "<tr>";
echo "<th>&nbsp;</th>";
echo "<th><a href=\"report.php?id=$entry->id&amp;sort=u.firstname\">$strname</a>";
echo "<th width=\"100%\"><a href=\"report.php?id=$entry->id&amp;sort=r.rating\">$strrating</a>";
echo "<th><a href=\"report.php?id=$entry->id&amp;sort=r.time\">$strtime</a>";
echo "<th><a href=\"report.php?id=$entry->id&amp;sort=u.firstname\">$strname</a></th>";
echo "<th width=\"100%\"><a href=\"report.php?id=$entry->id&amp;sort=r.rating\">$strrating</a></th>";
echo "<th><a href=\"report.php?id=$entry->id&amp;sort=r.time\">$strtime</a></th>";
foreach ($ratings as $rating) {
if (isteacher($glossary->course, $rating->id)) {
echo "<tr bgcolor=\"$THEME->cellcontent2\">";
echo '<tr class="teacher">';
} else {
echo "<tr bgcolor=\"$THEME->cellcontent\">";
echo '<tr>';
}
echo "<td>";
echo '<td class="picture">';
print_user_picture($rating->id, $glossary->course, $rating->picture);
echo '<td nowrap="nowrap"><p><font size="-1">'.fullname($rating).'</p>';
echo '<td nowrap="nowrap" align="center"><p><font size="-1">'.$scalemenu[$rating->rating]."</p>";
echo '<td nowrap="nowrap" align="center"><p><font size="-1">'.userdate($rating->time)."</p>";
echo '</td>';
echo '<td nowrap="nowrap" class="author">'.fullname($rating).'</td>';
echo '<td nowrap="nowrap" align="center" class="author">'.$scalemenu[$rating->rating].'</td>';
echo '<td nowrap="nowrap" align="center" class="author">'.userdate($rating->time).'</td>';
echo "</tr>\n";
}
echo "</table>";