diff --git a/public/admin/filters.php b/public/admin/filters.php index 7f9cc73837d..b58795103d6 100644 --- a/public/admin/filters.php +++ b/public/admin/filters.php @@ -121,7 +121,7 @@ $table = new html_table(); $table->head = [get_string('filter'), get_string('isactive', 'filters'), get_string('order'), get_string('applyto', 'filters'), get_string('settings'), get_string('uninstallplugin', 'core_admin')]; $table->colclasses = array ('leftalign', 'leftalign', 'centeralign', 'leftalign', 'leftalign', 'leftalign'); -$table->attributes['class'] = 'admintable table generaltable'; +$table->attributes['class'] = 'admintable table generaltable table-hover'; $table->id = 'filterssetting'; $table->data = []; diff --git a/public/admin/mnet/index.php b/public/admin/mnet/index.php index 330010351e8..42d16662d70 100644 --- a/public/admin/mnet/index.php +++ b/public/admin/mnet/index.php @@ -98,7 +98,7 @@ echo $OUTPUT->header(); ?>
- +
@@ -119,7 +119,7 @@
- +
diff --git a/public/admin/plagiarism.php b/public/admin/plagiarism.php index 7df18fa34cd..f19526d6974 100644 --- a/public/admin/plagiarism.php +++ b/public/admin/plagiarism.php @@ -54,7 +54,7 @@ $table = new html_table(); $table->head = array($txt->name, $txt->version, $txt->uninstall, $txt->settings); $table->colclasses = array('mdl-left', 'mdl-align', 'mdl-align', 'mdl-align'); $table->data = array(); -$table->attributes['class'] = 'manageplagiarismtable table generaltable'; +$table->attributes['class'] = 'manageplagiarismtable table generaltable table-hover'; // Iterate through auth plugins and add to the display table. $authcount = count($plagiarismplugins); diff --git a/public/admin/renderer.php b/public/admin/renderer.php index 4f789e4394f..23658b7a5dc 100644 --- a/public/admin/renderer.php +++ b/public/admin/renderer.php @@ -2063,7 +2063,7 @@ class core_admin_renderer extends plugin_renderer_base { get_string('status'), ); $servertable->colclasses = array('centeralign name', 'centeralign info', 'leftalign report', 'leftalign plugin', 'centeralign status'); - $servertable->attributes['class'] = 'table table-striped admintable environmenttable generaltable table-sm'; + $servertable->attributes['class'] = 'table table-striped admintable environmenttable generaltable table-sm table-hover'; $servertable->id = 'serverstatus'; $serverdata = array('ok'=>array(), 'warn'=>array(), 'error'=>array()); @@ -2076,7 +2076,7 @@ class core_admin_renderer extends plugin_renderer_base { get_string('status'), ); $othertable->colclasses = array('aligncenter info', 'alignleft report', 'alignleft plugin', 'aligncenter status'); - $othertable->attributes['class'] = 'table table-striped admintable environmenttable generaltable table-sm'; + $othertable->attributes['class'] = 'table table-striped admintable environmenttable generaltable table-sm table-hover'; $othertable->id = 'otherserverstatus'; $otherdata = array('ok'=>array(), 'warn'=>array(), 'error'=>array()); diff --git a/public/admin/repository.php b/public/admin/repository.php index 28085699722..bca4d56219f 100644 --- a/public/admin/repository.php +++ b/public/admin/repository.php @@ -263,7 +263,7 @@ if (($action == 'edit') || ($action == 'new')) { $table->colclasses = array('leftalign', 'centeralign', 'centeralign', 'centeralign', 'centeralign', 'centeralign'); $table->id = 'repositoriessetting'; $table->data = array(); - $table->attributes['class'] = 'admintable table generaltable'; + $table->attributes['class'] = 'admintable table generaltable table-hover'; // Get list of used plug-ins $repositorytypes = repository::get_types(); diff --git a/public/admin/roles/admins.php b/public/admin/roles/admins.php index f715fa54996..2f40b9cbf2f 100644 --- a/public/admin/roles/admins.php +++ b/public/admin/roles/admins.php @@ -179,7 +179,7 @@ echo $OUTPUT->header();
-
+

