当前位置: 首页>>代码示例>>PHP>>正文


PHP CForm::GetList方法代码示例

本文整理汇总了PHP中CForm::GetList方法的典型用法代码示例。如果您正苦于以下问题:PHP CForm::GetList方法的具体用法?PHP CForm::GetList怎么用?PHP CForm::GetList使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在CForm的用法示例。


在下文中一共展示了CForm::GetList方法的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: array

<?php

if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) {
    die;
}
if (!CModule::IncludeModule("form")) {
    return;
}
$arrForms = array();
$rsForm = CForm::GetList($by = 's_sort', $order = 'asc', array("SITE" => $_REQUEST["site"]), $v3);
while ($arForm = $rsForm->Fetch()) {
    $arrForms[$arForm["ID"]] = "[" . $arForm["ID"] . "] " . $arForm["NAME"];
}
$arComponentParameters = array("GROUPS" => array("FORM_PARAMS" => array("NAME" => GetMessage("COMP_FORM_GROUP_PARAMS"))), "PARAMETERS" => array("VARIABLE_ALIASES" => array("WEB_FORM_ID" => array("NAME" => GetMessage("COMP_FORM_PARAMS_WEB_FORM_ID")), "RESULT_ID" => array("NAME" => GetMessage("COMP_FORM_PARAMS_RESULT_ID"))), "SEF_MODE" => array(), "WEB_FORM_ID" => array("NAME" => GetMessage("COMP_FORM_PARAMS_WEB_FORM_ID"), "TYPE" => "LIST", "VALUES" => $arrForms, "ADDITIONAL_VALUES" => "Y", "DEFAULT" => "={\$_REQUEST[WEB_FORM_ID]}", "PARENT" => "DATA_SOURCE"), "LIST_URL" => array("NAME" => GetMessage("COMP_FORM_PARAMS_LIST_URL"), "TYPE" => "STRING", "DEFAULT" => "result_list.php", "PARENT" => "FORM_PARAMS"), "EDIT_URL" => array("NAME" => GetMessage("COMP_FORM_PARAMS_EDIT_URL"), "TYPE" => "STRING", "DEFAULT" => "result_edit.php", "PARENT" => "FORM_PARAMS"), "SUCCESS_URL" => array("NAME" => GetMessage("COMP_FORM_PARAMS_SUCCESS_URL"), "TYPE" => "STRING", "DEFAULT" => "", "PARENT" => "FORM_PARAMS"), "CHAIN_ITEM_TEXT" => array("NAME" => GetMessage("COMP_FORM_PARAMS_CHAIN_ITEM_TEXT"), "TYPE" => "STRING", "DEFAULT" => "", "PARENT" => "FORM_PARAMS"), "CHAIN_ITEM_LINK" => array("NAME" => GetMessage("COMP_FORM_PARAMS_CHAIN_ITEM_LINK"), "TYPE" => "STRING", "DEFAULT" => "", "PARENT" => "FORM_PARAMS"), "IGNORE_CUSTOM_TEMPLATE" => array("NAME" => GetMessage("COMP_FORM_PARAMS_IGNORE_CUSTOM_TEMPLATE"), "TYPE" => "CHECKBOX", "DEFAULT" => "N", "PARENT" => "VISUAL"), "USE_EXTENDED_ERRORS" => array("NAME" => GetMessage("COMP_FORM_PARAMS_USE_EXTENDED_ERRORS"), "TYPE" => "CHECKBOX", "DEFAULT" => "N", "PARENT" => "VISUAL"), "CACHE_TIME" => array("DEFAULT" => "3600")));
开发者ID:k-kalashnikov,项目名称:geekcon,代码行数:14,代码来源:.parameters.php

