return "Error: could not load information for the specified page";
}
// setup all the elements in this form for use in the listboxes
include_once XOOPS_ROOT_PATH . "/modules/formulize/class/forms.php";
$fid = $screen->getVar('fid');
$options = multiPageScreen_addToOptionsList($fid, array());
// add in elements from other forms in the framework, by looping through each link in the framework and checking if it is a display as one, one-to-one link
// added March 20 2008, by jwe
$frid = $screen->getVar("frid");
if ($frid) {
    $framework_handler =& xoops_getModuleHandler('frameworks', 'formulize');
    $frameworkObject = $framework_handler->get($frid);
    foreach ($frameworkObject->getVar("links") as $thisLinkObject) {
        if ($thisLinkObject->getVar("unifiedDisplay") and $thisLinkObject->getVar("relationship") == 1) {
            $thisFid = $thisLinkObject->getVar("form1") == $fid ? $thisLinkObject->getVar("form2") : $thisLinkObject->getVar("form1");
            $options = multiPageScreen_addToOptionsList($thisFid, $options);
        }
    }
}
// get page titles
$pageTitles = $screen->getVar("pagetitles");
$elements = $screen->getVar("pages");
$conditions = $screen->getVar("conditions");
$pageTitle = $pageTitles[$pageIndex];
$pageNumber = $pageIndex + 1;
$pageElements = $elements[$pageIndex];
$filterSettingsToSend = count($conditions[$pageIndex] > 0) ? $conditions[$pageIndex] : "";
if (isset($filterSettingsToSend['details'])) {
    // if this is in the old format (pre-version 4, these conditions used a non-standard syntax), convert it!
    $newFilterSettingsToSend = array();
    $newFilterSettingsToSend[0] = $filterSettingsToSend['details']['elements'];
Example #2
0
            foreach ($elementCaptions as $key => $elementCaption) {
                $options[$elements[$key]] = printSmart(trans(strip_tags($elementCaption)));
                // need to pull out potential HTML tags from the caption
            }
            return $options;
        }
    }
    $element_list = multiPageScreen_addToOptionsList($form_id, array());
    $frid = $screen->getVar("frid");
    if ($frid) {
        $framework_handler =& xoops_getModuleHandler('frameworks');
        $frameworkObject = $framework_handler->get($frid);
        foreach ($frameworkObject->getVar("links") as $thisLinkObject) {
            if ($thisLinkObject->getVar("unifiedDisplay") and $thisLinkObject->getVar("relationship") == 1) {
                $thisFid = $thisLinkObject->getVar("form1") == $form_id ? $thisLinkObject->getVar("form2") : $thisLinkObject->getVar("form1");
                $element_list = multiPageScreen_addToOptionsList($thisFid, $element_list);
            }
        }
    }
    $options = array();
    $options['donedest'] = $screen->getVar('donedest');
    $options['savebuttontext'] = $screen->getVar('savebuttontext');
    $options['alldonebuttontext'] = $screen->getVar('alldonebuttontext');
    $options['displayheading'] = $screen->getVar('displayheading');
    $options['reloadblank'] = $screen->getVar('reloadblank') ? "blank" : "entry";
    $options['formelements'] = $screen->getVar('formelements');
    $options['element_list'] = $element_list;
}
if ($screen_id != "new" && $settings['type'] == 'template') {
    $screen = $screen_handler->get($screen_id);
    $templates = array();