diff --git a/public/admin/roles/assign.php b/public/admin/roles/assign.php index 492e4440d82..90431f5a269 100644 --- a/public/admin/roles/assign.php +++ b/public/admin/roles/assign.php @@ -228,7 +228,7 @@ if ($roleid) {

- +

@@ -322,7 +322,7 @@ if ($roleid) { $table->id = 'assignrole'; $table->head = array(get_string('role'), get_string('description'), get_string('userswiththisrole', 'core_role')); $table->colclasses = array('leftalign role', 'leftalign', 'centeralign userrole'); - $table->attributes['class'] = 'admintable table generaltable'; + $table->attributes['class'] = 'admintable table generaltable table-hover'; if ($showroleholders) { $table->headspan = array(1, 1, 2); $table->colclasses[] = 'leftalign roleholder'; diff --git a/public/admin/roles/manage.php b/public/admin/roles/manage.php index 8b125a1007b..69a74602fd2 100644 --- a/public/admin/roles/manage.php +++ b/public/admin/roles/manage.php @@ -153,7 +153,7 @@ require('managetabs.php'); $table = new html_table(); $table->colclasses = array('leftalign', 'leftalign', 'leftalign', 'leftalign'); $table->id = 'roles'; -$table->attributes['class'] = 'admintable table generaltable'; +$table->attributes['class'] = 'admintable table generaltable table-hover'; $table->head = array( get_string('role') . ' ' . $OUTPUT->help_icon('roles', 'core_role'), get_string('description'), diff --git a/public/admin/thirdpartylibs.php b/public/admin/thirdpartylibs.php index 42bac417633..9a35f257050 100644 --- a/public/admin/thirdpartylibs.php +++ b/public/admin/thirdpartylibs.php @@ -47,7 +47,7 @@ $table->head = array( get_string('thirdpartylibrarylocation', 'core_admin'), get_string('license')); $table->align = array('left', 'left', 'left', 'left'); $table->id = 'thirdpartylibs'; -$table->attributes['class'] = 'admintable table generaltable'; +$table->attributes['class'] = 'admintable table generaltable table-hover'; $table->data = array(); foreach ($files as $component => $xmlpath) { diff --git a/public/admin/tool/capability/index.php b/public/admin/tool/capability/index.php index a35b344e7d4..7a3660130b9 100644 --- a/public/admin/tool/capability/index.php +++ b/public/admin/tool/capability/index.php @@ -140,7 +140,7 @@ function print_report_tree($contextid, $contexts, $allroles) { // If there are any role overrides here, print them. if (!empty($contexts[$contextid]->rolecapabilities)) { $rowcounter = 0; - echo ''; + echo '
'; foreach ($allroles as $role) { if (isset($contexts[$contextid]->rolecapabilities[$role->id])) { $permission = $contexts[$contextid]->rolecapabilities[$role->id]; diff --git a/public/admin/tool/licensemanager/classes/output/table.php b/public/admin/tool/licensemanager/classes/output/table.php index 51b7e66d9f2..65c53386ee9 100644 --- a/public/admin/tool/licensemanager/classes/output/table.php +++ b/public/admin/tool/licensemanager/classes/output/table.php @@ -80,7 +80,7 @@ class table implements \renderable { 'text-center', ]; $table->id = 'manage-licenses'; - $table->attributes['class'] = 'admintable table generaltable'; + $table->attributes['class'] = 'admintable table generaltable table-hover'; $table->data = []; $rownumber = 0; diff --git a/public/admin/tool/log/classes/setting_managestores.php b/public/admin/tool/log/classes/setting_managestores.php index d51b8f16785..2575cb9e288 100644 --- a/public/admin/tool/log/classes/setting_managestores.php +++ b/public/admin/tool/log/classes/setting_managestores.php @@ -141,7 +141,7 @@ class tool_log_setting_managestores extends admin_setting { $table->colclasses = array('leftalign', 'centeralign', 'centeralign', 'centeralign', 'centeralign', 'centeralign', 'centeralign'); $table->id = 'logstoreplugins'; - $table->attributes['class'] = 'admintable table generaltable'; + $table->attributes['class'] = 'admintable table generaltable table-hover'; $table->data = array(); // Iterate through store plugins and add to the display table. diff --git a/public/admin/tool/messageinbound/renderer.php b/public/admin/tool/messageinbound/renderer.php index 9bf949e66f6..d5bf003dfcd 100644 --- a/public/admin/tool/messageinbound/renderer.php +++ b/public/admin/tool/messageinbound/renderer.php @@ -56,7 +56,7 @@ class tool_messageinbound_renderer extends plugin_renderer_base { $enabled, $edit, ); - $table->attributes['class'] = 'admintable table generaltable messageinboundhandlers'; + $table->attributes['class'] = 'admintable table generaltable messageinboundhandlers table-hover'; $yes = get_string('yes'); $no = get_string('no'); diff --git a/public/admin/tool/mfa/classes/manager.php b/public/admin/tool/mfa/classes/manager.php index 9b7bbdc1e60..74e9ca7216a 100644 --- a/public/admin/tool/mfa/classes/manager.php +++ b/public/admin/tool/mfa/classes/manager.php @@ -74,7 +74,7 @@ class manager { get_string('achievedweight', 'tool_mfa'), get_string('status'), ]; - $table->attributes['class'] = 'admintable generaltable table table-bordered'; + $table->attributes['class'] = 'admintable generaltable table table-bordered table-hover'; $table->colclasses = [ 'text-end', '', diff --git a/public/admin/tool/mfa/classes/output/renderer.php b/public/admin/tool/mfa/classes/output/renderer.php index 2ea5b639498..93cd9c074a5 100644 --- a/public/admin/tool/mfa/classes/output/renderer.php +++ b/public/admin/tool/mfa/classes/output/renderer.php @@ -174,7 +174,7 @@ class renderer extends \plugin_renderer_base { $table = new \html_table(); $table->id = 'active_factors'; - $table->attributes['class'] = 'generaltable table table-bordered'; + $table->attributes['class'] = 'generaltable table table-bordered table-hover'; $table->head = [ $headers->devicename, $headers->added, @@ -348,7 +348,7 @@ class renderer extends \plugin_renderer_base { $table = new \html_table(); $table->head = $displaynames; $table->align = $colclasses; - $table->attributes['class'] = 'generaltable table table-bordered w-auto'; + $table->attributes['class'] = 'generaltable table table-bordered w-auto table-hover'; $table->attributes['style'] = 'width: auto; min-width: 50%; margin-bottom: 0;'; // Manually handle Total users and MFA users. @@ -461,7 +461,7 @@ class renderer extends \plugin_renderer_base { $table = new \html_table(); - $table->attributes['class'] = 'generaltable table table-bordered w-auto'; + $table->attributes['class'] = 'generaltable table table-bordered w-auto table-hover'; $table->attributes['style'] = 'width: auto; min-width: 50%'; $table->head = [ @@ -513,7 +513,7 @@ class renderer extends \plugin_renderer_base { global $DB; $table = new \html_table(); - $table->attributes['class'] = 'generaltable table table-bordered w-auto'; + $table->attributes['class'] = 'generaltable table table-bordered w-auto table-hover'; $table->attributes['style'] = 'width: auto; min-width: 50%'; $table->head = [ 'userid' => get_string('userid', 'grades'), diff --git a/public/admin/tool/mfa/classes/table/admin_setting_managemfa.php b/public/admin/tool/mfa/classes/table/admin_setting_managemfa.php index 418cb90e7dc..a91b12b8678 100644 --- a/public/admin/tool/mfa/classes/table/admin_setting_managemfa.php +++ b/public/admin/tool/mfa/classes/table/admin_setting_managemfa.php @@ -131,7 +131,7 @@ class admin_setting_managemfa extends \core_admin\table\plugin_management_table $txt = get_strings(['combination', 'totalweight'], 'tool_mfa'); $table = new \html_table(); $table->id = 'mfacombinations'; - $table->attributes['class'] = 'admintable generaltable table table-bordered'; + $table->attributes['class'] = 'admintable generaltable table table-bordered table-hover'; $table->head = [$txt->combination, $txt->totalweight]; $table->data = []; diff --git a/public/admin/tool/mfa/factor/totp/classes/factor.php b/public/admin/tool/mfa/factor/totp/classes/factor.php index c669389e3ca..affcef874b7 100644 --- a/public/admin/tool/mfa/factor/totp/classes/factor.php +++ b/public/admin/tool/mfa/factor/totp/classes/factor.php @@ -195,7 +195,7 @@ class factor extends object_factor_base { $manualtable = new \html_table(); $manualtable->id = 'manualattributes'; - $manualtable->attributes['class'] = 'generaltable table table-bordered table-sm w-auto'; + $manualtable->attributes['class'] = 'generaltable table table-bordered table-sm w-auto table-hover'; $manualtable->attributes['style'] = 'width: auto;'; $manualtable->data = [ [get_string('setupfactor:key', 'factor_totp'), $secret], diff --git a/public/admin/tool/oauth2/classes/output/renderer.php b/public/admin/tool/oauth2/classes/output/renderer.php index b97684f77c8..48caad1550b 100644 --- a/public/admin/tool/oauth2/classes/output/renderer.php +++ b/public/admin/tool/oauth2/classes/output/renderer.php @@ -60,7 +60,7 @@ class renderer extends plugin_renderer_base { get_string('systemauthstatus', 'tool_oauth2') . ' ' . $this->help_icon('systemaccountconnected', 'tool_oauth2'), get_string('edit'), ]; - $table->attributes['class'] = 'admintable table generaltable'; + $table->attributes['class'] = 'admintable table generaltable table-hover'; $data = []; $index = 0; @@ -231,7 +231,7 @@ class renderer extends plugin_renderer_base { get_string('url'), get_string('edit'), ]; - $table->attributes['class'] = 'admintable table generaltable'; + $table->attributes['class'] = 'admintable table generaltable table-hover'; $data = []; $index = 0; @@ -290,7 +290,7 @@ class renderer extends plugin_renderer_base { get_string('userfieldinternalfield', 'tool_oauth2'), get_string('edit'), ]; - $table->attributes['class'] = 'admintable table generaltable'; + $table->attributes['class'] = 'admintable table generaltable table-hover'; $data = []; $index = 0; diff --git a/public/admin/tool/task/renderer.php b/public/admin/tool/task/renderer.php index f031dded553..0f66f712bc7 100644 --- a/public/admin/tool/task/renderer.php +++ b/public/admin/tool/task/renderer.php @@ -58,7 +58,7 @@ class tool_task_renderer extends plugin_renderer_base { get_string('nextruntime', 'tool_task'), ]; - $table->attributes['class'] = 'admintable table generaltable'; + $table->attributes['class'] = 'admintable table generaltable table-hover'; $table->colclasses = []; // For each task entry (row) show action buttons/logs link depending on the user permissions. @@ -259,7 +259,7 @@ class tool_task_renderer extends plugin_renderer_base { get_string('actions','tool_task'), ]; - $table->attributes['class'] = 'table generaltable'; + $table->attributes['class'] = 'table generaltable table-hover'; $table->colclasses = []; // For each task entry (row) show action buttons/logs link depending on the user permissions. @@ -384,7 +384,7 @@ class tool_task_renderer extends plugin_renderer_base { get_string('default', 'tool_task'), ]; - $table->attributes['class'] = 'admintable table generaltable'; + $table->attributes['class'] = 'admintable table generaltable table-hover'; $table->colclasses = []; if (!$showloglink) { diff --git a/public/admin/tool/uploaduser/classes/preview.php b/public/admin/tool/uploaduser/classes/preview.php index 83daeaea1f8..316cacc839a 100644 --- a/public/admin/tool/uploaduser/classes/preview.php +++ b/public/admin/tool/uploaduser/classes/preview.php @@ -64,7 +64,7 @@ class preview extends \html_table { $this->previewrows = $previewrows; $this->id = "uupreview"; - $this->attributes['class'] = 'table generaltable'; + $this->attributes['class'] = 'table generaltable table-hover'; $this->tablealign = 'center'; $this->summary = get_string('uploaduserspreview', 'tool_uploaduser'); $this->head = array(); diff --git a/public/admin/tool/uploaduser/locallib.php b/public/admin/tool/uploaduser/locallib.php index 56ea010d6e8..6b8c88e19b3 100644 --- a/public/admin/tool/uploaduser/locallib.php +++ b/public/admin/tool/uploaduser/locallib.php @@ -94,7 +94,8 @@ class uu_progress_tracker { */ public function start() { $ci = 0; - echo '
'; + echo '
'; echo ''; foreach ($this->headers as $key => $header) { echo ''; diff --git a/public/admin/tool/xmldb/actions/XMLDBCheckAction.class.php b/public/admin/tool/xmldb/actions/XMLDBCheckAction.class.php index 9d4470dbd52..848c2812db3 100644 --- a/public/admin/tool/xmldb/actions/XMLDBCheckAction.class.php +++ b/public/admin/tool/xmldb/actions/XMLDBCheckAction.class.php @@ -90,7 +90,7 @@ abstract class XMLDBCheckAction extends XMLDBAction { // If not confirmed, show confirmation box if (!$confirmed) { - $o = '
'.$header.'
'; + $o = '
'; $o.= '
'; $o.= '

' . $this->str[$this->introstr] . '

'; $o .= '
'; diff --git a/public/admin/tool/xmldb/actions/check_bigints/check_bigints.class.php b/public/admin/tool/xmldb/actions/check_bigints/check_bigints.class.php index 011d923f4e5..d42b1a41c02 100644 --- a/public/admin/tool/xmldb/actions/check_bigints/check_bigints.class.php +++ b/public/admin/tool/xmldb/actions/check_bigints/check_bigints.class.php @@ -99,7 +99,7 @@ class check_bigints extends XMLDBCheckAction { $dbman = $DB->get_manager(); $s = ''; - $r = ''; + $r = '
'; $r.= '
'; $r.= '

' . $this->str['searchresults'] . '

'; $r.= '

' . $this->str['wrongints'] . ': ' . count($wrong_fields) . '

'; diff --git a/public/admin/tool/xmldb/actions/check_defaults/check_defaults.class.php b/public/admin/tool/xmldb/actions/check_defaults/check_defaults.class.php index c09a7679051..8b30d1a35ed 100644 --- a/public/admin/tool/xmldb/actions/check_defaults/check_defaults.class.php +++ b/public/admin/tool/xmldb/actions/check_defaults/check_defaults.class.php @@ -147,7 +147,7 @@ class check_defaults extends XMLDBCheckAction { $dbman = $DB->get_manager(); $s = ''; - $r = ''; + $r = '
'; $r .= '
'; $r .= '

' . $this->str['searchresults'] . '

'; $r .= '

' . $this->str['wrongdefaults'] . ': ' . count($wrongfields) . '

'; diff --git a/public/admin/tool/xmldb/actions/check_foreign_keys/check_foreign_keys.class.php b/public/admin/tool/xmldb/actions/check_foreign_keys/check_foreign_keys.class.php index 2a92afcd982..3e2bed26e72 100644 --- a/public/admin/tool/xmldb/actions/check_foreign_keys/check_foreign_keys.class.php +++ b/public/admin/tool/xmldb/actions/check_foreign_keys/check_foreign_keys.class.php @@ -159,7 +159,7 @@ class check_foreign_keys extends XMLDBCheckAction { } protected function display_results(array $violatedkeys) { - $r = ''; + $r = '
'; $r.= '
'; $r.= '

' . $this->str['searchresults'] . '

'; $r.= '

' . $this->str['violatedforeignkeys'] . ': ' . count($violatedkeys) . '

'; diff --git a/public/admin/tool/xmldb/actions/check_indexes/check_indexes.class.php b/public/admin/tool/xmldb/actions/check_indexes/check_indexes.class.php index bbbc47e9bd5..01bfc4a4d87 100644 --- a/public/admin/tool/xmldb/actions/check_indexes/check_indexes.class.php +++ b/public/admin/tool/xmldb/actions/check_indexes/check_indexes.class.php @@ -154,7 +154,7 @@ class check_indexes extends XMLDBCheckAction { } $s = ''; - $r = ''; + $r = '
'; $r.= '
'; $r.= '

' . $this->str['searchresults'] . '

'; $r .= '

' . $this->str['missingindexes'] . ': ' . count($missingindexes) . '

'; diff --git a/public/admin/tool/xmldb/actions/delete_field/delete_field.class.php b/public/admin/tool/xmldb/actions/delete_field/delete_field.class.php index 922fef987c0..b1d768abbc0 100644 --- a/public/admin/tool/xmldb/actions/delete_field/delete_field.class.php +++ b/public/admin/tool/xmldb/actions/delete_field/delete_field.class.php @@ -73,7 +73,7 @@ class delete_field extends XMLDBAction { // If not confirmed, show confirmation box if (!$confirmed) { - $o = ''; + $o = '
'; $o.= '
'; $o.= '

' . $this->str['confirmdeletefield'] . '

' . $fieldparam . '

'; $o .= '
'; diff --git a/public/admin/tool/xmldb/actions/delete_index/delete_index.class.php b/public/admin/tool/xmldb/actions/delete_index/delete_index.class.php index 51e006a88bc..d30ec88e597 100644 --- a/public/admin/tool/xmldb/actions/delete_index/delete_index.class.php +++ b/public/admin/tool/xmldb/actions/delete_index/delete_index.class.php @@ -73,7 +73,7 @@ class delete_index extends XMLDBAction { // If not confirmed, show confirmation box if (!$confirmed) { - $o = ''; + $o = '
'; $o.= '
'; $o.= '

' . $this->str['confirmdeleteindex'] . '

' . $indexparam . '

'; $o .= '
'; diff --git a/public/admin/tool/xmldb/actions/delete_key/delete_key.class.php b/public/admin/tool/xmldb/actions/delete_key/delete_key.class.php index bb824c51676..11c4651834a 100644 --- a/public/admin/tool/xmldb/actions/delete_key/delete_key.class.php +++ b/public/admin/tool/xmldb/actions/delete_key/delete_key.class.php @@ -73,7 +73,7 @@ class delete_key extends XMLDBAction { // If not confirmed, show confirmation box if (!$confirmed) { - $o = ''; + $o = '
'; $o.= '
'; $o.= '

' . $this->str['confirmdeletekey'] . '

' . $keyparam . '

'; $o .= '
'; diff --git a/public/admin/tool/xmldb/actions/delete_table/delete_table.class.php b/public/admin/tool/xmldb/actions/delete_table/delete_table.class.php index b53c4d2a186..4fe689d1729 100644 --- a/public/admin/tool/xmldb/actions/delete_table/delete_table.class.php +++ b/public/admin/tool/xmldb/actions/delete_table/delete_table.class.php @@ -72,7 +72,7 @@ class delete_table extends XMLDBAction { // If not confirmed, show confirmation box if (!$confirmed) { - $o = ''; + $o = '
'; $o.= '
'; $o.= '

' . $this->str['confirmdeletetable'] . '

' . $tableparam . '

'; $o .= '
'; diff --git a/public/admin/tool/xmldb/actions/delete_xml_file/delete_xml_file.class.php b/public/admin/tool/xmldb/actions/delete_xml_file/delete_xml_file.class.php index 87cf29ad4d6..52d4d5cb573 100644 --- a/public/admin/tool/xmldb/actions/delete_xml_file/delete_xml_file.class.php +++ b/public/admin/tool/xmldb/actions/delete_xml_file/delete_xml_file.class.php @@ -71,7 +71,7 @@ class delete_xml_file extends XMLDBAction { // If not confirmed, show confirmation box if (!$confirmed) { - $o = ''; + $o = '
'; $o.= '
'; $o.= '

' . $this->str['confirmdeletexmlfile'] . '

' . $dirpath . '/install.php

'; $o .= '
'; diff --git a/public/admin/tool/xmldb/actions/main_view/main_view.class.php b/public/admin/tool/xmldb/actions/main_view/main_view.class.php index d8578473f77..94d9e536d60 100644 --- a/public/admin/tool/xmldb/actions/main_view/main_view.class.php +++ b/public/admin/tool/xmldb/actions/main_view/main_view.class.php @@ -119,7 +119,7 @@ class main_view extends XMLDBAction { // Display list of DB directories if everything is ok if ($result && !empty($XMLDB->dbdirs)) { $o .= ''; + ' class="table table-striped table-sm admintable generaltable table-hover">'; $row = 0; foreach ($XMLDB->dbdirs as $key => $dbdir) { // Detect if this is the lastused dir diff --git a/public/admin/tool/xmldb/actions/revert_changes/revert_changes.class.php b/public/admin/tool/xmldb/actions/revert_changes/revert_changes.class.php index fa96bda0399..079ff94e55f 100644 --- a/public/admin/tool/xmldb/actions/revert_changes/revert_changes.class.php +++ b/public/admin/tool/xmldb/actions/revert_changes/revert_changes.class.php @@ -71,7 +71,7 @@ class revert_changes extends XMLDBAction { // If not confirmed, show confirmation box if (!$confirmed) { - $o = '
'; + $o = '
'; $o.= '
'; $o.= '

' . $this->str['confirmrevertchanges'] . '

' . $dirpath . '

'; $o .= '
'; diff --git a/public/auth/oauth2/classes/output/renderer.php b/public/auth/oauth2/classes/output/renderer.php index edede9cc927..1366f178089 100644 --- a/public/auth/oauth2/classes/output/renderer.php +++ b/public/auth/oauth2/classes/output/renderer.php @@ -55,7 +55,7 @@ class renderer extends plugin_renderer_base { get_string('info', 'auth_oauth2'), get_string('edit'), ]; - $table->attributes['class'] = 'admintable table generaltable'; + $table->attributes['class'] = 'admintable table generaltable table-hover'; $data = []; $index = 0; diff --git a/public/backup/util/ui/renderer.php b/public/backup/util/ui/renderer.php index 2f69eb828f0..937439d037e 100644 --- a/public/backup/util/ui/renderer.php +++ b/public/backup/util/ui/renderer.php @@ -690,7 +690,7 @@ class core_backup_renderer extends plugin_renderer_base { } $table = new html_table(); - $table->attributes['class'] = 'backup-files-table table generaltable'; + $table->attributes['class'] = 'backup-files-table table generaltable table-hover'; $table->head = $tablehead; $table->width = '100%'; $table->data = []; @@ -1051,7 +1051,7 @@ class core_backup_renderer extends plugin_renderer_base { $tablehead = array(get_string('course'), get_string('time'), get_string('status', 'backup')); $table = new html_table(); - $table->attributes['class'] = 'backup-files-table table generaltable'; + $table->attributes['class'] = 'backup-files-table table generaltable table-hover'; $table->head = $tablehead; $tabledata = array(); @@ -1092,7 +1092,7 @@ class core_backup_renderer extends plugin_renderer_base { ); $table = new html_table(); - $table->attributes['class'] = 'backup-files-table table generaltable'; + $table->attributes['class'] = 'backup-files-table table generaltable table-hover'; $table->head = $tablehead; $tabledata = array(); diff --git a/public/badges/renderer.php b/public/badges/renderer.php index 684024d8582..bd549eb5ab9 100644 --- a/public/badges/renderer.php +++ b/public/badges/renderer.php @@ -781,7 +781,7 @@ class core_badges_renderer extends plugin_renderer_base { $paging = new paging_bar($related->totalcount, $related->page, $related->perpage, $this->page->url, 'page'); $htmlpagingbar = $this->render($paging); $table = new html_table(); - $table->attributes['class'] = 'table generaltable'; + $table->attributes['class'] = 'table generaltable table-hover'; $table->head = array( get_string('name'), get_string('version', 'badges'), @@ -840,7 +840,7 @@ class core_badges_renderer extends plugin_renderer_base { $paging = new paging_bar($alignments->totalcount, $alignments->page, $alignments->perpage, $this->page->url, 'page'); $htmlpagingbar = $this->render($paging); $table = new html_table(); - $table->attributes['class'] = 'table generaltable'; + $table->attributes['class'] = 'table generaltable table-hover'; $table->head = array('Name', 'URL', ''); foreach ($alignments->alignments as $item) { diff --git a/public/blocks/accessreview/block_accessreview.php b/public/blocks/accessreview/block_accessreview.php index 7f81e0f182d..ea07e6f5d7e 100644 --- a/public/blocks/accessreview/block_accessreview.php +++ b/public/blocks/accessreview/block_accessreview.php @@ -113,7 +113,7 @@ class block_accessreview extends block_base { return $this->content; } $table->data = $tabledata; - $table->attributes['class'] = 'generaltable table table-sm block_accessreview_table'; + $table->attributes['class'] = 'generaltable table table-sm block_accessreview_table table-hover'; $this->content->text .= html_writer::table($table, true); // Check for compatible course formats for highlighting. diff --git a/public/blog/external_blogs.php b/public/blog/external_blogs.php index 0c43eb16be4..776c02bfd27 100644 --- a/public/blog/external_blogs.php +++ b/public/blog/external_blogs.php @@ -93,7 +93,7 @@ echo $OUTPUT->box_start('generalbox boxaligncenter'); if (!empty($blogs)) { $table = new html_table(); $table->cellpadding = 4; - $table->attributes['class'] = 'table generaltable'; + $table->attributes['class'] = 'table generaltable table-hover'; $table->head = array(get_string('name'), get_string('url', 'blog'), get_string('timefetched', 'blog'), diff --git a/public/cache/classes/output/renderer.php b/public/cache/classes/output/renderer.php index 239db3d86f4..c0a2c8bf084 100644 --- a/public/cache/classes/output/renderer.php +++ b/public/cache/classes/output/renderer.php @@ -451,7 +451,7 @@ class renderer extends \plugin_renderer_base { 'right', 'right', ]; $summarytable->data = []; - $summarytable->attributes['class'] = 'table generaltable w-auto'; + $summarytable->attributes['class'] = 'table generaltable w-auto table-hover'; $storetotals = []; // We will highlight all cells that are more than 2% of total size, so work that out first. diff --git a/public/cohort/assign.php b/public/cohort/assign.php index 9f4c61761bc..1014074e93c 100644 --- a/public/cohort/assign.php +++ b/public/cohort/assign.php @@ -107,7 +107,7 @@ if (optional_param('remove', false, PARAM_BOOL) && confirm_sesskey()) { - +

diff --git a/public/communication/classes/admin/manage_communication_providers_page.php b/public/communication/classes/admin/manage_communication_providers_page.php index 8db7c24aeba..06fa2597042 100644 --- a/public/communication/classes/admin/manage_communication_providers_page.php +++ b/public/communication/classes/admin/manage_communication_providers_page.php @@ -69,7 +69,7 @@ class manage_communication_providers_page extends admin_setting { get_string('uninstallplugin', 'core_admin'), ]; $table->align = ['left', 'center', 'center', 'center']; - $table->attributes['class'] = 'managecommunicationtable table generaltable admintable'; + $table->attributes['class'] = 'managecommunicationtable table generaltable admintable table-hover'; $table->data = []; foreach ($plugins as $plugin) { diff --git a/public/course/pending.php b/public/course/pending.php index f0812d39895..f990b6a5d61 100644 --- a/public/course/pending.php +++ b/public/course/pending.php @@ -117,7 +117,7 @@ if (empty($pending)) { // Build a table of all the requests. $table = new html_table(); - $table->attributes['class'] = 'pendingcourserequests table generaltable'; + $table->attributes['class'] = 'pendingcourserequests table generaltable table-hover'; $table->align = ['center', 'center', 'center', 'center', 'center', 'center']; $table->head = [get_string('requestedby'), get_string('shortnamecourse'), get_string('fullnamecourse'), get_string('summary'), get_string('category'), get_string('requestreason'), get_string('action')]; diff --git a/public/enrol/manual/manage.php b/public/enrol/manual/manage.php index 4a5c63d1fa1..809a28b3fd6 100644 --- a/public/enrol/manual/manage.php +++ b/public/enrol/manual/manage.php @@ -179,7 +179,7 @@ $removeenabled = $canunenrol ? '' : 'disabled="disabled"';
- +

diff --git a/public/filter/manage.php b/public/filter/manage.php index bb732f73c80..8fc78ff66ea 100644 --- a/public/filter/manage.php +++ b/public/filter/manage.php @@ -163,7 +163,7 @@ if (empty($availablefilters)) { $table->colclasses[] = 'leftalign'; } $table->id = 'frontpagefiltersettings'; - $table->attributes['class'] = 'admintable table generaltable'; + $table->attributes['class'] = 'admintable table generaltable table-hover'; $table->data = []; // Iterate through filters adding to display table. diff --git a/public/grade/edit/scale/index.php b/public/grade/edit/scale/index.php index ef51d55a8aa..f0d7623b7fa 100644 --- a/public/grade/edit/scale/index.php +++ b/public/grade/edit/scale/index.php @@ -137,7 +137,7 @@ if ($courseid and $scales = grade_scale::fetch_all_local($courseid)) { $table->head = array($strscale, $strused, $stredit); $table->size = array('70%', '20%', '10%'); $table->align = array('left', 'center', 'center'); - $table->attributes['class'] = 'scaletable localscales table generaltable'; + $table->attributes['class'] = 'scaletable localscales table generaltable table-hover'; $table->data = $data; } @@ -163,7 +163,7 @@ if ($scales = grade_scale::fetch_all_global()) { $data[] = $line; } $table2->head = array($strscale, $strused, $stredit); - $table->attributes['class'] = 'scaletable globalscales table generaltable'; + $table->attributes['class'] = 'scaletable globalscales table generaltable table-hover'; $table2->size = array('70%', '20%', '10%'); $table2->align = array('left', 'center', 'center'); $table2->data = $data; diff --git a/public/grade/report/outcomes/index.php b/public/grade/report/outcomes/index.php index f2ae168c270..5e6420b9d72 100644 --- a/public/grade/report/outcomes/index.php +++ b/public/grade/report/outcomes/index.php @@ -110,7 +110,8 @@ if ($taskindicator->has_task_record()) { exit; } -$html = '' . "\n"; +$html = '
' . "\n"; $html .= ''; $html .= ''; $html .= ''; diff --git a/public/group/assign.php b/public/group/assign.php index 604e0c84f62..56f32883c09 100644 --- a/public/group/assign.php +++ b/public/group/assign.php @@ -147,7 +147,7 @@ echo $OUTPUT->header();
-
' . get_string('outcomeshortname', 'grades') . '' . get_string('courseavg', 'grades') . '' . get_string('sitewide', 'grades') . '
+
diff --git a/public/group/members.php b/public/group/members.php index 649fcdb4689..1bd56227703 100644 --- a/public/group/members.php +++ b/public/group/members.php @@ -117,7 +117,7 @@ if (!empty($group->description)) {
- +

diff --git a/public/lib/adminlib.php b/public/lib/adminlib.php index 043bd6ce3f3..a7df81717db 100644 --- a/public/lib/adminlib.php +++ b/public/lib/adminlib.php @@ -6838,7 +6838,7 @@ class admin_setting_manageenrols extends admin_setting { $table->head = array(get_string('name'), $strusage, $strversion, $strenable, $strup.'/'.$strdown, $strsettings, $strtest, $struninstall); $table->colclasses = array('leftalign', 'centeralign', 'centeralign', 'centeralign', 'centeralign', 'centeralign', 'centeralign', 'centeralign'); $table->id = 'courseenrolmentplugins'; - $table->attributes['class'] = 'admintable table generaltable'; + $table->attributes['class'] = 'admintable table generaltable table-hover'; $table->data = array(); // Iterate through enrol plugins and add to the display table. @@ -7407,7 +7407,7 @@ class admin_setting_manageauths extends admin_setting { $table->head = array($txt->name, $txt->users, $txt->enable, $txt->updown, $txt->settings, $txt->testsettings, $txt->uninstall); $table->colclasses = array('leftalign', 'centeralign', 'centeralign', 'centeralign', 'centeralign', 'centeralign', 'centeralign'); $table->data = array(); - $table->attributes['class'] = 'admintable table generaltable'; + $table->attributes['class'] = 'admintable table generaltable table-hover'; $table->id = 'manageauthtable'; //add always enabled plugins first @@ -7608,7 +7608,7 @@ class admin_setting_manageantiviruses extends admin_setting { $table->head = array($txt->name, $txt->enable, $txt->updown, $txt->settings, $struninstall); $table->colclasses = array('leftalign', 'centeralign', 'centeralign', 'centeralign', 'centeralign'); $table->id = 'antivirusmanagement'; - $table->attributes['class'] = 'admintable table generaltable'; + $table->attributes['class'] = 'admintable table generaltable table-hover'; $table->data = array(); // Iterate through auth plugins and add to the display table. @@ -7773,7 +7773,7 @@ class admin_setting_manageformats extends admin_setting { $table = new html_table(); $table->head = array($txt->name, $txt->enable, $txt->updown, $txt->uninstall, $txt->settings); $table->align = array('left', 'center', 'center', 'center', 'center'); - $table->attributes['class'] = 'manageformattable table generaltable admintable'; + $table->attributes['class'] = 'manageformattable table generaltable admintable table-hover'; $table->data = array(); $cnt = 0; @@ -7926,7 +7926,7 @@ class admin_setting_managecustomfields extends admin_setting { $table = new html_table(); $table->head = array($txt->name, $txt->enable, $txt->uninstall, $txt->settings); $table->align = array('left', 'center', 'center', 'center'); - $table->attributes['class'] = 'managecustomfieldtable table generaltable admintable'; + $table->attributes['class'] = 'managecustomfieldtable table generaltable admintable table-hover'; $table->data = array(); $spacer = $OUTPUT->pix_icon('spacer', '', 'moodle', array('class' => 'iconsmall')); @@ -8052,7 +8052,7 @@ class admin_setting_managedataformats extends admin_setting { $table = new html_table(); $table->head = array($txt->name, $txt->enable, $txt->updown, $txt->uninstall, $txt->settings); $table->align = array('left', 'center', 'center', 'center', 'center'); - $table->attributes['class'] = 'manageformattable table generaltable admintable'; + $table->attributes['class'] = 'manageformattable table generaltable admintable table-hover'; $table->data = array(); $cnt = 0; @@ -8536,7 +8536,7 @@ class admin_setting_managemediaplayers extends admin_setting { $table->colclasses = array('leftalign', 'leftalign', 'centeralign', 'centeralign', 'centeralign', 'centeralign', 'centeralign'); $table->id = 'mediaplayerplugins'; - $table->attributes['class'] = 'admintable table generaltable'; + $table->attributes['class'] = 'admintable table generaltable table-hover'; $table->data = array(); // Iterate through media plugins and add to the display table. @@ -8718,7 +8718,7 @@ class admin_setting_managecontentbankcontenttypes extends admin_setting { $table = new html_table(); $table->head = array($txt->name, $txt->enable, $txt->order, $txt->settings, $txt->uninstall); $table->align = array('left', 'center', 'center', 'center', 'center'); - $table->attributes['class'] = 'managecontentbanktable table generaltable admintable'; + $table->attributes['class'] = 'managecontentbanktable table generaltable admintable table-hover'; $table->data = array(); $spacer = $OUTPUT->pix_icon('spacer', '', 'moodle', array('class' => 'iconsmall')); @@ -10006,7 +10006,7 @@ class admin_setting_manageexternalservices extends admin_setting { $table->head = array($strservice, $strplugin, $strfunctions, $strusers, $stredit); $table->colclasses = array('leftalign service', 'leftalign plugin', 'centeralign functions', 'centeralign users', 'centeralign '); $table->id = 'builtinservices'; - $table->attributes['class'] = 'admintable externalservices table generaltable'; + $table->attributes['class'] = 'admintable externalservices table generaltable table-hover'; $table->data = array(); // iterate through auth plugins and add to the display table @@ -10046,7 +10046,7 @@ class admin_setting_manageexternalservices extends admin_setting { $table->head = array($strservice, $strdelete, $strfunctions, $strusers, $stredit); $table->colclasses = array('leftalign service', 'leftalign plugin', 'centeralign functions', 'centeralign users', 'centeralign '); $table->id = 'customservices'; - $table->attributes['class'] = 'admintable externalservices table generaltable'; + $table->attributes['class'] = 'admintable externalservices table generaltable table-hover'; $table->data = array(); // iterate through auth plugins and add to the display table @@ -10151,7 +10151,7 @@ class admin_setting_webservicesoverview extends admin_setting { get_string('description')); $table->colclasses = array('leftalign step', 'leftalign status', 'leftalign description'); $table->id = 'onesystemcontrol'; - $table->attributes['class'] = 'admintable wsoverview table generaltable'; + $table->attributes['class'] = 'admintable wsoverview table generaltable table-hover'; $table->data = array(); $return .= $brtag . get_string('onesystemcontrollingdescription', 'webservice') @@ -10275,7 +10275,7 @@ class admin_setting_webservicesoverview extends admin_setting { get_string('description')); $table->colclasses = array('leftalign step', 'leftalign status', 'leftalign description'); $table->id = 'userasclients'; - $table->attributes['class'] = 'admintable wsoverview table generaltable'; + $table->attributes['class'] = 'admintable wsoverview table generaltable table-hover'; $table->data = array(); $return .= $brtag . get_string('userasclientsdescription', 'webservice') . @@ -10468,7 +10468,7 @@ class admin_setting_managewebserviceprotocols extends admin_setting { $table->head = array($strprotocol, $strversion, $strenable, $strsettings); $table->colclasses = array('leftalign', 'centeralign', 'centeralign', 'centeralign', 'centeralign'); $table->id = 'webserviceprotocols'; - $table->attributes['class'] = 'admintable table generaltable'; + $table->attributes['class'] = 'admintable table generaltable table-hover'; $table->data = array(); // iterate through auth plugins and add to the display table @@ -11120,7 +11120,7 @@ class admin_setting_searchsetupinfo extends admin_setting { $table->head = array(get_string('step', 'search'), get_string('status')); $table->colclasses = array('leftalign step', 'leftalign status'); $table->id = 'searchsetup'; - $table->attributes['class'] = 'admintable table generaltable'; + $table->attributes['class'] = 'admintable table generaltable table-hover'; $table->data = array(); $return .= $brtag . get_string('searchsetupdescription', 'search') . $brtag . $brtag; diff --git a/public/lib/classes/check/environment/publicpaths.php b/public/lib/classes/check/environment/publicpaths.php index 0082b4c2498..6af76e6b359 100644 --- a/public/lib/classes/check/environment/publicpaths.php +++ b/public/lib/classes/check/environment/publicpaths.php @@ -194,7 +194,7 @@ class publicpaths extends check { get_string('category'), get_string('details'), ]; - $table->attributes['class'] = 'flexible generaltable table table-sm'; + $table->attributes['class'] = 'flexible generaltable table table-sm table-hover'; $table->data = []; // Used to track duplicated errors. diff --git a/public/lib/classes/output/html_writer.php b/public/lib/classes/output/html_writer.php index 0455adfb772..f184ffdf3c7 100644 --- a/public/lib/classes/output/html_writer.php +++ b/public/lib/classes/output/html_writer.php @@ -561,7 +561,7 @@ class html_writer { } } if (empty($table->attributes['class'])) { - $table->attributes['class'] = 'generaltable table'; + $table->attributes['class'] = 'generaltable table table-hover'; } if (!empty($table->tablealign)) { $table->attributes['class'] .= ' boxalign' . $table->tablealign; diff --git a/public/lib/editor/tiny/plugins/premium/classes/local/admin_setting_tiny_premium_plugins.php b/public/lib/editor/tiny/plugins/premium/classes/local/admin_setting_tiny_premium_plugins.php index 6566d9bd54f..c9f727ccd2c 100644 --- a/public/lib/editor/tiny/plugins/premium/classes/local/admin_setting_tiny_premium_plugins.php +++ b/public/lib/editor/tiny/plugins/premium/classes/local/admin_setting_tiny_premium_plugins.php @@ -98,7 +98,7 @@ class admin_setting_tiny_premium_plugins extends \admin_setting { // Set up table. $table = new \html_table(); $table->id = 'managetinypremiumpluginstable'; - $table->attributes['class'] = 'admintable table generaltable'; + $table->attributes['class'] = 'admintable table generaltable table-hover'; $table->head = [ get_string('name'), get_string('enable'), diff --git a/public/lib/portfolio/exporter.php b/public/lib/portfolio/exporter.php index 7c8e188a3af..bfbeff0db56 100644 --- a/public/lib/portfolio/exporter.php +++ b/public/lib/portfolio/exporter.php @@ -415,7 +415,7 @@ class portfolio_exporter { } $mainsummary = array_merge($mainsummary, $csummary, $isummary); $table = new html_table(); - $table->attributes['class'] = 'table generaltable exportsummary'; + $table->attributes['class'] = 'table generaltable exportsummary table-hover'; $table->data = array(); foreach ($mainsummary as $string => $value) { $table->data[] = array($string, $value); diff --git a/public/lib/tests/output/html_writer_test.php b/public/lib/tests/output/html_writer_test.php index 28e0b96ee80..e44b31d355e 100644 --- a/public/lib/tests/output/html_writer_test.php +++ b/public/lib/tests/output/html_writer_test.php @@ -315,7 +315,7 @@ final class html_writer_test extends \basic_testcase { $output = html_writer::table($table); $expected = << + @@ -344,7 +344,7 @@ EOF; $output = html_writer::table($table); $expected = << +
A table of meaningless data.
diff --git a/public/lib/xhprof/readme_moodle.txt b/public/lib/xhprof/readme_moodle.txt index 8d872b7459d..aecfc85a289 100644 --- a/public/lib/xhprof/readme_moodle.txt +++ b/public/lib/xhprof/readme_moodle.txt @@ -42,3 +42,4 @@ TODO: 20210209 - MDL-70525 - Tomo Tsuyuki (tomotsuyuki): Allow huge number of values 20211209 - MDL-71705 - Ilya Tregubov (ilyatregubov): Upgrade to 2.3.5 release; 20221214 - MDL-76397 - Stevani Andolo (stevandoMoodle): Upgrade to 2.3.9 release; +20251024 - MDL-86235 - Andi Permana (andimendunia): Add table-hover class to profiling table diff --git a/public/lib/xhprof/xhprof_moodle.php b/public/lib/xhprof/xhprof_moodle.php index 1eeee822746..1a14acc0748 100644 --- a/public/lib/xhprof/xhprof_moodle.php +++ b/public/lib/xhprof/xhprof_moodle.php @@ -377,7 +377,7 @@ function profiling_print_run($run, $prevreferences = null) { $table->align = array('left', 'left'); $table->head = array(get_string('date'), get_string('runid', 'tool_profiling'), get_string('comment', 'tool_profiling')); $table->tablealign = 'center'; - $table->attributes['class'] = 'flexible generaltable generalbox'; + $table->attributes['class'] = 'flexible generaltable generalbox table table-hover'; $table->colclasses = array('value', 'value', 'value'); $table->data = array(); diff --git a/public/message/renderer.php b/public/message/renderer.php index e1088b30fd1..d6e6f646620 100644 --- a/public/message/renderer.php +++ b/public/message/renderer.php @@ -75,7 +75,7 @@ class core_message_renderer extends plugin_renderer_base { public function manage_messageoutputs($processors) { // Display the current workflows $table = new html_table(); - $table->attributes['class'] = 'admintable table generaltable'; + $table->attributes['class'] = 'admintable table generaltable table-hover'; $table->data = array(); $table->head = array( get_string('name'), diff --git a/public/mod/assign/classes/output/renderer.php b/public/mod/assign/classes/output/renderer.php index 1dd9f89ec76..1ab673e70db 100644 --- a/public/mod/assign/classes/output/renderer.php +++ b/public/mod/assign/classes/output/renderer.php @@ -303,7 +303,7 @@ class renderer extends \plugin_renderer_base { $o .= $this->output->box_start('boxaligncenter gradingsummarytable'); $t = new \html_table(); - $t->attributes['class'] = 'generaltable table table-striped table-bordered'; + $t->attributes['class'] = 'generaltable table table-striped table-bordered table-hover'; $t->caption = get_string('gradingsummary', 'assign'); $t->captionhide = true; // Hidden because it matches the title above. @@ -653,7 +653,7 @@ class renderer extends \plugin_renderer_base { $o .= $this->output->box_start('boxaligncenter submissionsummarytable'); $t = new \html_table(); - $t->attributes['class'] = 'generaltable table table-striped table-bordered'; + $t->attributes['class'] = 'generaltable table table-striped table-bordered table-hover'; $t->caption = get_string('submissionstatusheading', 'assign'); $t->captionhide = true; // Hidden because it matches the title above. diff --git a/public/mod/lesson/essay.php b/public/mod/lesson/essay.php index 15cd7ca3ce2..4138c33a7c0 100644 --- a/public/mod/lesson/essay.php +++ b/public/mod/lesson/essay.php @@ -384,7 +384,7 @@ switch ($mode) { $table = new html_table(); $table->head = array(get_string('name'), get_string('essays', 'lesson'), get_string('status'), get_string('email', 'lesson')); - $table->attributes['class'] = 'table generaltable'; + $table->attributes['class'] = 'table generaltable table-hover'; $table->align = array('left', 'left', 'left'); $table->wrap = array('nowrap', 'nowrap', ''); diff --git a/public/mod/lesson/report.php b/public/mod/lesson/report.php index dcbfac4007c..12bf452c4cd 100644 --- a/public/mod/lesson/report.php +++ b/public/mod/lesson/report.php @@ -233,7 +233,7 @@ if ($action === 'delete') { get_string('highscore', 'lesson'), get_string('lowscore', 'lesson'), get_string('hightime', 'lesson'), get_string('lowtime', 'lesson')); $stattable->align = array('center', 'center', 'center', 'center', 'center', 'center'); - $stattable->attributes['class'] = 'table generaltable'; + $stattable->attributes['class'] = 'table generaltable table-hover'; $stattable->data[] = array($data->avescore, $data->avetime, $data->highscore, $data->lowscore, $data->hightime, $data->lowtime); } else { @@ -243,7 +243,7 @@ if ($action === 'delete') { $stattable->head = array(get_string('averagetime', 'lesson'), get_string('hightime', 'lesson'), get_string('lowtime', 'lesson')); $stattable->align = array('center', 'center', 'center'); - $stattable->attributes['class'] = 'table generaltable'; + $stattable->attributes['class'] = 'table generaltable table-hover'; $stattable->data[] = array($data->avetime, $data->hightime, $data->lowtime); } diff --git a/public/mod/lti/index.php b/public/mod/lti/index.php index f7fd2d6da2b..20dd0a84c9a 100644 --- a/public/mod/lti/index.php +++ b/public/mod/lti/index.php @@ -84,7 +84,7 @@ $strname = get_string("name"); $usesections = course_format_uses_sections($course->format); $table = new html_table(); -$table->attributes['class'] = 'table generaltable mod_index'; +$table->attributes['class'] = 'table generaltable mod_index table-hover'; if ($usesections) { $strsectionname = course_get_format($course)->get_generic_section_name(); diff --git a/public/mod/quiz/classes/output/renderer.php b/public/mod/quiz/classes/output/renderer.php index 47f6b4bf651..d1d7c2f07e3 100644 --- a/public/mod/quiz/classes/output/renderer.php +++ b/public/mod/quiz/classes/output/renderer.php @@ -756,7 +756,7 @@ class renderer extends plugin_renderer_base { public function summary_table($attemptobj, $displayoptions) { // Prepare the summary table header. $table = new html_table(); - $table->attributes['class'] = 'table generaltable quizsummaryofattempt'; + $table->attributes['class'] = 'table generaltable quizsummaryofattempt table-hover'; $table->head = [get_string('question', 'quiz'), get_string('status', 'quiz')]; $table->align = ['left', 'left']; $table->size = ['', '']; @@ -1123,7 +1123,7 @@ class renderer extends plugin_renderer_base { // Prepare table header. $table = new html_table(); - $table->attributes['class'] = 'table generaltable quizattemptsummary'; + $table->attributes['class'] = 'table generaltable quizattemptsummary table-hover'; $table->caption = get_string('summaryofattempts', 'quiz'); $table->captionhide = true; $table->head = []; diff --git a/public/mod/quiz/report/statistics/report.php b/public/mod/quiz/report/statistics/report.php index aecd30ed67f..6a7e3c2aa2b 100644 --- a/public/mod/quiz/report/statistics/report.php +++ b/public/mod/quiz/report/statistics/report.php @@ -303,7 +303,7 @@ class quiz_statistics_report extends report_base { $questioninfotable = new html_table(); $questioninfotable->align = ['center', 'center']; $questioninfotable->width = '60%'; - $questioninfotable->attributes['class'] = 'table generaltable titlesleft'; + $questioninfotable->attributes['class'] = 'table generaltable titlesleft table-hover'; $questioninfotable->data = []; $questioninfotable->data[] = [get_string('modulename', 'quiz'), $quiz->name]; @@ -325,7 +325,7 @@ class quiz_statistics_report extends report_base { $questionstatstable = new html_table(); $questionstatstable->align = ['center', 'center']; $questionstatstable->width = '60%'; - $questionstatstable->attributes['class'] = 'table generaltable titlesleft'; + $questionstatstable->attributes['class'] = 'table generaltable titlesleft table-hover'; unset($datumfromtable['number']); unset($datumfromtable['icon']); @@ -498,7 +498,7 @@ class quiz_statistics_report extends report_base { $quizinfotable = new html_table(); $quizinfotable->align = ['center', 'center']; $quizinfotable->width = '60%'; - $quizinfotable->attributes['class'] = 'table generaltable titlesleft'; + $quizinfotable->attributes['class'] = 'table generaltable titlesleft table-hover'; $quizinfotable->data = []; foreach ($quizinfo as $heading => $value) { diff --git a/public/mod/subsection/index.php b/public/mod/subsection/index.php index 101307afeef..78b71947d39 100644 --- a/public/mod/subsection/index.php +++ b/public/mod/subsection/index.php @@ -53,7 +53,7 @@ if (empty($subsections)) { } $table = new html_table(); -$table->attributes['class'] = 'table generaltable mod_index'; +$table->attributes['class'] = 'table generaltable mod_index table-hover'; if ($course->format == 'weeks') { $table->head = [get_string('week'), get_string('name')]; diff --git a/public/mod/wiki/pagelib.php b/public/mod/wiki/pagelib.php index af159a5edb6..7b3501f2767 100644 --- a/public/mod/wiki/pagelib.php +++ b/public/mod/wiki/pagelib.php @@ -1370,7 +1370,7 @@ class page_wiki_history extends page_wiki { $table->head = array(get_string('diff', 'wiki') . $icon, get_string('version'), get_string('user'), get_string('modified'), ''); $table->data = $contents; - $table->attributes['class'] = 'table generaltable'; + $table->attributes['class'] = 'table generaltable table-hover'; $table->rowclasses = $rowclass; // Print the form. @@ -2584,7 +2584,7 @@ class page_wiki_admin extends page_wiki { $contents = array(); $table = new html_table(); $table->head = array('', get_string('pagename','wiki')); - $table->attributes['class'] = 'table generaltable'; + $table->attributes['class'] = 'table generaltable table-hover'; $swid = $this->subwiki->id; if ($showorphan) { if ($orphanedpages = wiki_get_orphaned_pages($swid)) { @@ -2742,7 +2742,7 @@ class page_wiki_admin extends page_wiki { $table = new html_table(); $table->head = array(get_string('deleteversions', 'wiki'), get_string('version'), get_string('user'), get_string('modified'), ''); $table->data = $contents; - $table->attributes['class'] = 'table generaltable'; + $table->attributes['class'] = 'table generaltable table-hover'; $table->rowclasses = $rowclass; ///Print the form diff --git a/public/question/classes/admin/manage_qbank_plugins_page.php b/public/question/classes/admin/manage_qbank_plugins_page.php index 8c08b481c41..bd596895e8f 100644 --- a/public/question/classes/admin/manage_qbank_plugins_page.php +++ b/public/question/classes/admin/manage_qbank_plugins_page.php @@ -91,7 +91,7 @@ class manage_qbank_plugins_page extends \admin_setting { $table = new \html_table(); $table->head = [$txt->name, $txt->enable, $txt->settings, $txt->uninstall]; $table->align = ['left', 'center', 'center', 'center', 'center']; - $table->attributes['class'] = 'manageqbanktable table generaltable admintable'; + $table->attributes['class'] = 'manageqbanktable table generaltable admintable table-hover'; $table->data = []; $totalenabled = 0; diff --git a/public/report/completion/index.php b/public/report/completion/index.php index a6fad00e663..082d062f7a2 100644 --- a/public/report/completion/index.php +++ b/public/report/completion/index.php @@ -313,7 +313,7 @@ if (!$csv) { } print '
Who even knows?
fred MDK
'; + completionreport table-hover" cellpadding="5" border="1">'; // Print criteria group names print PHP_EOL.''; diff --git a/public/report/completion/user.php b/public/report/completion/user.php index dc5f93b72b6..bc962c1681b 100644 --- a/public/report/completion/user.php +++ b/public/report/completion/user.php @@ -155,7 +155,7 @@ foreach ($courses as $type => $infos) { if (!empty($infos)) { echo '

'.get_string($type, 'report_completion').'

'; - echo '
'; + echo '
'; echo ''; echo ''; echo ''; diff --git a/public/report/progress/index.php b/public/report/progress/index.php index f081fcdb1e9..17e3a097a8b 100644 --- a/public/report/progress/index.php +++ b/public/report/progress/index.php @@ -366,7 +366,7 @@ if (!$total) { } print '
'; - print '
'.get_string('course').''.get_string('requiredcriteria', 'completion').'
'; + print '
'; print ''; // User heading / sort option. diff --git a/public/tag/classes/areas_table.php b/public/tag/classes/areas_table.php index 484ea384299..4815c1d51ed 100644 --- a/public/tag/classes/areas_table.php +++ b/public/tag/classes/areas_table.php @@ -42,7 +42,7 @@ class core_tag_areas_table extends html_table { global $OUTPUT; parent::__construct(); - $this->attributes['class'] = 'table generaltable tag-areas-table'; + $this->attributes['class'] = 'table generaltable tag-areas-table table-hover'; $this->head = array( get_string('tagareaname', 'core_tag'), diff --git a/public/tag/classes/collections_table.php b/public/tag/classes/collections_table.php index 508f95351c5..dc87a8ea4bd 100644 --- a/public/tag/classes/collections_table.php +++ b/public/tag/classes/collections_table.php @@ -41,7 +41,7 @@ class core_tag_collections_table extends html_table { global $OUTPUT; parent::__construct(); - $this->attributes['class'] = 'table generaltable tag-collections-table'; + $this->attributes['class'] = 'table generaltable tag-collections-table table-hover'; $this->head = array( get_string('name'), diff --git a/public/webservice/renderer.php b/public/webservice/renderer.php index 07b3cb9f32c..fcabc89e519 100644 --- a/public/webservice/renderer.php +++ b/public/webservice/renderer.php @@ -41,7 +41,7 @@ class core_webservice_renderer extends plugin_renderer_base { $table = new html_table(); $table->size = array('45%', '10%', '45%'); - $table->attributes['class'] = 'roleassigntable table generaltable'; + $table->attributes['class'] = 'roleassigntable table generaltable table-hover'; $table->summary = ''; $table->cellspacing = 0; $table->cellpadding = 0;