示例2: switch

        switch ($_REQUEST['action']) {
            case "delete":
                @set_time_limit(0);
                $DB->StartTransaction();
                if (!CForm::Delete($ID)) {
                    $DB->Rollback();
                    $lAdmin->AddGroupError(GetMessage("DELETE_ERROR"), $ID);
                }
                $DB->Commit();
                break;
        }
    }
}
//////////////////////////////////////////////////////////////////////
// list initialization - get data
$rsData = CForm::GetList($by, $order, $arFilter, $is_filtered);
$arData = array();
while ($arForm = $rsData->Fetch()) {
    $F_RIGHT = CForm::GetPermission($arForm["ID"]);
    if ($F_RIGHT >= 20) {
        $arForm["F_RIGHT"] = $F_RIGHT;
        $arData[] = $arForm;
    }
}
$rsData->InitFromArray($arData);
$rsData = new CAdminResult($rsData, $sTableID);
$rsData->NavStart();
// set navigation bar
$lAdmin->NavText($rsData->GetNavPrint(GetMessage("FORM_PAGES")));
$headers = array(array("id" => "ID", "content" => "ID", "sort" => "s_id", "default" => true), array("id" => "SITE", "content" => GetMessage("FORM_SITE"), "default" => true), array("id" => "C_SORT", "content" => GetMessage("FORM_C_SORT"), "sort" => "s_c_sort", "default" => true));
if (!$bSimple) {
开发者ID:spas-viktor,项目名称:books,代码行数:31,代码来源:form_list.php

示例3: array

<?php

if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) {
    die;
}
if (!CModule::IncludeModule("form")) {
    return;
}
require_once "functions.php";
$formID = false;
$rsForms = CForm::GetList($by = "s_id", $order = "desc", array("SID" => "BUSINESS_CARD_" . WIZARD_SITE_ID, "arSITE" => array(WIZARD_SITE_ID)), $is_filtered);
while ($arForm = $rsForms->Fetch()) {
    $formID = $arForm["ID"];
}
if ($formID == false && WIZARD_SITE_ID == "s1") {
    $rsForms = CForm::GetList($by = "s_id", $order = "desc", array("SID" => "BUSINESS_CARD", "arSITE" => array(WIZARD_SITE_ID)), $is_filtered);
    while ($arForm = $rsForms->Fetch()) {
        $formID = $arForm["ID"];
    }
}
if ($formID == false) {
    $arForm = array("NAME" => GetMessage("SERVICE_CARD_FORM_NAME"), "SID" => "BUSINESS_CARD_" . WIZARD_SITE_ID, "C_SORT" => 200, "BUTTON" => GetMessage("SERVICE_CARD_FORM_BUTTON"), "DESCRIPTION" => "", "DESCRIPTION_TYPE" => "text", "USE_CAPTCHA" => "N", "USE_RESTRICTIONS" => "N", "STAT_EVENT1" => "form", "STAT_EVENT2" => "business_card", "STAT_EVENT4" => "", "arSITE" => array(WIZARD_SITE_ID), "arMENU" => array(), "arGROUP" => array(WIZARD_EMPLOYEES_GROUP => "15", WIZARD_PERSONNEL_DEPARTMENT_GROUP => "30", WIZARD_PORTAL_ADMINISTRATION_GROUP => "30"));
    $arFormFields = array(array("SID" => "DATE", "REQUIRED" => "N", "arANSWER" => array(array("MESSAGE" => " ", "VALUE" => "", "ACTIVE" => "Y", "FIELD_TYPE" => "date"))), array("SID" => "NUMBER", "REQUIRED" => "N", "arANSWER" => array(array("MESSAGE" => " ", "VALUE" => "", "ACTIVE" => "Y", "FIELD_TYPE" => "text")), "arFILTER_USER" => array("text")), array("SID" => "INFO", "REQUIRED" => "N", "arANSWER" => array(array("MESSAGE" => " ", "VALUE" => "", "ACTIVE" => "Y", "FIELD_TYPE" => "textarea")), "arFILTER_USER" => array("text")), array("SID" => "COMMENT", "REQUIRED" => "N", "arANSWER" => array(array("MESSAGE" => " ", "VALUE" => "", "ACTIVE" => "Y", "FIELD_TYPE" => "textarea", "FIELD_WIDTH" => 40, "FIELD_HEIGHT" => 4))), array("SID" => "ADMIN_NOTE", "ADDITIONAL" => 'Y', "REQUIRED" => "N", "FIELD_TYPE" => "text"));
    $formID = CreateForm($arForm, $arFormFields, "service_card.php");
}
开发者ID:mrdeadmouse,项目名称:u136006,代码行数:25,代码来源:service_card.php

示例4: array

<?php

if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) {
    die;
}
if (!CModule::IncludeModule("form")) {
    return;
}
require_once "functions.php";
$formID = false;
$rsForms = CForm::GetList($by = "s_id", $order = "desc", array("SID" => "OFFICE_SUPPLIES_" . WIZARD_SITE_ID, "arSITE" => array(WIZARD_SITE_ID)), $is_filtered);
while ($arForm = $rsForms->Fetch()) {
    $formID = $arForm["ID"];
}
if ($formID == false && WIZARD_SITE_ID == "s1") {
    $rsForms = CForm::GetList($by = "s_id", $order = "desc", array("SID" => "OFFICE_SUPPLIES", "arSITE" => array(WIZARD_SITE_ID)), $is_filtered);
    while ($arForm = $rsForms->Fetch()) {
        $formID = $arForm["ID"];
    }
}
if ($formID == false) {
    $arForm = array("NAME" => GetMessage("SERVICE_SUPPLIES_FORM_NAME"), "SID" => "OFFICE_SUPPLIES_" . WIZARD_SITE_ID, "C_SORT" => 200, "BUTTON" => GetMessage("SERVICE_SUPPLIES_FORM_BUTTON"), "DESCRIPTION" => "", "DESCRIPTION_TYPE" => "text", "USE_CAPTCHA" => "N", "USE_RESTRICTIONS" => "N", "STAT_EVENT1" => "form", "STAT_EVENT2" => "office_supplies", "STAT_EVENT4" => "", "arSITE" => array(WIZARD_SITE_ID), "arMENU" => array(), "arGROUP" => array(WIZARD_EMPLOYEES_GROUP => "15", WIZARD_PERSONNEL_DEPARTMENT_GROUP => "30", WIZARD_PORTAL_ADMINISTRATION_GROUP => "30"));
    $arFormFields = array(array("SID" => "REQUEST", "REQUIRED" => "Y", "arANSWER" => array(array("MESSAGE" => " ", "VALUE" => "", "ACTIVE" => "Y", "FIELD_TYPE" => "textarea")), "arFILTER_USER" => array("text")), array("SID" => "COMMENT", "REQUIRED" => "N", "arANSWER" => array(array("MESSAGE" => " ", "VALUE" => "", "ACTIVE" => "Y", "FIELD_TYPE" => "textarea", "FIELD_WIDTH" => 40, "FIELD_HEIGHT" => 4))), array("SID" => "ADMIN_NOTE", "ADDITIONAL" => 'Y', "REQUIRED" => "N", "FIELD_TYPE" => "text"));
    $formID = CreateForm($arForm, $arFormFields, "service_supplies.php");
}
开发者ID:mrdeadmouse,项目名称:u136006,代码行数:25,代码来源:service_supplies.php

示例5: array

<?php

