Dokeos PHP Cross Reference Learning Management Systems

Source: /main/course_info/postpone.php - 106 lines - 3716 bytes - Summary - Text - Print

Description: 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. |

   1  <?php  // $Id: postpone.php 10204 2006-11-26 20:46:53Z pcool $
   2  /*
   3  ==============================================================================
   4      Dokeos - elearning and course management software
   5  
   6      Copyright (c) 2004 Dokeos S.A.
   7      Copyright (c) 2003 Ghent University (UGent)
   8      Copyright (c) 2001 Universite catholique de Louvain (UCL)
   9  
  10      For a full list of contributors, see "credits.txt".
  11      The full license can be read in "license.txt".
  12  
  13      This program is free software; you can redistribute it and/or
  14      modify it under the terms of the GNU General Public License
  15      as published by the Free Software Foundation; either version 2
  16      of the License, or (at your option) any later version.
  17  
  18      See the GNU General Public License for more details.
  19  
  20      Contact address: Dokeos, 44 rue des palais, B-1030 Brussels, Belgium
  21      Mail: info@dokeos.com
  22  ==============================================================================
  23  */
  24  /**
  25  ==============================================================================
  26  * MODIFY COURSE INFO                                          |
  27  * Modify course settings like:                                         |
  28  * 1. Course title                                                     |
  29  * 2. Department                                                     |
  30  * 3. Course description URL in the university web                     |
  31  * Course code cannot be modified, because it gives the name for the     |
  32  * course database and course web directory. Professor cannot be          |
  33  * changed either as it determines who is allowed to modify the course. |
  34  *
  35  *
  36  *    @author Thomas Depraetere
  37  *    @author Hugues Peeters
  38  *    @author Christophe Gesche
  39  *
  40  *    @package dokeos.course_info
  41  ==============================================================================
  42  */
  43  
  44  /*
  45  ==============================================================================
  46          INIT SECTION
  47  ==============================================================================
  48  */
  49  
  50  // name of the language file that needs to be included
  51  $language_file = "postpone";
  52  //$interbreadcrumb[]= array ("url"=>"index.php", "name"=> get_lang('Admin'));
  53  $htmlHeadXtra[] = "
  54  <style type=\"text/css\">
  55  <!--
  56  .month {font-weight : bold;color : #FFFFFF;background-color : #4171B5;padding-left : 15px;padding-right : 15px;}
  57  .content {position: relative; left: 25px;}
  58  -->
  59  </style>
  60  <STYLE media=\"print\" type=\"text/css\">
  61  TD {border-bottom: thin dashed Gray;}
  62  </STYLE>";
  63  include ('../inc/global.inc.php');
  64  $this_section=SECTION_COURSES;
  65  
  66  include(api_get_path(LIBRARY_PATH).'debug.lib.inc.php');
  67  Display::display_tool_header($nameTools,"Settings");
  68  
  69  //include(api_get_path(CONFIGURATION_PATH)."postpone.conf.php");
  70  
  71  $nameTools = get_lang('Postpone');
  72  $TABLECOURSE    = Database::get_main_table(TABLE_MAIN_COURSE);
  73  $is_allowedToEdit             = $is_courseAdmin;
  74  $currentCourseID             = $_course['sysCode'];
  75  $currentCourseRepository     = $_course["path"];
  76  
  77  
  78  $sqlCourseExtention             = "SELECT last_visit, last_edit, creation_date, expiration_date FROM ".$TABLECOURSE." WHERE code = '".$_cid."'";
  79  $resultCourseExtention             = Database::query($sqlCourseExtention,__FILE__,__LINE__);
  80  $currentCourseExtentionData     = Database::fetch_array($resultCourseExtention);
  81  $currentCourseLastVisit         = $currentCourseExtentionData["last_visit"];
  82  $currentCourseLastEdit            = $currentCourseExtentionData["last_edit"];
  83  $currentCourseCreationDate         = $currentCourseExtentionData["creation_date"];
  84  $currentCourseExpirationDate    = $currentCourseExtentionData["expiration_date"];
  85  // HERE YOU CAN EDIT YOUR RULES TO EXTEND THE LIFE OF COURSE
  86  
  87  // $newCourseExpirationDate    = now() + $extendDelay
  88  
  89  
  90  
  91  ?>
  92  <h3>
  93      <?php echo $nameTools ?>
  94  </h3>
  95  <?php //echo get_lang('SubTitle'); ?>
  96  
  97  
  98  This script  would be  called  by
  99      professor,
 100      or administrator,
 101      or other  script
 102  to give more time to a course before expiration.
 103  
 104  <?php
 105  Display::display_footer();
 106  ?>

title

Description

title

Description

title

Description

title

title

Body