123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124 |
- <?php
- $language_file = 'gradebook';
- require_once ('../inc/global.inc.php');
- require_once ('lib/be.inc.php');
- require_once ('lib/gradebook_functions.inc.php');
- require_once ('lib/fe/evalform.class.php');
- api_block_anonymous_users();
- block_students();
- $interbreadcrumb[] = array (
- 'url' => $_SESSION['gradebook_dest'].'?',
- 'name' => get_lang('Gradebook'
- ));
- $interbreadcrumb[] = array (
- 'url' => $_SESSION['gradebook_dest'].'?selectcat='.Security::remove_XSS($_GET['selectcat']),
- 'name' => get_lang('Details'
- ));
- $interbreadcrumb[] = array (
- 'url' => 'gradebook_showlog_link.php?visiblelink='.Security::remove_XSS($_GET['visiblelink']).'&selectcat='.Security::remove_XSS($_GET['selectcat']),
- 'name' => get_lang('GradebookQualifyLog')
- );
- Display :: display_header('');
- echo '<div class="clear"></div>';
- echo '<div class="actions">';
- api_display_tool_title(get_lang('GradebookQualifyLog'));
- echo '</div>';
- $t_user = Database :: get_main_table(TABLE_MAIN_USER);
- $t_link_log = Database :: get_main_table(TABLE_MAIN_GRADEBOOK_LINKEVAL_LOG);
- $visible_link=Security::remove_XSS($_GET['visiblelink']);
- $evaledit = EvalLink :: load($visible_link);
- $sql="SELECT lk.name,lk.description,lk.weight,lk.visible,lk.type,lk.date_log,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);
- $list_info=array();
- while ($row=Database::fetch_row($result)) {
- $list_info[]=$row;
- }
- foreach($list_info as $key => $info_log) {
- $list_info[$key][5]=($info_log[5]) ? date('d-m-Y H:i:s',$info_log[5]) : '0000-00-00 00:00:00';
- $list_info[$key][3]=($info_log[3]==1) ? get_lang('GradebookVisible') : get_lang('GradebookInvisible');
- }
- $parameters=array('visiblelink'=>Security::remove_XSS($_GET['visiblelink']),'selectcat'=>Security::remove_XSS($_GET['selectcat']));
- $table = new SortableTableFromArrayConfig($list_info, 1,20,'gradebooklink');
- $table->set_additional_parameters($parameters);
- $table->set_header(0, get_lang('GradebookNameLog'));
- $table->set_header(1, get_lang('GradebookDescriptionLog'));
- $table->set_header(2, get_lang('GradebookPreviousWeight'));
- $table->set_header(3, get_lang('GradebookVisibilityLog'));
- $table->set_header(4, get_lang('ResourceType'));
- $table->set_header(5, get_lang('Date'));
- $table->set_header(6, get_lang('GradebookWhoChangedItLog'));
- $table->display();
- Display :: display_footer();
|