From: vyshane Date: Thu, 16 Mar 2006 08:49:20 +0000 (+0000) Subject: W3C validation and misc code cleanup. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=4379c8e9bbc45290c19f3cc9d26c9d71ae75c809;p=moodle.git W3C validation and misc code cleanup. --- diff --git a/course/mod.php b/course/mod.php index 719b633085..aec1a5e2ae 100644 --- a/course/mod.php +++ b/course/mod.php @@ -674,5 +674,4 @@ } print_footer($course); - -?> +?> \ No newline at end of file diff --git a/course/report.php b/course/report.php index b281c66b44..408350247d 100644 --- a/course/report.php +++ b/course/report.php @@ -21,10 +21,14 @@ $directories = get_list_of_plugins('course/report'); foreach ($directories as $directory) { - echo '
'; - include_once($CFG->dirroot.'/course/report/'.$directory.'/mod.php'); // Fragment for listing - echo '
'; + $pluginfile = $CFG->dirroot.'/course/report/'.$directory.'/mod.php'; + if (file_exists($pluginfile)) { + echo '
'; + //echo $pluginfile; + include_once($pluginfile); // Fragment for listing + echo '
'; + } } - + print_footer(); ?> diff --git a/course/report/log/mod.php b/course/report/log/mod.php index 2fffe70cc9..081e41eebe 100644 --- a/course/report/log/mod.php +++ b/course/report/log/mod.php @@ -13,10 +13,9 @@ print_log_selector_form($course); echo '
'; + echo '
'; print_heading(get_string('chooselivelogs') .':'); - - echo '

'; link_to_popup_window('/course/report/log/live.php?id='. $course->id,'livelog', get_string('livelogs'), 500, 800); - echo '

'; - -?> + echo '
'; + echo '
'; +?> \ No newline at end of file diff --git a/course/report/outline/mod.php b/course/report/outline/mod.php index 25f4cf27af..a662720ea5 100644 --- a/course/report/outline/mod.php +++ b/course/report/outline/mod.php @@ -4,8 +4,9 @@ die('Direct access to this script is forbidden.'); /// It must be included from a Moodle page } + echo '

'; $activityreport = get_string( 'activityreport' ); - echo "

wwwroot}/course/report/outline/index.php?id={$course->id}\">"; - echo "$activityreport
\n"; - -?> + echo "wwwroot}/course/report/outline/index.php?id={$course->id}\">"; + echo "$activityreport\n"; + echo '

'; +?> \ No newline at end of file diff --git a/course/report/participation/index.php b/course/report/participation/index.php index e2bde1284a..0a2f55d3e7 100644 --- a/course/report/participation/index.php +++ b/course/report/participation/index.php @@ -103,7 +103,7 @@ // print first controls. - echo '
'."\n". + echo ''."\n". ''."\n". ''."\n". ''."\n". diff --git a/course/report/participation/mod.php b/course/report/participation/mod.php index b850a0d003..710c0e399e 100644 --- a/course/report/participation/mod.php +++ b/course/report/participation/mod.php @@ -66,7 +66,7 @@ // print first controls. - echo ''."\n". + echo ''."\n". ''."\n". ''."\n". "
\n". diff --git a/course/report/stats/mod.php b/course/report/stats/mod.php index 7680376a63..5ace60957f 100644 --- a/course/report/stats/mod.php +++ b/course/report/stats/mod.php @@ -3,8 +3,12 @@ if (!defined('MOODLE_INTERNAL')) { die('Direct access to this script is forbidden.'); /// It must be included from a Moodle page } - + + echo '

'; if (!empty($CFG->enablestats)) { echo ''.get_string('stats').''; + } else { + echo ''.get_string('statsoff').''; } -?> + echo '

'; +?> \ No newline at end of file