public function newScaff($datForm, $step = '') { $this->closeModalWindow(); switch ($step) { case 1: if (isset($_SESSION['temp_scaff_info'])) { unset($_SESSION['temp_scaff_info']); } $this->modalWindow(scaffold::formNewScaffStep1(), OPF_myLang::getPhrase('OPF_SCAFF_1'), 580, 400, 2); break; case 2: $this->modalWindow(scaffold::formNewScaffStep2($datForm), OPF_myLang::getPhrase('OPF_SCAFF_2'), 580, 400, 2); break; case 3: $this->modalWindow(scaffold::formNewScaffStep3($datForm), OPF_myLang::getPhrase('OPF_SCAFF_3'), 580, 400, 2); break; case 4: $this->modalWindow(scaffold::formNewScaffStep4($datForm), OPF_myLang::getPhrase('OPF_SCAFF_4'), 580, 400, 2); $this->script('updateValsAnchos()'); break; case 5: $this->modalWindow(scaffold::formNewScaffStep5($datForm), OPF_myLang::getPhrase('OPF_SCAFF_5'), 580, 400, 2); break; } return $this->response; }