From: moodler <moodler>
Date: Sun, 19 Oct 2003 05:02:45 +0000 (+0000)
Subject: Added styles to tabs
X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=e94c179a04babebebd5a73f552a2c5667c7a6236;p=moodle.git

Added styles to tabs
---

diff --git a/mod/glossary/lib.php b/mod/glossary/lib.php
index e1f286117b..b56756c3c5 100644
--- a/mod/glossary/lib.php
+++ b/mod/glossary/lib.php
@@ -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 . "\">";
                     }