diff --git a/admin/filters.php b/admin/filters.php index 3ee94bcec2e..1f821ece757 100644 --- a/admin/filters.php +++ b/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 generaltable'; +$table->attributes['class'] = 'admintable generaltable table table-hover'; $table->id = 'filterssetting'; $table->data = []; diff --git a/admin/mnet/index.php b/admin/mnet/index.php index 580f147cf2b..12336d43519 100644 --- a/admin/mnet/index.php +++ b/admin/mnet/index.php @@ -98,7 +98,7 @@ echo $OUTPUT->header(); ?>
- +
@@ -119,7 +119,7 @@
- +
diff --git a/admin/plagiarism.php b/admin/plagiarism.php index fcb381846a6..aa09a9ee9e2 100644 --- a/admin/plagiarism.php +++ b/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 generaltable'; +$table->attributes['class'] = 'manageplagiarismtable generaltable table table-hover'; // Iterate through auth plugins and add to the display table. $authcount = count($plagiarismplugins); diff --git a/admin/renderer.php b/admin/renderer.php index 4f789e4394f..23658b7a5dc 100644 --- a/admin/renderer.php +++ b/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/admin/repository.php b/admin/repository.php index 5b950594b74..326622108eb 100644 --- a/admin/repository.php +++ b/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 generaltable'; + $table->attributes['class'] = 'admintable generaltable table table-hover'; // Get list of used plug-ins $repositorytypes = repository::get_types(); diff --git a/admin/roles/admins.php b/admin/roles/admins.php index b4855e0a20b..57dee812a5a 100644 --- a/admin/roles/admins.php +++ b/admin/roles/admins.php @@ -179,7 +179,7 @@ echo $OUTPUT->header();
-
+

