From: mchurch Date: Wed, 8 Sep 2004 19:24:38 +0000 (+0000) Subject: Modified a bunch of tags to make them XHTML 1.0 Transitional compliant. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=1c919752a21ea10613339a654f9c3ac8a833bcd5;p=moodle.git Modified a bunch of tags to make them XHTML 1.0 Transitional compliant. --- diff --git a/course/lib.php b/course/lib.php index b3453ab817..166072f0a5 100644 --- a/course/lib.php +++ b/course/lib.php @@ -137,7 +137,7 @@ function print_recent_selector_form($course, $advancedfilter=0, $selecteduser=0, } echo '
'; - echo ''; + echo ''; echo "
"; echo ""; @@ -146,7 +146,7 @@ function print_recent_selector_form($course, $advancedfilter=0, $selecteduser=0, choose_from_menu ($courses, "id", $course->id, ""); echo ""; } else { - echo "id\">"; + echo ''; } $sortfields = array("default" => get_string("bycourseorder"),"dateasc" => get_string("datemostrecentlast"), "datedesc" => get_string("datemostrecentfirst")); @@ -155,7 +155,7 @@ function print_recent_selector_form($course, $advancedfilter=0, $selecteduser=0, choose_from_menu ($users, "user", $selecteduser, get_string("allparticipants") ); echo ""; - echo ""; @@ -163,7 +163,7 @@ function print_recent_selector_form($course, $advancedfilter=0, $selecteduser=0, choose_from_menu ($activities, "modid", $selectedactivity, ""); echo ""; - echo ""; @@ -186,8 +186,8 @@ function print_recent_selector_form($course, $advancedfilter=0, $selecteduser=0, } - echo ""; echo "
" . get_string("since") . ""; + echo '' . get_string("since") . ''; choose_from_menu ($dates, "date", $selecteddate, get_string("alldays")); echo "
" . get_string("sortby") . ""; + echo '' . get_string("sortby") . ""; choose_from_menu ($sortfields, "sortby", $selectedsort, ""); echo "
"; - echo ""; + echo ''; + echo ''; echo "
"; @@ -365,11 +365,11 @@ function print_log_selector_form($course, $selecteduser=0, $selecteddate="today" echo '
'; echo ''; - echo ''; + echo ''; if (isadmin()) { choose_from_menu ($courses, "id", $course->id, ""); } else { - echo "id\">"; + echo ''; } if ($showgroups) { @@ -383,7 +383,7 @@ function print_log_selector_form($course, $selecteduser=0, $selecteddate="today" choose_from_menu ($users, "user", $selecteduser, get_string("allparticipants") ); choose_from_menu ($dates, "date", $selecteddate, get_string("alldays")); choose_from_menu ($activities, "modid", $selectedactivity, get_string("allactivities"), "", ""); - echo ""; + echo ''; echo ""; echo "
"; } @@ -392,7 +392,6 @@ function make_log_url($module, $url) { switch ($module) { case "user": case "course": - case "user": case "file": case "login": case "lib": @@ -506,13 +505,13 @@ function print_log($course, $user=0, $date=0, $order="l.time ASC", $page=0, $per $strftimedatetime = get_string("strftimedatetime"); $isteacher = isteacher($course->id); - echo "

"; + echo '

'; print_string("displayingrecords", "", $totalcount); echo "

"; print_paging_bar($totalcount, $page, $perpage, "$url&perpage=$perpage&"); - echo ''; + echo '
'; foreach ($logs as $log) { if (isset($ldcache[$log->module][$log->action])) { @@ -530,19 +529,19 @@ function print_log($course, $user=0, $date=0, $order="l.time ASC", $page=0, $per echo ''; if (! $course->category) { - echo ''; + echo ''; } - echo ''; - echo ''; - echo ''; + echo ''; + echo ''; $fullname = fullname($log, $isteacher); - echo ''; - echo ''; + echo ''; - echo ''; + echo ''; echo ''; } echo '
'.$courses[$log->course].''.$courses[$log->course].''.userdate($log->time, '%a').''.userdate($log->time, $strftimedatetime).''; + echo ''.userdate($log->time, '%a').''.userdate($log->time, $strftimedatetime).''; link_to_popup_window("/lib/ipatlas/plot.php?address=$log->ip&user=$log->userid", 'ipatlas',$log->ip, 400, 700); echo 'userid&course=$log->course".'">'.$fullname.''; + echo 'userid&course=$log->course".'">'.$fullname.''; link_to_popup_window( make_log_url($log->module,$log->url), 'fromloglive',"$log->module $log->action", 400, 600); echo ''.$log->info.''.$log->info.'
'; @@ -556,7 +555,8 @@ function print_log_graph($course, $userid=0, $type="course.png", $date=0) { if (empty($CFG->gdversion)) { echo "(".get_string("gdneed").")"; } else { - echo "wwwroot/course/loggraph.php?id=$course->id&user=$userid&type=$type&date=$date\">"; + echo ''; } } @@ -603,7 +603,7 @@ function print_recent_activity($course) { $content = true; } $fullname = fullname($user, $isteacher); - echo 'id&course=$course->id\">$fullname
"; + echo 'id&course=$course->id\">$fullname
"; } echo "

"; } @@ -666,7 +666,7 @@ function print_recent_activity($course) { print_headline(get_string("courseupdates").":"); $content = true; foreach ($changes as $changeinfo => $change) { - echo "

".$change["text"]."

"; + echo '

'.$change['text'].'

'; } } } @@ -699,7 +699,7 @@ function print_recent_activity($course) { } if (! $content) { - echo "".get_string("nothingnew").""; + echo ''.get_string('nothingnew').''; } } @@ -898,10 +898,11 @@ function print_section($course, $section, $mods, $modnamesused, $absolute=false, if ($mod->id == $USER->activitycopy) { continue; } - echo "wwwroot/course/mod.php?moveto=$mod->id\">". - "pixpath/movehere.gif\" ". - " alt=\"$strmovehere\" border=\"0\">
\n"; + echo ''. + ''.$strmovehere.'
+ '; } $instancename = urldecode($modinfo[$modnumber]->name); if (!empty($CFG->filterall)) { @@ -935,10 +936,11 @@ function print_section($course, $section, $mods, $modnamesused, $absolute=false, } else { // Normal activity $linkcss = $mod->visible ? "" : " class=\"dimmed\" "; - echo "\"$mod-modfullname\">". - " modfullname\" $linkcss $extra". - " href=\"$CFG->wwwroot/mod/$mod->modname/view.php?id=$mod->id\">$instancename"; + echo ''.$mod->modfullname.''. + ' '. + $instancename.''; } if ($isediting) { if ($groupbuttons) { @@ -958,10 +960,11 @@ function print_section($course, $section, $mods, $modnamesused, $absolute=false, } } if ($ismoving) { - echo "wwwroot/course/mod.php?movetosection=$section->id\">". - "pixpath/movehere.gif\" ". - " alt=\"$strmovehere\" border=\"0\">\n"; + echo ''. + ''.$strmovehere.' + '; } echo "\n\n"; } @@ -1131,12 +1134,12 @@ function print_category_info($category, $depth) { $catlinkcss = $category->visible ? "" : " class=\"dimmed\" "; if ($CFG->frontpage == FRONTPAGECOURSELIST) { - $catimage = "pixpath/i/course.gif\" width=16 height=16 border=0>"; + $catimage = ''; } else { $catimage = " "; } - echo "\n\n"; + echo "\n\n".'
'; if ($CFG->frontpage == FRONTPAGECOURSELIST) { $courses = get_courses($category->id); @@ -1146,7 +1149,7 @@ function print_category_info($category, $depth) { if ($depth) { $indent = $depth*30; $rows = count($courses) + 1; - echo ""; } @@ -1325,25 +1328,25 @@ function print_course_search($value="", $return=false, $format="plain") { $strsearchcourses= get_string("searchcourses"); - if ($format == "plain") { - $output = "

"; - $output .= "
wwwroot/course/search.php\" method=\"get\">"; - $output .= ""; - $output .= ""; - $output .= "

"; - } else if ($format == "short") { - $output = "

"; - $output .= "
wwwroot/course/search.php\" method=\"get\">"; - $output .= ""; - $output .= ""; - $output .= "

"; - } else if ($format == "navbar") { - $output = "
"; + echo ''; print_spacer(10, $indent); echo "
"; - $output .= "
wwwroot/course/search.php\" method=\"get\">"; - $output .= ""; - $output .= ""; - $output .= "
"; - $output .= "
"; + if ($format == 'plain') { + $output = '

'; + $output .= '

'; + $output .= ''; + $output .= ''; + $output .= '

'; + } else if ($format == 'short') { + $output = '

'; + $output .= '

'; + $output .= ''; + $output .= ''; + $output .= '

'; + } else if ($format == 'navbar') { + $output = '
'; + $output .= '
'; + $output .= ''; + $output .= ''; + $output .= '
'; + $output .= '
'; } if ($return) { @@ -1753,4 +1756,4 @@ function make_editing_buttons($mod, $absolute=false, $moveselect=true, $indent=- " alt=\"$str->delete\">$hideshow$groupmode"; } -?> +?> \ No newline at end of file