|
@@ 3639-3673 (lines=35) @@
|
| 3636 |
|
$params = array(); |
| 3637 |
|
$params['right_actions'] = ''; |
| 3638 |
|
|
| 3639 |
|
if (api_is_platform_admin()) { |
| 3640 |
|
if ($load_dirs) { |
| 3641 |
|
$params['right_actions'] .= '<a id="document_preview_' . $course_info['real_id'] . '_0" class="document_preview" href="javascript:void(0);">' . Display::return_icon('folder.png', |
| 3642 |
|
get_lang('Documents'), array('align' => 'absmiddle'), ICON_SIZE_SMALL) . '</a>'; |
| 3643 |
|
$params['right_actions'] .= '<a href="' . api_get_path(WEB_CODE_PATH) . 'course_info/infocours.php?cidReq=' . $course['code'] . '">' . Display::return_icon('edit.png', |
| 3644 |
|
get_lang('Edit'), array('align' => 'absmiddle'), ICON_SIZE_SMALL) . '</a>'; |
| 3645 |
|
$params['right_actions'] .= Display::div('', array( |
| 3646 |
|
'id' => 'document_result_' . $course_info['real_id'] . '_0', |
| 3647 |
|
'class' => 'document_preview_container' |
| 3648 |
|
)); |
| 3649 |
|
} else { |
| 3650 |
|
$params['right_actions'] .= '<a href="' . api_get_path(WEB_CODE_PATH) . 'course_info/infocours.php?cidReq=' . $course['code'] . '">' . Display::return_icon('edit.png', |
| 3651 |
|
get_lang('Edit'), array('align' => 'absmiddle'), ICON_SIZE_SMALL) . '</a>'; |
| 3652 |
|
} |
| 3653 |
|
|
| 3654 |
|
if ($course_info['status'] == COURSEMANAGER) { |
| 3655 |
|
//echo Display::return_icon('teachers.gif', get_lang('Status').': '.get_lang('Teacher'), array('style'=>'width: 11px; height: 11px;')); |
| 3656 |
|
} |
| 3657 |
|
} else { |
| 3658 |
|
if ($course_info['visibility'] != COURSE_VISIBILITY_CLOSED) { |
| 3659 |
|
if ($load_dirs) { |
| 3660 |
|
$params['right_actions'] .= '<a id="document_preview_' . $course_info['real_id'] . '_0" class="document_preview" href="javascript:void(0);">' . Display::return_icon('folder.png', |
| 3661 |
|
get_lang('Documents'), array('align' => 'absmiddle'), ICON_SIZE_SMALL) . '</a>'; |
| 3662 |
|
$params['right_actions'] .= Display::div('', array( |
| 3663 |
|
'id' => 'document_result_' . $course_info['real_id'] . '_0', |
| 3664 |
|
'class' => 'document_preview_container' |
| 3665 |
|
)); |
| 3666 |
|
} else { |
| 3667 |
|
if ($course_info['status'] == COURSEMANAGER) { |
| 3668 |
|
$params['right_actions'] .= '<a href="' . api_get_path(WEB_CODE_PATH) . 'course_info/infocours.php?cidReq=' . $course['code'] . '">' . Display::return_icon('edit.png', |
| 3669 |
|
get_lang('Edit'), array('align' => 'absmiddle'), ICON_SIZE_SMALL) . '</a>'; |
| 3670 |
|
} |
| 3671 |
|
} |
| 3672 |
|
} |
| 3673 |
|
} |
| 3674 |
|
|
| 3675 |
|
$course_title_url = ''; |
| 3676 |
|
if ($course_info['visibility'] != COURSE_VISIBILITY_CLOSED || $course['status'] == COURSEMANAGER) { |
|
@@ 5735-5758 (lines=24) @@
|
| 5732 |
|
$params = array(); |
| 5733 |
|
$params['right_actions'] = ''; |
| 5734 |
|
|
| 5735 |
|
if (api_is_platform_admin()) { |
| 5736 |
|
if ($loadDirs) { |
| 5737 |
|
$params['right_actions'] .= '<a id="document_preview_'.$course_info['real_id'].'_0" class="document_preview" href="javascript:void(0);">'.Display::return_icon('folder.png', get_lang('Documents'), array('align' => 'absmiddle'),ICON_SIZE_SMALL).'</a>'; |
| 5738 |
|
$params['right_actions'] .= '<a href="'.api_get_path(WEB_CODE_PATH).'course_info/infocours.php?cidReq='.$course['code'].'">'.Display::return_icon('edit.png', get_lang('Edit'), array('align' => 'absmiddle'),ICON_SIZE_SMALL).'</a>'; |
| 5739 |
|
$params['right_actions'] .= Display::div('', array('id' => 'document_result_'.$course_info['real_id'].'_0', 'class'=>'document_preview_container')); |
| 5740 |
|
} else { |
| 5741 |
|
$params['right_actions'].= '<a href="'.api_get_path(WEB_CODE_PATH).'course_info/infocours.php?cidReq='.$course['code'].'">'.Display::return_icon('edit.png', get_lang('Edit'), array('align' => 'absmiddle'),ICON_SIZE_SMALL).'</a>'; |
| 5742 |
|
} |
| 5743 |
|
|
| 5744 |
|
if ($course_info['status'] == COURSEMANAGER) { |
| 5745 |
|
//echo Display::return_icon('teachers.gif', get_lang('Status').': '.get_lang('Teacher'), array('style'=>'width: 11px; height: 11px;')); |
| 5746 |
|
} |
| 5747 |
|
} else { |
| 5748 |
|
if ($course_info['visibility'] != COURSE_VISIBILITY_CLOSED) { |
| 5749 |
|
if ($loadDirs) { |
| 5750 |
|
$params['right_actions'] .= '<a id="document_preview_'.$course_info['real_id'].'_0" class="document_preview" href="javascript:void(0);">'.Display::return_icon('folder.png', get_lang('Documents'), array('align' => 'absmiddle'),ICON_SIZE_SMALL).'</a>'; |
| 5751 |
|
$params['right_actions'] .= Display::div('', array('id' => 'document_result_'.$course_info['real_id'].'_0', 'class'=>'document_preview_container')); |
| 5752 |
|
} else { |
| 5753 |
|
if ($course_info['status'] == COURSEMANAGER) { |
| 5754 |
|
$params['right_actions'].= '<a href="'.api_get_path(WEB_CODE_PATH).'course_info/infocours.php?cidReq='.$course['code'].'">'.Display::return_icon('edit.png', get_lang('Edit'), array('align' => 'absmiddle'),ICON_SIZE_SMALL).'</a>'; |
| 5755 |
|
} |
| 5756 |
|
} |
| 5757 |
|
} |
| 5758 |
|
} |
| 5759 |
|
|
| 5760 |
|
$course_title_url = ''; |
| 5761 |
|
if ($course_info['visibility'] != COURSE_VISIBILITY_CLOSED || $course['status'] == COURSEMANAGER) { |