|
|
|
|
@ -615,19 +615,22 @@ function get_logged_user_course_html($my_course) |
|
|
|
|
|
|
|
|
|
$s_htlm_status_icon=""; |
|
|
|
|
|
|
|
|
|
if($s_course_status==1){ |
|
|
|
|
$s_htlm_status_icon="<img src='main/img/teachers.gif'>"; |
|
|
|
|
if($s_course_status==1) |
|
|
|
|
{ |
|
|
|
|
$s_htlm_status_icon=Display::return_icon('teachers.gif'); |
|
|
|
|
} |
|
|
|
|
if($s_course_status==2){ |
|
|
|
|
$s_htlm_status_icon="<img src='main/img/coachs.gif'>"; |
|
|
|
|
if($s_course_status==2) |
|
|
|
|
{ |
|
|
|
|
$s_htlm_status_icon=Display::return_icon('coachs.gif'); |
|
|
|
|
} |
|
|
|
|
if($s_course_status==5){ |
|
|
|
|
$s_htlm_status_icon="<img src='main/img/students.gif'>"; |
|
|
|
|
if($s_course_status==5) |
|
|
|
|
{ |
|
|
|
|
$s_htlm_status_icon=Display::return_icon('students.gif'); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
//display course entry |
|
|
|
|
$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 |
|
|
|
|
if ($course_visibility != COURSE_VISIBILITY_CLOSED || $user_in_course_status == COURSEMANAGER) |
|
|
|
|
{ |
|
|
|
|
@ -1037,8 +1040,8 @@ if (is_array($list)) |
|
|
|
|
|
|
|
|
|
//Courses whithout sessions |
|
|
|
|
$old_user_category = 0; |
|
|
|
|
foreach($list as $key=>$value){ |
|
|
|
|
|
|
|
|
|
foreach($list as $key=>$value) |
|
|
|
|
{ |
|
|
|
|
if($value[2]==0){ |
|
|
|
|
|
|
|
|
|
$userdefined_categories = get_user_course_categories(); |
|
|
|
|
|