]> git.mjollnir.org Git - moodle.git/commitdiff
Added styles to tabs
authormoodler <moodler>
Sun, 19 Oct 2003 05:02:45 +0000 (05:02 +0000)
committermoodler <moodler>
Sun, 19 Oct 2003 05:02:45 +0000 (05:02 +0000)
mod/glossary/lib.php

index e1f286117bea927b047a7d4abdb379656b8a8590..b56756c3c526fa6421d6ff9928d39cf01f707dba 100644 (file)
@@ -606,10 +606,12 @@ for ($row = 0; $row < $numrows; $row++) {
                     }
                     if ($tabproccessed == $currenttab) {
                          $currentcolor = $currenttabcolor;
+                         $currentstyle = 'generaltabselected';
                     } else {
                          $currentcolor = $tabcolor;
+                         $currentstyle = 'generaltab';
                     }
-                    echo "<td width=\"$tabwidth%\" bgcolor=\"$currentcolor\" align=\"center\"><b>";
+                    echo "<td class=\"$currentstyle\" width=\"$tabwidth%\" bgcolor=\"$currentcolor\" align=\"center\"><b>";
                     if ($tabproccessed != $currenttab and $data[$tabproccessed]->link) {
                         echo "<a href=\"" . $data[$tabproccessed]->link . "\">";
                     }