Exemplo n.º 1
0
    } else {
        $this->smarty->assign('fb_form_start', $this->CreateFormStart($id, 'default', $returnid, 'post', 'multipart/form-data', $aeform->GetAttr('inline', '0') == '1', '', array('fbrp_callcount' => $fbrp_callcount + 1)));
    }
    $this->smarty->assign('fb_form_end', $this->CreateFormEnd());
    $this->smarty->assign('fb_form_done', 0);
} else {
    $this->smarty->assign('fb_form_done', 1);
    if ($results[0] == true) {
        $parms = array();
        $parms['form_name'] = $aeform->GetName();
        $parms['form_id'] = $aeform->GetId();
        $this->SendEvent('OnFormBuilderFormSubmit', $parms);
        $act = $aeform->GetAttr('submit_action', 'text');
        if ($act == 'text') {
            $message = $aeform->GetAttr('submit_response', '');
            $aeform->setFinishedFormSmarty(true);
            echo $this->ProcessTemplateFromData($message);
            return;
        } else {
            if ($act == 'redir') {
                $ret = $aeform->GetAttr('redirect_page', '-1');
                if ($ret != -1) {
                    $this->RedirectContent($ret);
                    return;
                }
            }
        }
    } else {
        $parms = array();
        $params['fbrp_error'] = '';
        $this->smarty->assign('fb_submission_error', $this->Lang('submission_error'));