From: moodler Date: Thu, 23 Sep 2004 11:01:22 +0000 (+0000) Subject: Changes for XHTML and accessibility compliance X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=09e8a2f8e8fdf64d22c958a8f2d0759a0c2d1fd1;p=moodle.git Changes for XHTML and accessibility compliance --- diff --git a/lib/uploadlib.php b/lib/uploadlib.php index 66e81e2755..0c773a8977 100644 --- a/lib/uploadlib.php +++ b/lib/uploadlib.php @@ -383,10 +383,11 @@ function upload_print_form_fragment($numfiles=1,$names=null,$descriptions=null,$ if (is_array($descriptions) && !empty($descriptions[$i])) { $str .= ''.$descriptions[$i].'
'; } - $str .= '
'."\n"; + $name = ((is_array($names) && !empty($names[$i])) ? $names[$i] : 'FILE_'.$i); + $str .= '
'."\n"; if ($uselabels) { - $str .= get_string('uploadlabel').'

'."\n"; } } @@ -673,4 +674,4 @@ function clam_change_log($oldpath,$newpath,$update=true) { } } } -?> \ No newline at end of file +?> diff --git a/user/edit.html b/user/edit.html index 5c88cbb923..3e7ab0eb36 100644 --- a/user/edit.html +++ b/user/edit.html @@ -20,7 +20,7 @@ if (isadmin()) { echo ""; echo " ".get_string("username").": "; if ($adminself || is_internal_auth($user->auth) ){ - echo " username); echo "\" />"; if (isset($err["username"])) formerr($err["username"]); @@ -46,7 +46,7 @@ if (isadmin()) { if ($adminself || is_internal_auth($user->auth) || (!empty($CFG->{'auth_'.$user->auth.'_stdchangepassword'}))) { echo ""; echo " ".get_string("newpassword").": "; - echo " newpassword)) { p($user->newpassword); } @@ -65,8 +65,8 @@ if (isadmin()) { $checked = ''; } echo ""; - echo '

'.get_string('forcepasswordchange').':'; - echo ' '.get_string('forcepasswordchangehelp').''; + echo ''.get_string('forcepasswordchange').':'; + echo ' '.get_string('forcepasswordchangehelp').''; echo ""; } @@ -78,21 +78,21 @@ if (isadmin()) { : - + " maxlength="20" value="firstname) ?>" /> : - + " maxlength="20" value="lastname) ?>" /> -

: + : - + " maxlength="100" value="email) ?>" /> @@ -155,9 +155,9 @@ if (isadmin()) { - : + : - + " maxlength="20" value="city) ?>" /> @@ -240,7 +240,7 @@ if (isadmin()) { id, $course->id, $user->picture, false, false, false); if ($user->picture) { - echo '  '; + echo '  '; print_string("delete"); } ?> @@ -273,54 +273,54 @@ if (isadmin()) { : - + " maxlength="255" value="url) ?>" /> : - + " maxlength="15" value="icq) ?>" /> : - + " maxlength="12" value="idnumber) ?>" /> : - + " maxlength="40" value="institution) ?>" /> : - + " maxlength="30" value="department) ?>" /> 1: - + " maxlength="20" value="phone1) ?>" /> 2: - + " maxlength="20" value="phone2) ?>" /> : - + " maxlength="70" value="address) ?>" /> diff --git a/user/view.php b/user/view.php index 8c249a25d9..d34bf3c7e6 100644 --- a/user/view.php +++ b/user/view.php @@ -171,8 +171,8 @@ $switchclick = get_string('emaildisableclick'); $switchpix = 'email.gif'; } - $emailswitch = " id&course=$course->id&$switchparam=$user->id\">". + $emailswitch = " id&course=$course->id&$switchparam=$user->id\">". "pixpath/t/$switchpix\" alt=\"\" />"; } else { $emailswitch = ''; @@ -226,38 +226,38 @@ echo "

"; if ($currentuser and !isguest()) { if ($internalpassword) { - echo ""; + echo ""; } else if (strlen($CFG->changepassword) > 1) { - echo ""; + echo ""; } } if ($course->category and ((isstudent($course->id) and ($user->id == $USER->id) and !isguest() and $CFG->allowunenroll) or (isteacheredit($course->id) and isstudent($course->id, $user->id))) ) { - echo ""; + echo ""; } if (isteacher($course->id) or ($course->showreports and $USER->id == $user->id)) { - echo ""; + echo ""; } if ((isadmin() and !isadmin($user->id)) or (isteacher($course->id) and ($USER->id != $user->id) and !iscreator($user->id))) { - echo ""; + echo ""; } echo ""; echo "

"; + echo "
"; echo "id\" />"; echo ""; - echo "

changepassword\" method=\"get\">"; + echo "
changepassword\" method=\"get\">"; echo ""; - echo "

"; + echo "
"; echo "id\" />"; echo "id\" />"; echo "shortname)."\">"; - echo "

"; + echo "
"; echo "id\" />"; echo "id\" />"; echo ""; - echo "

"; + echo "
"; echo "id\" />"; echo "id\" />"; echo ""; - echo "

\n";