if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) {
    die;
}
if (!CModule::IncludeModule("form")) {
    return;
}
require_once "functions.php";
$formID = false;
$rsForms = CForm::GetList($by = "s_id", $order = "desc", array("SID" => "ADM_TROUBLESHOOTING_" . WIZARD_SITE_ID, "arSITE" => array(WIZARD_SITE_ID)), $is_filtered);
while ($arForm = $rsForms->Fetch()) {
    $formID = $arForm["ID"];
}
if ($formID == false && WIZARD_SITE_ID == "s1") {
    $rsForms = CForm::GetList($by = "s_id", $order = "desc", array("SID" => "ADM_TROUBLESHOOTING", "arSITE" => array(WIZARD_SITE_ID)), $is_filtered);
    while ($arForm = $rsForms->Fetch()) {
        $formID = $arForm["ID"];
    }
}
if ($formID == false) {
    $arForm = array("NAME" => GetMessage("SERVICE_ADM_FORM_NAME"), "SID" => "ADM_TROUBLESHOOTING_" . WIZARD_SITE_ID, "C_SORT" => 200, "BUTTON" => GetMessage("SERVICE_ADM_FORM_BUTTON"), "DESCRIPTION" => "", "DESCRIPTION_TYPE" => "text", "USE_CAPTCHA" => "N", "USE_RESTRICTIONS" => "N", "STAT_EVENT1" => "form", "STAT_EVENT2" => "adm_troubleshooting", "STAT_EVENT4" => "", "arSITE" => array(WIZARD_SITE_ID), "arMENU" => array(), "arGROUP" => array(WIZARD_EMPLOYEES_GROUP => "15", WIZARD_PERSONNEL_DEPARTMENT_GROUP => "30", WIZARD_PORTAL_ADMINISTRATION_GROUP => "30"));
    $arFormFields = array(array("SID" => "REQUEST_TYPE", "REQUIRED" => "Y", "arANSWER" => array(array("MESSAGE" => GetMessage("REQUEST_TYPE_ANSWER1"), "VALUE" => "phone", "C_SORT" => 100, "ACTIVE" => "Y", "FIELD_TYPE" => "dropdown"), array("MESSAGE" => GetMessage("REQUEST_TYPE_ANSWER2"), "VALUE" => "furniture", "C_SORT" => 200, "ACTIVE" => "Y", "FIELD_TYPE" => "dropdown"), array("MESSAGE" => GetMessage("REQUEST_TYPE_ANSWER3"), "VALUE" => "cleaning", "C_SORT" => 300, "ACTIVE" => "Y", "FIELD_TYPE" => "dropdown"), array("MESSAGE" => GetMessage("REQUEST_TYPE_ANSWER4"), "VALUE" => "other", "C_SORT" => 400, "ACTIVE" => "Y", "FIELD_TYPE" => "dropdown")), "arFILTER_ANSWER_VALUE" => array("text", "dropdown")), array("SID" => "REQUEST_NAME", "REQUIRED" => "Y", "arANSWER" => array(array("MESSAGE" => " ", "VALUE" => "", "ACTIVE" => "Y", "FIELD_TYPE" => "text", "FIELD_WIDTH" => 50)), "arFILTER_USER" => array("text")), array("SID" => "TROUBLE_DESCRIPTION", "REQUIRED" => "N", "arANSWER" => array(array("MESSAGE" => " ", "VALUE" => "", "ACTIVE" => "Y", "FIELD_TYPE" => "textarea", "FIELD_WIDTH" => 40, "FIELD_HEIGHT" => 10))), array("SID" => "URGENCY", "REQUIRED" => "N", "arANSWER" => array(array("MESSAGE" => " ", "VALUE" => "", "ACTIVE" => "Y", "FIELD_TYPE" => "textarea", "FIELD_WIDTH" => 40, "FIELD_HEIGHT" => 4))), array("SID" => "COMMENT", "REQUIRED" => "N", "arANSWER" => array(array("MESSAGE" => " ", "VALUE" => "", "ACTIVE" => "Y", "FIELD_TYPE" => "textarea", "FIELD_WIDTH" => 40, "FIELD_HEIGHT" => 4))), array("SID" => "ADMIN_NOTE", "ADDITIONAL" => 'Y', "FIELD_TYPE" => "text"));
    $formID = CreateForm($arForm, $arFormFields, "service_adm.php");
}
开发者ID:mrdeadmouse,项目名称:u136006,代码行数:25,代码来源:service_adm.php

