在我的应用程序中,当我点击地图上显示的某个功能时,它会放大并且所有内容都正确居中。
db_update.php
但是,我想从此功能向左或向右放大一些像素。我看不到任何require_once("{$CFG->libdir}/formslib.php");
class attendance_form extends moodleform {
function definition() {
$mform =& $this->_form;
$mform->addElement('html', '<h2>' . get_string('attendance', 'local_attendance') . '</h2>');
$mform->addElement('html', '<p>This report allows you to retrieve attendance data for your academic advisees.</p>');
//$mform->addElement('text', 'student_number', get_string('student_number', 'local_attendance'));
global $USER;
$userid = $USER->id;
$myAdvisees = array();
$adviseeArray = array();
$myAdvisees = get_academic_advisees($userid);
foreach($myAdvisees as $myAdvisee) {
$key = $myAdvisee->username;
$value = $myAdvisee->firstname . $myAdvisee->lastname . '(' . $myAdvisee->username . ')';
$adviseeArray[$key] = $value;
}
$mform->addElement('select', 'student_number', get_string('student_number', 'local_attendance'), $adviseeArray);
$this->add_action_buttons(true, get_string('save', 'local_attendance'));
}
}
属性。我怎样才能做到这一点?