mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
Added styles to tabs
This commit is contained in:
parent
4257e7f69e
commit
e94c179a04
1 changed files with 3 additions and 1 deletions
|
@ -606,10 +606,12 @@ for ($row = 0; $row < $numrows; $row++) {
|
||||||
}
|
}
|
||||||
if ($tabproccessed == $currenttab) {
|
if ($tabproccessed == $currenttab) {
|
||||||
$currentcolor = $currenttabcolor;
|
$currentcolor = $currenttabcolor;
|
||||||
|
$currentstyle = 'generaltabselected';
|
||||||
} else {
|
} else {
|
||||||
$currentcolor = $tabcolor;
|
$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) {
|
if ($tabproccessed != $currenttab and $data[$tabproccessed]->link) {
|
||||||
echo "<a href=\"" . $data[$tabproccessed]->link . "\">";
|
echo "<a href=\"" . $data[$tabproccessed]->link . "\">";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue