From d8807190c350817deeea80a97796eb9f7f2aca96 Mon Sep 17 00:00:00 2001 From: moodler Date: Fri, 22 Apr 2005 07:52:21 +0000 Subject: [PATCH] XHTML fixes and quotings --- course/category.php | 62 ++++++++++++++++++++++----------------------- 1 file changed, 30 insertions(+), 32 deletions(-) diff --git a/course/category.php b/course/category.php index 9abf28cba3b..cc19219fb70 100644 --- a/course/category.php +++ b/course/category.php @@ -279,18 +279,18 @@ echo '
'; - echo "sesskey\">"; + echo ''; echo ''; - echo ""; + echo ''; if ($creatorediting) { - echo ""; + echo ''; if ($adminediting) { - echo ""; + echo ''; } } else { - echo ""; + echo ''; } - echo ""; + echo ''; $count = 0; @@ -301,8 +301,8 @@ $up = ($count == 1) ? false : true; $down = ($count == $numcourses) ? false : true; - $linkcss = $acourse->visible ? "" : " class=\"dimmed\" "; - echo ""; + $linkcss = $acourse->visible ? "" : ' class="dimmed" '; + echo ''; echo ''; if ($creatorediting) { if ($adminediting) { @@ -337,7 +337,7 @@ '&moveup='.$acourse->id.'&sesskey='.$USER->sesskey.'">'. ' '; } else { - echo ' '; + echo ' '; } if ($down) { @@ -345,24 +345,24 @@ '&movedown='.$acourse->id.'&sesskey='.$USER->sesskey.'">'. ' '; } else { - echo ' '; + echo ' '; } - echo ""; - echo "'; + echo '"; + echo ''; } else { - echo ""; + echo ''; } - echo "
$strcourses'.$strcourses.'$stredit'.$stredit.'$strselect'.$strselect.'  
'.$acourse->fullname.'"; + echo ''; echo ''; $abletomovecourses = true; } else if (isteacheredit($acourse->id)) { - echo ""; + echo ''; echo ''. ' '; echo ''. ' '; } - echo ""; + echo ''; if (!empty($acourse->guest)) { echo '"; - echo "
"; + echo '
'; + echo '
'; unset($displaylist[$category->id]); choose_from_menu ($displaylist, "moveto", "", get_string("moveselectedcoursesto"), "javascript:document.movecourses.submit()"); echo ''; - echo "
"; - echo "
"; - echo "
"; + echo ''; + echo ''; + echo '
'; } - echo "
"; + echo '
'; if (isadmin() and $numcourses > 1) { /// Print button to re-sort courses by name unset($options); - $options["id"] = $category->id; - $options["resort"] = "name"; - $options["sesskey"] = $USER->sesskey; - print_single_button("category.php", $options, get_string("resortcoursesbyname"), "get"); + $options['id'] = $category->id; + $options['resort'] = 'name'; + $options['sesskey'] = $USER->sesskey; + print_single_button('category.php', $options, get_string('resortcoursesbyname'), 'get'); } if (iscreator()) { /// Print button to create a new course unset($options); - $options["category"] = $category->id; - print_single_button("edit.php", $options, get_string("addnewcourse"), "get"); - echo "
"; + $options['category'] = $category->id; + print_single_button('edit.php', $options, get_string('addnewcourse'), 'get'); + echo '
'; } if (isadmin()) { /// Print form to rename the category - $strrename= get_string("rename"); + $strrename= get_string('rename'); echo '
'; echo ''; echo ''; @@ -426,8 +426,6 @@ } echo "
"; - echo ''; // course wrapper end - print_footer(); ?>