From: moodler Date: Wed, 10 Jan 2007 08:35:45 +0000 (+0000) Subject: More XHTML strict stuff X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=44b843b6d621d45062f01c1fa94c2e8c73fbe945;p=moodle.git More XHTML strict stuff --- diff --git a/course/index.php b/course/index.php index cb2c4f3405..ad7dcb5f66 100644 --- a/course/index.php +++ b/course/index.php @@ -46,9 +46,9 @@ print_header("$site->shortname: $strcategories", $strcourses, $strcategories, "", "", true, update_categories_button()); print_heading($strcategories); - print_simple_box_start("center", "50%", "#FFFFFF", 5, "categorybox"); + print_box_start('categorybox'); print_whole_category_list(); - print_simple_box_end(); + print_box_end(); print_course_search(); } else { $strfulllistofcourses = get_string("fulllistofcourses"); @@ -57,8 +57,6 @@ print_courses(0, "80%"); } - echo "
"; - /// I am not sure this context in the next has_capability call is correct. if (isloggedin() and !isguest() and !has_capability('moodle/course:create', get_context_instance(CONTEXT_SYSTEM, SITEID))) { // Print link to request a new course print_single_button("request.php", NULL, get_string("courserequest"), "get"); @@ -69,7 +67,6 @@ if (has_capability('moodle/site:approvecourse', get_context_instance(CONTEXT_SYSTEM, SITEID)) and !empty($CFG->enablecourserequests)) { print_single_button('pending.php',NULL, get_string('coursespending'),"get"); } - echo "
"; print_footer(); exit; } @@ -279,15 +276,15 @@ /// Print form for creating new categories if (has_capability('moodle/category:create', $context)) { - echo "
"; + echo '
'; echo "
"; + echo '
'; echo ""; echo ""; echo "sesskey\" />"; + echo "
"; echo "
"; - echo "
"; - - echo "
"; + echo ""; } /// Print out the categories with all the knobs @@ -303,7 +300,7 @@ $displaylist[0] = get_string("top"); make_categories_list($displaylist, $parentlist, ""); - echo ""; + echo "
"; echo ""; echo ""; echo ""; diff --git a/lib/weblib.php b/lib/weblib.php index f349f8a087..84b71fbc4d 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -3907,8 +3907,9 @@ function update_mymoodle_icon() { } return "frametarget method=\"get\" action=\"$CFG->wwwroot/my/index.php\">". - "". - ""; + "
". + "". + ""; } /** @@ -3957,10 +3958,11 @@ function update_category_button($categoryid) { } return "
frametarget method=\"get\" action=\"$CFG->wwwroot/course/category.php\">". + ''. "". "". "sesskey\" />". - ""; + ""; } } @@ -3984,9 +3986,10 @@ function update_categories_button() { } return "
frametarget method=\"get\" action=\"$CFG->wwwroot/course/index.php\">". + ''. ''. ''. - ''; + ''; } } @@ -4010,12 +4013,13 @@ function update_categories_search_button($search,$page,$perpage) { } return "
frametarget method=\"get\" action=\"$CFG->wwwroot/course/search.php\">". + ''. "". "sesskey\" />". "". "". "". - ""; + ""; } } @@ -4035,10 +4039,11 @@ function update_group_button($courseid, $groupid) { $string = get_string('editgroupprofile'); return "
frametarget method=\"get\" action=\"$CFG->wwwroot/course/group.php\">". + ''. ''. ''. ''. - ''; + ''; } } @@ -4064,9 +4069,10 @@ function update_groups_button($courseid) { } return "
frametarget method=\"get\" action=\"$CFG->wwwroot/course/groups.php\">". + ''. "". "". - ""; + ""; } }
$strcategories$strcourses$stredit