Minor - adding breadcrumbs

skala
Julio Montoya 15 years ago
parent ecc0789e9f
commit 2743487db3
  1. 2
      main/admin/course_add.php
  2. 5
      main/admin/user_add.php
  3. 19
      main/admin/user_list.php

@ -23,6 +23,7 @@ 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' => 'course_list.php', 'name' => get_lang('CourseList'));
/* MAIN CODE */
@ -148,6 +149,7 @@ if ($form->validate()) {
$current_course_code = $keys['currentCourseCode'];
$current_course_id = $keys['currentCourseId'];
$current_course_db_name = $keys['currentCourseDbName'];
$current_course_repository = $keys['currentCourseRepository'];
$expiration_date = time() + $firstExpirationDelay;
prepare_course_repository($current_course_repository, $current_course_id);

@ -25,8 +25,8 @@ $this_section = SECTION_PLATFORM_ADMIN;
api_protect_admin_script();
// Database table definitions
$table_admin = Database :: get_main_table(TABLE_MAIN_ADMIN);
$table_user = Database :: get_main_table(TABLE_MAIN_USER);
$table_admin = Database::get_main_table(TABLE_MAIN_ADMIN);
$table_user = Database::get_main_table(TABLE_MAIN_USER);
$database = Database::get_main_database();
$htmlHeadXtra[] = '
@ -72,6 +72,7 @@ if (!empty($_GET['message'])) {
}
$interbreadcrumb[] = array ('url' => 'index.php', 'name' => get_lang('PlatformAdmin'));
$interbreadcrumb[] = array ("url" => 'user_list.php', "name" => get_lang('UserList'));
$tool_name = get_lang('AddUsers');
// Create the form

@ -730,8 +730,7 @@ $action = $_GET["action"];
$login_as_user_id = $_GET["user_id"];
// Login as ...
if ($_GET['action'] == "login_as" && isset ($login_as_user_id))
{
if ($_GET['action'] == "login_as" && isset ($login_as_user_id)) {
login_user($login_as_user_id);
}
@ -739,14 +738,14 @@ if ($_GET['action'] == "login_as" && isset ($login_as_user_id))
//{}
//else
//{
if (isset($_GET['keyword']) || isset($_GET['keyword_firstname'])) {
$interbreadcrumb[] = array ("url" => 'index.php', "name" => get_lang('PlatformAdmin'));
$interbreadcrumb[] = array ("url" => 'user_list.php', "name" => get_lang('UserList'));
$tool_name = get_lang('SearchUsers');
} else {
$interbreadcrumb[] = array ("url" => 'index.php', "name" => get_lang('PlatformAdmin'));
$tool_name = get_lang('UserList');
}
if (isset($_GET['keyword']) || isset($_GET['keyword_firstname'])) {
$interbreadcrumb[] = array ("url" => 'index.php', "name" => get_lang('PlatformAdmin'));
$interbreadcrumb[] = array ("url" => 'user_list.php', "name" => get_lang('UserList'));
$tool_name = get_lang('SearchUsers');
} else {
$interbreadcrumb[] = array ("url" => 'index.php', "name" => get_lang('PlatformAdmin'));
$tool_name = get_lang('UserList');
}
Display :: display_header($tool_name, "");

Loading…
Cancel
Save