[svn r11820] improving xhtml compliance

skala
Patrick Cool 19 years ago
parent 34d48d13dc
commit a0a025f267
  1. 4
      main/css/academica/default.css
  2. 4
      main/css/baby/default.css
  3. 4
      main/css/corporativa/default.css
  4. 4
      main/css/default/default.css
  5. 6
      main/inc/introductionSection.inc.php
  6. 2
      main/inc/lib/add_course.lib.inc.php
  7. 21
      user_portal.php

@ -85,14 +85,14 @@ ul {
*/ */
/* user_portal course status icon */ /* user_portal course status icon */
#coursestatusicons { .coursestatusicons {
float: left; float: left;
clear: left; clear: left;
margin-right: .5em; margin-right: .5em;
} }
/* user_portal course list */ /* user_portal course list */
#courses { .courses {
font-weight: bold; font-weight: bold;
list-style: none; list-style: none;
margin-bottom: .2em; margin-bottom: .2em;

@ -86,14 +86,14 @@ ul {
*/ */
/* user_portal course status icon */ /* user_portal course status icon */
#coursestatusicons { .coursestatusicons {
float: left; float: left;
clear: left; clear: left;
margin-right: .5em; margin-right: .5em;
} }
/* user_portal course list */ /* user_portal course list */
#courses { .courses {
font-weight: bold; font-weight: bold;
list-style: none; list-style: none;
margin-bottom: .2em; margin-bottom: .2em;

@ -84,14 +84,14 @@ ul {
============================================================================== ==============================================================================
*/ */
/* user_portal course status icon */ /* user_portal course status icon */
#coursestatusicons { .coursestatusicons {
float: left; float: left;
clear: left; clear: left;
margin-right: .5em; margin-right: .5em;
} }
/* user_portal course list */ /* user_portal course list */
#courses { .courses {
font-weight: bold; font-weight: bold;
list-style: none; list-style: none;
margin-bottom: .2em; margin-bottom: .2em;

@ -158,7 +158,7 @@ a.invisible:visited {
} }
/* user_portal course status icon */ /* user_portal course status icon */
#coursestatusicons{ .coursestatusicons{
border: 0px solid #000; border: 0px solid #000;
float: left; float: left;
padding-right: 5px; padding-right: 5px;
@ -166,7 +166,7 @@ a.invisible:visited {
} }
/* user_portal course list */ /* user_portal course list */
#courses { .courses {
list-style-type: none; list-style-type: none;
margin-bottom: 5px; margin-bottom: 5px;
} }

@ -160,15 +160,9 @@ if ($intro_dispDefault)
{ {
//$intro_content = make_clickable($intro_content); // make url in text clickable //$intro_content = make_clickable($intro_content); // make url in text clickable
$intro_content = text_filter($intro_content); // parse [tex] codes $intro_content = text_filter($intro_content); // parse [tex] codes
//<img src='../../img/mr_dokeos.png'>
if (!empty($intro_content)) if (!empty($intro_content))
{ {
//$intro_content="<img src='../../main/img/mr_dokeos.png'>".$intro_content;
/*echo "<div id=\"courseintro\"><p>\n",
$intro_content,"\n",
"</p>\n</div>";*/
echo "<table align='center' style='width: 80%;'><tr><td>$intro_content</td></tr></table>"; echo "<table align='center' style='width: 80%;'><tr><td>$intro_content</td></tr></table>";
} }
} }

@ -1763,7 +1763,7 @@ function fill_Db_course($courseDbName, $courseRepository, $language,$default_doc
Introduction text Introduction text
----------------------------------------------------------- -----------------------------------------------------------
*/ */
$intro_text='<table width="100%" border="0" callpadding="0" cellspacing="0"><tr><td width="110" valign="top" align="left"><img src="'.api_get_path(WEB_IMG_PATH).'mr_dokeos.png"></td><td valign="top" align="left">'.lang2db(get_lang('IntroductionText')).'</td></tr></table>'; $intro_text='<table width="100%" border="0" callpadding="0" cellspacing="0"><tr><td width="110" valign="top" align="left"><img src="'.api_get_path(WEB_IMG_PATH).'mr_dokeos.png" alt="mr. Dokeos" title="mr. Dokeos" /></td><td valign="top" align="left">'.lang2db(get_lang('IntroductionText')).'</td></tr></table>';
api_sql_query("INSERT INTO `".$TABLEINTROS . "` VALUES ('" . TOOL_COURSE_HOMEPAGE . "','".$intro_text. "')"); api_sql_query("INSERT INTO `".$TABLEINTROS . "` VALUES ('" . TOOL_COURSE_HOMEPAGE . "','".$intro_text. "')");
api_sql_query("INSERT INTO `".$TABLEINTROS . "` VALUES ('" . TOOL_STUDENTPUBLICATION . "','".lang2db(get_lang('IntroductionTwo')) . "')"); api_sql_query("INSERT INTO `".$TABLEINTROS . "` VALUES ('" . TOOL_STUDENTPUBLICATION . "','".lang2db(get_lang('IntroductionTwo')) . "')");

@ -615,19 +615,22 @@ function get_logged_user_course_html($my_course)
$s_htlm_status_icon=""; $s_htlm_status_icon="";
if($s_course_status==1){ if($s_course_status==1)
$s_htlm_status_icon="<img src='main/img/teachers.gif'>"; {
$s_htlm_status_icon=Display::return_icon('teachers.gif');
} }
if($s_course_status==2){ if($s_course_status==2)
$s_htlm_status_icon="<img src='main/img/coachs.gif'>"; {
$s_htlm_status_icon=Display::return_icon('coachs.gif');
} }
if($s_course_status==5){ if($s_course_status==5)
$s_htlm_status_icon="<img src='main/img/students.gif'>"; {
$s_htlm_status_icon=Display::return_icon('students.gif');
} }
//display course entry //display course entry
$result.="\n\t"; $result.="\n\t";
$result .= '<li id="courses"><div id="coursestatusicons">'.$s_htlm_status_icon.'</div>'; $result .= '<li class="courses"><div class="coursestatusicons">'.$s_htlm_status_icon.'</div>';
//show a hyperlink to the course, unless the course is closed and user is not course admin //show a hyperlink to the course, unless the course is closed and user is not course admin
if ($course_visibility != COURSE_VISIBILITY_CLOSED || $user_in_course_status == COURSEMANAGER) if ($course_visibility != COURSE_VISIBILITY_CLOSED || $user_in_course_status == COURSEMANAGER)
{ {
@ -1037,8 +1040,8 @@ if (is_array($list))
//Courses whithout sessions //Courses whithout sessions
$old_user_category = 0; $old_user_category = 0;
foreach($list as $key=>$value){ foreach($list as $key=>$value)
{
if($value[2]==0){ if($value[2]==0){
$userdefined_categories = get_user_course_categories(); $userdefined_categories = get_user_course_categories();

Loading…
Cancel
Save