示例6: getForm

    /**
     * @return string
     */
    public function getForm()
    {
        /*
         * select form list
         */
        $formList = array();
        $formDb = \CForm::GetList($by = "s_sort", $order = "asc", array(), $filtered);
        while ($form = $formDb->Fetch()) {
            $formList[] = array('ID' => $form['ID'], 'NAME' => $form['NAME']);
        }
        if (!empty($formList)) {
            $formList = array_merge(array(array('ID' => '', 'NAME' => Loc::getMessage('sender_connector_form_select'))), $formList);
        } else {
            $formList = array_merge(array(array('ID' => '', 'NAME' => Loc::getMessage('sender_connector_form_empty'))), $formList);
        }
        /*
         * select properties from all forms
         */
        $propertyToForm = array();
        $propertyList = array();
        $propertyList[''][] = array('ID' => '', 'NAME' => Loc::getMessage('sender_connector_form_select'));
        $propertyList['EMPTY'][] = array('ID' => '', 'NAME' => Loc::getMessage('sender_connector_form_prop_empty'));
        foreach ($formList as $form) {
            if (empty($form['ID'])) {
                continue;
            }
            $formFieldsDb = \CFormField::GetList($form['ID'], 'N', $by = "s_sort", $order = "asc", array(), $filtered);
            while ($formFields = $formFieldsDb->Fetch()) {
                if ($formFields['TITLE_TYPE'] != 'text') {
                    continue;
                }
                // add default value
                if (!array_key_exists($formFields['FORM_ID'], $propertyList)) {
                    $propertyList[$formFields['FORM_ID']][] = array('ID' => '', 'NAME' => Loc::getMessage('sender_connector_form_field_select'));
                }
                // add property
                $propertyList[$formFields['FORM_ID']][] = array('ID' => $formFields['ID'], 'NAME' => $formFields['TITLE']);
                // add property link to iblock
                $propertyToForm[$formFields['ID']] = $formFields['FORM_ID'];
            }
        }
        /*
         * create html-control of form list
         */
        $formInput = '<select name="' . $this->getFieldName('FORM') . '" id="' . $this->getFieldId('FORM') . '" onChange="FormSelect' . $this->getFieldId('FORM') . '()">';
        foreach ($formList as $form) {
            $inputSelected = $form['ID'] == $this->getFieldValue('FORM') ? 'selected' : '';
            $formInput .= '<option value="' . $form['ID'] . '" ' . $inputSelected . '>';
            $formInput .= htmlspecialcharsbx($form['NAME']);
            $formInput .= '</option>';
        }
        $formInput .= '</select>';
        /*
         * create html-control of properties list for name
         */
        $formPropertyNameInput = '<select name="' . $this->getFieldName('PROPERTY_NAME') . '" id="' . $this->getFieldId('PROPERTY_NAME') . '">';
        if (array_key_exists($this->getFieldValue('PROPERTY_NAME', 0), $propertyToForm)) {
            $arProp = $propertyList[$propertyToForm[$this->getFieldValue('PROPERTY_NAME', 0)]];
        } else {
            $arProp = $propertyList[''];
        }
        foreach ($arProp as $property) {
            $inputSelected = $property['ID'] == $this->getFieldValue('PROPERTY_NAME') ? 'selected' : '';
            $formPropertyNameInput .= '<option value="' . $property['ID'] . '" ' . $inputSelected . '>';
            $formPropertyNameInput .= htmlspecialcharsbx($property['NAME']);
            $formPropertyNameInput .= '</option>';
        }
        $formPropertyNameInput .= '</select>';
        /*
         *  create html-control of properties list for email
         */
        $formPropertyEmailInput = '<select name="' . $this->getFieldName('PROPERTY_EMAIL') . '" id="' . $this->getFieldId('PROPERTY_EMAIL') . '">';
        if (array_key_exists($this->getFieldValue('PROPERTY_EMAIL', 0), $propertyToForm)) {
            $arProp = $propertyList[$propertyToForm[$this->getFieldValue('PROPERTY_EMAIL', 0)]];
        } else {
            $arProp = $propertyList[''];
        }
        foreach ($arProp as $property) {
            $inputSelected = $property['ID'] == $this->getFieldValue('PROPERTY_EMAIL') ? 'selected' : '';
            $formPropertyEmailInput .= '<option value="' . $property['ID'] . '" ' . $inputSelected . '>';
            $formPropertyEmailInput .= htmlspecialcharsbx($property['NAME']);
            $formPropertyEmailInput .= '</option>';
        }
        $formPropertyEmailInput .= '</select>';
        $jsScript = "\n\t\t<script>\n\t\t\tfunction FormSelect" . $this->getFieldId('FORM') . "()\n\t\t\t{\n\t\t\t\tvar iblock = BX('" . $this->getFieldId('FORM') . "');\n\t\t\t\tFormPropertyAdd(iblock, BX('" . $this->getFieldId('PROPERTY_NAME') . "'));\n\t\t\t\tFormPropertyAdd(iblock, BX('" . $this->getFieldId('PROPERTY_EMAIL') . "'));\n\t\t\t}\n\t\t\tfunction FormPropertyAdd(iblock, iblockProperty)\n\t\t\t{\n\t\t\t\tif(iblockProperty.length>0)\n\t\t\t\t{\n\t\t\t\t\tfor (var j in iblockProperty.options)\n\t\t\t\t\t{\n\t\t\t\t\t\tiblockProperty.options.remove(j);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tvar propList = {};\n\t\t\t\tif(formProperties[iblock.value] && formProperties[iblock.value].length>0)\n\t\t\t\t\tpropList = formProperties[iblock.value];\n\t\t\t\telse\n\t\t\t\t\tpropList = formProperties['EMPTY'];\n\t\t\t\tfor(var i in propList)\n\t\t\t\t{\n\t\t\t\t\tvar optionName = propList[i]['NAME'];\n\t\t\t\t\tvar optionValue = propList[i]['ID'];\n\t\t\t\t\tiblockProperty.options.add(new Option(optionName, optionValue));\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\tvar formProperties = " . \CUtil::PhpToJSObject($propertyList) . ";\n\t\t</script>\n\t\t";
        return '
			' . Loc::getMessage('sender_connector_form_required_settings') . '
			<br/><br/>
			<table>
				<tr>
					<td>' . Loc::getMessage('sender_connector_form_field_form') . '</td>
					<td>' . $formInput . '</td>
				</tr>
				<tr>
					<td>' . Loc::getMessage('sender_connector_form_field_name') . '</td>
					<td>' . $formPropertyNameInput . '</td>
				</tr>
//.........这里部分代码省略.........
开发者ID:mrdeadmouse,项目名称:u136006,代码行数:101,代码来源:senderconnector.php

示例7: ShowError

    $APPLICATION->AuthForm(GetMessage('FRLM_NEED_AUTH'));
    return false;
}
if (!CModule::IncludeModule('form')) {
    ShowError('FRLM_MODULE_NOT_INSTALLED');
    return false;
}
if (!is_array($arParams['FORMS'])) {
    $arParams['FORMS'] = array();
} else {
    TrimArr($arParams['FORMS']);
}
$arResult['FORMS'] = array();
$arResult['RESULTS'] = array();
if (count($arParams['FORMS']) <= 0) {
    $dbRes = CForm::GetList($by = 'sort', $order = 'asc', array('SITE' => SITE_ID), $is_filtered);
    while ($arRes = $dbRes->GetNext()) {
        $arParams['FORMS'][] = $arRes['ID'];
        $arResult['FORMS'][$arRes['ID']] = $arRes;
    }
}
foreach ($arParams['FORMS'] as $FORM_ID) {
    if (is_array($arResult['FORMS'][$FORM_ID])) {
        $arForm = $arResult['FORMS'][$FORM_ID];
    } else {
        $dbRes = CForm::GetByID($FORM_ID);
        $arForm = $dbRes->GetNext();
    }
    if ($arForm) {
        if ($arParams['LIST_URL']) {
            $arForm['__LINK'] = str_replace('#FORM_ID#', $FORM_ID, $arParams['LIST_URL']);
开发者ID:k-kalashnikov,项目名称:geekcon_new,代码行数:31,代码来源:component.php

示例8: array

<?php

if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) {
    die;
}
if (!CModule::IncludeModule('form')) {
    return;
}
$arForms = array();
$dbRes = CForm::GetList($by = 's_sort', $order = 'asc', array('ACTIVE' => 'Y'), $is_filtered);
while ($arRes = $dbRes->Fetch()) {
    $arForms[$arRes['ID']] = '[' . $arRes['SID'] . '] ' . $arRes['NAME'];
}
$arComponentParameters = array('GROUPS' => array(), 'PARAMETERS' => array('FORMS' => array('NAME' => GetMessage('FRLM_PARAM_FORMS'), 'TYPE' => 'LIST', 'VALUES' => $arForms, 'MULTIPLE' => 'Y', 'ADDITIONAL_VALUES' => 'Y', 'PARENT' => 'BASE'), 'NUM_RESULTS' => array('NAME' => GetMessage('FRLM_PARAM_NUM_RESULTS'), 'TYPE' => 'STRING', 'DEFAULT' => '10'), 'LIST_URL' => array('NAME' => GetMessage('FRLM_PARAM_LIST_URL'), 'TYPE' => 'STRING', 'DEFAULT' => 'my_result_list.php?WEB_FORM_ID=#FORM_ID#'), 'VIEW_URL' => array('NAME' => GetMessage('FRLM_PARAM_VIEW_URL'), 'TYPE' => 'STRING', 'DEFAULT' => 'my_result_view.php?WEB_FORM_ID=#FORM_ID#&RESULT_ID=#RESULT_ID#'), 'EDIT_URL' => array('NAME' => GetMessage('FRLM_PARAM_EDIT_URL'), 'TYPE' => 'STRING', 'DEFAULT' => 'my_result_edit.php?WEB_FORM_ID=#FORM_ID#&RESULT_ID=#RESULT_ID#')));
开发者ID:rasuldev,项目名称:torino,代码行数:14,代码来源:.parameters.php

示例9: array

<?php

if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) {
    die;
}
if (!CModule::IncludeModule("form")) {
    return;
}
require_once "functions.php";
$formID = false;
$rsForms = CForm::GetList($by = "s_id", $order = "desc", array("SID" => "HR_REQUEST_" . WIZARD_SITE_ID, "arSITE" => array(WIZARD_SITE_ID)), $is_filtered);
while ($arForm = $rsForms->Fetch()) {
    $formID = $arForm["ID"];
}
if ($formID == false && WIZARD_SITE_ID == "s1") {
    $rsForms = CForm::GetList($by = "s_id", $order = "desc", array("SID" => "HR_REQUEST", "arSITE" => array(WIZARD_SITE_ID)), $is_filtered);
    while ($arForm = $rsForms->Fetch()) {
        $formID = $arForm["ID"];
    }
}
if ($formID == false) {
    $arForm = array("NAME" => GetMessage("SERVICE_HR_FORM_NAME"), "SID" => "HR_REQUEST_" . WIZARD_SITE_ID, "C_SORT" => 200, "BUTTON" => GetMessage("SERVICE_HR_FORM_BUTTON"), "DESCRIPTION" => "", "DESCRIPTION_TYPE" => "text", "USE_CAPTCHA" => "N", "USE_RESTRICTIONS" => "N", "STAT_EVENT1" => "form", "STAT_EVENT2" => "hr_request", "STAT_EVENT4" => "", "arSITE" => array(WIZARD_SITE_ID), "arMENU" => array(), "arGROUP" => array(WIZARD_EMPLOYEES_GROUP => "15", WIZARD_PERSONNEL_DEPARTMENT_GROUP => "30", WIZARD_PORTAL_ADMINISTRATION_GROUP => "30"));
    $arFormFields = array(array("SID" => "DEPARTMENT", "REQUIRED" => "Y", "arANSWER" => array(array("MESSAGE" => " ", "VALUE" => "", "ACTIVE" => "Y", "FIELD_TYPE" => "text")), "arFILTER_USER" => array("text")), array("SID" => "POSITION", "REQUIRED" => "Y", "arANSWER" => array(array("MESSAGE" => " ", "VALUE" => "", "ACTIVE" => "Y", "FIELD_TYPE" => "text")), "arFILTER_USER" => array("text")), array("SID" => "DATE_ACTUAL", "REQUIRED" => "N", "arANSWER" => array(array("MESSAGE" => " ", "VALUE" => "", "ACTIVE" => "Y", "FIELD_TYPE" => "date")), "arFILTER_USER" => array("date")), array("SID" => "REQUIREMENTS", "REQUIRED" => "N", "arANSWER" => array(array("MESSAGE" => " ", "VALUE" => "", "ACTIVE" => "Y", "FIELD_TYPE" => "textarea", "FIELD_WIDTH" => 40, "FIELD_HEIGHT" => 4))), array("SID" => "FUNCTIONS", "REQUIRED" => "N", "arANSWER" => array(array("MESSAGE" => " ", "VALUE" => "", "ACTIVE" => "Y", "FIELD_TYPE" => "textarea", "FIELD_WIDTH" => 40, "FIELD_HEIGHT" => 4))), array("SID" => "SALARY", "REQUIRED" => "N", "arANSWER" => array(array("MESSAGE" => " ", "VALUE" => "", "ACTIVE" => "Y", "FIELD_TYPE" => "text", "FIELD_WIDTH" => 3))), array("SID" => "COMMENT", "REQUIRED" => "N", "arANSWER" => array(array("MESSAGE" => " ", "VALUE" => "", "ACTIVE" => "Y", "FIELD_TYPE" => "textarea", "FIELD_WIDTH" => 40, "FIELD_HEIGHT" => 4))), array("SID" => "ADMIN_NOTE", "ADDITIONAL" => 'Y', "REQUIRED" => "N", "FIELD_TYPE" => "text"));
    $formID = CreateForm($arForm, $arFormFields, "service_hr.php");
}
开发者ID:mrdeadmouse,项目名称:u136006,代码行数:25,代码来源:service_hr.php

示例10: array

<?php

if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) {
    die;
}
if (!CModule::IncludeModule("form")) {
    return;
}
require_once "functions.php";
$formID = false;
$rsForms = CForm::GetList($by = "s_id", $order = "desc", array("SID" => "DRIVER_SERVICES_" . WIZARD_SITE_ID, "arSITE" => array(WIZARD_SITE_ID)), $is_filtered);
while ($arForm = $rsForms->Fetch()) {
    $formID = $arForm["ID"];
}
if ($formID == false && WIZARD_SITE_ID == "s1") {
    $rsForms = CForm::GetList($by = "s_id", $order = "desc", array("SID" => "DRIVER_SERVICES", "arSITE" => array(WIZARD_SITE_ID)), $is_filtered);
    while ($arForm = $rsForms->Fetch()) {
        $formID = $arForm["ID"];
    }
}
if ($formID == false) {
    $arForm = array("NAME" => GetMessage("SERVICE_DRIVER_FORM_NAME"), "SID" => "DRIVER_SERVICES_" . WIZARD_SITE_ID, "C_SORT" => 200, "BUTTON" => GetMessage("SERVICE_DRIVER_FORM_BUTTON"), "DESCRIPTION" => "", "DESCRIPTION_TYPE" => "text", "USE_CAPTCHA" => "N", "USE_RESTRICTIONS" => "N", "STAT_EVENT1" => "form", "STAT_EVENT2" => "driver_services", "STAT_EVENT4" => "", "arSITE" => array(WIZARD_SITE_ID), "arMENU" => array(), "arGROUP" => array(WIZARD_EMPLOYEES_GROUP => "15", WIZARD_PERSONNEL_DEPARTMENT_GROUP => "30", WIZARD_PORTAL_ADMINISTRATION_GROUP => "30"));
    $arFormFields = array(array("SID" => "VEHICLE_TYPE", "REQUIRED" => "Y", "arANSWER" => array(array("MESSAGE" => GetMessage("VEHICLE_TYPE_ANSWER1"), "VALUE" => "car", "C_SORT" => 100, "ACTIVE" => "Y", "FIELD_TYPE" => "dropdown"), array("MESSAGE" => GetMessage("VEHICLE_TYPE_ANSWER2"), "VALUE" => "lorry", "C_SORT" => 200, "ACTIVE" => "Y", "FIELD_TYPE" => "dropdown"), array("MESSAGE" => GetMessage("VEHICLE_TYPE_ANSWER3"), "VALUE" => "bus", "C_SORT" => 300, "ACTIVE" => "Y", "FIELD_TYPE" => "dropdown"), array("MESSAGE" => GetMessage("VEHICLE_TYPE_ANSWER4"), "VALUE" => "limousine", "C_SORT" => 400, "ACTIVE" => "Y", "FIELD_TYPE" => "dropdown")), "arFILTER_ANSWER_VALUE" => array("text", "dropdown")), array("SID" => "DATE", "REQUIRED" => "Y", "arANSWER" => array(array("MESSAGE" => " ", "VALUE" => "", "ACTIVE" => "Y", "FIELD_TYPE" => "date")), "arFILTER_USER" => array("date")), array("SID" => "TIME", "REQUIRED" => "N", "arANSWER" => array(array("MESSAGE" => " ", "VALUE" => "", "ACTIVE" => "Y", "FIELD_TYPE" => "text"))), array("SID" => "DESTINATION", "REQUIRED" => "Y", "arANSWER" => array(array("MESSAGE" => " ", "VALUE" => "", "ACTIVE" => "Y", "FIELD_TYPE" => "text"))), array("SID" => "DURATION", "REQUIRED" => "N", "arANSWER" => array(array("MESSAGE" => " ", "VALUE" => "", "ACTIVE" => "Y", "FIELD_TYPE" => "text", "FIELD_WIDTH" => 3))), array("SID" => "PLACES", "REQUIRED" => "N", "arANSWER" => array(array("MESSAGE" => " ", "VALUE" => "", "ACTIVE" => "Y", "FIELD_TYPE" => "text", "FIELD_WIDTH" => 3))), array("SID" => "COMMENT", "REQUIRED" => "N", "arANSWER" => array(array("MESSAGE" => " ", "VALUE" => "", "ACTIVE" => "Y", "FIELD_TYPE" => "textarea", "FIELD_WIDTH" => 40, "FIELD_HEIGHT" => 4))), array("SID" => "ADMIN_NOTE", "ADDITIONAL" => 'Y', "FIELD_TYPE" => "text"));
    $formID = CreateForm($arForm, $arFormFields, "service_driver.php");
}
开发者ID:mrdeadmouse,项目名称:u136006,代码行数:25,代码来源:service_driver.php

