eForm = e107::getForm(); } public function ExcelGenerator() { $text = $this->eForm->open('ExcelGenerator', 'post', '', ['autocomplete' => 'off', 'class' => 'formclass']) . $this->eForm->label('Number of qusetions to generate ') . '
' . $this->eForm->number('numberOfQuestions', 20, 2, ['min' => 1, 'max' => 160]) . '

' . $this->eForm->flipswitch('addition', 'on', ['on' => 'on', 'off' => 'off']) . $this->eForm->label('    Addition') . '

' . $this->eForm->flipswitch('subtraction', 'on', ['on' => 'on', 'off' => 'off']) . $this->eForm->label('    subtraction') . '

' . $this->eForm->flipswitch('multiplication', 'on', ['on' => 'on', 'off' => 'off']) . $this->eForm->label('    multiplication') . '

' . $this->eForm->flipswitch('division', 'on', ['on' => 'on', 'off' => 'off']) . $this->eForm->label('    division') . '

' . '' . $this->eForm->close() . '

'; return $text; } private function OldFractionsMulti($title,$q) { require_once( __DIR__ . '/fraction/src/Fraction.php'); $this->FormattedQuestionForm .= e107::getForm()->label($title) . "\n"; $this->FormattedQuestionForm .= '
'; $this->FormattedQuestionForm .= e107::getForm()->label($nominator*$multiplier) . "
\n"; $this->FormattedQuestionForm .= "-------
\n"; $this->FormattedQuestionForm .= e107::getForm()->label($denominator*$multiplier) . "\n"; $this->FormattedQuestionForm .= '

'; $this->FormattedQuestionForm .= e107::getForm()->text('q1', '', 80, ['placeholder' => 'Write answer here!','autocomplete'=>"off"]) . "\n"; $this->FormattedQuestionForm .= "-------
\n"; $this->FormattedQuestionForm .= e107::getForm()->text('q2', '', 80, ['placeholder' => 'Write answer here!','autocomplete'=>"off"]) . "\n"; $this->FormattedQuestionForm .= e107::getForm()->hidden('a1', (int)($fract1->getNumerator())) . "\n"; $this->FormattedQuestionForm .= e107::getForm()->hidden('a2', (int)($fract1->getDenominator())) . "\n"; $this->FormattedQuestionForm .= e107::getForm()->hidden('qc1', 2) . "\n"; $this->FormattedQuestionForm .= e107::getForm()->hidden('question', "Simplify " . $nominator*$multiplier . " over " . $denominator*$multiplier) . "\n"; } }