Chamilo is a learning management system focused on ease of use and accessibility
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
chamilo-lms/main/course_info/postpone.php

106 lines
3.6 KiB

<?php // $Id: postpone.php 10204 2006-11-26 20:46:53Z pcool $
/*
==============================================================================
Dokeos - elearning and course management software
Copyright (c) 2004 Dokeos S.A.
Copyright (c) 2003 Ghent University (UGent)
Copyright (c) 2001 Universite catholique de Louvain (UCL)
For a full list of contributors, see "credits.txt".
The full license can be read in "license.txt".
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
See the GNU General Public License for more details.
Contact address: Dokeos, 44 rue des palais, B-1030 Brussels, Belgium
Mail: info@dokeos.com
==============================================================================
*/
/**
==============================================================================
* MODIFY COURSE INFO |
* Modify course settings like: |
* 1. Course title |
* 2. Department |
* 3. Course description URL in the university web |
* Course code cannot be modified, because it gives the name for the |
* course database and course web directory. Professor cannot be |
* changed either as it determines who is allowed to modify the course. |
*
*
* @author Thomas Depraetere
* @author Hugues Peeters
* @author Christophe Gesche
*
* @package dokeos.course_info
==============================================================================
*/
/*
==============================================================================
INIT SECTION
==============================================================================
*/
// name of the language file that needs to be included
$language_file = "postpone";
//$interbreadcrumb[]= array ("url"=>"index.php", "name"=> get_lang('Admin'));
$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");
//include(api_get_path(CONFIGURATION_PATH)."postpone.conf.php");
$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);
$currentCourseExtentionData = Database::fetch_array($resultCourseExtention);
$currentCourseLastVisit = $currentCourseExtentionData["last_visit"];
$currentCourseLastEdit = $currentCourseExtentionData["last_edit"];
$currentCourseCreationDate = $currentCourseExtentionData["creation_date"];
$currentCourseExpirationDate = $currentCourseExtentionData["expiration_date"];
// HERE YOU CAN EDIT YOUR RULES TO EXTEND THE LIFE OF COURSE
// $newCourseExpirationDate = now() + $extendDelay
?>
<h3>
<?php echo $nameTools ?>
</h3>
<?php //echo get_lang('SubTitle'); ?>
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();
?>