maintenance_coach.php 1.2 KB

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