$_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 ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; echo ''; while($row=Database::fetch_array($result)){ if ('0000-00-00 00:00:00'!=$row[2]) { $date_log=date('d-m-Y H:i:s',$row[2]); } else { $date_log='0000-00-00 00:00:00'; } echo ''; echo ''; echo ''; echo ''; echo ''; if (1 == $row[4]) { $visib=get_lang('GradebookVisible'); } else { $visib=get_lang('GradebookInvisible'); } echo ''; echo ''; echo ''; echo ''; } echo '
'.get_lang('GradebookNameLog').''.get_lang('GradebookDescriptionLog').''.get_lang('Date').''.get_lang('Weight').''.get_lang('GradebookVisibilityLog').''.get_lang('ResourceType').''.get_lang('GradebookWhoChangedItLog').'
'.$row[0].''.$row[1].''.$date_log.''.$row[3].''.$visib.''.$row[5].''.$row[6].'
'; Display :: display_footer();