Fixing lang var adding breadcrumbs etc

skala
Julio Montoya 14 years ago
parent fced1f09a8
commit 1a94289b68
  1. 4
      main/admin/add_courses_to_usergroup.php
  2. 4
      main/admin/add_sessions_to_usergroup.php
  3. 8
      main/admin/add_users_to_usergroup.php
  4. 4
      main/admin/career_dashboard.php
  5. 3
      main/admin/careers.php
  6. 2
      main/admin/promotions.php
  7. 6
      main/admin/usergroups.php

@ -28,12 +28,12 @@ api_protect_admin_script(true);
// setting breadcrumbs
$interbreadcrumb[]=array('url' => 'index.php','name' => get_lang('PlatformAdmin'));
$interbreadcrumb[]=array('url' => 'usergroups.php','name' => get_lang('UserGroups'));
$interbreadcrumb[]=array('url' => 'usergroups.php','name' => get_lang('Groups'));
// Database Table Definitions
// setting the name of the tool
$tool_name=get_lang('SubscribeSessionsToUserGroup');
$tool_name=get_lang('SubscribeCoursesToGroup');
$add_type = 'multiple';
if(isset($_REQUEST['add_type']) && $_REQUEST['add_type']!=''){

@ -29,12 +29,12 @@ api_protect_admin_script(true);
// setting breadcrumbs
$interbreadcrumb[]=array('url' => 'index.php','name' => get_lang('PlatformAdmin'));
$interbreadcrumb[]=array('url' => 'usergroups.php','name' => get_lang('UserGroups'));
$interbreadcrumb[]=array('url' => 'usergroups.php','name' => get_lang('Groups'));
// Database Table Definitions
// setting the name of the tool
$tool_name=get_lang('SubscribeSessionsToUserGroup');
$tool_name=get_lang('SubscribeSessionsToUser');
$add_type = 'multiple';
if(isset($_REQUEST['add_type']) && $_REQUEST['add_type']!=''){

@ -29,12 +29,12 @@ api_protect_admin_script(true);
// setting breadcrumbs
$interbreadcrumb[]=array('url' => 'index.php','name' => get_lang('PlatformAdmin'));
$interbreadcrumb[]=array('url' => 'usergroups.php','name' => get_lang('UserGroups'));
$interbreadcrumb[]=array('url' => 'usergroups.php','name' => get_lang('Groups'));
// Database Table Definitions
// setting the name of the tool
$tool_name=get_lang('SubscribeUsersToUserGroup');
$tool_name=get_lang('SubscribeUsersToGroup');
$add_type = 'multiple';
if(isset($_REQUEST['add_type']) && $_REQUEST['add_type']!=''){
@ -226,10 +226,10 @@ if(!empty($errorMsg)) {
<table border="0" cellpadding="5" cellspacing="0" width="100%">
<tr>
<td align="center"><b><?php echo get_lang('SessionsInPlatform') ?> :</b>
<td align="center"><b><?php echo get_lang('UsersInPlatform') ?> :</b>
</td>
<td></td>
<td align="center"><b><?php echo get_lang('SessionsInGroup') ?> :</b></td>
<td align="center"><b><?php echo get_lang('UsersInGroup') ?> :</b></td>
</tr>
<?php if ($add_type=='multiple') { ?>

@ -3,6 +3,7 @@
// Language files that should be included.
$language_file = array('courses', 'index', 'admin');
$cidReset = true;
require_once '../inc/global.inc.php';
$libpath = api_get_path(LIBRARY_PATH);
require_once $libpath.'course.lib.php';
@ -23,6 +24,9 @@ $this_section = SECTION_PLATFORM_ADMIN;
//Adds the JS needed to use the jqgrid
$htmlHeadXtra[] = api_get_jqgrid_js();
// setting breadcrumbs
$interbreadcrumb[]=array('url' => 'index.php','name' => get_lang('PlatformAdmin'));
Display :: display_header($nameTools);
// action links

@ -21,6 +21,9 @@ api_protect_admin_script();
//Add the JS needed to use the jqgrid
$htmlHeadXtra[] = api_get_jqgrid_js();
// setting breadcrumbs
$interbreadcrumb[]=array('url' => 'index.php','name' => get_lang('PlatformAdmin'));
// The header.
Display::display_header($tool_name);

@ -20,6 +20,8 @@ api_protect_admin_script();
//Adds the JS needed to use the jqgrid
$htmlHeadXtra[] = api_get_jqgrid_js();
// setting breadcrumbs
$interbreadcrumb[]=array('url' => 'index.php','name' => get_lang('PlatformAdmin'));
// The header.
Display::display_header($tool_name);

@ -20,6 +20,8 @@ api_protect_admin_script();
//Add the JS needed to use the jqgrid
$htmlHeadXtra[] = api_get_jqgrid_js();
// setting breadcrumbs
$interbreadcrumb[]=array('url' => 'index.php','name' => get_lang('PlatformAdmin'));
// The header.
Display::display_header($tool_name);
@ -55,9 +57,9 @@ $extra_params['height'] = 'auto';
//With this function we can add actions to the jgrid
$action_links = 'function action_formatter (cellvalue, options, rowObject) {
return \'<a href="add_sessions_to_usergroup.php?id=\'+options.rowId+\'"><img src="../img/course_add.gif" title="'.get_lang('AddSession').'"></a>'
.'<a href="add_courses_to_usergroup.php?id=\'+options.rowId+\'"><img src="../img/course_add.gif" title="'.get_lang('AddCourses').'"></a>'
.'<a href="add_courses_to_usergroup.php?id=\'+options.rowId+\'"><img src="../img/course_add.gif" title="'.get_lang('AddACourse').'"></a>'
.'<a href="add_users_to_usergroup.php?id=\'+options.rowId+\'"><img src="../img/add_user_big.gif" title="'.get_lang('AddUsers').'"></a>'
.'<a href="?action=edit&id=\'+options.rowId+\'"><img src="../img/edit.gif" title="'.get_lang('Edit').'"></a>'
.'<a href="?action=edit&id=\'+options.rowId+\'"><img src="../img/edit.gif" title="'.get_lang('Edit').'" ></a>'
.'<a onclick="javascript:if(!confirm('."\'".addslashes(api_htmlentities(get_lang("ConfirmYourChoice"),ENT_QUOTES))."\'".')) return false;" href="?action=delete&id=\'+options.rowId+\'"><img title="'.get_lang('Delete').'" src="../img/delete.gif"></a>\';
}';
?>

Loading…
Cancel
Save