From: skodak Date: Mon, 18 Dec 2006 17:10:35 +0000 (+0000) Subject: MDL-7957 Add proper form labels to elements in search and settings tabs X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=b71d4dd2140b84ad333f9f03dc8f5aad942b3c50;p=moodle.git MDL-7957 Add proper form labels to elements in search and settings tabs --- diff --git a/message/lib.php b/message/lib.php index 91082316ec..c6cfa2041c 100644 --- a/message/lib.php +++ b/message/lib.php @@ -344,7 +344,7 @@ function message_print_search_results($frm) { /// search for person if (!empty($frm->personsubmit) and !empty($frm->name)) { - if ($frm->mycourses) { + if (optional_param('mycourses', 0, PARAM_BOOL)) { $users = array(); $mycourses = get_my_courses($USER->id); foreach ($mycourses as $mycourse) { @@ -451,7 +451,7 @@ function message_print_search_results($frm) { foreach ($messages as $message) { /// ignore messages to and from blocked users unless $frm->includeblocked is set - if ((!$frm->includeblocked) and ( + if (!optional_param('includeblocked', 0, PARAM_BOOL) and ( ( isset($contacts[$message->useridfrom]) and ($contacts[$message->useridfrom]->blocked == 1)) or ( isset($contacts[$message->useridto] ) and ($contacts[$message->useridto]->blocked == 1)) ) diff --git a/message/messages.php b/message/messages.php index aa4ecdea1a..9c824e8666 100644 --- a/message/messages.php +++ b/message/messages.php @@ -11,8 +11,8 @@ /// Output the header @header('Content-Type: text/html; charset=utf-8'); ?> - -> + +> diff --git a/message/search.html b/message/search.html index a6b3d798fc..e0a3118d53 100644 --- a/message/search.html +++ b/message/search.html @@ -6,45 +6,43 @@ - + - : - + +   - - + -
+ - + - : - + +   - - + -   -   -   +   +   +   -   +   - /> - + /> + - /> - + /> + - /> - + /> + - /> - + /> + - /> - + /> +   - : - + +   - : - + +   - : +