maintenance.php 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. <?php
  2. /* For licensing terms, see /license.txt */
  3. /**
  4. * @author Created on 18 October 2006 by Elixir Interactive http://www.elixir-interactive.com
  5. *
  6. * @package chamilo.course_info
  7. */
  8. require_once __DIR__.'/../inc/global.inc.php';
  9. $current_course_tool = TOOL_COURSE_MAINTENANCE;
  10. $this_section = SECTION_COURSES;
  11. $nameTools = get_lang('Maintenance');
  12. api_protect_course_script(true);
  13. api_block_anonymous_users();
  14. // Check access rights (only teachers are allowed here)
  15. if (!api_is_allowed_to_edit()) {
  16. api_not_allowed(true);
  17. }
  18. Display::display_header($nameTools);
  19. echo Display::page_header($nameTools);
  20. ?>
  21. <div class="sectiontitle">
  22. <?php Display::display_icon('save_import.gif', get_lang('Backup')); ?>&nbsp;&nbsp;
  23. <?php echo get_lang('Backup'); ?>
  24. </div>
  25. <div class="sectioncomment">
  26. <ul>
  27. <li>
  28. <a href="../coursecopy/create_backup.php?<?php echo api_get_cidreq(); ?>">
  29. <?php echo get_lang('CreateBackup'); ?>
  30. </a><br/>
  31. <?php echo get_lang('CreateBackupInfo'); ?>
  32. </li>
  33. <li>
  34. <a href="../coursecopy/import_backup.php?<?php echo api_get_cidreq(); ?>">
  35. <?php echo get_lang('ImportBackup'); ?>
  36. </a><br/>
  37. <?php echo get_lang('ImportBackupInfo'); ?>
  38. </li>
  39. <li>
  40. <a href="../coursecopy/import_moodle.php?<?php echo api_get_cidreq(); ?>">
  41. <?php echo get_lang('ImportFromMoodle'); ?>
  42. </a><br/>
  43. <?php echo get_lang('ImportFromMoodleInfo'); ?>
  44. </li>
  45. </ul>
  46. </div>
  47. <div class="sectiontitle">
  48. <?php Display::display_icon('copy.gif', get_lang('CopyCourse')); ?>&nbsp;&nbsp;
  49. <a href="../coursecopy/copy_course.php?<?php echo api_get_cidreq(); ?>">
  50. <?php echo get_lang('CopyCourse'); ?></a>
  51. </div>
  52. <div class="sectioncomment"><?php echo get_lang('DescriptionCopyCourse'); ?>
  53. </div>
  54. <div class="sectiontitle">
  55. <?php Display::display_icon('tool_delete.gif', get_lang('recycle_course')); ?>&nbsp;&nbsp;
  56. <a href="../coursecopy/recycle_course.php?<?php echo api_get_cidreq(); ?>">
  57. <?php echo get_lang('recycle_course'); ?>
  58. </a>
  59. </div>
  60. <div class="sectioncomment"><?php echo get_lang('DescriptionRecycleCourse'); ?></div>
  61. <div class="sectiontitle">
  62. <?php Display::display_icon('delete.gif', get_lang('DelCourse')); ?>&nbsp;&nbsp;
  63. <a href="../course_info/delete_course.php?<?php echo api_get_cidreq(); ?>"><?php echo get_lang('DelCourse'); ?>
  64. </a>
  65. </div>
  66. <div class="sectioncomment"><?php echo get_lang('DescriptionDeleteCourse'); ?></div>
  67. <?php
  68. Display::display_footer();