$form->add(‘label’, ‘label_weight’, ”, “CESWeightin”);
for ($x = 0; $x <= 14; $x++) {
$obj = $form->add(‘select’, ‘_WEIGHT’ . $x);
$obj->add_options(array(
0 => ‘0’,
1 => ‘1’,
5 => ‘5’,
10 => ’10’,
15 => ’15’,
20 => ’20’,
25 => ’25’,
30 => ’30’,
35 => ’35’,
40 => ’40’,
45 => ’45’,
50 => ’50’,
60 => ’60’,
100 => ‘100’,
));
$obj->set_attributes(array(
‘class’ => ‘input-field control form-control’,
‘style’ => ‘width:150px’,
‘onChange’ => ‘calculatePercentage()’
));
$obj->set_rule(array(
));
$obj->disable_spam_filter();
}