$strmainheading = get_string('defaultmainheading', 'format_fn'); } //print_heading_block($strmainheading, 'fnoutlineheadingblock" style="margin-bottom:0;'); if ($selected_week > 0 && !$isediting) { echo '<table class="topicsoutline" border="0" cellpadding="8" cellspacing="0" width="100%"> <tr><td valign=top class="fntopicsoutlinecontent fnsectionouter" width="100%"> <!-- Tabbed section container --> <table border="0" cellpadding="0" cellspacing="0" width="100%" align="center"> '; if ($course->numsections > 1) { echo ' <!-- Tabs --> <tr> <td width="100%"> '; echo $cobject->print_weekly_activities_bar($selected_week, $tabrange); // echo $cobject->print_weekly_activities_bar_2($selected_week); echo ' </td> </tr> <!-- Tabs --> '; } echo ' <!-- Selected Tab Content --> <tr> <!-- This cell holds the same colour as the selected tab. --> <td width="100%" class="fnweeklynavselected"> <!-- This table creates a selected colour box around the content --> <table width="100%" cellpadding="5" cellspacing="0" border="0"> <tr>
$highlightcolour = $highlightcolour ? $highlightcolour : '73C1E1'; $inactivebgcolour = $inactivebgcolour ? $inactivebgcolour : 'F5E49C'; echo "\r\n <style>\r\n .fnsectionouter,\r\n .courseedit-format,\r\n .courseedit-fn-main,\r\n headergeneral,\r\n fnmarkedfilearea {\r\n background-color:#{$bgcolour};\r\n }\r\n .fntopicsoutlinecontent {\r\n border-color:#{$bgcolour};\r\n }\r\n .fnweeklynavnorm {\r\n border-right: solid 1px #{$bgcolour};\r\n border-right: solid 1px #{$bgcolour};\r\n }\r\n .fnweeklynavselected {\r\n border-right: solid 1px #{$bgcolour};\r\n }\r\n .fntopicsoutlineside {\r\n background-color:#{$bgcolour};\r\n }\r\n .fntopicsoutlinesidehighlight,\r\n .courseedit-fn-format,\r\n .courseedit-fn-sidebar,\r\n .markingcontainer td.generalbox3 {\r\n background-color: #{$highlightcolour};\r\n }\r\n .fntopicsoutlinecontenthighlight,\r\n .courseedit-fn-section,\r\n .fnmarkingblock thead,\r\n .fnmarkingblock tbody td,\r\n .fncoursegroup {\r\n border-color: #{$highlightcolour};\r\n }\r\n .fnweeklynavdisabledselected,\r\n .fnweeklynavdisabledselected1 {\r\n background-color: #{$inactivebgcolour};\r\n }\r\n </style>"; if ($selected_week > 0 && !$PAGE->user_is_editing()) { echo '<table class="topicsoutline" border="0" cellpadding="0" cellspacing="0" width="100%"> <tr><td valign=top class="fntopicsoutlinecontent fnsectionouter" width="100%"> <div class="number-select"> <!-- Tabbed section container --> <table border="0" cellpadding="0" cellspacing="0" width="100%" align="center"> '; if ($course->numsections > 1) { echo ' <!-- Tabs --> <tr> <td class="oc-lektionsreiter" width="100%" align="center">'; echo $cobject->print_weekly_activities_bar($selected_week, $tabrange, $resubmission); echo ' </td> </tr> <!-- Tabs --> '; } $class = $cobject->tdselectedclass[$selected_week] == 'fnweeklynavdisabledselected' ? 'fnweeklynavdisabledselected1' : 'fnweeklynavselected'; echo ' <!-- Selected Tab Content --> <tr> <!-- This cell holds the same colour as the selected tab. --> <td width="100%" class="' . $class . ' oc-lektionscontent"> <!-- This table creates a selected colour box around the content --> <table width="100%" cellpadding="0" cellspacing="0" border="0"> <tr>