[svn r10215] a little bit of dumb cleanup work (someone has to do it :-)

skala
Patrick Cool 18 years ago
parent e2ce6a0f7b
commit 1bc3449f01
  1. 38
      main/admin/add_courses_to_session.php
  2. 27
      main/admin/add_users_to_session.php
  3. 27
      main/admin/class_add.php
  4. 26
      main/admin/class_edit.php
  5. 21
      main/admin/class_import.php
  6. 4
      main/admin/class_information.php
  7. 4
      main/admin/class_list.php
  8. 4
      main/admin/configure_homepage.php
  9. 4
      main/admin/course_add.php
  10. 4
      main/admin/course_category.php
  11. 4
      main/admin/course_create_content.php
  12. 4
      main/admin/course_edit.php
  13. 4
      main/admin/course_information.php
  14. 6
      main/admin/course_list.php
  15. 4
      main/admin/course_virtual.php
  16. 13
      main/admin/index.php
  17. 4
      main/admin/resume_session.php
  18. 4
      main/admin/session_add.php
  19. 6
      main/admin/session_course_edit.php
  20. 4
      main/admin/session_course_list.php
  21. 6
      main/admin/session_course_user_list.php
  22. 4
      main/admin/session_edit.php
  23. 2
      main/admin/session_export.php
  24. 2
      main/admin/session_import.php
  25. 2
      main/admin/session_list.php
  26. 11
      main/admin/settings.php
  27. 4
      main/admin/statistics.php
  28. 2
      main/admin/statistics/index.php
  29. 4
      main/admin/subscribe_class2course.php
  30. 4
      main/admin/subscribe_user2class.php
  31. 4
      main/admin/subscribe_user2course.php
  32. 28
      main/admin/system_announcements.php
  33. 4
      main/admin/user_add.php
  34. 6
      main/admin/user_edit.php
  35. 4
      main/admin/user_export.php
  36. 4
      main/admin/user_import.php
  37. 4
      main/admin/user_information.php
  38. 6
      main/admin/user_list.php

