Пример #1
0
                    return;
                }
            }
        }
    } else {
        $parms = array();
        $params['fbrp_error'] = '';
        $this->smarty->assign('fb_submission_error', $this->Lang('submission_error'));
        $show = $this->GetPreference('hide_errors', '1');
        $this->smarty->assign('fb_submission_error_list', $results[1]);
        $this->smarty->assign('fb_show_submission_errors', $show);
        $parms['form_name'] = $aeform->GetName();
        $parms['form_id'] = $aeform->GetId();
        $this->SendEvent('OnFormBuilderFormSubmitError', $parms);
    }
}
$udtonce = $aeform->GetAttr('predisplay_udt', '');
$udtevery = $aeform->GetAttr('predisplay_each_udt', '');
if (!$finished && (!empty($udtonce) && $udtonce != '-1' || !empty($udtevery) && $udtevery != '-1')) {
    $usertagops = cmsms()->GetUserTagOperations();
    $parms = $params;
    $parms['FORM'] =& $aeform;
    if (isset($fbrp_callcount) && $fbrp_callcount == 0 && !empty($udtonce) && "-1" != $udtonce) {
        $tmp = $usertagops->CallUserTag($udtonce, $parms);
    }
    if (!empty($udtevery) && "-1" != $udtevery) {
        $tmp = $usertagops->CallUserTag($udtevery, $parms);
    }
}
echo $aeform->RenderForm($id, $params, $returnid);