Ir a la última revisión | Autoría | Comparar con el anterior | Ultima modificación | Ver Log |
<?php
class block_cesa_course_rating_edit_form extends block_edit_form
{
protected function specific_definition($mform)
{
global $CFG;
// Section header title according to language file.
$mform->addElement('header', 'config_header', get_string('blocksettings', 'block'));
// Title
$mform->addElement('text', 'config_title', get_string('config_title', 'theme_edumy'));
$mform->setDefault('config_title', 'Student feedback');
$mform->setType('config_title', PARAM_RAW);
// include($CFG->dirroot . '/theme/edumy/ccn/block_handler/edit.php');
$mform->addElement('header', 'config_cocoon_block_settings', get_string('block_settings', 'block_cesa_course_rating'));
// Margin top
$options = array(
'-200' => '-200',
'-195' => '-195',
'-190' => '-190',
'-185' => '-185',
'-180' => '-180',
'-175' => '-175',
'-170' => '-170',
'-165' => '-165',
'-160' => '-160',
'-155' => '-155',
'-150' => '-150',
'-145' => '-145',
'-140' => '-140',
'-135' => '-135',
'-130' => '-130',
'-125' => '-125',
'-120' => '-120',
'-115' => '-115',
'-110' => '-110',
'-105' => '-105',
'-100' => '-100',
'-95' => '-95',
'-90' => '-90',
'-85' => '-85',
'-80' => '-80',
'-75' => '-75',
'-70' => '-70',
'-65' => '-65',
'-60' => '-60',
'-55' => '-55',
'-50' => '-50',
'-45' => '-45',
'-40' => '-40',
'-35' => '-35',
'-30' => '-30',
'-25' => '-25',
'-20' => '-20',
'-15' => '-15',
'-10' => '-10',
'-5' => '-5',
'0' => 'Default',
'zero' => '0',
'5' => '5',
'10' => '10',
'15' => '15',
'20' => '20',
'25' => '25',
'30' => '30',
'35' => '35',
'40' => '40',
'45' => '45',
'50' => '50',
'55' => '55',
'60' => '60',
'65' => '65',
'70' => '70',
'75' => '75',
'80' => '80',
'85' => '85',
'90' => '90',
'95' => '95',
'100' => '100',
'105' => '105',
'110' => '110',
'115' => '115',
'120' => '120',
'125' => '125',
'130' => '130',
'135' => '135',
'140' => '140',
'145' => '145',
'150' => '150',
'155' => '155',
'160' => '160',
'165' => '165',
'170' => '170',
'175' => '175',
'180' => '180',
'185' => '185',
'190' => '190',
'195' => '195',
'200' => '200'
);
$select = $mform->addElement('select', 'config_ccn_margin_top', get_string('config__margin_top', 'block_cesa_course_rating'), $options);
$select->setSelected('0');
// Margin bottom
$options = array(
'-200' => '-200',
'-195' => '-195',
'-190' => '-190',
'-185' => '-185',
'-180' => '-180',
'-175' => '-175',
'-170' => '-170',
'-165' => '-165',
'-160' => '-160',
'-155' => '-155',
'-150' => '-150',
'-145' => '-145',
'-140' => '-140',
'-135' => '-135',
'-130' => '-130',
'-125' => '-125',
'-120' => '-120',
'-115' => '-115',
'-110' => '-110',
'-105' => '-105',
'-100' => '-100',
'-95' => '-95',
'-90' => '-90',
'-85' => '-85',
'-80' => '-80',
'-75' => '-75',
'-70' => '-70',
'-65' => '-65',
'-60' => '-60',
'-55' => '-55',
'-50' => '-50',
'-45' => '-45',
'-40' => '-40',
'-35' => '-35',
'-30' => '-30',
'-25' => '-25',
'-20' => '-20',
'-15' => '-15',
'-10' => '-10',
'-5' => '-5',
'0' => 'Default',
'zero' => '0',
'5' => '5',
'10' => '10',
'15' => '15',
'20' => '20',
'25' => '25',
'30' => '30',
'35' => '35',
'40' => '40',
'45' => '45',
'50' => '50',
'55' => '55',
'60' => '60',
'65' => '65',
'70' => '70',
'75' => '75',
'80' => '80',
'85' => '85',
'90' => '90',
'95' => '95',
'100' => '100',
'105' => '105',
'110' => '110',
'115' => '115',
'120' => '120',
'125' => '125',
'130' => '130',
'135' => '135',
'140' => '140',
'145' => '145',
'150' => '150',
'155' => '155',
'160' => '160',
'165' => '165',
'170' => '170',
'175' => '175',
'180' => '180',
'185' => '185',
'190' => '190',
'195' => '195',
'200' => '200'
);
$select = $mform->addElement('select', 'config_ccn_margin_bottom', get_string('config_margin_bottom', 'block_cesa_course_rating'), $options);
$select->setSelected('0');
// // Padding top
// $options = array(
// '0' => 'Default',
// 'zero' => '0',
// '5' => '5',
// '10' => '10',
// '15' => '15',
// '20' => '20',
// '25' => '25',
// '30' => '30',
// '35' => '35',
// '40' => '40',
// '45' => '45',
// '50' => '50',
// '55' => '55',
// '60' => '60',
// '65' => '65',
// '70' => '70',
// '75' => '75',
// '80' => '80',
// '85' => '85',
// '90' => '90',
// '95' => '95',
// '100' => '100',
// '105' => '105',
// '110' => '110',
// '115' => '115',
// '120' => '120',
// '125' => '125',
// '130' => '130',
// '135' => '135',
// '140' => '140',
// '145' => '145',
// '150' => '150',
// '155' => '155',
// '160' => '160',
// '165' => '165',
// '170' => '170',
// '175' => '175',
// '180' => '180',
// '185' => '185',
// '190' => '190',
// '195' => '195',
// '200' => '200'
// );
// $select = $mform->addElement('select', 'config_ccn_padding_top', get_string('config_ccn_padding_top', 'theme_edumy'), $options);
// $select->setSelected('0');
//
// // Padding bottom
// $options = array(
// '0' => 'Default',
// 'zero' => '0',
// '5' => '5',
// '10' => '10',
// '15' => '15',
// '20' => '20',
// '25' => '25',
// '30' => '30',
// '35' => '35',
// '40' => '40',
// '45' => '45',
// '50' => '50',
// '55' => '55',
// '60' => '60',
// '65' => '65',
// '70' => '70',
// '75' => '75',
// '80' => '80',
// '85' => '85',
// '90' => '90',
// '95' => '95',
// '100' => '100',
// '105' => '105',
// '110' => '110',
// '115' => '115',
// '120' => '120',
// '125' => '125',
// '130' => '130',
// '135' => '135',
// '140' => '140',
// '145' => '145',
// '150' => '150',
// '155' => '155',
// '160' => '160',
// '165' => '165',
// '170' => '170',
// '175' => '175',
// '180' => '180',
// '185' => '185',
// '190' => '190',
// '195' => '195',
// '200' => '200'
// );
// $select = $mform->addElement('select', 'config_ccn_padding_bottom', get_string('config_ccn_padding_bottom', 'theme_edumy'), $options);
// $select->setSelected('0');
// Custom CSS Class
$mform->addElement('text', 'config_ccn_css_class', get_string('config_css_class', 'block_cesa_course_rating'));
$mform->setDefault('config_ccn_css_class', '');
$mform->setType('config_ccn_css_class', PARAM_RAW);
}
}