123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106 |
- <?php
- $language_file = "postpone";
- $htmlHeadXtra[] = "
- <style type=\"text/css\">
- <!--
- .month {font-weight : bold;color : #FFFFFF;background-color : #4171B5;padding-left : 15px;padding-right : 15px;}
- .content {position: relative; left: 25px;}
- -->
- </style>
- <STYLE media=\"print\" type=\"text/css\">
- TD {border-bottom: thin dashed Gray;}
- </STYLE>";
- include('../inc/global.inc.php');
- $this_section=SECTION_COURSES;
- include(api_get_path(LIBRARY_PATH).'debug.lib.inc.php');
- Display::display_header($nameTools,"Settings");
- $nameTools = get_lang('Postpone');
- $TABLECOURSE = Database::get_main_table(TABLE_MAIN_COURSE);
- $is_allowedToEdit = $is_courseAdmin;
- $currentCourseID = $_course['sysCode'];
- $currentCourseRepository = $_course["path"];
- $sqlCourseExtention = "SELECT last_visit, last_edit, creation_date, expiration_date FROM ".$TABLECOURSE." WHERE code = '".$_cid."'";
- $resultCourseExtention = Database::query($sqlCourseExtention,__FILE__,__LINE__);
- $currentCourseExtentionData = mysql_fetch_array($resultCourseExtention);
- $currentCourseLastVisit = $currentCourseExtentionData["last_visit"];
- $currentCourseLastEdit = $currentCourseExtentionData["last_edit"];
- $currentCourseCreationDate = $currentCourseExtentionData["creation_date"];
- $currentCourseExpirationDate = $currentCourseExtentionData["expiration_date"];
- ?>
- <h3>
- <?php echo $nameTools ?>
- </h3>
- <?php
- This script would be called by
- professor,
- or administrator,
- or other script
- to give more time to a course before expiration.
- <?php
- Display::display_footer();
- ?>
|