示例#1
0
        break;
    case 'orderdown':
        facileFormsElement::order($option, $pkg, $form, $page, $ids, 1);
        break;
    case 'addbefore':
        facileFormsElement::addPageBefore($option, $pkg, $form, $page);
        break;
    case 'addbehind':
        facileFormsElement::addPageBehind($option, $pkg, $form, $page);
        break;
    case 'delpage':
        facileFormsElement::delPage($option, $pkg, $form, $page);
        break;
    case 'movepage':
        facileFormsElement::getPageDestination($option, $pkg, $form, $page);
        break;
    case 'movepagesave':
        facileFormsElement::movePage($option, $pkg, $form, $page);
        break;
    case 'submit':
        facileFormsElement::listitems($option, $pkg, $form, $page, 'submit');
        break;
    case 'config':
        $ff_config->edit($option, "index.php?option={$option}&act=editpage&form={$form}&page={$page}", $pkg);
        break;
    default:
        // view
        facileFormsElement::listitems($option, $pkg, $form, $page, 'view');
        break;
}
// switch
示例#2
0
		facileFormsForm::order($option, $pkg, $ids, -1);
		break;
	case 'orderdown':
		facileFormsForm::order($option, $pkg, $ids, 1);
		break;
	case 'config' :
		$ff_config->edit(
			$option,
			"index.php?option=$option&act=manageforms",
			$pkg
		);
		break;
	default:
		if (substr($task,0,8) == 'editpage') {
			$page = sscanf($task,"editpage%d");
			facileFormsElement::listitems($option, $pkg, $ids[0], $page[0], 'view');
		} else {
			facileFormsForm::listitems($option, $pkg);
		} // if
		break;
} // switch

function getFormPackage()
{
	global $ff_config;
	$pkg = JRequest::getVar( 'pkg', null);
	if (is_null($pkg))
		$pkg = $pkg = $ff_config->formpkg;
	else
	if ($pkg == '- blank -')
		$pkg = '';