From caf261b0c3fa2a9437dd9abed217fdefbde79524 Mon Sep 17 00:00:00 2001 From: moodler Date: Fri, 26 Nov 2004 07:07:06 +0000 Subject: [PATCH] Changes for XHTML and accessibility compatibility --- mod/scorm/details.php | 22 +++++++++--------- mod/scorm/mod.html | 12 +++++----- mod/survey/details.php | 6 ++--- mod/survey/lib.php | 52 +++++++++++++++++++++--------------------- mod/survey/mod.html | 6 ++--- mod/survey/report.php | 4 ++-- 6 files changed, 51 insertions(+), 51 deletions(-) diff --git a/mod/scorm/details.php b/mod/scorm/details.php index a9a5ee73aa..f02dcee707 100755 --- a/mod/scorm/details.php +++ b/mod/scorm/details.php @@ -74,17 +74,17 @@ // print_simple_box_start("center", "", "$THEME->cellheading"); echo "\n"; - echo " \n"; - echo " \n"; + echo " \n"; + echo " \n"; if ($errorlogs != '') { $lines = round(count($errors)/4); if ($lines < 5) { $lines = 5; } - echo " \n"; + echo " \n"; } if (($form->mode == "update") && ($form->launch == 0) && (get_records("scorm_sco_users","scormid",$form->instance))) { - echo " \n"; + echo " \n"; } echo "

$strname:

$form->name

".get_string("validation","scorm").":

".get_string($result,"scorm")."

$strname:$form->name
".get_string("validation","scorm").":".get_string($result,"scorm")."

".get_string("errorlogs","scorm").":

".get_string("errorlogs","scorm").":

".get_string("trackingloose","scorm")."

".get_string("trackingloose","scorm")."
\n"; if (($result == "regular") || ($result == "found")) { @@ -143,7 +143,7 @@ ?> - + - + - +

:

:

:

: =1; $i--) { @@ -169,7 +169,7 @@

:

:
-

+ :
"; } diff --git a/mod/scorm/mod.html b/mod/scorm/mod.html index 0c3cd53496..c66a63d0bc 100755 --- a/mod/scorm/mod.html +++ b/mod/scorm/mod.html @@ -17,9 +17,9 @@
- + -

:

: - + " />
-

:

+ :
reference\" /> "; - button_to_popup_window ("/files/index.php?id=$course->id&choose=form.reference", + echo "reference\" alt=\"$strfilename\" /> "; + button_to_popup_window ("/files/index.php?id=$course->id&choose=form.reference", "coursefiles", $strchooseafile, 500, 750, $strchooseafile); ?>

:

+
:
- - + +

:

name) ?>

:name) ?>
-

:


+ :


diff --git a/mod/survey/lib.php b/mod/survey/lib.php index 7273cb0566..5701c6447e 100644 --- a/mod/survey/lib.php +++ b/mod/survey/lib.php @@ -358,8 +358,8 @@ function survey_print_multi($question) { $stripreferthat = get_string("ipreferthat", "survey"); $strifoundthat = get_string("ifoundthat", "survey"); - echo "

 

\n"; - echo "

$question->text

"; + echo "
\n"; + echo "$question->text
"; echo ""; @@ -374,15 +374,15 @@ function survey_print_multi($question) { } if ($oneanswer) { - echo ""; + echo ""; } else { - echo ""; + echo ""; } while (list ($key, $val) = each ($options)) { - echo "\n"; + echo "\n"; } - echo "\n"; + echo "\n"; $subquestions = get_records_list("survey_questions", "id", $question->multi); @@ -394,32 +394,32 @@ function survey_print_multi($question) { $q->text = get_string($q->text, "survey"); } - echo ""; + echo ""; if ($oneanswer) { - echo ""; - echo ""; + echo ""; + echo ""; for ($i=1;$i<=$numoptions;$i++) { - echo ""; + echo ""; } - echo ""; + echo ""; $checklist["q$P$q->id"] = $numoptions; } else { - echo ""; - echo ""; - echo ""; + echo ""; + echo ""; + echo ""; for ($i=1;$i<=$numoptions;$i++) { - echo ""; + echo ""; } - echo ""; + echo ""; echo ""; - echo ""; - echo ""; + echo ""; + echo ""; for ($i=1;$i<=$numoptions;$i++) { - echo ""; + echo ""; } - echo ""; + echo ""; $checklist["qP$q->id"] = $numoptions; $checklist["q$q->id"] = $numoptions; } @@ -437,20 +437,20 @@ function survey_print_single($question) { $qnum++; - echo "

 

\n"; + echo "
\n"; echo "

$question->intro

$question->intro

$question->intro

$question->intro

$val

$valbody\"> 
body\"> 

$qnum

$q->text

$qnum$q->textid\" value=\"$i\" />id\" value=\"$i\" alt=\"$i\" />id\" value=\"0\" checked=\"checked\" />id\" value=\"0\" checked=\"checked\" alt=\"0\" />

$qnum

$stripreferthat 

$q->text

$qnum$stripreferthat $q->textid\" value=\"$i\" />id\" value=\"$i\" alt=\"$i\"/>body\">id\" value=\"0\" checked=\"checked\" />body\">id\" value=\"0\" checked=\"checked\" alt=\"0\" />

$strifoundthat 

$strifoundthat id\" value=\"$i\" />id\" value=\"$i\" alt=\"$i\" />body\">id\" value=\"0\" checked=\"checked\" />body\">id\" value=\"0\" checked=\"checked\" alt=\"0\" />
\n"; - echo ""; + echo ""; echo ""; - echo "\n"; - echo "\n"; + echo "
$qnum

$question->text

\n"; + echo "

$question->text\n"; if ($question->type == 0) { // Plain text field - echo ""; + echo ""; } else if ($question->type > 0) { // Choose one of a number $strchoose = get_string("choose"); - echo "id\">"; echo ""; $options = explode( ",", $question->options); foreach ($options as $key => $val) { diff --git a/mod/survey/mod.html b/mod/survey/mod.html index 790383d345..d6c1666761 100644 --- a/mod/survey/mod.html +++ b/mod/survey/mod.html @@ -14,13 +14,13 @@ - + - +

:

: - + " />

:

: id, $currentgroup)) { - echo "

"; + echo "

"; survey_print_graph("id=$id&group=$currentgroup&type=overall.png"); - echo ""; + echo "
"; } else { notify(get_string("nobodyyet","survey")); } -- 2.39.5