示例11: array

<?php

if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) {
    die;
}
if (!CModule::IncludeModule("form")) {
    return;
}
require_once "functions.php";
$formID = false;
$rsForms = CForm::GetList($by = "s_id", $order = "desc", array("SID" => "CONSUMABLES_" . WIZARD_SITE_ID, "arSITE" => array(WIZARD_SITE_ID)), $is_filtered);
while ($arForm = $rsForms->Fetch()) {
    $formID = $arForm["ID"];
}
if ($formID == false && WIZARD_SITE_ID == "s1") {
    $rsForms = CForm::GetList($by = "s_id", $order = "desc", array("SID" => "CONSUMABLES", "arSITE" => array(WIZARD_SITE_ID)), $is_filtered);
    while ($arForm = $rsForms->Fetch()) {
        $formID = $arForm["ID"];
    }
}
if ($formID == false) {
    $arForm = array("NAME" => GetMessage("SERVICE_CONSUMABLES_FORM_NAME"), "SID" => "CONSUMABLES_" . WIZARD_SITE_ID, "C_SORT" => 200, "BUTTON" => GetMessage("SERVICE_CONSUMABLES_FORM_BUTTON"), "DESCRIPTION" => "", "DESCRIPTION_TYPE" => "text", "USE_CAPTCHA" => "N", "USE_RESTRICTIONS" => "N", "STAT_EVENT1" => "form", "STAT_EVENT2" => "consumables", "STAT_EVENT4" => "", "arSITE" => array(WIZARD_SITE_ID), "arMENU" => array(), "arGROUP" => array(WIZARD_EMPLOYEES_GROUP => "15", WIZARD_PERSONNEL_DEPARTMENT_GROUP => "30", WIZARD_PORTAL_ADMINISTRATION_GROUP => "30"));
    $arFormFields = array(array("SID" => "REQUEST", "REQUIRED" => "Y", "arANSWER" => array(array("MESSAGE" => " ", "VALUE" => "", "ACTIVE" => "Y", "FIELD_TYPE" => "textarea")), "arFILTER_USER" => array("text")), array("SID" => "COMMENT", "REQUIRED" => "N", "arANSWER" => array(array("MESSAGE" => " ", "VALUE" => "", "ACTIVE" => "Y", "FIELD_TYPE" => "textarea", "FIELD_WIDTH" => 40, "FIELD_HEIGHT" => 4))), array("SID" => "ADMIN_NOTE", "ADDITIONAL" => 'Y', "REQUIRED" => "N", "FIELD_TYPE" => "text"));
    $formID = CreateForm($arForm, $arFormFields, "service_consumables.php");
}
开发者ID:mrdeadmouse,项目名称:u136006,代码行数:25,代码来源:service_consumables.php

