Minor - fix URL, fix lang var

1.10.x
Julio Montoya 10 years ago
parent 347a296f5e
commit 208a5ca032
  1. 16
      main/mySpace/access_details.php
  2. 4
      main/tracking/courseLog.php

@ -1,5 +1,6 @@
<?php <?php
/* For licensing terms, see /license.txt */ /* For licensing terms, see /license.txt */
/** /**
* This is the tracking library for Chamilo. * This is the tracking library for Chamilo.
* *
@ -12,9 +13,7 @@
* @author Jorge Frisancho Jibaja - select between dates * @author Jorge Frisancho Jibaja - select between dates
* *
*/ */
/**
* Code
*/
require_once '../inc/global.inc.php'; require_once '../inc/global.inc.php';
api_block_anonymous_users(); api_block_anonymous_users();
@ -35,7 +34,13 @@ $quote_simple = "'";
$form = new FormValidator('myform', 'get', api_get_self(), null, array('id' => 'myform')); $form = new FormValidator('myform', 'get', api_get_self(), null, array('id' => 'myform'));
$form->addElement('text', 'from', get_lang('From'), array('id' => 'date_from')); $form->addElement('text', 'from', get_lang('From'), array('id' => 'date_from'));
$form->addElement('text', 'to', get_lang('Until'), array('id' => 'date_to')); $form->addElement('text', 'to', get_lang('Until'), array('id' => 'date_to'));
$form->addElement('select', 'type', get_lang('Type'), array('day' => get_lang('Day'), 'month' => get_lang('Month')), array('id' => 'type')); $form->addElement(
'select',
'type',
get_lang('Type'),
array('day' => get_lang('Day'), 'month' => get_lang('Month')),
array('id' => 'type')
);
$form->addElement('hidden', 'student', $user_id); $form->addElement('hidden', 'student', $user_id);
$form->addElement('hidden', 'course', $course_code); $form->addElement('hidden', 'course', $course_code);
$form->addRule('from', get_lang('ThisFieldIsRequired'), 'required'); $form->addRule('from', get_lang('ThisFieldIsRequired'), 'required');
@ -44,9 +49,8 @@ $group = array(
$form->createElement( $form->createElement(
'label', 'label',
null, null,
Display::url(get_lang('Send'), 'javascript://', array('onclick'=> 'loadGraph();', 'class' => 'btn')) Display::url(get_lang('Search'), 'javascript://', array('onclick'=> 'loadGraph();', 'class' => 'btn btn-default'))
) )
//$form->createElement('label', null, Display::url(get_lang('Reset'), 'javascript:void()', array('id' => "reset_button", 'class' => 'btn')))
); );
$form->addGroup($group); $form->addGroup($group);
$from = null; $from = null;

@ -167,8 +167,8 @@ $sessionId = api_get_session_id();
// Breadcrumbs. // Breadcrumbs.
if (isset($_GET['origin']) && $_GET['origin'] == 'resume_session') { if (isset($_GET['origin']) && $_GET['origin'] == 'resume_session') {
$interbreadcrumb[] = array('url' => '../admin/index.php','name' => get_lang('PlatformAdmin')); $interbreadcrumb[] = array('url' => '../admin/index.php','name' => get_lang('PlatformAdmin'));
$interbreadcrumb[] = array('url' => '../admin/session_list.php','name' => get_lang('SessionList')); $interbreadcrumb[] = array('url' => '../session/session_list.php','name' => get_lang('SessionList'));
$interbreadcrumb[] = array('url' => '../admin/resume_session.php?id_session='.$sessionId, 'name' => get_lang('SessionOverview')); $interbreadcrumb[] = array('url' => '../session/resume_session.php?id_session='.$sessionId, 'name' => get_lang('SessionOverview'));
} }
$view = isset($_REQUEST['view']) ? $_REQUEST['view'] : ''; $view = isset($_REQUEST['view']) ? $_REQUEST['view'] : '';

Loading…
Cancel
Save