next up previous contents
Next: 註冊驗證碼 Up: 成績 Previous: csv/index.php   Contents

grade_import_form.php

  1. 修改匯入比對欄位,新增格式 firstname, lastname,並以語系字串顯示。
    [root@moodle grade]# diff -urNwbBE /var/www/html/moodle/grade/import/grade_import_form.php import/grade_import_form.php 
    --- /var/www/html/moodle/grade/import/grade_import_form.php	2012-06-26 01:14:18.000000000 +0800
    +++ import/grade_import_form.php	2014-07-15 15:50:19.932737017 +0800
    @@ -86,7 +86,8 @@
             }
             $mform->addElement('select', 'mapfrom', get_string('mapfrom', 'grades'), $mapfromoptions);
     
    -        $maptooptions = array('userid'=>'userid', 'username'=>'username', 'useridnumber'=>'useridnumber', 'useremail'=>'useremail', '0'=>'ignore');
    +        $maptooptions = array('firstname' => get_string('firstname'), 'lastname'=>get_string('lastname'), 'useremail'=>'useremail', '0'=>'ignore');
             $mform->addElement('select', 'mapto', get_string('mapto', 'grades'), $maptooptions);
     
             $mform->addElement('header', 'general', get_string('mappings', 'grades'));
    


2018-08-14