@ -30,18 +30,21 @@
// name of the language file that needs to be included
$language_file='admin';
// resetting the course id
$cidReset=true;
// including some necessary dokeos files
require('../inc/global.inc.php');
api_protect_admin_script();
// setting the section (for the tabs)
$this_section = SECTION_PLATFORM_ADMIN;
$id_session=intval($_GET['id_session']);
// Access restrictions
api_protect_admin_script();
$formSent=0;
$errorMsg=$firstLetterCourse=$firstLetterSession='';
$CourseList=$SessionList=array();
$courses=$sessions=array();
// setting breadcrumbs
$interbreadcrumb[] = array('url' => 'index.php', 'name' => get_lang('PlatformAdmin'));
$interbreadcrumb[] = array('url' => 'session_list.php','name' => get_lang('SessionList'));
// Database Table Definitions
$tbl_session_rel_course_rel_user = Database::get_main_table(TABLE_MAIN_SESSION_COURSE_USER);
@ -50,12 +53,20 @@ $tbl_session_rel_user = Database::get_main_table(TABLE_MAIN_SESSION_USER);
$tbl_session_rel_course = Database::get_main_table(TABLE_MAIN_SESSION_COURSE);
$tbl_course = Database::get_main_table(TABLE_MAIN_COURSE);
// setting the name of the tool
$tool_name= get_lang('SubscribeCoursesToSession');
$id_session=intval($_GET['id_session']);
$formSent=0;
$errorMsg=$firstLetterCourse=$firstLetterSession='';
$CourseList=$SessionList=array();
$courses=$sessions=array();
$noPHP_SELF=true;
$tool_name= get_lang('SubscribeCoursesToSession');
$interbreadcrumb[]=array("url" => "index.php","name" => get_lang('AdministrationTools'));
$interbreadcrumb[]=array("url" => "session_list.php","name" => "Liste des sessions");
if($_POST['formSent'])
{
@ -87,12 +98,15 @@ if($_POST['formSent'])
foreach($CourseList as $enreg_course)
{
$exists = false;
foreach($existingCourses as $existingCourse){
if($enreg_course == $existingCourse['course_code']){
foreach($existingCourses as $existingCourse)
{
if($enreg_course == $existingCourse['course_code'])
{
$exists=true;
}
}
if(!$exists){
if(!$exists)
{
api_sql_query("INSERT INTO $tbl_session_rel_course(id_session,course_code, id_coach) VALUES('$id_session','$enreg_course','$id_coach')",__FILE__,__LINE__);

@ -30,18 +30,21 @@
// name of the language file that needs to be included
$language_file='admin';
// resetting the course id
$cidReset=true;
// including some necessary dokeos files
require('../inc/global.inc.php');
api_protect_admin_script();
// setting the section (for the tabs)
$this_section = SECTION_PLATFORM_ADMIN;
$id_session=intval($_GET['id_session']);
// Access restrictions
api_protect_admin_script();
$formSent=0;
$errorMsg=$firstLetterUser=$firstLetterSession='';
$UserList=$SessionList=array();
$users=$sessions=array();
// setting breadcrumbs
$interbreadcrumb[]=array('url' => 'index.php',"name" => get_lang('PlatformAdmin'));
$interbreadcrumb[]=array('url' => "session_list.php","name" => "Liste des sessions");
// Database Table Definitions
$tbl_session = Database::get_main_table(TABLE_MAIN_SESSION);
@ -54,12 +57,18 @@ $tbl_session_rel_user = Database::get_main_table(TABLE_MAIN_SESSION_USER);
$tbl_class = Database::get_main_table(TABLE_MAIN_CLASS);
$tbl_class_user = Database::get_main_table(TABLE_MAIN_CLASS_USER);
// setting the name of the tool
$tool_name=get_lang('SubscribeUsersToSession');
$id_session=intval($_GET['id_session']);
$formSent=0;
$errorMsg=$firstLetterUser=$firstLetterSession='';
$UserList=$SessionList=array();
$users=$sessions=array();
$noPHP_SELF=true;
$tool_name=get_lang('SubscribeUsersToSession');
$interbreadcrumb[]=array("url" => "index.php","name" => get_lang('AdministrationTools'));
$interbreadcrumb[]=array("url" => "session_list.php","name" => "Liste des sessions");
if($_POST['formSent'])
{

@ -1,5 +1,5 @@
<?php
// $Id: class_add.php 10204 2006-11-26 20:46:53Z pcool $
// $Id: class_add.php 10215 2006-11-27 13:57:17Z pcool $
/*
==============================================================================
Dokeos - elearning and course management software
@ -32,12 +32,26 @@
// name of the language file that needs to be included
$language_file = 'admin';
// resetting the course id
$cidReset = true;
include ('../inc/global.inc.php');
$this_section=SECTION_PLATFORM_ADMIN;
// including some necessary dokeos files
require_once('../inc/global.inc.php');
require_once (api_get_path(LIBRARY_PATH).'classmanager.lib.php');
require_once (api_get_path(LIBRARY_PATH).'formvalidator/FormValidator.class.php');
// setting the section (for the tabs)
$this_section = SECTION_PLATFORM_ADMIN;
// Access restrictions
api_protect_admin_script();
// setting breadcrumbs
$interbreadcrumb[] = array('url' => 'index.php', 'name' => get_lang('PlatformAdmin'));
// setting the name of the tool
$tool_name = get_lang("AddClasses");
$form = new FormValidator('add_class');
$form->add_textfield('name',get_lang('ClassName'));
$form->addElement('submit','submit',get_lang('Ok'));
@ -47,10 +61,11 @@ if($form->validate())
ClassManager :: create_class($values['name']);
header('Location: class_list.php');
}
$tool_name = get_lang("AddClasses");
//$interbreadcrumb[] = array ("url" => "index.php", "name" => get_lang('PlatformAdmin'));
// Displaying the header
Display :: display_header($tool_name);
//api_display_tool_title($tool_name);
// Displaying the form
$form->display();
/*
==============================================================================

@ -1,5 +1,5 @@
<?php
// $Id: class_edit.php 10204 2006-11-26 20:46:53Z pcool $
// $Id: class_edit.php 10215 2006-11-27 13:57:17Z pcool $
/*
==============================================================================
@ -32,15 +32,29 @@
// name of the language file that needs to be included
$language_file = 'admin';
// resetting the course id
$cidReset = true;
// including some necessary dokeos files
include ('../inc/global.inc.php');
$this_section=SECTION_PLATFORM_ADMIN;
require_once(api_get_path(LIBRARY_PATH).'classmanager.lib.php');
require_once (api_get_path(LIBRARY_PATH).'formvalidator/FormValidator.class.php');
// setting the section (for the tabs)
$this_section=SECTION_PLATFORM_ADMIN;
// Access restrictions
api_protect_admin_script();
$tool_name = get_lang('ModifyClassInfo');
//$interbreadcrumb[] = array ("url" => "index.php", "name" => get_lang('PlatformAdmin'));
// setting breadcrumbs
$interbreadcrumb[] = array ("url" => 'index.php', "name" => get_lang('PlatformAdmin'));
$interbreadcrumb[] = array ("url" => "class_list.php", "name" => get_lang('AdminClasses'));
// setting the name of the tool
$tool_name = get_lang("AddClasses");
$tool_name = get_lang('ModifyClassInfo');
$class_id = intval($_GET['idclass']);
$class = ClassManager :: get_class_info($class_id);
$form = new FormValidator('edit_class','post','class_edit.php?idclass='.$class_id);
@ -53,8 +67,8 @@ if($form->validate())
ClassManager :: set_name($values['name'], $class_id);
header('Location: class_list.php');
}
$tool_name = get_lang("AddClasses");
//$interbreadcrumb[] = array ("url" => "index.php", "name" => get_lang('PlatformAdmin'));
Display :: display_header($tool_name);
//api_display_tool_title($tool_name);
$form->display();

@ -1,5 +1,5 @@
<?php
// $Id: class_import.php 10204 2006-11-26 20:46:53Z pcool $
// $Id: class_import.php 10215 2006-11-27 13:57:17Z pcool $
/*
==============================================================================
Dokeos - elearning and course management software
@ -27,7 +27,7 @@
==============================================================================
* This tool allows platform admins to add classes by uploading a CSV file
* @todo Add some langvars to DLTT
@package dokeos.admin
* @package dokeos.admin
==============================================================================
*/
/**
@ -79,18 +79,31 @@ function save_data($classes)
// name of the language file that needs to be included
$language_file = array ('admin', 'registration');
// resetting the course id
$cidReset = true;
// including some necessary dokeos files
include ('../inc/global.inc.php');
api_protect_admin_script();
require_once (api_get_path(LIBRARY_PATH).'fileManage.lib.php');
require_once (api_get_path(LIBRARY_PATH).'classmanager.lib.php');
require_once (api_get_path(LIBRARY_PATH).'import.lib.php');
require_once (api_get_path(LIBRARY_PATH).'formvalidator/FormValidator.class.php');
// setting the section (for the tabs)
$this_section = SECTION_PLATFORM_ADMIN;
// Access restrictions
api_protect_admin_script();
// setting breadcrumbs
$interbreadcrumb[] = array ("url" => 'index.php', "name" => get_lang('PlatformAdmin'));
// Database Table Definitions
// setting the name of the tool
$tool_name = get_lang('ImportClassListCSV');
//$interbreadcrumb[] = array ("url" => "index.php", "name" => get_lang('PlatformAdmin'));
// Displaying the header
Display :: display_header($tool_name);
//api_display_tool_title($tool_name);
$form = new FormValidator('import_classes');

@ -1,4 +1,4 @@
<?php // $Id: class_information.php 10204 2006-11-26 20:46:53Z pcool $
<?php // $Id: class_information.php 10215 2006-11-27 13:57:17Z pcool $
/*
==============================================================================
Dokeos - elearning and course management software
@ -48,7 +48,7 @@ if( !isset($_GET['id']))
{
api_not_allowed();
}
//$interbreadcrumb[] = array ("url" => "index.php", "name" => get_lang('PlatformAdmin'));
//$interbreadcrumb[] = array ("url" => 'index.php', "name" => get_lang('PlatformAdmin'));
$interbreadcrumb[] = array ("url" => 'class_list.php', "name" => get_lang('AdminClasses'));
$class_id = $_GET['id'];
$class = ClassManager::get_class_info($class_id);

@ -1,5 +1,5 @@
<?php
// $Id: class_list.php 10204 2006-11-26 20:46:53Z pcool $
// $Id: class_list.php 10215 2006-11-27 13:57:17Z pcool $
/*
==============================================================================
Dokeos - elearning and course management software
@ -95,7 +95,7 @@ require (api_get_path(LIBRARY_PATH).'fileManage.lib.php');
require (api_get_path(LIBRARY_PATH).'classmanager.lib.php');
require_once (api_get_path(LIBRARY_PATH).'formvalidator/FormValidator.class.php');
$tool_name = get_lang('ClassList');
//$interbreadcrumb[] = array ("url" => "index.php", "name" => get_lang('PlatformAdmin'));
//$interbreadcrumb[] = array ("url" => 'index.php', "name" => get_lang('PlatformAdmin'));
Display :: display_header($tool_name);
//api_display_tool_title($tool_name);

@ -1,4 +1,4 @@
<?php // $Id: configure_homepage.php 10204 2006-11-26 20:46:53Z pcool $
<?php // $Id: configure_homepage.php 10215 2006-11-27 13:57:17Z pcool $
/*
==============================================================================
Dokeos - elearning and course management software
@ -39,7 +39,7 @@ $tbl_category=Database::get_main_table(TABLE_MAIN_CATEGORY);
$tool_name=get_lang('ConfigureHomePage');
//$interbreadcrumb[]=array("url" => "index.php","name" => get_lang('PlatformAdmin'));
//$interbreadcrumb[]=array('url' => 'index.php',"name" => get_lang('PlatformAdmin'));
$menu_language=$_SESSION['user_language_choice'];

@ -1,5 +1,5 @@
<?php
// $Id: course_add.php 10204 2006-11-26 20:46:53Z pcool $
// $Id: course_add.php 10215 2006-11-27 13:57:17Z pcool $
/*
==============================================================================
Dokeos - elearning and course management software
@ -47,7 +47,7 @@ require_once (api_get_path(LIBRARY_PATH).'add_course.lib.inc.php');
require_once (api_get_path(LIBRARY_PATH).'formvalidator/FormValidator.class.php');
$table_course = Database::get_main_table(TABLE_MAIN_COURSE);
$tool_name = get_lang('AddCourse');
//$interbreadcrumb[] = array ("url" => "index.php", "name" => get_lang('PlatformAdmin'));
//$interbreadcrumb[] = array ("url" => 'index.php', "name" => get_lang('PlatformAdmin'));
/*
==============================================================================

@ -1,4 +1,4 @@
<?php // $Id: course_category.php 10204 2006-11-26 20:46:53Z pcool $
<?php // $Id: course_category.php 10215 2006-11-27 13:57:17Z pcool $
/*
==============================================================================
Dokeos - elearning and course management software
@ -104,7 +104,7 @@ if(!empty($action))
$tool_name=get_lang('AdminCategories');
//$interbreadcrumb[]=array("url" => "index.php","name" => get_lang('PlatformAdmin'));
//$interbreadcrumb[]=array('url' => 'index.php',"name" => get_lang('PlatformAdmin'));
Display::display_header($tool_name);

@ -1,5 +1,5 @@
<?php
// $Id: course_create_content.php 10204 2006-11-26 20:46:53Z pcool $
// $Id: course_create_content.php 10215 2006-11-27 13:57:17Z pcool $
/*
==============================================================================
Dokeos - elearning and course management software
@ -44,7 +44,7 @@ $this_section=SECTION_PLATFORM_ADMIN;
api_protect_admin_script();
$tool_name = get_lang('DummyCourseCreator');
//$interbreadcrumb[] = array ("url" => "index.php", "name" => get_lang('PlatformAdmin'));
//$interbreadcrumb[] = array ("url" => 'index.php', "name" => get_lang('PlatformAdmin'));
Display::display_header($tool_name);
//api_display_tool_title($tool_name);
if( get_setting('server_type') != 'test')

@ -1,6 +1,6 @@
<?php
// $Id: course_edit.php 10204 2006-11-26 20:46:53Z pcool $
// $Id: course_edit.php 10215 2006-11-27 13:57:17Z pcool $
/*
==============================================================================
Dokeos - elearning and course management software
@ -48,7 +48,7 @@ $course_table = Database::get_main_table(TABLE_MAIN_COURSE);
$course_code = isset($_GET['course_code']) ? $_GET['course_code'] : $_POST['code'];
$noPHP_SELF = true;
$tool_name = get_lang('ModifyCourseInfo');
//$interbreadcrumb[] = array ("url" => "index.php", "name" => get_lang('PlatformAdmin'));
//$interbreadcrumb[] = array ("url" => 'index.php', "name" => get_lang('PlatformAdmin'));
$interbreadcrumb[] = array ("url" => "course_list.php", "name" => get_lang('AdminCourses'));
/*
-----------------------------------------------------------

@ -1,5 +1,5 @@
<?php
// $Id: course_information.php 10204 2006-11-26 20:46:53Z pcool $
// $Id: course_information.php 10215 2006-11-27 13:57:17Z pcool $
/*
==============================================================================
Dokeos - elearning and course management software
@ -82,7 +82,7 @@ if (!isset ($_GET['code']))
{
api_not_allowed();
}
//$interbreadcrumb[] = array ("url" => "index.php", "name" => get_lang('PlatformAdmin'));
//$interbreadcrumb[] = array ("url" => 'index.php', "name" => get_lang('PlatformAdmin'));
$interbreadcrumb[] = array ("url" => 'course_list.php', "name" => get_lang('Courses'));
$table_course = Database :: get_main_table(TABLE_MAIN_COURSE);
$code = $_GET['code'];

@ -1,5 +1,5 @@
<?php
// $Id: course_list.php 10204 2006-11-26 20:46:53Z pcool $
// $Id: course_list.php 10215 2006-11-27 13:57:17Z pcool $
/*
==============================================================================
Dokeos - elearning and course management software
@ -146,7 +146,7 @@ if (isset ($_GET['search']) && $_GET['search'] == 'advanced')
{
$categories[$cat['code']] = '('.$cat['code'].') '.$cat['name'];
}
//$interbreadcrumb[] = array ("url" => "index.php", "name" => get_lang('PlatformAdmin'));
//$interbreadcrumb[] = array ("url" => 'index.php', "name" => get_lang('PlatformAdmin'));
$interbreadcrumb[] = array ("url" => 'course_list.php', "name" => get_lang('CourseList'));
$tool_name = get_lang('SearchACourse');
Display :: display_header($tool_name);
@ -178,7 +178,7 @@ if (isset ($_GET['search']) && $_GET['search'] == 'advanced')
}
else
{
//$interbreadcrumb[] = array ("url" => "index.php", "name" => get_lang('PlatformAdmin'));
//$interbreadcrumb[] = array ("url" => 'index.php', "name" => get_lang('PlatformAdmin'));
$tool_name = get_lang('CourseList');
Display :: display_header($tool_name);
//api_display_tool_title($tool_name);

@ -1,4 +1,4 @@
<?php // $Id: course_virtual.php 10204 2006-11-26 20:46:53Z pcool $
<?php // $Id: course_virtual.php 10215 2006-11-27 13:57:17Z pcool $
/*
==============================================================================
Dokeos - elearning and course management software
@ -84,7 +84,7 @@ define ("COURSE_CATEGORY_FORM_NAME" , "course_category");
$tool_name = get_lang('AdminManageVirtualCourses'); // title of the page (should come from the language file)
//$interbreadcrumb[]=array("url" => "index.php","name" => get_lang('PlatformAdmin'));
//$interbreadcrumb[]=array('url' => 'index.php',"name" => get_lang('PlatformAdmin'));
Display::display_header($tool_name);

@ -1,4 +1,4 @@
<?php // $Id: index.php 10204 2006-11-26 20:46:53Z pcool $
<?php // $Id: index.php 10215 2006-11-27 13:57:17Z pcool $
/*
==============================================================================
Dokeos - elearning and course management software
@ -31,15 +31,26 @@
// name of the language file that needs to be included <br />
$language_file=array('admin','tracking');
// resetting the course id
$cidReset=true;
// including some necessary dokeos files
include('../inc/global.inc.php');
include_once('../inc/installedVersion.inc.php');
// setting the section (for the tabs)
$this_section=SECTION_PLATFORM_ADMIN;
// Access restrictions
api_protect_admin_script();
// setting breadcrumbs
$interbreadcrumb[] = array('url' => 'index.php', 'name' => get_lang('PlatformAdmin'));
// setting the name of the tool
$tool_name=get_lang("PlatformAdmin");
// Displaying the header
Display::display_header();
/*

@ -40,8 +40,8 @@ $cidReset = true;
require ('../inc/global.inc.php');
api_protect_admin_script();
$tool_name = get_lang('SessionOverview');
$interbreadcrumb[]=array("url" => "index.php","name" => get_lang('AdministrationTools'));
$interbreadcrumb[]=array("url" => "session_list.php","name" => get_lang('SessionList'));
$interbreadcrumb[]=array('url' => 'index.php',"name" => get_lang('PlatformAdmin'));
$interbreadcrumb[]=array('url' => "session_list.php","name" => get_lang('SessionList'));
// Database Table Definitions
$tbl_session = Database::get_main_table(TABLE_MAIN_SESSION);

@ -17,8 +17,8 @@ $tbl_session = Database::get_main_table(TABLE_MAIN_SESSION);
$tool_name = get_lang('AddSession');
$interbreadcrumb[]=array("url" => "index.php","name" => get_lang('AdministrationTools'));
$interbreadcrumb[]=array("url" => "session_list.php","name" => get_lang('SessionList'));
$interbreadcrumb[]=array('url' => 'index.php',"name" => get_lang('PlatformAdmin'));
$interbreadcrumb[]=array('url' => "session_list.php","name" => get_lang('SessionList'));
if($_POST['formSent'])
{

@ -30,9 +30,9 @@ if(!list($session_name,$course_title)=mysql_fetch_row($result))
exit();
}
$interbreadcrumb[]=array("url" => "index.php","name" => get_lang('AdministrationTools'));
$interbreadcrumb[]=array("url" => "session_list.php","name" => get_lang("SessionList"));
$interbreadcrumb[]=array("url" => "session_course_list.php?id_session=$id_session","name" => get_lang("CourseSessionList")." &quot;".htmlentities($session_name)."&quot;");
$interbreadcrumb[]=array('url' => 'index.php',"name" => get_lang('PlatformAdmin'));
$interbreadcrumb[]=array('url' => "session_list.php","name" => get_lang("SessionList"));
$interbreadcrumb[]=array('url' => "session_course_list.php?id_session=$id_session","name" => get_lang("CourseSessionList")." &quot;".htmlentities($session_name)."&quot;");
if($_POST['formSent'])
{

@ -58,8 +58,8 @@ $nbr_results=sizeof($Sessions);
$tool_name = htmlentities($session_name).' : '.get_lang('CourseListInSession');
$interbreadcrumb[]=array("url" => "index.php","name" => get_lang('AdministrationTools'));
$interbreadcrumb[]=array("url" => "session_list.php","name" => get_lang('SessionList'));
$interbreadcrumb[]=array('url' => 'index.php',"name" => get_lang('PlatformAdmin'));
$interbreadcrumb[]=array('url' => "session_list.php","name" => get_lang('SessionList'));
Display::display_header($tool_name);

@ -56,9 +56,9 @@ $nbr_results=sizeof($Sessions);
$tool_name = "Liste des utilisateurs inscrits au cours &quot;".htmlentities($course_title)."&quot; pour la session &quot;".htmlentities($session_name)."&quot;";
$interbreadcrumb[]=array("url" => "index.php","name" => get_lang('AdministrationTools'));
$interbreadcrumb[]=array("url" => "session_list.php","name" => "Liste des sessions");
$interbreadcrumb[]=array("url" => "session_course_list.php?id_session=$id_session","name" => "Liste des cours de la session &quot;".htmlentities($session_name)."&quot;");
$interbreadcrumb[]=array('url' => 'index.php',"name" => get_lang('PlatformAdmin'));
$interbreadcrumb[]=array('url' => "session_list.php","name" => "Liste des sessions");
$interbreadcrumb[]=array('url' => "session_course_list.php?id_session=$id_session","name" => "Liste des cours de la session &quot;".htmlentities($session_name)."&quot;");
Display::display_header($tool_name);

@ -19,8 +19,8 @@ $tbl_session = Database::get_main_table(TABLE_MAIN_SESSION);
$tool_name = get_lang('EditSession');
$interbreadcrumb[]=array("url" => "index.php","name" => get_lang('AdministrationTools'));
$interbreadcrumb[]=array("url" => "session_list.php","name" => get_lang('SessionList'));
$interbreadcrumb[]=array('url' => 'index.php',"name" => get_lang('PlatformAdmin'));
$interbreadcrumb[]=array('url' => "session_list.php","name" => get_lang('SessionList'));
if($_POST['formSent'])
{

@ -54,7 +54,7 @@ $archiveURL=api_get_path(WEB_CODE_PATH).'course_info/download.php?archive=';
$tool_name=get_lang('ExportSessionListXMLCSV');
$interbreadcrumb[]=array("url" => "index.php","name" => get_lang('AdministrationTools'));
$interbreadcrumb[]=array('url' => 'index.php',"name" => get_lang('PlatformAdmin'));
set_time_limit(0);

@ -51,7 +51,7 @@ $tbl_session_course_user = Database::get_main_table(TABLE_MAIN_SESSION_COURSE_US
$tool_name=get_lang('ImportSessionListXMLCSV');
$interbreadcrumb[]=array("url" => "index.php","name" => get_lang('AdministrationTools'));
$interbreadcrumb[]=array('url' => 'index.php',"name" => get_lang('PlatformAdmin'));
set_time_limit(0);

@ -50,7 +50,7 @@ $nbr_results=sizeof($Sessions);
$tool_name = get_lang('ListSession');
$interbreadcrumb[]=array("url" => "index.php","name" => get_lang('AdministrationTools'));
$interbreadcrumb[]=array('url' => 'index.php',"name" => get_lang('PlatformAdmin'));
Display::display_header($tool_name);

@ -1,5 +1,5 @@
<?php
// $Id: settings.php 10204 2006-11-26 20:46:53Z pcool $
// $Id: settings.php 10215 2006-11-27 13:57:17Z pcool $
/*
==============================================================================
Dokeos - elearning and course management software
@ -45,12 +45,11 @@ $language_file = 'admin';
// including some necessary dokeos files
include_once ('../inc/global.inc.php');
require_once (api_get_path(LIBRARY_PATH).'formvalidator/FormValidator.class.php');
// setting the section
// setting the section (for the tabs)
$this_section = SECTION_PLATFORM_ADMIN;
require_once (api_get_path(LIBRARY_PATH).'formvalidator/FormValidator.class.php');
// Access restrictions
api_protect_admin_script();
@ -62,11 +61,11 @@ if ($_POST['submit_stylesheets'])
exit;
}
// Table definitions
// Database Table Definitions
$table_settings_current = Database :: get_main_table(TABLE_MAIN_SETTINGS_CURRENT);
// setting breadcrumbs
$interbreadcrumb[] = array ("url" => "index.php", "name" => get_lang('PlatformAdmin'));
$interbreadcrumb[] = array ("url" => 'index.php', "name" => get_lang('PlatformAdmin'));
// setting the name of the tool
$tool_name = get_lang('DokeosConfigSettings');

@ -1,4 +1,4 @@
<?php // $Id: statistics.php 10204 2006-11-26 20:46:53Z pcool $
<?php // $Id: statistics.php 10215 2006-11-27 13:57:17Z pcool $
/*
==============================================================================
Dokeos - elearning and course management software
@ -42,7 +42,7 @@ api_protect_admin_script();
include_once(api_get_path(LIBRARY_PATH).'fileManage.lib.php');
//$interbreadcrumb[]=array("url" => "index.php","name" => get_lang('PlatformAdmin'));
//$interbreadcrumb[]=array('url' => 'index.php',"name" => get_lang('PlatformAdmin'));
$tool_name = get_lang('Statistics');
Display::display_header($tool_name);

@ -32,7 +32,7 @@ $cidReset = true;
include('../../inc/global.inc.php');
api_protect_admin_script();
$interbreadcrumb[] = array ("url" => "../index.php", "name" => get_lang('AdministrationTools'));
$interbreadcrumb[] = array ("url" => "../index.php", "name" => get_lang('PlatformAdmin'));
$tool_name = get_lang('ToolName');
Display::display_header($tool_name);

@ -1,6 +1,6 @@
<?php
// $Id: subscribe_class2course.php 10204 2006-11-26 20:46:53Z pcool $
// $Id: subscribe_class2course.php 10215 2006-11-27 13:57:17Z pcool $
/*
==============================================================================
Dokeos - elearning and course management software
@ -52,7 +52,7 @@ $tbl_class = Database :: get_main_table(TABLE_MAIN_CLASS);
$tool_name = get_lang('AddClassesToACourse');
//$interbreadcrumb[] = array ("url" => "index.php", "name" => get_lang('PlatformAdmin'));
//$interbreadcrumb[] = array ("url" => 'index.php', "name" => get_lang('PlatformAdmin'));
Display :: display_header($tool_name);

@ -1,5 +1,5 @@
<?php
// $Id: subscribe_user2class.php 10204 2006-11-26 20:46:53Z pcool $
// $Id: subscribe_user2class.php 10215 2006-11-27 13:57:17Z pcool $
/*
==============================================================================
Dokeos - elearning and course management software
@ -62,7 +62,7 @@ $noPHP_SELF = true;
$tool_name = get_lang('AddUsersToAClass').' ('.$class_name.')';
//$interbreadcrumb[] = array ("url" => "index.php", "name" => get_lang('PlatformAdmin'));
//$interbreadcrumb[] = array ("url" => 'index.php', "name" => get_lang('PlatformAdmin'));
$interbreadcrumb[] = array ("url" => "class_list.php?filtreCours=".urlencode($course), "name" => get_lang('AdminClasses'));
if ($_POST['formSent'])

@ -1,5 +1,5 @@
<?php
// $Id: subscribe_user2course.php 10204 2006-11-26 20:46:53Z pcool $
// $Id: subscribe_user2course.php 10215 2006-11-27 13:57:17Z pcool $
/*
==============================================================================
Dokeos - elearning and course management software
@ -71,7 +71,7 @@ $tbl_user = Database :: get_main_table(TABLE_MAIN_USER);
-----------------------------------------------------------
*/
$tool_name = get_lang('AddUsersToACourse');
//$interbreadcrumb[] = array ("url" => "index.php", "name" => get_lang('PlatformAdmin'));
//$interbreadcrumb[] = array ("url" => 'index.php', "name" => get_lang('PlatformAdmin'));
Display :: display_header($tool_name);
//api_display_tool_title($tool_name);

@ -1,5 +1,5 @@
<?php
// $Id: system_announcements.php 10204 2006-11-26 20:46:53Z pcool $
// $Id: system_announcements.php 10215 2006-11-27 13:57:17Z pcool $
/*
==============================================================================
Dokeos - elearning and course management software
@ -35,24 +35,30 @@
*/
// name of the language file that needs to be included
$language_file = array ('admin', 'agenda');
// resetting the course id
$cidReset = true;
// including some necessary dokeos files
include ('../inc/global.inc.php');
require_once api_get_path(LIBRARY_PATH).'formvalidator/FormValidator.class.php';
include (api_get_path(LIBRARY_PATH).'system_announcements.lib.php');
// setting the section (for the tabs)
$this_section=SECTION_PLATFORM_ADMIN;
require_once api_get_path(LIBRARY_PATH).'formvalidator/FormValidator.class.php';
// Access restrictions
api_protect_admin_script();
// setting breadcrumbs
$interbreadcrumb[] = array ("url" => 'index.php', "name" => get_lang('PlatformAdmin'));
$tool_name = get_lang('SystemAnnouncements');
if(empty($_GET['lang']))
{
$_GET['lang']=$_SESSION['user_language_choice'];
}
/*
-----------------------------------------------------------
Libraries
-----------------------------------------------------------
*/
include (api_get_path(LIBRARY_PATH).'system_announcements.lib.php');
$tool_name = get_lang('SystemAnnouncements');
//$interbreadcrumb[] = array ("url" => "index.php", "name" => get_lang('PlatformAdmin'));
/*
-----------------------------------------------------------
@ -60,7 +66,7 @@ $tool_name = get_lang('SystemAnnouncements');
-----------------------------------------------------------
*/
Display :: display_header($tool_name);
//api_display_tool_title($tool_name);
/*
==============================================================================
MAIN CODE

@ -1,4 +1,4 @@
<?php // $Id: user_add.php 10204 2006-11-26 20:46:53Z pcool $
<?php // $Id: user_add.php 10215 2006-11-27 13:57:17Z pcool $
/*
==============================================================================
Dokeos - elearning and course management software
@ -63,7 +63,7 @@ if(!empty($_GET['message'])){
$message = urldecode($_GET['message']);
}
//$interbreadcrumb[] = array ("url" => "index.php", "name" => get_lang('PlatformAdmin'));
//$interbreadcrumb[] = array ("url" => 'index.php', "name" => get_lang('PlatformAdmin'));
$tool_name = get_lang('AddUsers');
// Create the form
$form = new FormValidator('user_add');

@ -1,4 +1,4 @@
<?php // $Id: user_edit.php 10204 2006-11-26 20:46:53Z pcool $
<?php // $Id: user_edit.php 10215 2006-11-27 13:57:17Z pcool $
/*
==============================================================================
Dokeos - elearning and course management software
@ -55,8 +55,8 @@ $user_id=isset($_GET['user_id']) ? intval($_GET['user_id']) : intval($_POST['use
$noPHP_SELF=true;
$tool_name=get_lang('ModifyUserInfo');
//$interbreadcrumb[]=array("url" => "index.php","name" => get_lang('PlatformAdmin'));
$interbreadcrumb[]=array("url" => "user_list.php","name" => get_lang('UserList'));
$interbreadcrumb[]=array('url' => 'index.php',"name" => get_lang('PlatformAdmin'));
$interbreadcrumb[]=array('url' => "user_list.php","name" => get_lang('UserList'));
$table_user = Database::get_main_table(TABLE_MAIN_USER);
$table_admin = Database::get_main_table(TABLE_MAIN_ADMIN);

@ -1,5 +1,5 @@
<?php
// $Id: user_export.php 10204 2006-11-26 20:46:53Z pcool $
// $Id: user_export.php 10215 2006-11-27 13:57:17Z pcool $
/*
==============================================================================
Dokeos - elearning and course management software
@ -48,7 +48,7 @@ $course_user_table = Database :: get_main_table(TABLE_MAIN_COURSE_USER);
$tool_name = get_lang('ExportUserListXMLCSV');
//$interbreadcrumb[] = array ("url" => "index.php", "name" => get_lang('PlatformAdmin'));
//$interbreadcrumb[] = array ("url" => 'index.php', "name" => get_lang('PlatformAdmin'));
set_time_limit(0);

@ -1,6 +1,6 @@
<?php
// $Id: user_import.php 10204 2006-11-26 20:46:53Z pcool $
// $Id: user_import.php 10215 2006-11-27 13:57:17Z pcool $
/*
==============================================================================
Dokeos - elearning and course management software
@ -296,7 +296,7 @@ if (is_array($extAuthSource))
$tool_name = get_lang('ImportUserListXMLCSV');
//$interbreadcrumb[] = array ("url" => "index.php", "name" => get_lang('PlatformAdmin'));
//$interbreadcrumb[] = array ("url" => 'index.php', "name" => get_lang('PlatformAdmin'));
set_time_limit(0);

@ -1,5 +1,5 @@
<?php
// $Id: user_information.php 10204 2006-11-26 20:46:53Z pcool $
// $Id: user_information.php 10215 2006-11-27 13:57:17Z pcool $
/*
==============================================================================
Dokeos - elearning and course management software
@ -41,7 +41,7 @@ $this_section=SECTION_PLATFORM_ADMIN;
api_protect_admin_script();
require_once(api_get_path(LIBRARY_PATH).'course.lib.php');
//$interbreadcrumb[] = array ("url" => "index.php", "name" => get_lang('PlatformAdmin'));
//$interbreadcrumb[] = array ("url" => 'index.php', "name" => get_lang('PlatformAdmin'));
$interbreadcrumb[] = array ("url" => 'user_list.php', "name" => get_lang('UserList'));
if( ! isset($_GET['user_id']))
{

@ -1,6 +1,6 @@
<?php
// $Id: user_list.php 10204 2006-11-26 20:46:53Z pcool $
// $Id: user_list.php 10215 2006-11-27 13:57:17Z pcool $
/*
==============================================================================
Dokeos - elearning and course management software
@ -341,7 +341,7 @@ if ($_GET['action'] == "login_as" && isset ($login_as_user_id))
if (isset ($_GET['search']) && $_GET['search'] == 'advanced')
{
//$interbreadcrumb[] = array ("url" => "index.php", "name" => get_lang('PlatformAdmin'));
//$interbreadcrumb[] = array ("url" => 'index.php', "name" => get_lang('PlatformAdmin'));
$interbreadcrumb[] = array ("url" => 'user_list.php', "name" => get_lang('UserList'));
$tool_name = get_lang('SearchAUser');
Display :: display_header($tool_name);
@ -369,7 +369,7 @@ if (isset ($_GET['search']) && $_GET['search'] == 'advanced')
}
else
{
//$interbreadcrumb[] = array ("url" => "index.php", "name" => get_lang('PlatformAdmin'));
//$interbreadcrumb[] = array ("url" => 'index.php', "name" => get_lang('PlatformAdmin'));
$tool_name = get_lang('UserList');
Display :: display_header($tool_name, "");
//api_display_tool_title($tool_name);

Loading…
Cancel
Save