echo CFile::ShowImage($str_DETAIL_PICTURE, 200, 200, "border=0", "", true); } ?> </td> <?php } ?> </tr> <?php $tabControl->EndCustomField("DETAIL_PICTURE"); // Tab: Relations if ($LESSON_ID > 0 && CLearnAccessMacroses::CanUserViewLessonRelations(array('lesson_id' => $LESSON_ID))) { $tabControl->BeginNextFormTab(); $tabControl->BeginCustomField("_RELATIONS", '', false); echo '<tr><td>'; CLearnRelationHelper::RenderForm($oAccess, $LESSON_ID, $arOPathes); echo '</td></tr>'; $tabControl->EndCustomField("_RELATIONS", '<input type="hidden" id="SKIP_RELATIONS_SAVING" name="SKIP_RELATIONS_SAVING" value="Y">'); } else { /* $tabControl->BeginNextFormTab(); $tabControl->BeginCustomField("_RELATIONS", '', false); if ($LESSON_ID > 0) { echo '<tr><td>' . GetMessage('LEARNING_ACCESS_D_FOR_EDIT_CONTENT') . '</td></tr>'; } else {
<textarea style="width:100%; height:250px;" name="DETAIL_TEXT" wrap="off"><?php echo $str_DETAIL_TEXT; ?> </textarea> </td> </tr> <?php } $tabControl->EndCustomField("DETAIL_TEXT"); // Tab: Relations if ($COURSE_ID > 0) { $linkedLessonId = CCourse::CourseGetLinkedLesson($COURSE_ID); $tabControl->BeginNextFormTab(); $tabControl->BeginCustomField("_RELATIONS", '', false); echo '<tr><td>'; CLearnRelationHelper::RenderForm($oAccess, $linkedLessonId, $arOPathes); echo '</td></tr>'; $tabControl->EndCustomField("_RELATIONS"); } $tabControl->BeginNextFormTab(); $tabControl->BeginCustomField("__GESGSTR", '', false); if ($COURSE_ID > 0) { $linkedLessonId = CCourse::CourseGetLinkedLesson($COURSE_ID); if ($linkedLessonId !== false && $oAccess->IsLessonAccessible($linkedLessonId, CLearnAccess::OP_LESSON_MANAGE_RIGHTS)) { $readOnly = false; } else { $readOnly = true; } CLearnRenderRightsEdit::RenderLessonRightsTab($USER->GetID(), 'LESSON_RIGHTS', $linkedLessonId, $readOnly); } else { if ($oAccess->IsBaseAccess(CLearnAccess::OP_LESSON_MANAGE_RIGHTS)) {