MDL-86235 core: Add table-hover class to admintable and generaltable
This commit is contained in:
+1
-1
@@ -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 = [];
|
||||
|
||||
|
||||
@@ -98,7 +98,7 @@
|
||||
echo $OUTPUT->header();
|
||||
?>
|
||||
<form method="post" action="index.php">
|
||||
<table align="center" width="635" class="generaltable" border="0" cellpadding="5" cellspacing="0">
|
||||
<table align="center" width="635" class="generaltable table table-hover" border="0" cellpadding="5" cellspacing="0">
|
||||
<tr>
|
||||
<td class="generalboxcontent">
|
||||
<table cellpadding="9" cellspacing="0" class="table-reboot">
|
||||
@@ -119,7 +119,7 @@
|
||||
</table>
|
||||
</form>
|
||||
<form method="post" action="index.php">
|
||||
<table align="center" width="635" class="generaltable" border="0" cellpadding="5" cellspacing="0">
|
||||
<table align="center" width="635" class="generaltable table table-hover" border="0" cellpadding="5" cellspacing="0">
|
||||
<tr>
|
||||
<td class="generalboxcontent">
|
||||
<table cellpadding="9" cellspacing="0" class="table-reboot">
|
||||
|
||||
@@ -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);
|
||||
|
||||
+2
-2
@@ -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());
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -179,7 +179,7 @@ echo $OUTPUT->header();
|
||||
<div>
|
||||
<input type="hidden" name="sesskey" value="<?php p(sesskey()); ?>" />
|
||||
|
||||
<table class="generaltable generalbox groupmanagementtable boxaligncenter" summary="">
|
||||
<table class="generaltable generalbox groupmanagementtable boxaligncenter table table-hover" summary="">
|
||||
<tr>
|
||||
<td id='existingcell'>
|
||||
<p>
|
||||
|
||||
@@ -228,7 +228,7 @@ if ($roleid) {
|
||||
<form id="assignform" method="post" action="<?php echo $assignurl ?>"><div>
|
||||
<input type="hidden" name="sesskey" value="<?php echo sesskey() ?>" />
|
||||
|
||||
<table id="assigningrole" summary="" class="admintable roleassigntable generaltable" cellspacing="0">
|
||||
<table id="assigningrole" summary="" class="admintable roleassigntable generaltable table table-hover" cellspacing="0">
|
||||
<tr>
|
||||
<td id="existingcell">
|
||||
<p><label for="removeselect"><?php print_string('extusers', 'core_role'); ?></label></p>
|
||||
@@ -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';
|
||||
|
||||
@@ -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'),
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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 '<table class="generaltable table-striped"><tbody>';
|
||||
echo '<table class="generaltable table-striped table table-hover"><tbody>';
|
||||
foreach ($allroles as $role) {
|
||||
if (isset($contexts[$contextid]->rolecapabilities[$role->id])) {
|
||||
$permission = $contexts[$contextid]->rolecapabilities[$role->id];
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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');
|
||||
|
||||
@@ -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',
|
||||
'',
|
||||
|
||||
@@ -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'),
|
||||
|
||||
@@ -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 = [];
|
||||
|
||||
|
||||
@@ -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],
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -94,7 +94,8 @@ class uu_progress_tracker {
|
||||
*/
|
||||
public function start() {
|
||||
$ci = 0;
|
||||
echo '<table id="uuresults" class="generaltable boxaligncenter flexible-wrap" summary="'.get_string('uploadusersresult', 'tool_uploaduser').'">';
|
||||
echo '<table id="uuresults" class="generaltable boxaligncenter flexible-wrap table table-hover" ' .
|
||||
'summary="' . get_string('uploadusersresult', 'tool_uploaduser') . '">';
|
||||
echo '<tr class="heading r0">';
|
||||
foreach ($this->headers as $key => $header) {
|
||||
echo '<th class="header c'.$ci++.'" scope="col">'.$header.'</th>';
|
||||
|
||||
@@ -90,7 +90,7 @@ abstract class XMLDBCheckAction extends XMLDBAction {
|
||||
|
||||
// If not confirmed, show confirmation box
|
||||
if (!$confirmed) {
|
||||
$o = '<table class="generaltable" border="0" cellpadding="5" cellspacing="0" id="notice">';
|
||||
$o = '<table class="generaltable table table-hover" border="0" cellpadding="5" cellspacing="0" id="notice">';
|
||||
$o.= ' <tr><td class="generalboxcontent">';
|
||||
$o.= ' <p class="centerpara">' . $this->str[$this->introstr] . '</p>';
|
||||
$o .= ' <table class="table-reboot w-100" cellpadding="20"><tr><td class="text-end">';
|
||||
|
||||
@@ -99,7 +99,8 @@ class check_bigints extends XMLDBCheckAction {
|
||||
$dbman = $DB->get_manager();
|
||||
|
||||
$s = '';
|
||||
$r = '<table class="generaltable boxaligncenter boxwidthwide" border="0" cellpadding="5" cellspacing="0" id="results">';
|
||||
$r = '<table class="generaltable boxaligncenter boxwidthwide table table-hover" ' .
|
||||
'border="0" cellpadding="5" cellspacing="0" id="results">';
|
||||
$r.= ' <tr><td class="generalboxcontent">';
|
||||
$r.= ' <h2 class="main">' . $this->str['searchresults'] . '</h2>';
|
||||
$r.= ' <p class="centerpara">' . $this->str['wrongints'] . ': ' . count($wrong_fields) . '</p>';
|
||||
|
||||
@@ -147,7 +147,8 @@ class check_defaults extends XMLDBCheckAction {
|
||||
$dbman = $DB->get_manager();
|
||||
|
||||
$s = '';
|
||||
$r = '<table class="generaltable boxaligncenter boxwidthwide" border="0" cellpadding="5" cellspacing="0" id="results">';
|
||||
$r = '<table class="generaltable boxaligncenter boxwidthwide table table-hover" ' .
|
||||
'border="0" cellpadding="5" cellspacing="0" id="results">';
|
||||
$r .= ' <tr><td class="generalboxcontent">';
|
||||
$r .= ' <h2 class="main">' . $this->str['searchresults'] . '</h2>';
|
||||
$r .= ' <p class="centerpara">' . $this->str['wrongdefaults'] . ': ' . count($wrongfields) . '</p>';
|
||||
|
||||
@@ -159,7 +159,8 @@ class check_foreign_keys extends XMLDBCheckAction {
|
||||
}
|
||||
|
||||
protected function display_results(array $violatedkeys) {
|
||||
$r = '<table class="generaltable boxaligncenter boxwidthwide" border="0" cellpadding="5" cellspacing="0" id="results">';
|
||||
$r = '<table class="generaltable boxaligncenter boxwidthwide table table-hover" ' .
|
||||
'border="0" cellpadding="5" cellspacing="0" id="results">';
|
||||
$r.= ' <tr><td class="generalboxcontent">';
|
||||
$r.= ' <h2 class="main">' . $this->str['searchresults'] . '</h2>';
|
||||
$r.= ' <p class="centerpara">' . $this->str['violatedforeignkeys'] . ': ' . count($violatedkeys) . '</p>';
|
||||
|
||||
@@ -154,7 +154,8 @@ class check_indexes extends XMLDBCheckAction {
|
||||
}
|
||||
|
||||
$s = '';
|
||||
$r = '<table class="generaltable boxaligncenter boxwidthwide" border="0" cellpadding="5" cellspacing="0" id="results">';
|
||||
$r = '<table class="generaltable boxaligncenter boxwidthwide table table-hover" ' .
|
||||
'border="0" cellpadding="5" cellspacing="0" id="results">';
|
||||
$r.= ' <tr><td class="generalboxcontent">';
|
||||
$r.= ' <h2 class="main">' . $this->str['searchresults'] . '</h2>';
|
||||
$r .= ' <p class="centerpara">' . $this->str['missingindexes'] . ': ' . count($missingindexes) . '</p>';
|
||||
|
||||
@@ -73,7 +73,7 @@ class delete_field extends XMLDBAction {
|
||||
|
||||
// If not confirmed, show confirmation box
|
||||
if (!$confirmed) {
|
||||
$o = '<table width="60" class="generaltable" border="0" cellpadding="5" cellspacing="0" id="notice">';
|
||||
$o = '<table width="60" class="generaltable table table-hover" border="0" cellpadding="5" cellspacing="0" id="notice">';
|
||||
$o.= ' <tr><td class="generalboxcontent">';
|
||||
$o.= ' <p class="centerpara">' . $this->str['confirmdeletefield'] . '<br /><br />' . $fieldparam . '</p>';
|
||||
$o .= ' <table class="table-reboot w-100" cellpadding="20"><tr><td class="text-end">';
|
||||
|
||||
@@ -73,7 +73,7 @@ class delete_index extends XMLDBAction {
|
||||
|
||||
// If not confirmed, show confirmation box
|
||||
if (!$confirmed) {
|
||||
$o = '<table width="60" class="generaltable" border="0" cellpadding="5" cellspacing="0" id="notice">';
|
||||
$o = '<table width="60" class="generaltable table table-hover" border="0" cellpadding="5" cellspacing="0" id="notice">';
|
||||
$o.= ' <tr><td class="generalboxcontent">';
|
||||
$o.= ' <p class="centerpara">' . $this->str['confirmdeleteindex'] . '<br /><br />' . $indexparam . '</p>';
|
||||
$o .= ' <table class="table-reboot w-100" cellpadding="20"><tr><td class="text-end">';
|
||||
|
||||
@@ -73,7 +73,7 @@ class delete_key extends XMLDBAction {
|
||||
|
||||
// If not confirmed, show confirmation box
|
||||
if (!$confirmed) {
|
||||
$o = '<table width="60" class="generaltable" border="0" cellpadding="5" cellspacing="0" id="notice">';
|
||||
$o = '<table width="60" class="generaltable table table-hover" border="0" cellpadding="5" cellspacing="0" id="notice">';
|
||||
$o.= ' <tr><td class="generalboxcontent">';
|
||||
$o.= ' <p class="centerpara">' . $this->str['confirmdeletekey'] . '<br /><br />' . $keyparam . '</p>';
|
||||
$o .= ' <table class="table-reboot w-100" cellpadding="20"><tr><td class="text-end">';
|
||||
|
||||
@@ -72,7 +72,7 @@ class delete_table extends XMLDBAction {
|
||||
|
||||
// If not confirmed, show confirmation box
|
||||
if (!$confirmed) {
|
||||
$o = '<table width="60" class="generaltable" border="0" cellpadding="5" cellspacing="0" id="notice">';
|
||||
$o = '<table width="60" class="generaltable table table-hover" border="0" cellpadding="5" cellspacing="0" id="notice">';
|
||||
$o.= ' <tr><td class="generalboxcontent">';
|
||||
$o.= ' <p class="centerpara">' . $this->str['confirmdeletetable'] . '<br /><br />' . $tableparam . '</p>';
|
||||
$o .= ' <table class="table-reboot w-100" cellpadding="20"><tr><td class="text-end">';
|
||||
|
||||
@@ -71,7 +71,7 @@ class delete_xml_file extends XMLDBAction {
|
||||
|
||||
// If not confirmed, show confirmation box
|
||||
if (!$confirmed) {
|
||||
$o = '<table width="60" class="generaltable" border="0" cellpadding="5" cellspacing="0" id="notice">';
|
||||
$o = '<table width="60" class="generaltable table table-hover" border="0" cellpadding="5" cellspacing="0" id="notice">';
|
||||
$o.= ' <tr><td class="generalboxcontent">';
|
||||
$o.= ' <p class="centerpara">' . $this->str['confirmdeletexmlfile'] . '<br /><br />' . $dirpath . '/install.php</p>';
|
||||
$o .= ' <table class="table-reboot w-100" cellpadding="20"><tr><td class="text-end">';
|
||||
|
||||
@@ -119,7 +119,7 @@ class main_view extends XMLDBAction {
|
||||
// Display list of DB directories if everything is ok
|
||||
if ($result && !empty($XMLDB->dbdirs)) {
|
||||
$o .= '<table id="listdirectories" border="0" cellpadding="5" cellspacing="1"' .
|
||||
' class="table-striped table-sm admintable generaltable">';
|
||||
' 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
|
||||
|
||||
@@ -71,7 +71,8 @@ class revert_changes extends XMLDBAction {
|
||||
|
||||
// If not confirmed, show confirmation box
|
||||
if (!$confirmed) {
|
||||
$o = '<table width="60" class="generaltable boxaligncenter" border="0" cellpadding="5" cellspacing="0" id="notice">';
|
||||
$o = '<table width="60" class="generaltable boxaligncenter table table-hover" ' .
|
||||
'border="0" cellpadding="5" cellspacing="0" id="notice">';
|
||||
$o.= ' <tr><td class="generalboxcontent">';
|
||||
$o.= ' <p class="centerpara">' . $this->str['confirmrevertchanges'] . '<br /><br />' . $dirpath . '</p>';
|
||||
$o .= ' <table class="table-reboot w-100" cellpadding="20"><tr><td class="text-end">';
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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();
|
||||
|
||||
+3
-3
@@ -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) {
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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'),
|
||||
|
||||
Vendored
+1
-1
@@ -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.
|
||||
|
||||
+1
-1
@@ -107,7 +107,7 @@ if (optional_param('remove', false, PARAM_BOOL) && confirm_sesskey()) {
|
||||
<input type="hidden" name="sesskey" value="<?php echo sesskey() ?>" />
|
||||
<input type="hidden" name="returnurl" value="<?php echo $returnurl->out_as_local_url() ?>" />
|
||||
|
||||
<table summary="" class="generaltable generalbox boxaligncenter" cellspacing="0">
|
||||
<table summary="" class="generaltable generalbox boxaligncenter table table-hover" cellspacing="0">
|
||||
<tr>
|
||||
<td id="existingcell">
|
||||
<p><label for="removeselect"><?php print_string('currentusers', 'cohort'); ?></label></p>
|
||||
|
||||
@@ -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) {
|
||||
|
||||
+1
-1
@@ -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'));
|
||||
|
||||
@@ -179,7 +179,7 @@ $removeenabled = $canunenrol ? '' : 'disabled="disabled"';
|
||||
<form id="assignform" method="post" action="<?php echo $PAGE->url ?>"><div>
|
||||
<input type="hidden" name="sesskey" value="<?php echo sesskey() ?>" />
|
||||
|
||||
<table summary="" class="roleassigntable generaltable generalbox boxaligncenter" cellspacing="0">
|
||||
<table summary="" class="roleassigntable generaltable generalbox boxaligncenter table table-hover" cellspacing="0">
|
||||
<tr>
|
||||
<td id="existingcell">
|
||||
<p><label for="removeselect"><?php print_string('enrolledusers', 'enrol'); ?></label></p>
|
||||
|
||||
+1
-1
@@ -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.
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -110,7 +110,8 @@ if ($taskindicator->has_task_record()) {
|
||||
exit;
|
||||
}
|
||||
|
||||
$html = '<table class="generaltable boxaligncenter" width="90%" cellspacing="1" cellpadding="5" summary="Outcomes Report">' . "\n";
|
||||
$html = '<table class="generaltable boxaligncenter table table-hover" width="90%" ' .
|
||||
'cellspacing="1" cellpadding="5" summary="Outcomes Report">' . "\n";
|
||||
$html .= '<tr><th class="header c0" scope="col">' . get_string('outcomeshortname', 'grades') . '</th>';
|
||||
$html .= '<th class="header c1" scope="col">' . get_string('courseavg', 'grades') . '</th>';
|
||||
$html .= '<th class="header c2" scope="col">' . get_string('sitewide', 'grades') . '</th>';
|
||||
|
||||
+1
-1
@@ -147,7 +147,7 @@ echo $OUTPUT->header();
|
||||
<form id="assignform" method="post" action="">
|
||||
<div>
|
||||
<input type="hidden" name="sesskey" value="<?php p(sesskey()); ?>" />
|
||||
<table summary="" class="generaltable generalbox groupmanagementtable boxaligncenter">
|
||||
<table summary="" class="generaltable generalbox groupmanagementtable boxaligncenter table table-hover">
|
||||
<tr>
|
||||
<td id="existingcell">
|
||||
<label for="removeselect"><?php print_string('existingmembers', 'group', $currentmemberscount); ?></label>
|
||||
|
||||
+1
-1
@@ -117,7 +117,7 @@ if (!empty($group->description)) {
|
||||
<div>
|
||||
<input type="hidden" name="sesskey" value="<?php p(sesskey()); ?>" />
|
||||
|
||||
<table class="generaltable generalbox groupmanagementtable boxaligncenter" summary="">
|
||||
<table class="generaltable generalbox groupmanagementtable boxaligncenter table table-hover" summary="">
|
||||
<tr>
|
||||
<td id='existingcell'>
|
||||
<p>
|
||||
|
||||
+14
-14
@@ -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;
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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;
|
||||
|
||||
+1
-1
@@ -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'),
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -315,7 +315,7 @@ final class html_writer_test extends \basic_testcase {
|
||||
$output = html_writer::table($table);
|
||||
|
||||
$expected = <<<EOF
|
||||
<table class="generaltable table" id="Jeffrey" data-name="Colin">
|
||||
<table class="generaltable table table-hover" id="Jeffrey" data-name="Colin">
|
||||
<caption>A table of meaningless data.</caption><tbody><tr class="lastrow" id="Bob" data-name="Fred">
|
||||
<td class="cell c0 lastcol" id="Jeremy" data-name="John" style=""></td>
|
||||
</tr>
|
||||
@@ -344,7 +344,7 @@ EOF;
|
||||
|
||||
$output = html_writer::table($table);
|
||||
$expected = <<<EOF
|
||||
<table class="generaltable table" id="whodat">
|
||||
<table class="generaltable table table-hover" id="whodat">
|
||||
<caption class="accesshide">Who even knows?</caption><tbody><tr class="">
|
||||
<td class="cell c0" style="">fred</td>
|
||||
<td class="cell c1 lastcol" style="">MDK</td>
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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();
|
||||
|
||||
|
||||
@@ -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'),
|
||||
|
||||
@@ -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.
|
||||
|
||||
|
||||
+1
-1
@@ -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();
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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') {
|
||||
|
||||
+1
-1
@@ -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();
|
||||
|
||||
@@ -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', '');
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -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();
|
||||
|
||||
+1
-1
@@ -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();
|
||||
|
||||
@@ -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 = [];
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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')];
|
||||
|
||||
+1
-1
@@ -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();
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -313,7 +313,7 @@ if (!$csv) {
|
||||
}
|
||||
|
||||
print '<table id="completion-progress" class="table table-bordered generaltable flexible boxaligncenter
|
||||
completionreport" cellpadding="5" border="1">';
|
||||
completionreport table-hover" cellpadding="5" border="1">';
|
||||
|
||||
// Print criteria group names
|
||||
print PHP_EOL.'<thead><tr style="vertical-align: top">';
|
||||
|
||||
@@ -155,7 +155,7 @@ foreach ($courses as $type => $infos) {
|
||||
if (!empty($infos)) {
|
||||
|
||||
echo '<h1 align="center">'.get_string($type, 'report_completion').'</h1>';
|
||||
echo '<table class="generaltable boxaligncenter">';
|
||||
echo '<table class="generaltable boxaligncenter table table-hover">';
|
||||
echo '<tr class="ccheader">';
|
||||
echo '<th class="c0 header" scope="col">'.get_string('course').'</th>';
|
||||
echo '<th class="c1 header" scope="col">'.get_string('requiredcriteria', 'completion').'</th>';
|
||||
|
||||
@@ -279,7 +279,8 @@ if (!$csv) {
|
||||
}
|
||||
|
||||
print '<div id="completion-progress-wrapper" class="no-overflow">';
|
||||
print '<table id="completion-progress" class="generaltable flexible boxaligncenter"><thead><tr style="vertical-align:top">';
|
||||
print '<table id="completion-progress" ' .
|
||||
'class="generaltable flexible boxaligncenter table table-hover"><thead><tr style="vertical-align:top">';
|
||||
|
||||
// User heading / sort option
|
||||
print '<th scope="col" class="completion-sortchoice">';
|
||||
|
||||
@@ -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'),
|
||||
|
||||
@@ -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'),
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user