initFromArray($_REQUEST['data']); if ($jobApplication->isValid()) { $page->setMainTpl('email/job_appliaction_email.tpl'); $assignData = array( 'education_types' => $jobApplication->getEducationTypes(), 'emploment_record' => $jobApplication->getEmplomentRecord(), 'data' => $_REQUEST['data'], ); $page->assign('item', $assignData); $jobApplication->send($page->fetch()); header('location: ' . BASE_URL . '/jobAppliactionThanks.htm'); exit; } } $page->addContent(array( 'tpl' => 'form/job_application.tpl', 'education_types' => $jobApplication->getEducationTypes(), 'emploment_record' => $jobApplication->getEmplomentRecord(), 'data' => $_REQUEST['data'], 'error' => $jobApplication->error, )); // $page->addContent($jobApplication->getForm()); $page->display(); // vim: ft=php ?>