From 3a7660062e5805281188f1af95fe56b6935c2877 Mon Sep 17 00:00:00 2001 From: Patrick Cool Date: Tue, 3 Apr 2007 17:00:22 +0200 Subject: [PATCH] [svn r11855] improve xhtml compliance --- main/calendar/agenda.inc.php | 14 +++++++------- main/course_home/3column.php | 22 ++++++++++++++-------- main/course_home/course_home.php | 10 ++++++++-- main/exercice/exercise.class.php | 4 ++-- main/inc/lib/add_course.lib.inc.php | 4 ++-- main/inc/lib/display.lib.php | 2 +- 6 files changed, 34 insertions(+), 22 deletions(-) diff --git a/main/calendar/agenda.inc.php b/main/calendar/agenda.inc.php index 0b2d2c87e3..b869c87d48 100644 --- a/main/calendar/agenda.inc.php +++ b/main/calendar/agenda.inc.php @@ -1,4 +1,4 @@ - ".get_lang("AgendaAdd")."
"; + echo "
  • \"".get_lang('MoreStats')."\" ".get_lang("AgendaAdd")."
  • "; if (empty ($_SESSION['toolgroup'])) { echo "
  • ".get_lang(UserGroupFilter)."
    "; @@ -1054,11 +1054,11 @@ function display_student_links() global $show; if ($_SESSION['sort'] == 'DESC') { - echo "
  • ".get_lang("AgendaSortChronologicallyUp")."
  • "; + echo "
  • \"".get_lang('AgendaSortChronologicallyUp')."\" ".get_lang("AgendaSortChronologicallyUp")."
  • "; } else { - echo "
  • ".get_lang("AgendaSortChronologicallyDown")."
  • "; + echo "
  • \"".get_lang('AgendaSortChronologicallyDown')."\" ".get_lang("AgendaSortChronologicallyDown")."
  • "; } // showing the link to show all items or only those of the current month @@ -1495,20 +1495,20 @@ function display_agenda_items() // the icons. If the message is sent to one or more specific users/groups // we add the groups icon // 2do: if it is sent to groups we display the group icon, if it is sent to a user we show the user icon - echo ""; + echo ""; if ($myrow['to_group_id']!=='0') { echo ""; } echo " ".$myrow['title']."\n"; - echo "\t\t\n"; + echo "\t\t\n"; // the message has been sent to echo "\t\t".get_lang("SentTo").": "; $sent_to=sent_to(TOOL_CALENDAR_EVENT, $myrow["ref"]); $sent_to_form=sent_to_form($sent_to); echo $sent_to_form; - echo "\n\t\n"; + echo "\n\t\n"; /*-------------------------------------------------- display: the title diff --git a/main/course_home/3column.php b/main/course_home/3column.php index 933d055e75..0e8d3d2057 100644 --- a/main/course_home/3column.php +++ b/main/course_home/3column.php @@ -92,11 +92,13 @@ if (is_allowed_to_edit()) $toolsRow = mysql_fetch_array($result); $tool_name = htmlspecialchars($toolsRow['name'] != "" ? $toolsRow['name'] : $toolsRow['link']); if($toolsRow['img'] != "external.gif") + { $toolsRow['link']=$clarolineRepositoryWeb.$toolsRow['link']; + } $toolsRow['image']=$clarolineRepositoryWeb."img/".$toolsRow['image']; echo "


    \n"; - echo "\n", + echo "
    \n", "\n", "\n", "
    \n", "\"\"","\n", @@ -108,7 +110,7 @@ if (is_allowed_to_edit()) "
       \n", "",get_lang('No'),"\n", " | \n", - "",get_lang('Yes'),"\n", + "",get_lang('Yes'),"\n", "
    \n"; echo "


    \n"; @@ -239,7 +241,7 @@ if ($is_platformAdmin and is_allowed_to_edit()) "
       \n", "",get_lang('No'),"\n", " | \n", - "",get_lang('Yes'),"\n", + "",get_lang('Yes'),"\n", "\n", "


    \n", "\n", @@ -260,15 +262,17 @@ if ($is_platformAdmin and is_allowed_to_edit()) } -echo "\n"; +echo "
    \n"; /*========================== TOOLS FOR EVERYBODY ==========================*/ echo "\n\n\n"; +echo "\n\n\n"; /*========================== @@ -277,12 +281,13 @@ showtools2('External'); if (is_allowed_to_edit()) { - echo "\n", + echo "\n", "\n","\n","\n"; - + echo "\n\n\n"; } @@ -293,13 +298,14 @@ if (is_allowed_to_edit()) if ($is_platformAdmin and is_allowed_to_edit()) { echo "","","\n", "\n","\n","\n"; - + echo "\n\n\n"; } echo "
     
    "; showtools2('Basic'); showtools2('External'); +echo "


    \n", "\n",get_lang('CourseAdminOnly'),"\n", "
    "; showtools2('courseAdmin'); + echo "
    ", - "
    ", + "
    ", "
    \n", "",get_lang('PlatformAdminOnly'),"\n", "
    "; showtools2('claroAdmin'); + echo "
    \n"; diff --git a/main/course_home/course_home.php b/main/course_home/course_home.php index dc7f02e12f..c617fe2a24 100644 --- a/main/course_home/course_home.php +++ b/main/course_home/course_home.php @@ -1,4 +1,4 @@ - +