$_SESSION['gradebook_dest'].'?selectcat='.Security::remove_XSS($_GET['selectcat']), 'name' => get_lang('Gradebook' )); Display :: display_header(''); $t_user= Database :: get_main_table(TABLE_MAIN_USER); $t_link_log = Database :: get_main_table(TABLE_MAIN_GRADEBOOK_LINKEVAL_LOG); $evaledit = EvalLink :: load($_GET['visiblelink']); $sql="SELECT lk.name,lk.description,lk.date_log,lk.weight,lk.visible,lk.type,us.username from ".$t_link_log." lk inner join ".$t_user." us on lk.user_id_log=us.user_id where lk.id_linkeval_log=".$evaledit[0]->get_id()." and lk.type='link';"; $result=api_sql_query($sql); echo '
'.get_lang('GradebookNameLog').' | '; echo ''.get_lang('GradebookDescriptionLog').' | '; echo ''.get_lang('Date').' | '; echo ''.get_lang('Weight').' | '; echo ''.get_lang('GradebookVisibilityLog').' | '; echo ''.get_lang('ResourceType').' | '; echo ''.get_lang('GradebookWhoChangedItLog').' | '; echo '
'.$row[0].' | '; echo ''.$row[1].' | '; echo ''.$date_log.' | '; echo ''.$row[3].' | '; if (1 == $row[4]) { $visib=get_lang('GradebookVisible'); } else { $visib=get_lang('GradebookInvisible'); } echo ''.$visib.' | '; echo ''.$row[5].' | '; echo ''.$row[6].' | '; echo '