示例12: array

<?php

if (!defined('B_PROLOG_INCLUDED') || B_PROLOG_INCLUDED !== true) {
    die;
}
if (!CModule::IncludeModule('form')) {
    return;
}
$forms = [];
$rs = CForm::GetList($by = 's_sort', $order = 'asc', array('SITE' => $_REQUEST['site']), $v3);
while ($form = $rs->Fetch()) {
    $forms[$form['SID']] = '[' . $form['SID'] . '] ' . $form['NAME'];
}
$arComponentParameters = array('GROUPS' => array('FORM_PARAMS' => array('NAME' => GetMessage('COMP_FORM_GROUP_PARAMS'))), 'PARAMETERS' => array('WEB_FORM_CODE' => array('NAME' => 'Код веб-формы', 'TYPE' => 'LIST', 'VALUES' => $forms, 'ADDITIONAL_VALUES' => 'Y', 'DEFAULT' => '', 'PARENT' => 'DATA_SOURCE'), 'CACHE_TIME' => array('DEFAULT' => '3600')));
开发者ID:notagency,项目名称:notagency.base,代码行数:14,代码来源:.parameters.php

示例13: array

<?php

if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) {
    die;
}
if (!CModule::IncludeModule("form")) {
    return;
}
require_once "functions.php";
$formID = false;
$rsForms = CForm::GetList($by = "s_id", $order = "desc", array("SID" => "COURIER_DELIVERY_" . WIZARD_SITE_ID, "arSITE" => array(WIZARD_SITE_ID)), $is_filtered);
while ($arForm = $rsForms->Fetch()) {
    $formID = $arForm["ID"];
}
if ($formID == false && WIZARD_SITE_ID == "s1") {
    $rsForms = CForm::GetList($by = "s_id", $order = "desc", array("SID" => "COURIER_DELIVERY", "arSITE" => array(WIZARD_SITE_ID)), $is_filtered);
    while ($arForm = $rsForms->Fetch()) {
        $formID = $arForm["ID"];
    }
}
if ($formID == false) {
    $arForm = array("NAME" => GetMessage("SERVICE_COURIER_FORM_NAME"), "SID" => "COURIER_DELIVERY_" . WIZARD_SITE_ID, "C_SORT" => 200, "BUTTON" => GetMessage("SERVICE_COURIER_FORM_BUTTON"), "DESCRIPTION" => "", "DESCRIPTION_TYPE" => "text", "USE_CAPTCHA" => "N", "USE_RESTRICTIONS" => "N", "STAT_EVENT1" => "form", "STAT_EVENT2" => "courier_delivery", "STAT_EVENT4" => "", "arSITE" => array(WIZARD_SITE_ID), "arMENU" => array(), "arGROUP" => array(WIZARD_EMPLOYEES_GROUP => "15", WIZARD_PERSONNEL_DEPARTMENT_GROUP => "30", WIZARD_PORTAL_ADMINISTRATION_GROUP => "30"));
    $arFormFields = array(array("SID" => "DATE", "REQUIRED" => "Y", "arANSWER" => array(array("MESSAGE" => " ", "VALUE" => "", "ACTIVE" => "Y", "FIELD_TYPE" => "date")), "arFILTER_USER" => array("date")), array("SID" => "ADDRESS", "REQUIRED" => "N", "arANSWER" => array(array("MESSAGE" => " ", "VALUE" => "", "ACTIVE" => "Y", "FIELD_TYPE" => "text")), "FIELD_WIDTH" => 50, "arFILTER_USER" => array("text")), array("SID" => "WEIGHT", "REQUIRED" => "N", "arANSWER" => array(array("MESSAGE" => " ", "VALUE" => "", "ACTIVE" => "Y", "FIELD_TYPE" => "text", "FIELD_WIDTH" => 3)), "arFILTER_USER" => array("text")), array("SID" => "DESCRIPTION", "REQUIRED" => "N", "arANSWER" => array(array("MESSAGE" => " ", "VALUE" => "", "ACTIVE" => "Y", "FIELD_TYPE" => "textarea", "FIELD_WIDTH" => 40, "FIELD_HEIGHT" => 4))), array("SID" => "COMMENT", "REQUIRED" => "N", "arANSWER" => array(array("MESSAGE" => " ", "VALUE" => "", "ACTIVE" => "Y", "FIELD_TYPE" => "textarea", "FIELD_WIDTH" => 40, "FIELD_HEIGHT" => 4))), array("SID" => "ADMIN_NOTE", "ADDITIONAL" => 'Y', "REQUIRED" => "N", "FIELD_TYPE" => "text"));
    $formID = CreateForm($arForm, $arFormFields, "service_courier.php");
}
开发者ID:mrdeadmouse,项目名称:u136006,代码行数:25,代码来源:service_courier.php

