maintenance_coach.php 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <?php
  2. /* For licensing terms, see /license.txt */
  3. /**
  4. * Maintenance for session coach
  5. * @author Julio Montoya <julio.montoya@beeznest.com>
  6. * @author Angel Fernando Quiroz Campos <angel.quiroz@beeznest.com>
  7. * @package chamilo.course_info
  8. */
  9. require_once __DIR__.'/../inc/global.inc.php';
  10. $current_course_tool = TOOL_COURSE_MAINTENANCE;
  11. $this_section = SECTION_COURSES;
  12. $nameTools = get_lang('Maintenance');
  13. api_protect_course_script(true);
  14. api_block_anonymous_users();
  15. $sessionsCopy = api_get_setting('allow_session_course_copy_for_teachers');
  16. if ($sessionsCopy !== 'true') {
  17. api_not_allowed(true);
  18. }
  19. Display :: display_header($nameTools);
  20. echo Display::page_subheader(
  21. Display::return_icon(
  22. 'save_import.gif',
  23. get_lang('Backup')
  24. ).'&nbsp;&nbsp;'.get_lang('Backup')
  25. );
  26. $url = api_get_path(WEB_CODE_PATH).'coursecopy/copy_course_session_selected.php?'.api_get_cidreq();
  27. $link = Display::url(get_lang('CopyCourse'), $url);
  28. ?>
  29. <div class="sectioncomment">
  30. <ul>
  31. <li>
  32. <?php echo $link; ?><br/>
  33. <?php echo get_lang('DescriptionCopyCourse'); ?>
  34. </li>
  35. </ul>
  36. </div>
  37. <?php
  38. Display::display_footer();