diff --git a/admin/roles/assign.php b/admin/roles/assign.php index 42b5e8e5d7c..7d463ed34ef 100644 --- a/admin/roles/assign.php +++ b/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 generaltable'; + $table->attributes['class'] = 'admintable generaltable table table-hover'; if ($showroleholders) { $table->headspan = array(1, 1, 2); $table->colclasses[] = 'leftalign roleholder'; diff --git a/admin/roles/manage.php b/admin/roles/manage.php index dfe043aa902..39abb78f68d 100644 --- a/admin/roles/manage.php +++ b/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 generaltable'; +$table->attributes['class'] = 'admintable generaltable table table-hover'; $table->head = array( get_string('role') . ' ' . $OUTPUT->help_icon('roles', 'core_role'), get_string('description'), diff --git a/admin/thirdpartylibs.php b/admin/thirdpartylibs.php index 0259d177012..18a3f5d4944 100644 --- a/admin/thirdpartylibs.php +++ b/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 generaltable'; +$table->attributes['class'] = 'admintable generaltable table table-hover'; $table->data = array(); foreach ($files as $component => $xmlpath) { diff --git a/admin/tool/capability/index.php b/admin/tool/capability/index.php index 98238343e42..d401de88836 100644 --- a/admin/tool/capability/index.php +++ b/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/admin/tool/licensemanager/classes/output/table.php b/admin/tool/licensemanager/classes/output/table.php index e5ce3a190c4..a035338cde7 100644 --- a/admin/tool/licensemanager/classes/output/table.php +++ b/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 generaltable'; + $table->attributes['class'] = 'admintable generaltable table table-hover'; $table->data = []; $rownumber = 0; diff --git a/admin/tool/log/classes/setting_managestores.php b/admin/tool/log/classes/setting_managestores.php index 0a43199f0c0..430b6f5f0f0 100644 --- a/admin/tool/log/classes/setting_managestores.php +++ b/admin/tool/log/classes/setting_managestores.php @@ -137,7 +137,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 generaltable'; + $table->attributes['class'] = 'admintable generaltable table table-hover'; $table->data = array(); // Iterate through store plugins and add to the display table. diff --git a/admin/tool/messageinbound/renderer.php b/admin/tool/messageinbound/renderer.php index 892c4a9dfcc..cddf7a0de6b 100644 --- a/admin/tool/messageinbound/renderer.php +++ b/admin/tool/messageinbound/renderer.php @@ -56,7 +56,7 @@ class tool_messageinbound_renderer extends plugin_renderer_base { $enabled, $edit, ); - $table->attributes['class'] = 'admintable generaltable messageinboundhandlers'; + $table->attributes['class'] = 'admintable generaltable messageinboundhandlers table table-hover'; $yes = get_string('yes'); $no = get_string('no'); diff --git a/admin/tool/mfa/classes/manager.php b/admin/tool/mfa/classes/manager.php index 9b7bbdc1e60..74e9ca7216a 100644 --- a/admin/tool/mfa/classes/manager.php +++ b/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/admin/tool/mfa/classes/output/renderer.php b/admin/tool/mfa/classes/output/renderer.php index 2ea5b639498..93cd9c074a5 100644 --- a/admin/tool/mfa/classes/output/renderer.php +++ b/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/admin/tool/mfa/classes/table/admin_setting_managemfa.php b/admin/tool/mfa/classes/table/admin_setting_managemfa.php index 418cb90e7dc..a91b12b8678 100644 --- a/admin/tool/mfa/classes/table/admin_setting_managemfa.php +++ b/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/admin/tool/mfa/factor/totp/classes/factor.php b/admin/tool/mfa/factor/totp/classes/factor.php index c669389e3ca..affcef874b7 100644 --- a/admin/tool/mfa/factor/totp/classes/factor.php +++ b/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/admin/tool/oauth2/classes/output/renderer.php b/admin/tool/oauth2/classes/output/renderer.php index f46d52892a6..296638ea3a6 100644 --- a/admin/tool/oauth2/classes/output/renderer.php +++ b/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 generaltable'; + $table->attributes['class'] = 'admintable generaltable table 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 generaltable'; + $table->attributes['class'] = 'admintable generaltable table 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 generaltable'; + $table->attributes['class'] = 'admintable generaltable table table-hover'; $data = []; $index = 0; diff --git a/admin/tool/task/renderer.php b/admin/tool/task/renderer.php index 4f748bc5c00..3c4197ceff8 100644 --- a/admin/tool/task/renderer.php +++ b/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 generaltable'; + $table->attributes['class'] = 'admintable generaltable table 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'] = 'generaltable'; + $table->attributes['class'] = 'generaltable table 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 generaltable'; + $table->attributes['class'] = 'admintable generaltable table table-hover'; $table->colclasses = []; if (!$showloglink) { diff --git a/admin/tool/uploaduser/classes/preview.php b/admin/tool/uploaduser/classes/preview.php index 53bc8936947..a95b0ec1029 100644 --- a/admin/tool/uploaduser/classes/preview.php +++ b/admin/tool/uploaduser/classes/preview.php @@ -64,7 +64,7 @@ class preview extends \html_table { $this->previewrows = $previewrows; $this->id = "uupreview"; - $this->attributes['class'] = 'generaltable'; + $this->attributes['class'] = 'generaltable table table-hover'; $this->tablealign = 'center'; $this->summary = get_string('uploaduserspreview', 'tool_uploaduser'); $this->head = array(); diff --git a/admin/tool/uploaduser/locallib.php b/admin/tool/uploaduser/locallib.php index d44071e5921..e4a57d189b1 100644 --- a/admin/tool/uploaduser/locallib.php +++ b/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/admin/tool/xmldb/actions/XMLDBCheckAction.class.php b/admin/tool/xmldb/actions/XMLDBCheckAction.class.php index b27d1bd04ce..e3d17cd781e 100644 --- a/admin/tool/xmldb/actions/XMLDBCheckAction.class.php +++ b/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/admin/tool/xmldb/actions/check_bigints/check_bigints.class.php b/admin/tool/xmldb/actions/check_bigints/check_bigints.class.php index 1118906f065..09ee20a2372 100644 --- a/admin/tool/xmldb/actions/check_bigints/check_bigints.class.php +++ b/admin/tool/xmldb/actions/check_bigints/check_bigints.class.php @@ -99,7 +99,8 @@ 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/admin/tool/xmldb/actions/check_defaults/check_defaults.class.php b/admin/tool/xmldb/actions/check_defaults/check_defaults.class.php index ea21a1278a6..d800ef2c146 100644 --- a/admin/tool/xmldb/actions/check_defaults/check_defaults.class.php +++ b/admin/tool/xmldb/actions/check_defaults/check_defaults.class.php @@ -147,7 +147,8 @@ 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/admin/tool/xmldb/actions/check_foreign_keys/check_foreign_keys.class.php b/admin/tool/xmldb/actions/check_foreign_keys/check_foreign_keys.class.php index 128b5029167..563e5742e8b 100644 --- a/admin/tool/xmldb/actions/check_foreign_keys/check_foreign_keys.class.php +++ b/admin/tool/xmldb/actions/check_foreign_keys/check_foreign_keys.class.php @@ -159,7 +159,8 @@ 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/admin/tool/xmldb/actions/check_indexes/check_indexes.class.php b/admin/tool/xmldb/actions/check_indexes/check_indexes.class.php index b7c175ca229..aa86c4fcb8e 100644 --- a/admin/tool/xmldb/actions/check_indexes/check_indexes.class.php +++ b/admin/tool/xmldb/actions/check_indexes/check_indexes.class.php @@ -154,7 +154,8 @@ class check_indexes extends XMLDBCheckAction { } $s = ''; - $r = ''; + $r = '
'; $r.= '
'; $r.= '

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

'; $r .= '

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

'; diff --git a/admin/tool/xmldb/actions/delete_field/delete_field.class.php b/admin/tool/xmldb/actions/delete_field/delete_field.class.php index e0e42310cf1..024f43503bf 100644 --- a/admin/tool/xmldb/actions/delete_field/delete_field.class.php +++ b/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/admin/tool/xmldb/actions/delete_index/delete_index.class.php b/admin/tool/xmldb/actions/delete_index/delete_index.class.php index 4025c4e0b75..11739f4fc90 100644 --- a/admin/tool/xmldb/actions/delete_index/delete_index.class.php +++ b/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/admin/tool/xmldb/actions/delete_key/delete_key.class.php b/admin/tool/xmldb/actions/delete_key/delete_key.class.php index cba1cd4a20f..f65ab28f6d7 100644 --- a/admin/tool/xmldb/actions/delete_key/delete_key.class.php +++ b/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/admin/tool/xmldb/actions/delete_table/delete_table.class.php b/admin/tool/xmldb/actions/delete_table/delete_table.class.php index 84ea7083dc1..bbcaa5157ea 100644 --- a/admin/tool/xmldb/actions/delete_table/delete_table.class.php +++ b/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/admin/tool/xmldb/actions/delete_xml_file/delete_xml_file.class.php b/admin/tool/xmldb/actions/delete_xml_file/delete_xml_file.class.php index 781a72ac824..6e3c21e0635 100644 --- a/admin/tool/xmldb/actions/delete_xml_file/delete_xml_file.class.php +++ b/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/admin/tool/xmldb/actions/main_view/main_view.class.php b/admin/tool/xmldb/actions/main_view/main_view.class.php index f22ca08106e..f5a5398bd16 100644 --- a/admin/tool/xmldb/actions/main_view/main_view.class.php +++ b/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-striped table-sm admintable generaltable table table-hover">'; $row = 0; foreach ($XMLDB->dbdirs as $key => $dbdir) { // Detect if this is the lastused dir diff --git a/admin/tool/xmldb/actions/revert_changes/revert_changes.class.php b/admin/tool/xmldb/actions/revert_changes/revert_changes.class.php index 6aec72788b5..27f15c1313e 100644 --- a/admin/tool/xmldb/actions/revert_changes/revert_changes.class.php +++ b/admin/tool/xmldb/actions/revert_changes/revert_changes.class.php @@ -71,7 +71,8 @@ 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/auth/oauth2/classes/output/renderer.php b/auth/oauth2/classes/output/renderer.php index 07a0428afe6..0cf514fc15d 100644 --- a/auth/oauth2/classes/output/renderer.php +++ b/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 generaltable'; + $table->attributes['class'] = 'admintable generaltable table table-hover'; $data = []; $index = 0; diff --git a/backup/util/ui/renderer.php b/backup/util/ui/renderer.php index 2f69eb828f0..937439d037e 100644 --- a/backup/util/ui/renderer.php +++ b/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/badges/renderer.php b/badges/renderer.php index f2e8e0bb4f9..8fd223c8e46 100644 --- a/badges/renderer.php +++ b/badges/renderer.php @@ -649,7 +649,7 @@ class core_badges_renderer extends plugin_renderer_base { $paging = new paging_bar($recipients->totalcount, $recipients->page, $recipients->perpage, $this->page->url, 'page'); $htmlpagingbar = $this->render($paging); $table = new html_table(); - $table->attributes['class'] = 'generaltable boxaligncenter boxwidthwide'; + $table->attributes['class'] = 'generaltable boxaligncenter boxwidthwide table table-hover'; $sortbyfirstname = $this->helper_sortable_heading(get_string('firstname'), 'firstname', $recipients->sort, $recipients->dir); @@ -870,7 +870,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'] = 'generaltable boxaligncenter boxwidthwide'; + $table->attributes['class'] = 'generaltable boxaligncenter boxwidthwide table table-hover'; $table->head = array( get_string('name'), get_string('version', 'badges'), @@ -929,7 +929,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'] = 'generaltable boxaligncenter boxwidthwide'; + $table->attributes['class'] = 'generaltable boxaligncenter boxwidthwide table table-hover'; $table->head = array('Name', 'URL', ''); foreach ($alignments->alignments as $item) { diff --git a/blocks/accessreview/block_accessreview.php b/blocks/accessreview/block_accessreview.php index ff552b5d65b..708fd3616d7 100644 --- a/blocks/accessreview/block_accessreview.php +++ b/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-sm block_accessreview_table'; + $table->attributes['class'] = 'generaltable table-sm block_accessreview_table table table-hover'; $this->content->text .= html_writer::table($table, true); // Check for compatible course formats for highlighting. diff --git a/blog/external_blogs.php b/blog/external_blogs.php index 3da0c615268..87e429f9b38 100644 --- a/blog/external_blogs.php +++ b/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'] = 'generaltable boxaligncenter'; + $table->attributes['class'] = 'generaltable boxaligncenter table table-hover'; $table->head = array(get_string('name'), get_string('url', 'blog'), get_string('timefetched', 'blog'), diff --git a/cache/classes/output/renderer.php b/cache/classes/output/renderer.php index c0284f4aa2a..f1459fc9e93 100644 --- a/cache/classes/output/renderer.php +++ b/cache/classes/output/renderer.php @@ -451,7 +451,7 @@ class renderer extends \plugin_renderer_base { 'right', 'right', ]; $summarytable->data = []; - $summarytable->attributes['class'] = 'generaltable w-auto'; + $summarytable->attributes['class'] = 'generaltable w-auto table table-hover'; $storetotals = []; // We will highlight all cells that are more than 2% of total size, so work that out first. diff --git a/cohort/assign.php b/cohort/assign.php index 511aac5e4b3..b2a8f25adeb 100644 --- a/cohort/assign.php +++ b/cohort/assign.php @@ -107,7 +107,7 @@ if (optional_param('remove', false, PARAM_BOOL) && confirm_sesskey()) { - +

diff --git a/communication/classes/admin/manage_communication_providers_page.php b/communication/classes/admin/manage_communication_providers_page.php index d84c4defae5..f4d4553922f 100644 --- a/communication/classes/admin/manage_communication_providers_page.php +++ b/communication/classes/admin/manage_communication_providers_page.php @@ -68,7 +68,7 @@ class manage_communication_providers_page extends admin_setting { get_string('uninstallplugin', 'core_admin'), ]; $table->align = ['left', 'center', 'center', 'center']; - $table->attributes['class'] = 'managecommunicationtable generaltable admintable'; + $table->attributes['class'] = 'managecommunicationtable generaltable admintable table table-hover'; $table->data = []; foreach ($plugins as $plugin) { diff --git a/course/pending.php b/course/pending.php index a9b374503c1..e8af71398b3 100644 --- a/course/pending.php +++ b/course/pending.php @@ -121,7 +121,7 @@ if (empty($pending)) { /// Build a table of all the requests. $table = new html_table(); - $table->attributes['class'] = 'pendingcourserequests generaltable'; + $table->attributes['class'] = 'pendingcourserequests generaltable table table-hover'; $table->align = array('center', 'center', 'center', 'center', 'center', 'center'); $table->head = array(get_string('requestedby'), get_string('shortnamecourse'), get_string('fullnamecourse'), get_string('summary'), get_string('category'), get_string('requestreason'), get_string('action')); diff --git a/enrol/manual/manage.php b/enrol/manual/manage.php index 30168fd50ff..d8914768365 100644 --- a/enrol/manual/manage.php +++ b/enrol/manual/manage.php @@ -179,7 +179,7 @@ $removeenabled = $canunenrol ? '' : 'disabled="disabled"';
- +

diff --git a/filter/manage.php b/filter/manage.php index b4a940bd18f..a922d3cf0a2 100644 --- a/filter/manage.php +++ b/filter/manage.php @@ -163,7 +163,7 @@ if (empty($availablefilters)) { $table->colclasses[] = 'leftalign'; } $table->id = 'frontpagefiltersettings'; - $table->attributes['class'] = 'admintable generaltable'; + $table->attributes['class'] = 'admintable generaltable table table-hover'; $table->data = []; // Iterate through filters adding to display table. diff --git a/grade/edit/scale/index.php b/grade/edit/scale/index.php index 6a21e7dab7e..b7790497598 100644 --- a/grade/edit/scale/index.php +++ b/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 generaltable'; + $table->attributes['class'] = 'scaletable localscales generaltable table 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 generaltable'; + $table->attributes['class'] = 'scaletable globalscales generaltable table table-hover'; $table2->size = array('70%', '20%', '10%'); $table2->align = array('left', 'center', 'center'); $table2->data = $data; diff --git a/grade/report/outcomes/index.php b/grade/report/outcomes/index.php index 6c10cd3a0a3..f9b1d58b954 100644 --- a/grade/report/outcomes/index.php +++ b/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/group/assign.php b/group/assign.php index d3c37c7cc09..8cb1438484d 100644 --- a/group/assign.php +++ b/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/group/members.php b/group/members.php index 1d854e7fb04..43a29975084 100644 --- a/group/members.php +++ b/group/members.php @@ -117,7 +117,7 @@ if (!empty($group->description)) {
- +

diff --git a/lib/adminlib.php b/lib/adminlib.php index 6f92c68a615..49b4eaf93be 100644 --- a/lib/adminlib.php +++ b/lib/adminlib.php @@ -6790,7 +6790,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 generaltable'; + $table->attributes['class'] = 'admintable generaltable table table-hover'; $table->data = array(); // Iterate through enrol plugins and add to the display table. @@ -7341,7 +7341,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 generaltable'; + $table->attributes['class'] = 'admintable generaltable table table-hover'; $table->id = 'manageauthtable'; //add always enabled plugins first @@ -7540,7 +7540,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 generaltable'; + $table->attributes['class'] = 'admintable generaltable table table-hover'; $table->data = array(); // Iterate through auth plugins and add to the display table. @@ -7701,7 +7701,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 generaltable admintable'; + $table->attributes['class'] = 'manageformattable generaltable admintable table table-hover'; $table->data = array(); $cnt = 0; @@ -7850,7 +7850,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 generaltable admintable'; + $table->attributes['class'] = 'managecustomfieldtable generaltable admintable table table-hover'; $table->data = array(); $spacer = $OUTPUT->pix_icon('spacer', '', 'moodle', array('class' => 'iconsmall')); @@ -7972,7 +7972,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 generaltable admintable'; + $table->attributes['class'] = 'manageformattable generaltable admintable table table-hover'; $table->data = array(); $cnt = 0; @@ -8449,7 +8449,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 generaltable'; + $table->attributes['class'] = 'admintable generaltable table table-hover'; $table->data = array(); // Iterate through media plugins and add to the display table. @@ -8627,7 +8627,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 generaltable admintable'; + $table->attributes['class'] = 'managecontentbanktable generaltable admintable table table-hover'; $table->data = array(); $spacer = $OUTPUT->pix_icon('spacer', '', 'moodle', array('class' => 'iconsmall')); @@ -9910,7 +9910,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 generaltable'; + $table->attributes['class'] = 'admintable externalservices generaltable table table-hover'; $table->data = array(); // iterate through auth plugins and add to the display table @@ -9950,7 +9950,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 generaltable'; + $table->attributes['class'] = 'admintable externalservices generaltable table table-hover'; $table->data = array(); // iterate through auth plugins and add to the display table @@ -10055,7 +10055,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 generaltable'; + $table->attributes['class'] = 'admintable wsoverview generaltable table table-hover'; $table->data = array(); $return .= $brtag . get_string('onesystemcontrollingdescription', 'webservice') @@ -10179,7 +10179,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 generaltable'; + $table->attributes['class'] = 'admintable wsoverview generaltable table table-hover'; $table->data = array(); $return .= $brtag . get_string('userasclientsdescription', 'webservice') . @@ -10370,7 +10370,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 generaltable'; + $table->attributes['class'] = 'admintable generaltable table table-hover'; $table->data = array(); // iterate through auth plugins and add to the display table @@ -11222,7 +11222,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 generaltable'; + $table->attributes['class'] = 'admintable generaltable table table-hover'; $table->data = array(); $return .= $brtag . get_string('searchsetupdescription', 'search') . $brtag . $brtag; diff --git a/lib/classes/check/environment/publicpaths.php b/lib/classes/check/environment/publicpaths.php index fc726012dfd..1bdb40a36f5 100644 --- a/lib/classes/check/environment/publicpaths.php +++ b/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 generalbox table-sm'; + $table->attributes['class'] = 'flexible generaltable generalbox table-sm table table-hover'; $table->data = []; // Used to track duplicated errors. diff --git a/lib/classes/output/html_writer.php b/lib/classes/output/html_writer.php index b1e185c415d..2cbe9f9443c 100644 --- a/lib/classes/output/html_writer.php +++ b/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/lib/editor/tiny/plugins/premium/classes/local/admin_setting_tiny_premium_plugins.php b/lib/editor/tiny/plugins/premium/classes/local/admin_setting_tiny_premium_plugins.php index 0a1c78af700..f4d34ad5832 100644 --- a/lib/editor/tiny/plugins/premium/classes/local/admin_setting_tiny_premium_plugins.php +++ b/lib/editor/tiny/plugins/premium/classes/local/admin_setting_tiny_premium_plugins.php @@ -97,7 +97,7 @@ class admin_setting_tiny_premium_plugins extends \admin_setting { // Set up table. $table = new \html_table(); $table->id = 'managetinypremiumpluginstable'; - $table->attributes['class'] = 'admintable generaltable'; + $table->attributes['class'] = 'admintable generaltable table table-hover'; $table->head = [ get_string('name'), get_string('enable'), diff --git a/lib/portfolio/exporter.php b/lib/portfolio/exporter.php index eb12a3d63e1..e5a1e621e99 100644 --- a/lib/portfolio/exporter.php +++ b/lib/portfolio/exporter.php @@ -415,7 +415,7 @@ class portfolio_exporter { } $mainsummary = array_merge($mainsummary, $csummary, $isummary); $table = new html_table(); - $table->attributes['class'] = 'generaltable exportsummary'; + $table->attributes['class'] = 'generaltable exportsummary table table-hover'; $table->data = array(); foreach ($mainsummary as $string => $value) { $table->data[] = array($string, $value); diff --git a/lib/tests/output/html_writer_test.php b/lib/tests/output/html_writer_test.php index 29e34fd6765..ab8e816280b 100644 --- a/lib/tests/output/html_writer_test.php +++ b/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/lib/xhprof/readme_moodle.txt b/lib/xhprof/readme_moodle.txt index 8d872b7459d..aecfc85a289 100644 --- a/lib/xhprof/readme_moodle.txt +++ b/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/lib/xhprof/xhprof_moodle.php b/lib/xhprof/xhprof_moodle.php index 1eeee822746..1a14acc0748 100644 --- a/lib/xhprof/xhprof_moodle.php +++ b/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/message/renderer.php b/message/renderer.php index 4e8c9fd4b33..92e96784f0e 100644 --- a/message/renderer.php +++ b/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 generaltable'; + $table->attributes['class'] = 'admintable generaltable table table-hover'; $table->data = array(); $table->head = array( get_string('name'), diff --git a/mod/assign/classes/output/renderer.php b/mod/assign/classes/output/renderer.php index e520672578d..c9f12d572e7 100644 --- a/mod/assign/classes/output/renderer.php +++ b/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/mod/book/index.php b/mod/book/index.php index 6fc2867c5b1..6fa40af6d0a 100644 --- a/mod/book/index.php +++ b/mod/book/index.php @@ -58,7 +58,7 @@ if (!$books = get_all_instances_in_course('book', $course)) { $usesections = course_format_uses_sections($course->format); $table = new html_table(); -$table->attributes['class'] = 'generaltable mod_index'; +$table->attributes['class'] = 'generaltable mod_index table table-hover'; if ($usesections) { $strsectionname = course_get_format($course)->get_generic_section_name(); diff --git a/mod/folder/index.php b/mod/folder/index.php index f5e567fedf3..2118bcccf87 100644 --- a/mod/folder/index.php +++ b/mod/folder/index.php @@ -63,7 +63,7 @@ if (!$folders = get_all_instances_in_course('folder', $course)) { $usesections = course_format_uses_sections($course->format); $table = new html_table(); -$table->attributes['class'] = 'generaltable mod_index'; +$table->attributes['class'] = 'generaltable mod_index table table-hover'; if ($usesections) { $strsectionname = course_get_format($course)->get_generic_section_name(); diff --git a/mod/h5pactivity/index.php b/mod/h5pactivity/index.php index b332cd2fd3f..58025be4ac2 100644 --- a/mod/h5pactivity/index.php +++ b/mod/h5pactivity/index.php @@ -54,7 +54,7 @@ if (empty($h5pactivities)) { } $table = new html_table(); -$table->attributes['class'] = 'generaltable mod_index'; +$table->attributes['class'] = 'generaltable mod_index table table-hover'; $align = ['center', 'left']; if ($course->format == 'weeks' || $course->format == 'topics') { diff --git a/mod/imscp/index.php b/mod/imscp/index.php index 2c78249cf28..d324a16d711 100644 --- a/mod/imscp/index.php +++ b/mod/imscp/index.php @@ -58,7 +58,7 @@ if (!$imscps = get_all_instances_in_course('imscp', $course)) { $usesections = course_format_uses_sections($course->format); $table = new html_table(); -$table->attributes['class'] = 'generaltable mod_index'; +$table->attributes['class'] = 'generaltable mod_index table table-hover'; if ($usesections) { $strsectionname = course_get_format($course)->get_generic_section_name(); diff --git a/mod/lesson/essay.php b/mod/lesson/essay.php index d9b48c50d95..fa6e967d884 100644 --- a/mod/lesson/essay.php +++ b/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'] = 'standardtable generaltable'; + $table->attributes['class'] = 'standardtable generaltable table table-hover'; $table->align = array('left', 'left', 'left'); $table->wrap = array('nowrap', 'nowrap', ''); diff --git a/mod/lesson/report.php b/mod/lesson/report.php index e9cd4477f37..3bfc65764bf 100644 --- a/mod/lesson/report.php +++ b/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'] = 'standardtable generaltable'; + $stattable->attributes['class'] = 'standardtable generaltable table 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'] = 'standardtable generaltable'; + $stattable->attributes['class'] = 'standardtable generaltable table table-hover'; $stattable->data[] = array($data->avetime, $data->hightime, $data->lowtime); } diff --git a/mod/lti/index.php b/mod/lti/index.php index f3582f41966..03deead33e5 100644 --- a/mod/lti/index.php +++ b/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'] = 'generaltable mod_index'; +$table->attributes['class'] = 'generaltable mod_index table table-hover'; if ($usesections) { $strsectionname = course_get_format($course)->get_generic_section_name(); diff --git a/mod/page/index.php b/mod/page/index.php index 108aa86f8f2..15fd2b77e62 100644 --- a/mod/page/index.php +++ b/mod/page/index.php @@ -57,7 +57,7 @@ if (!$pages = get_all_instances_in_course('page', $course)) { $usesections = course_format_uses_sections($course->format); $table = new html_table(); -$table->attributes['class'] = 'generaltable mod_index'; +$table->attributes['class'] = 'generaltable mod_index table table-hover'; if ($usesections) { $strsectionname = course_get_format($course)->get_generic_section_name(); diff --git a/mod/quiz/classes/output/renderer.php b/mod/quiz/classes/output/renderer.php index 584246c26d5..87bfc0af5af 100644 --- a/mod/quiz/classes/output/renderer.php +++ b/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'] = 'generaltable quizsummaryofattempt boxaligncenter'; + $table->attributes['class'] = 'generaltable quizsummaryofattempt boxaligncenter table table-hover'; $table->head = [get_string('question', 'quiz'), get_string('status', 'quiz')]; $table->align = ['left', 'left']; $table->size = ['', '']; @@ -1141,7 +1141,7 @@ class renderer extends plugin_renderer_base { // Prepare table header. $table = new html_table(); - $table->attributes['class'] = 'generaltable quizattemptsummary'; + $table->attributes['class'] = 'generaltable quizattemptsummary table table-hover'; $table->caption = get_string('summaryofattempts', 'quiz'); $table->captionhide = true; $table->head = []; diff --git a/mod/quiz/report/statistics/report.php b/mod/quiz/report/statistics/report.php index 1a7928b1b59..cf0ad7f3749 100644 --- a/mod/quiz/report/statistics/report.php +++ b/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'] = 'generaltable titlesleft'; + $questioninfotable->attributes['class'] = 'generaltable titlesleft table 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'] = 'generaltable titlesleft'; + $questionstatstable->attributes['class'] = 'generaltable titlesleft table 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'] = 'generaltable titlesleft'; + $quizinfotable->attributes['class'] = 'generaltable titlesleft table table-hover'; $quizinfotable->data = []; foreach ($quizinfo as $heading => $value) { diff --git a/mod/resource/index.php b/mod/resource/index.php index e176a103a5e..45eb6b2a7d2 100644 --- a/mod/resource/index.php +++ b/mod/resource/index.php @@ -63,7 +63,7 @@ if (!$resources = get_all_instances_in_course('resource', $course)) { $usesections = course_format_uses_sections($course->format); $table = new html_table(); -$table->attributes['class'] = 'generaltable mod_index'; +$table->attributes['class'] = 'generaltable mod_index table table-hover'; if ($usesections) { $table->head = array ($strsectionname, $strname, $strintro); diff --git a/mod/subsection/index.php b/mod/subsection/index.php index 04910b166d2..d7ae9b19436 100644 --- a/mod/subsection/index.php +++ b/mod/subsection/index.php @@ -53,7 +53,7 @@ if (empty($subsections)) { } $table = new html_table(); -$table->attributes['class'] = 'generaltable mod_index'; +$table->attributes['class'] = 'generaltable mod_index table table-hover'; if ($course->format == 'weeks') { $table->head = [get_string('week'), get_string('name')]; diff --git a/mod/url/index.php b/mod/url/index.php index e44411e55e2..60231b78619 100644 --- a/mod/url/index.php +++ b/mod/url/index.php @@ -62,7 +62,7 @@ if (!$urls = get_all_instances_in_course('url', $course)) { $usesections = course_format_uses_sections($course->format); $table = new html_table(); -$table->attributes['class'] = 'generaltable mod_index'; +$table->attributes['class'] = 'generaltable mod_index table table-hover'; if ($usesections) { $strsectionname = course_get_format($course)->get_generic_section_name(); diff --git a/mod/wiki/pagelib.php b/mod/wiki/pagelib.php index af159a5edb6..7b3501f2767 100644 --- a/mod/wiki/pagelib.php +++ b/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/question/classes/admin/manage_qbank_plugins_page.php b/question/classes/admin/manage_qbank_plugins_page.php index 81f073ad5c9..4bcf881e659 100644 --- a/question/classes/admin/manage_qbank_plugins_page.php +++ b/question/classes/admin/manage_qbank_plugins_page.php @@ -85,7 +85,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 generaltable admintable'; + $table->attributes['class'] = 'manageqbanktable generaltable admintable table table-hover'; $table->data = []; $totalenabled = 0; diff --git a/report/completion/index.php b/report/completion/index.php index a6fad00e663..082d062f7a2 100644 --- a/report/completion/index.php +++ b/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/report/completion/user.php b/report/completion/user.php index 520a11077e7..d648edd4a1f 100644 --- a/report/completion/user.php +++ b/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/report/progress/index.php b/report/progress/index.php index 5f0437a15cb..0113cefc271 100644 --- a/report/progress/index.php +++ b/report/progress/index.php @@ -279,7 +279,8 @@ if (!$csv) { } print '
'; - print '
'.get_string('course').''.get_string('requiredcriteria', 'completion').'
'; + print '
'; // User heading / sort option print '
'; diff --git a/tag/classes/areas_table.php b/tag/classes/areas_table.php index 63484c580f8..d1f0e67c9b6 100644 --- a/tag/classes/areas_table.php +++ b/tag/classes/areas_table.php @@ -42,7 +42,7 @@ class core_tag_areas_table extends html_table { global $OUTPUT; parent::__construct(); - $this->attributes['class'] = 'generaltable tag-areas-table'; + $this->attributes['class'] = 'generaltable tag-areas-table table table-hover'; $this->head = array( get_string('tagareaname', 'core_tag'), diff --git a/tag/classes/collections_table.php b/tag/classes/collections_table.php index 5e6d23e30a6..f97b8a68ce3 100644 --- a/tag/classes/collections_table.php +++ b/tag/classes/collections_table.php @@ -41,7 +41,7 @@ class core_tag_collections_table extends html_table { global $OUTPUT; parent::__construct(); - $this->attributes['class'] = 'generaltable tag-collections-table'; + $this->attributes['class'] = 'generaltable tag-collections-table table table-hover'; $this->head = array( get_string('name'), diff --git a/webservice/renderer.php b/webservice/renderer.php index f9466b0f8bd..567e428cd1d 100644 --- a/webservice/renderer.php +++ b/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 generaltable generalbox boxaligncenter'; + $table->attributes['class'] = 'roleassigntable generaltable generalbox boxaligncenter table table-hover'; $table->summary = ''; $table->cellspacing = 0; $table->cellpadding = 0;