示例14: array

<?php

if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) {
    die;
}
if (!CModule::IncludeModule("form")) {
    return;
}
require_once "functions.php";
$formID = false;
$rsForms = CForm::GetList($by = "s_id", $order = "desc", array("SID" => "VISITOR_ACCESS_" . WIZARD_SITE_ID, "arSITE" => array(WIZARD_SITE_ID)), $is_filtered);
while ($arForm = $rsForms->Fetch()) {
    $formID = $arForm["ID"];
}
if ($formID == false && WIZARD_SITE_ID == "s1") {
    $rsForms = CForm::GetList($by = "s_id", $order = "desc", array("SID" => "VISITOR_ACCESS", "arSITE" => array(WIZARD_SITE_ID)), $is_filtered);
    while ($arForm = $rsForms->Fetch()) {
        $formID = $arForm["ID"];
    }
}
if ($formID == false) {
    $arForm = array("NAME" => GetMessage("SERVICE_VISITOR_FORM_NAME"), "SID" => "VISITOR_ACCESS_" . WIZARD_SITE_ID, "C_SORT" => 200, "BUTTON" => GetMessage("SERVICE_VISITOR_FORM_BUTTON"), "DESCRIPTION" => "", "DESCRIPTION_TYPE" => "text", "USE_CAPTCHA" => "N", "USE_RESTRICTIONS" => "N", "STAT_EVENT1" => "form", "STAT_EVENT2" => "visitor_access", "STAT_EVENT4" => "", "arSITE" => array(WIZARD_SITE_ID), "arMENU" => array(), "arGROUP" => array(WIZARD_EMPLOYEES_GROUP => "15", WIZARD_PERSONNEL_DEPARTMENT_GROUP => "30", WIZARD_PORTAL_ADMINISTRATION_GROUP => "30"));
    $arFormFields = array(array("SID" => "VISITOR_NAME", "REQUIRED" => "Y", "arANSWER" => array(array("MESSAGE" => " ", "VALUE" => "", "ACTIVE" => "Y", "FIELD_TYPE" => "text")), "arFILTER_USER" => array("text")), array("SID" => "VISITOR_COMPANY", "REQUIRED" => "N", "arANSWER" => array(array("MESSAGE" => " ", "VALUE" => "", "ACTIVE" => "Y", "FIELD_TYPE" => "text", "FIELD_WIDTH" => 50)), "arFILTER_USER" => array("text")), array("SID" => "VISITOR_CAR", "REQUIRED" => "N", "arANSWER" => array(array("MESSAGE" => " ", "VALUE" => "", "ACTIVE" => "Y", "FIELD_TYPE" => "text", "FIELD_WIDTH" => 50)), "arFILTER_USER" => array("text")), array("SID" => "VISITOR_DATE_FROM", "REQUIRED" => "N", "arANSWER" => array(array("MESSAGE" => " ", "VALUE" => "", "ACTIVE" => "Y", "FIELD_TYPE" => "date"))), array("SID" => "VISITOR_DATE_TO", "REQUIRED" => "N", "arANSWER" => array(array("MESSAGE" => " ", "VALUE" => "", "ACTIVE" => "Y", "FIELD_TYPE" => "date"))), array("SID" => "VISITOR_VISITS", "REQUIRED" => "N", "arANSWER" => array(array("MESSAGE" => " ", "VALUE" => "", "ACTIVE" => "Y", "FIELD_TYPE" => "text", "FIELD_WIDTH" => 3))), array("SID" => "VISITOR_REASON", "REQUIRED" => "N", "arANSWER" => array(array("MESSAGE" => " ", "VALUE" => "", "ACTIVE" => "Y", "FIELD_TYPE" => "text"))), array("SID" => "COMMENT", "REQUIRED" => "N", "arANSWER" => array(array("MESSAGE" => " ", "VALUE" => "", "ACTIVE" => "Y", "FIELD_TYPE" => "textarea", "FIELD_WIDTH" => 40, "FIELD_HEIGHT" => 4))), array("SID" => "ADMIN_NOTE", "ADDITIONAL" => 'Y', "REQUIRED" => "N", "FIELD_TYPE" => "text"));
    $formID = CreateForm($arForm, $arFormFields, "service_visitor.php");
}
开发者ID:mrdeadmouse,项目名称:u136006,代码行数:25,代码来源:service_visitor.php


注:本文中的CForm::GetList方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。