maintenance_coach.php 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. // Language files that need to be included
  13. $language_file = array('admin', 'create_course', 'course_info', 'coursebackup');
  14. require_once '../inc/global.inc.php';
  15. $current_course_tool = TOOL_COURSE_MAINTENANCE;
  16. $this_section = SECTION_COURSES;
  17. $nameTools = get_lang('Maintenance');
  18. api_protect_course_script(true);
  19. api_block_anonymous_users();
  20. if (!isset($_configuration['allow_session_course_copy_for_teachers'])
  21. || !$_configuration['allow_session_course_copy_for_teachers']){
  22. api_not_allowed(true);
  23. }
  24. Display :: display_header($nameTools);
  25. echo Display::page_subheader(
  26. Display::return_icon(
  27. 'save_import.gif', get_lang('backup')
  28. ) . '&nbsp;&nbsp;' . get_lang('backup')
  29. );
  30. $url = api_get_path(
  31. WEB_CODE_PATH
  32. ) . 'coursecopy/copy_course_session_selected.php?' . api_get_cidreq();
  33. $link = Display::url(get_lang('CopyCourse'), $url);
  34. ?>
  35. <div class="sectioncomment">
  36. <ul>
  37. <li>
  38. <?php echo $link; ?><br/>
  39. <?php echo get_lang('DescriptionCopyCourse'); ?>
  40. </li>
  41. </ul>
  42. </div>
  43. <?php
  44. Display::display_footer();