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


PHP CAdminForm::BeginCustomField方法代码示例

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


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

示例1: showTabElements

 /**
  * Отрисовывает вкладку со всеми привязанными к ней полями.
  *
  * @param $tabSettings
  * @internal
  */
 private function showTabElements($tabSettings)
 {
     $this->setContext(AdminEditHelper::OP_SHOW_TAB_ELEMENTS);
     $this->tabControl->BeginNextFormTab();
     foreach ($this->getFields() as $code => $fieldSettings) {
         $widget = $this->createWidgetForField($code, $this->data);
         $fieldTab = $widget->getSettings('TAB');
         $fieldOnCurrentTab = ($fieldTab == $tabSettings['DIV'] or $tabSettings['DIV'] == 'DEFAULT_TAB');
         if (!$fieldOnCurrentTab) {
             continue;
         }
         $fieldSettings = $widget->getSettings();
         if (isset($fieldSettings['VISIBLE']) && $fieldSettings['VISIBLE'] === false) {
             continue;
         }
         $this->tabControl->BeginCustomField($code, $widget->getSettings('TITLE'));
         $pkField = $code == $this->pk();
         $widget->genBasicEditField($pkField);
         $this->tabControl->EndCustomField($code);
     }
 }
开发者ID:Reprezo,项目名称:digitalwand.admin_helper,代码行数:27,代码来源:AdminEditHelper.php

示例2: CAdminForm

/** @var $localization \WS\Tools\Localization */
$localization;
?>
<form method="POST"
      action="<?php 
echo $APPLICATION->GetCurUri();
?>
"
      ENCTYPE="multipart/form-data"
      name="apply">

<?php 
$form = new CAdminForm('ws_tools_conversion', array(array("DIV" => "edit1", "TAB" => $localization->getDataByPath('title'), "TITLE" => $localization->getDataByPath('title'))));
$form->Begin();
$form->BeginNextFormTab();
$form->BeginCustomField('form', '');
$form->AddSection('section-source', 'Источник');
$form->AddDropDownField('selectTypes', 'Тип Инфоблока', '', array());
$form->AddDropDownField('selectIblocks', 'Инфоблок', '', array());
$form->AddDropDownField('selectProperties', 'Свойство Инфоблока', '', array());
$form->AddSection('section-appointment', 'Назначение');
$form->AddDropDownField('new-type-property-info-block', 'Тип', '', array('L' => 'Список', 'E' => 'Привязка к эементам'));
?>
    <div class="adm-info-message">
        <span class="required">
            Внимание! Пока доступна только конвертация свойств типа 'строка' в тип 'список' и 'привязка к элементу'
        </span>
    </div>

<?php 
$form->Buttons(array('btnSave' => false));
开发者ID:Under5,项目名称:bitrix-module-tools,代码行数:31,代码来源:conversion.php

示例3: GetMessage

{
	$urlForm = "&ID=".$ID."&LID=".CUtil::JSEscape($LID);
	if (!$boolLocked)
		CSaleOrder::Lock($ID);
}

$tabControl->Begin(array(
	"FORM_ACTION" => $APPLICATION->GetCurPage()."?lang=".LANGUAGE_ID.$urlForm.GetFilterParams("filter_", false)
));

//order tabs
$tabControl->BeginNextFormTab();

$tabControl->AddSection("NEWO_TITLE_STATUS", GetMessage("NEWO_TITLE_STATUS"));

$tabControl->BeginCustomField("ORDER_STATUS", GetMessage("SOE_STATUS"), true);
?>
	<tr class="adm-detail-required-field">
		<td width="40%"><?php 
