| @@ 612-617 (lines=6) @@ | ||
| 609 | Display::return_icon('new_announce.png', get_lang('AddAnnouncement'), '', ICON_SIZE_MEDIUM)."</a>"; |
|
| 610 | } |
|
| 611 | $show_actions = true; |
|
| 612 | } else { |
|
| 613 | if (in_array($action, array('view'))) { |
|
| 614 | $actionsLeft .= "<a href='".api_get_self()."?".api_get_cidreq()."'>". |
|
| 615 | Display::return_icon('back.png', get_lang('Back'), '', ICON_SIZE_MEDIUM)."</a>"; |
|
| 616 | } |
|
| 617 | } |
|
| 618 | ||
| 619 | if ($allowToEdit) { |
|
| 620 | if (api_get_group_id() == 0) { |
|
| @@ 298-301 (lines=4) @@ | ||
| 295 | } |
|
| 296 | } |
|
| 297 | } |
|
| 298 | } else { |
|
| 299 | $result = '<th width="2000px"><span><a href="index.php?'.api_get_cidreq().'&action=calendar_list&attendance_id='.$attendance_id.'">'; |
|
| 300 | $result .= Display::return_icon('attendance_calendar.png',get_lang('AttendanceCalendar'),'',ICON_SIZE_MEDIUM).' '.get_lang('GoToAttendanceCalendar').'</a></span></th>'; |
|
| 301 | } |
|
| 302 | ||
| 303 | echo '<tr class="tableFloatingHeader row_odd" style="position: absolute; top: 0px; left: 0px; visibility: hidden; margin:0px;padding:0px">'; |
|
| 304 | echo $result; |
|
| @@ 216-227 (lines=12) @@ | ||
| 213 | // My Account section |
|
| 214 | if ($show_menu) { |
|
| 215 | $html .= '<ul class="nav nav-pills nav-stacked">'; |
|
| 216 | if ($show_create_link) { |
|
| 217 | $html .= '<li class="add-course"><a href="' . api_get_path(WEB_CODE_PATH) . 'create_course/add_course.php">'. |
|
| 218 | Display::return_icon('new-course.png', get_lang('CourseCreate')).(api_get_setting('course_validation') == 'true' ? get_lang('CreateCourseRequest') : get_lang('CourseCreate')).'</a></li>'; |
|
| 219 | } |
|
| 220 | ||
| 221 | if ($show_course_link) { |
|
| 222 | if (!api_is_drh() && !api_is_session_admin()) { |
|
| 223 | $html .= '<li class="list-course"><a href="'. api_get_path(WEB_CODE_PATH) . 'auth/courses.php">'. |
|
| 224 | Display::return_icon('catalog-course.png', get_lang('CourseCatalog')) .get_lang('CourseCatalog').'</a></li>'; |
|
| 225 | } else { |
|
| 226 | $html .= '<li><a href="' . api_get_path(WEB_CODE_PATH) . 'dashboard/index.php">'.get_lang('Dashboard').'</a></li>'; |
|
| 227 | } |
|
| 228 | } |
|
| 229 | $html .= '</ul>'; |
|
| 230 | } |
|
| @@ 1077-1083 (lines=7) @@ | ||
| 1074 | } |
|
| 1075 | ||
| 1076 | // Course catalog |
|
| 1077 | if ($show_course_link) { |
|
| 1078 | if (!api_is_drh()) { |
|
| 1079 | $my_account_content .= '<li class="list-course"><a href="main/auth/courses.php" >'.Display::return_icon('catalog-course.png',get_lang('CourseCatalog'),null,ICON_SIZE_SMALL).get_lang('CourseCatalog').'</a></li>'; |
|
| 1080 | } else { |
|
| 1081 | $my_account_content .= '<li><a href="main/dashboard/index.php">'.get_lang('Dashboard').'</a></li>'; |
|
| 1082 | } |
|
| 1083 | } |
|
| 1084 | ||
| 1085 | $my_account_content .= '</ul>'; |
|
| 1086 | ||
| @@ 1098-1105 (lines=8) @@ | ||
| 1095 | $params['subtitle'] = isset($session['coach_info']) ? $session['coach_info']['complete_name'] : null.$moved_status; |
|
| 1096 | $params['dates'] = $session['date_message']; |
|
| 1097 | ||
| 1098 | if (api_is_platform_admin()) { |
|
| 1099 | $params['right_actions'] = '<a href="'.api_get_path(WEB_CODE_PATH).'session/resume_session.php?id_session='.$session_id.'">'.Display::return_icon( |
|
| 1100 | 'edit.png', |
|
| 1101 | get_lang('Edit'), |
|
| 1102 | array('align' => 'absmiddle'), |
|
| 1103 | ICON_SIZE_SMALL |
|
| 1104 | ).'</a>'; |
|
| 1105 | } |
|
| 1106 | $html_sessions .= CourseManager::course_item_html($params, true).$html_courses_session; |
|
| 1107 | } |
|
| 1108 | } |
|