mirror of
https://github.com/moodle/moodle.git
synced 2025-08-03 16:13:28 +02:00
Slight additions to print_table
This commit is contained in:
parent
c07daf5bbc
commit
dccd16712a
1 changed files with 3 additions and 2 deletions
|
@ -181,7 +181,7 @@ function print_user_picture($userid, $courseid, $picture, $large=false, $returns
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function print_table($table) {
|
function print_table($table, $cellpadding=10, $cellspacing=1) {
|
||||||
// Prints a nicely formatted table.
|
// Prints a nicely formatted table.
|
||||||
// $table is an object with several properties.
|
// $table is an object with several properties.
|
||||||
// $table->head is an array of heading names.
|
// $table->head is an array of heading names.
|
||||||
|
@ -214,7 +214,8 @@ function print_table($table) {
|
||||||
}
|
}
|
||||||
|
|
||||||
print_simple_box_start("CENTER", "$table->width", "#FFFFFF", 0);
|
print_simple_box_start("CENTER", "$table->width", "#FFFFFF", 0);
|
||||||
echo "<TABLE WIDTH=100% BORDER=0 valign=top align=center cellpadding=10 cellspacing=1>\n";
|
echo "<TABLE WIDTH=100% BORDER=0 valign=top align=center ";
|
||||||
|
echo " cellpadding=\"$cellpadding\" cellspacing=\"$cellspacing\">\n";
|
||||||
|
|
||||||
if ($table->head) {
|
if ($table->head) {
|
||||||
echo "<TR>";
|
echo "<TR>";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue