Пример #1
0
 * This project's homepage is: http://www.cmsmadesimple.org
 */
if (!isset($gCms)) {
    exit;
}
if (!isset($params['form_id']) && isset($params['form'])) {
    // get the form by name, not ID
    $params['form_id'] = $this->GetFormIDFromAlias($params['form']);
}
$inline = false;
if (isset($params['inline']) && preg_match('/t(rue)*|y(yes)*|1/i', $params['inline'])) {
    $inline = true;
}
$fbrp_callcount = 0;
$aeform = new fbForm($this, $params, true, true);
$fld = $aeform->GetFormBrowserField();
if ($fld !== false && $fld->GetOption('feu_bind', '0') == '1') {
    $feu = $this->GetModuleInstance('FrontEndUsers');
    if ($feu == false) {
        debug_display("FAILED to instantiate FEU!");
        return;
    }
    if ($feu->LoggedInId() === false) {
        echo $this->Lang('please_login');
        return;
    }
}
if (!($inline || $aeform->GetAttr('inline', '0') == '1')) {
    $id = 'cntnt01';
}
$this->smarty->assign('fb_form_has_validation_errors', 0);
Пример #2
0
 function GetSortableFields($form_id)
 {
     $ret = array();
     $parm = array('form_id' => $form_id);
     $aeform = new fbForm($this, $parm, true);
     $fbField = $aeform->GetFormBrowserField();
     if ($fbField == false) {
         // error handling goes here.
         return $ret;
     }
     return $fbField->getSortFieldList();
 }