示例#1
0
                if (version_compare($version->getShortVersion(), '3.0', '>=')) {
                    $cbForms = $db->loadColumn();
                } else {
                    $cbForms = $db->loadResultArray();
                }
                if (is_object($cbForm) && count($cbForms)) {
                    require_once JPATH_SITE . DS . 'administrator' . DS . 'components' . DS . 'com_contentbuilder' . DS . 'tables' . DS . 'elements.php';
                    foreach ($cbForms as $dataId) {
                        contentbuilder::synchElements($dataId, $cbForm);
                        $elements_table = new TableElements($db);
                        $elements_table->reorder('form_id=' . $dataId);
                    }
                }
            }
            // CONTENTBUILDER END
            echo EasyModeHtml::showApplication($formId, $formName, $easyMode->getTemplateCode($formId), $easyMode->getCallbackParams($formId), $easyMode->getElementScripts(), $pages, $page);
            break;
        default:
            echo EasyModeHtml::showApplication($form, $formName, $easyMode->getTemplateCode(JRequest::getInt('form', 0)), $easyMode->getCallbackParams(JRequest::getInt('form', 0)), $easyMode->getElementScripts(), $pages, $page);
    }
} else {
    echo 'The easy mode is currently supporting Chrome and Firefox (3 and newer) only. 
	<br/>
	<br/>
	What can you do?
	<br/>
	<br/>
	1. Download and install Firefox from <a href="http://mozilla.org" target="_blank">here</a>
	<br/>
	or download Google Chrome from <a href="http://www.google.com/chrome" target="_blank">here</a><br/>
	<br/>
示例#2
0
			$formId = $easyMode->save(
							$form, 
							$formName, 
							$formTitle,
							array(), 
							base64_decode($templateCode), 
							Zend_Json::decode(base64_decode($areas)),
							$pages
						);
						
			echo EasyModeHtml::showApplication(
					$formId, 
					$formName,
					$easyMode->getTemplateCode($formId),
					$easyMode->getCallbackParams($formId),
					$easyMode->getElementScripts(),
					$pages,
					$page
			);
			break;
			
		default:
			echo EasyModeHtml::showApplication(
				$form, 
				$formName,
				$easyMode->getTemplateCode(JRequest::getInt('form', 0)), 
				$easyMode->getCallbackParams(JRequest::getInt('form', 0)),
				$easyMode->getElementScripts(),
				$pages,
				$page
			);