'index.php', "name" => $nameTools); // setting the name of the tool $nameTools = get_lang('DataFiller'); $output = array(); if (!empty($_GET['fill'])) { switch ($_GET['fill']) { case 'users': require api_get_path(SYS_TEST_PATH).'datafiller/fill_users.php'; $output = fill_users(); break; case 'courses': require api_get_path(SYS_TEST_PATH).'datafiller/fill_courses.php'; $output = fill_courses(); break; default: break; } } // Displaying the header Display::display_header($nameTools); $result = ''; if (count($output)>0) { $result = '
'."\n"; $result .= '

'.$output[0]['title'].'

'."\n"; $result .= ''; foreach ($output as $line) { $result .= ''; $result .= ''; $result .= ''; } $result .= '
'.$line['line-init'].' '.$line['line-info'].'
'; $result .= '
'; Display::display_normal_message($result,false); } ?>