maintenance_coach.php 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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 '../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('session.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', get_lang('Backup')
  23. ) . '&nbsp;&nbsp;' . get_lang('Backup')
  24. );
  25. $url = api_get_path(
  26. WEB_CODE_PATH
  27. ) . 'coursecopy/copy_course_session_selected.php?' . api_get_cidreq();
  28. $link = Display::url(get_lang('CopyCourse'), $url);
  29. ?>
  30. <div class="sectioncomment">
  31. <ul>
  32. <li>
  33. <?php echo $link; ?><br/>
  34. <?php echo get_lang('DescriptionCopyCourse'); ?>
  35. </li>
  36. </ul>
  37. </div>
  38. <?php
  39. Display::display_footer();