diff --git a/main/mySpace/index.php b/main/mySpace/index.php
index c6c6feaa37..c05a46eace 100644
--- a/main/mySpace/index.php
+++ b/main/mySpace/index.php
@@ -341,7 +341,13 @@ if (empty($session_id)) {
$csv_content[] = array(get_lang('AverageAssignments', ''), $nb_assignments);
$csv_content[] = array();
} else {
- // html part
+
+ $form = new FormValidator('search_user', 'get', api_get_path(WEB_CODE_PATH).'mySpace/student.php');
+ $form->addElement('text', 'keyword', get_lang('User'));
+ $form->addElement('button', 'submit', get_lang('Search'));
+ $form->display();
+
+ // html part
echo '
';
if (api_is_drh()) {
$menu_items = array();
@@ -220,33 +220,20 @@ if (api_is_drh()) {
$menu_items[] = Display::url(Display::return_icon('course.png', get_lang('Courses'), array(), ICON_SIZE_MEDIUM), 'course.php');
$menu_items[] = Display::url(Display::return_icon('session.png', get_lang('Sessions'), array(), ICON_SIZE_MEDIUM), 'session.php');
- $actions .= '
';
$nb_menu_items = count($menu_items);
if ($nb_menu_items > 1) {
foreach ($menu_items as $key => $item) {
$actions .= $item;
}
}
-
- $actions .= '';
- $actions .= Display::url(
- Display::return_icon('printer.png', get_lang('Print'), array(), ICON_SIZE_MEDIUM), 'javascript: void(0);', array('onclick'=>'javascript: window.print();'));
- $actions .= Display::url(
- Display::return_icon('export_csv.png', get_lang('ExportAsCSV'), array(), ICON_SIZE_MEDIUM), api_get_self().'?export=csv&keyword='.$keyword);
- $actions .= '';
-
- $actions .= '
';
-} else {
- $actions .= '
';
}
+$actions .= '
';
+$actions .= Display::url(Display::return_icon('printer.png', get_lang('Print'), array(), ICON_SIZE_MEDIUM), 'javascript: void(0);', array('onclick'=>'javascript: window.print();'));
+$actions .= Display::url(Display::return_icon('export_csv.png', get_lang('ExportAsCSV'), array(), ICON_SIZE_MEDIUM), api_get_self().'?export=csv&keyword='.$keyword);
+$actions .= '';
+$actions .= '
';
+
$table = new SortableTable(
'tracking_student',
'get_count_users',
@@ -290,7 +277,7 @@ if ($export_csv) {
}
}
-$form = new FormValidator('search_user', 'get', api_get_self());
+$form = new FormValidator('search_user', 'get', api_get_path(WEB_CODE_PATH).'mySpace/student.php');
$form->addElement('text', 'keyword', get_lang('User'));
$form->addElement('button', 'submit', get_lang('Search'));
$form->setDefaults($params);