maintenance_coach.php 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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. /**
  10. * Code
  11. */
  12. require_once '../inc/global.inc.php';
  13. $current_course_tool = TOOL_COURSE_MAINTENANCE;
  14. $this_section = SECTION_COURSES;
  15. $nameTools = get_lang('Maintenance');
  16. api_protect_course_script(true);
  17. api_block_anonymous_users();
  18. $sessionsCopy = api_get_setting('allow_session_course_copy_for_teachers');
  19. if ($sessionsCopy !== 'true') {
  20. api_not_allowed(true);
  21. }
  22. Display :: display_header($nameTools);
  23. echo Display::page_subheader(
  24. Display::return_icon(
  25. 'save_import.gif', get_lang('Backup')
  26. ) . '&nbsp;&nbsp;' . get_lang('Backup')
  27. );
  28. $url = api_get_path(
  29. WEB_CODE_PATH
  30. ) . 'coursecopy/copy_course_session_selected.php?' . api_get_cidreq();
  31. $link = Display::url(get_lang('CopyCourse'), $url);
  32. ?>
  33. <div class="sectioncomment">
  34. <ul>
  35. <li>
  36. <?php echo $link; ?><br/>
  37. <?php echo get_lang('DescriptionCopyCourse'); ?>
  38. </li>
  39. </ul>
  40. </div>
  41. <?php
  42. Display::display_footer();