echo GetMessage("SOE_STATUS");
?>
:</td>
		<td width="60%">
			<?
			$arFilter = array("LID" => LANGUAGE_ID);
			$arGroupByTmp = false;

			if ($saleModulePermissions < "W")
			{
				$arFilter["GROUP_ID"] = $arUserGroups;
				$arFilter["PERM_STATUS_FROM"] = "Y";
开发者ID:ASDAFF,项目名称:entask.ru,代码行数:31,代码来源:order_new.php

示例4: bitrix_sessid_post

?>
		<?php 
echo bitrix_sessid_post();
?>
		<input type="hidden" name="lang" value="<? echo LANGUAGE_ID; ?>">
		<input type="hidden" name="ID" value="<? echo $ID; ?>">
		<input type="hidden" name="save_order_data" value="Y">
		<?
		$tabControl->EndEpilogContent();

		$tabControl->Begin();

		$tabControl->BeginNextFormTab();

			$tabControl->AddSection("order_id", GetMessage("P_ORDER_ID"));
				$tabControl->BeginCustomField("ORDER_ACCOUNT_NUMBER", GetMessage("SOD_ORDER_ACCOUNT_NUMBER"));
					?>
					<tr>
						<td width="40%"><?echo $tabControl->GetCustomLabelHTML()?>:</td>
						<td width="60%"><?echo $arOrder["ACCOUNT_NUMBER"]?></td>
					</tr>
					<?
				$tabControl->EndCustomField("ORDER_ACCOUNT_NUMBER", '');
				$tabControl->BeginCustomField("ORDER_DATE_CREATE", GetMessage("SOD_ORDER_DATE_CREATE"));
					?>
					<tr>
						<td width="40%"><?echo $tabControl->GetCustomLabelHTML()?>:</td>
						<td width="60%"><?echo $arOrder["DATE_INSERT"]?></td>
					</tr>
					<?
				$tabControl->EndCustomField("ORDER_DATE_CREATE", '');
开发者ID:akniyev,项目名称:arteva.ru,代码行数:31,代码来源:order_detail.php

示例5: GetMessage

//********************
// первая закладка - форма редактирования параметров рассылки
//********************
$tabControl->BeginNextFormTab();

$tabControl->AddEditField("NAME", GetMessage("USER_NAME").":", true, array("size" => 63, "maxlength" => 255), $block["NAME"]);
$tabControl->AddEditField("PHONE", GetMessage("USER_PHONE").":", true, array("size" => 63, "maxlength" => 255), $block["PHONE"]);

$status = array(
	"new" => GetMessage("SB_CALLBACK_STATUS_NEW"),
	"dialing" => GetMessage("SB_CALLBACK_STATUS_DIALING"),
	"completed" => GetMessage("SB_CALLBACK_STATUS_COMPLETED"),
);

$tabControl->BeginCustomField("field");
?>
	<tr>
		<td><?php 
echo GetMessage("USER_COMMENT");
?>
</td>
		<td><textarea name="USER_COMMENT" cols="65" rows="5" wrap="VIRTUAL"><?php 
echo $block["USER_COMMENT"];
?>
</textarea></td>
	</tr>
	<tr>
		<td><?php 
echo GetMessage("ADMIN_COMMENT");
?>
开发者ID:ASDAFF,项目名称:callback.form,代码行数:30,代码来源:edit.php

示例6: array

$tabControl->Begin(array(
	"FORM_ACTION" => "/bitrix/admin/".CIBlock::GetAdminElementEditLink($IBLOCK_ID, null, $arEditLinkParams)
));

$tabControl->BeginNextFormTab();
	if($ID > 0 && !$bCopy)
	{
		$p = CIblockElement::GetByID($ID);
		$pr = $p->ExtractFields("prn_");
	}
	else
	{
		$pr = array();
	}
$tabControl->AddCheckBoxField("ACTIVE", GetMessage("IBLOCK_FIELD_ACTIVE").":", false, array("Y","N"), $str_ACTIVE=="Y");
$tabControl->BeginCustomField("ACTIVE_FROM", GetMessage("IBLOCK_FIELD_ACTIVE_PERIOD_FROM"), $arIBlock["FIELDS"]["ACTIVE_FROM"]["IS_REQUIRED"] === "Y");
?>
	<tr id="tr_ACTIVE_FROM">
		<td><?echo $tabControl->GetCustomLabelHTML()?>:</td>
		<td><?echo CAdminCalendar::CalendarDate("ACTIVE_FROM", $str_ACTIVE_FROM, 19, true)?></td>
	</tr>
<?
$tabControl->EndCustomField("ACTIVE_FROM", '<input type="hidden" id="ACTIVE_FROM" name="ACTIVE_FROM" value="'.$str_ACTIVE_FROM.'">');
$tabControl->BeginCustomField("ACTIVE_TO", GetMessage("IBLOCK_FIELD_ACTIVE_PERIOD_TO"), $arIBlock["FIELDS"]["ACTIVE_TO"]["IS_REQUIRED"] === "Y");
?>
	<tr id="tr_ACTIVE_TO">
		<td><?echo $tabControl->GetCustomLabelHTML()?>:</td>
		<td><?echo CAdminCalendar::CalendarDate("ACTIVE_TO", $str_ACTIVE_TO, 19, true)?></td>
	</tr>

<?
开发者ID:ASDAFF,项目名称:entask.ru,代码行数:31,代码来源:iblock_element_edit.php

示例7: htmlspecialcharsbx

echo htmlspecialcharsbx($from);
?>
">
	<input type="hidden" name="return_url" value="<?php 
echo htmlspecialcharsbx($return_url);
?>
">
	<input type="hidden" name="ID" value="<?php 
echo $ID;
?>
">
<?php 
$tabControl->EndEpilogContent();
$tabControl->Begin();
$tabControl->BeginNextFormTab();
$tabControl->BeginCustomField("USER_NAME", GetMessage("LEARNING_ADMIN_STUDENT"), false);
?>
<tr>
	<td width="40%"><?php 
echo $tabControl->GetCustomLabelHTML();
?>
:</td>
	<td>
		<?php 
echo $arAttempt["USER_NAME"];
?>
	</td>
</tr>
<?php 
$tabControl->EndCustomField("USER_NAME");
$tabControl->BeginCustomField("ANSWERED", GetMessage("LEARNING_ADMIN_ANSWERED"), false);
开发者ID:DarneoStudio,项目名称:bitrix,代码行数:31,代码来源:learn_test_result_edit.php

示例8: CAdminForm

?>
" ENCTYPE="multipart/form-data" name="apply"><?
$form = new CAdminForm('ws_maigrations_main', array(
    array(
        "DIV" => "edit1",
        "TAB" => $localization->getDataByPath('title'),
        "ICON" => "iblock",
        "TITLE" => $localization->getDataByPath('title'),
    ) ,
));

$form->Begin(array(
    'FORM_ACTION' => $APPLICATION->GetCurUri()
));
$form->BeginNextFormTab();
$form->BeginCustomField('version', 'vv');
?><tr>
    <td width="30%"><?php 
echo $localization->getDataByPath('version');
?>
:</td>
    <td width="60%"><b><?php 
echo \WS\Migrations\Module::getInstance()->getDbVersion();
?>
</b></td>
</tr><?
$form->EndCustomField('version');
$form->BeginCustomField('list', 'vv');
?>
<tr style="color: #1e90ff;">
    <td width="30%"><?php 
开发者ID:ASDAFF,项目名称:bitrix-module-migrations,代码行数:31,代码来源:main.php

示例9: CAdminForm

?>
" ENCTYPE="multipart/form-data" name="apply"><?
    $form = new CAdminForm('ws_maigrations_export', array(
        array(
            "DIV" => "edit1",
            "TAB" => $localization->getDataByPath('title'),
            "ICON" => "iblock",
            "TITLE" => $localization->getDataByPath('title'),
        ) ,
    ));

    $form->Begin(array(
        'FORM_ACTION' => $APPLICATION->GetCurUri()
    ));
    $form->BeginNextFormTab();
    $form->BeginCustomField('version', 'vv');
    ?><tr>
        <td width="30%"><?php 
echo $localization->getDataByPath('version');
?>
:</td>
        <td width="60%"><b><?php 
echo \WS\Migrations\Module::getInstance()->getDbVersion();
?>
</b></td>
    </tr><?
    $form->EndCustomField('version');
    $form->EndTab();
    $form->Buttons(array('btnSave' => false, 'btnÀpply' => true));
    $form->Show();
    ?></form><?
开发者ID:ASDAFF,项目名称:bitrix-module-migrations,代码行数:31,代码来源:export.php

示例10: htmlspecialcharsbx

echo htmlspecialcharsbx($from);
?>
">
	<input type="hidden" name="return_url" value="<?php 
echo htmlspecialcharsbx($return_url);
?>
">
	<input type="hidden" name="ID" value="<?php 
echo $ID;
?>
">
<?php 
$tabControl->EndEpilogContent();
$tabControl->Begin();
$tabControl->BeginNextFormTab();
$tabControl->BeginCustomField("TITLE", GetMessage("LEARNING_ADMIN_TITLE"), $required = true);
?>
<tr class="adm-detail-required-field">
	<td width="40%"><?php 
echo $tabControl->GetCustomLabelHTML();
?>
:</td>
	<td>
		<input type="text" name="TITLE" size="20" maxlength="255" value="<?php 
echo $str_TITLE;
?>
">
	</td>
</tr>
<?php 
$tabControl->EndCustomField("TITLE");
开发者ID:mrdeadmouse,项目名称:u136006,代码行数:31,代码来源:learn_group_edit.php

示例11: htmlspecialcharsbx

">
	<?php 
    if (strlen($return_url) > 0) {
        ?>
<input type="hidden" name="return_url" value="<?php 
        echo htmlspecialcharsbx($return_url);
        ?>
"><?php 
    }
    $tabControl->EndEpilogContent();
    $tabControl->Begin();
    $tabControl->BeginNextFormTab();
    ?>
<!-- COURSE_ID -->
<?php 
    $tabControl->BeginCustomField('ID', 'ID', false);
    if ($linkedLessonId > 0) {
        ?>
	<tr>
		<td><?php 
        echo $tabControl->GetCustomLabelHTML();
        ?>
:</td>
		<td><?php 
        echo $linkedLessonId;
        ?>
</td>
	</tr>
	<?php 
    }
    $tabControl->EndCustomField('ID');
开发者ID:DarneoStudio,项目名称:bitrix,代码行数:31,代码来源:learn_course_edit.php

示例12: htmlspecialcharsbx

">
	<?php 
if (strlen($return_url) > 0) {
    ?>
<input type="hidden" name="return_url" value="<?php 
    echo htmlspecialcharsbx($return_url);
    ?>
"><?php 
}
$tabControl->EndEpilogContent();
$tabControl->Begin();
$tabControl->BeginNextFormTab();
?>
<!-- ID -->
<?php 
$tabControl->BeginCustomField("ID", "ID", false);
?>
	<?php 
if ($ID > 0) {
    ?>
		<tr>
			<td><?php 
    echo $tabControl->GetCustomLabelHTML();
    ?>
:</td>
			<td><?php 
    echo $str_ID;
    ?>
</td>
		</tr>
	<?php 
开发者ID:DarneoStudio,项目名称:bitrix,代码行数:31,代码来源:learn_test_edit.php

示例13: GetMessage

if ($boolCopy)
{
	?><input type="hidden" name="action" value="copy"><?
}
$tabControl->EndEpilogContent();
$tabControl->Begin(array(
	"FORM_ACTION" => '/bitrix/admin/cat_discount_edit.php?lang='.urlencode(LANGUAGE_ID),
));

$tabControl->BeginNextFormTab();
	if ($ID > 0 && !$boolCopy)
		$tabControl->AddViewField('ID','ID:',$ID,false);
	$tabControl->AddCheckBoxField("ACTIVE", GetMessage("DSC_ACTIVE").":", false, "Y", $arDiscount['ACTIVE'] == "Y");
	$tabControl->AddEditField("NAME", GetMessage("DSC_NAME").":", true, array("size" => 50, "maxlength" => 255), htmlspecialcharsbx($arDiscount['NAME']));
	$tabControl->AddDropDownField("SITE_ID", GetMessage('DSC_SITE').':', true, $arSiteList, $arDiscount['SITE_ID']);
	$tabControl->BeginCustomField("PERIOD", GetMessage('DSC_PERIOD').":",false);
	?><tr id="tr_PERIOD">
		<td width="40%"><? echo $tabControl->GetCustomLabelHTML(); ?></td>
		<td width="60%"><?
			global $ACTIVE_FROM_FILTER_PERIOD;
			$ACTIVE_FROM_FILTER_PERIOD = "";
			if ('' != $arDiscount['ACTIVE_FROM'] || '' != $arDiscount['ACTIVE_TO'])
				$ACTIVE_FROM_FILTER_PERIOD = CAdminCalendar::PERIOD_INTERVAL;

			echo CAdminCalendar::CalendarPeriodCustom("ACTIVE_FROM", "ACTIVE_TO", $arDiscount['ACTIVE_FROM'], $arDiscount['ACTIVE_TO'], true, 19, true, array(
				CAdminCalendar::PERIOD_EMPTY => GetMessage('BT_CAT_DISCOUNT_EDIT_CALENDARE_PERIOD_EMPTY'),
				CAdminCalendar::PERIOD_INTERVAL => GetMessage('BT_CAT_DISCOUNT_EDIT_CALENDARE_PERIOD_INTERVAL')
			));
		?></td>
	</tr><?
	$tabControl->EndCustomField("PERIOD",
开发者ID:ASDAFF,项目名称:entask.ru,代码行数:31,代码来源:cat_discount_edit.php

示例14: GetMessage

	<?endif?>

	<?
	$topMenu->Show();

	$args = array();
	if($id)
		$args['id'] = $id;

	$tabControl->Begin(array(
		"FORM_ACTION" => Helper::getEditUrl($args) // generally, it is not safe to leave action empty
	));
	$tabControl->BeginNextFormTab();
	?>

	<?$tabControl->BeginCustomField('LOCATIONS', Loc::getMessage('SALE_LOCATION_E_HEADING_LOCATIONS'));?>
		<tr>
		
			<tr class="heading">
				<td colspan="2">
					<?php 
echo GetMessage('SALE_LOCATION_E_FLD_LOCATIONS');
?>
				</td>
			</tr>

			<td>
				<input type="hidden" name="element[ID]" value="<?php 
echo $id;
?>
" />
开发者ID:ASDAFF,项目名称:1C_Bitrix_info_site,代码行数:31,代码来源:location_zone_edit.php

示例15:

		"FORM_ACTION" => Helper::getEditUrl($args) // generally, it is not safe to leave action empty
	));
	$tabControl->BeginNextFormTab();
	?>
	
	<?$requiredFld = ' class="adm-detail-required-field"';?>

	<?$columns = Helper::getColumns('detail');?>
	<?foreach($columns as $code => $field):?>

		<?if($code == 'ID' && !$id) continue; // new node or copied ?>
		<?if(Helper::checkIsNameField($code)) continue; // we`ll output names in a different manner ?>

		<?$value = Helper::makeSafeDisplay($formData[$code], $code);?>

		<?$tabControl->BeginCustomField($code, $field['title']);?>

			<tr<?php 
echo $field['required'] || $code == 'ID' ? $requiredFld : '';
?>
>
				<td width="40%"><?php 
echo $field['title'];
?>
:</td>
				<td width="60%">

					<?if($code == 'ID'):?>

						<?php 
echo $id;
开发者ID:ASDAFF,项目名称:1C_Bitrix_info_site,代码行数:31,代码来源:location_type_edit.php


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