在檢視作業的頁面加上拒收作業時間

ail 2018-9-20 509

老師的頁面
moodle\mod\assign\renderer.php

render_assign_grading_summary

// 顯示cutoffdate 
if($summary->cutoffdate){
    $cutdate = $summary->cutoffdate;
    $this->add_table_row_tuple($t, get_string('cutoffdate', 'assign'), userdate($cutdate));
}


學生的頁面

moodle\mod\assign\renderer.php
Line : 852(render_assign_submission_status)

if ($status->cutoffdate) {
            // Cut off date.
            $row = new html_table_row();
            $cell1 = new html_table_cell(get_string('cutoffdate', 'assign'));
            $cell2 = new html_table_cell(userdate($status->cutoffdate));
            $row->cells = array($cell1, $cell2);
            $t->data[] = $row;
        }


最新回復 (0)
返回
發新帖