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


PHP CAdminForm::BeginNextFormTab方法代码示例

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


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

	<input type="hidden" name="return_url" value="<?php 
    echo htmlspecialcharsbx($return_url);
    ?>
">
	<input type="hidden" name="ID" value="<?php 
    echo $ID;
    ?>
">
	<input type="hidden" name="LESSON_PATH" value="<?php 
    echo htmlspecialcharsbx(urldecode($uriLessonPath));
    ?>
">
<?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;
开发者ID:DarneoStudio,项目名称:bitrix,代码行数:31,代码来源:learn_question_edit.php

示例3: bitrix_sessid_post

}
if ($copy) {
    ?>
<input type="hidden" name="action" value="copy"><?php 
}
if (!empty($returnUrl)) {
    ?>
<input type="hidden" name="return_url" value="<?php 
    echo htmlspecialcharsbx($returnUrl);
    ?>
"><?php 
}
echo bitrix_sessid_post();
$control->EndEpilogContent();
$control->Begin(array('FORM_ACTION' => 'sale_discount_coupon_edit.php?lang=' . LANGUAGE_ID));
$control->BeginNextFormTab();
if ($multiCoupons) {
    $control->AddEditField($prefix . 'COUNT', Loc::getMessage('BX_SALE_DISCOUNT_COUPON_COUNT'), true, array(), $coupon['COUNT'] > 0 ? $coupon['COUNT'] : '');
    $control->BeginCustomField($prefix . 'PERIOD', Loc::getMessage('BX_SALE_DISCOUNT_COUPON_FIELD_PERIOD'), false);
    ?>
<tr id="tr_COUPON_PERIOD">
	<td width="40%"><?php 
    echo $control->GetCustomLabelHTML();
    ?>
</td>
	<td width="60%"><?php 
    $periodValue = '';
    $activeFrom = $coupon['COUPON']['ACTIVE_FROM'] instanceof Main\Type\DateTime ? $coupon['COUPON']['ACTIVE_FROM']->toString() : '';
    $activeTo = $coupon['COUPON']['ACTIVE_TO'] instanceof Main\Type\DateTime ? $coupon['COUPON']['ACTIVE_TO']->toString() : '';
    if ($activeFrom != '' || $activeTo != '') {
        $periodValue = CAdminCalendar::PERIOD_INTERVAL;
开发者ID:DarneoStudio,项目名称:bitrix,代码行数:31,代码来源:discount_coupon_edit.php

示例4: CAdminForm

echo $APPLICATION->GetCurUri();
?>
" 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();
开发者ID:ASDAFF,项目名称:bitrix-module-migrations,代码行数:31,代码来源:export.php

示例5: array

	<?if($actionFailure):?>
		<?CAdminMessage::ShowMessage(array('MESSAGE' => $actionFailureMessage, 'type' => 'ERROR'))?>
	<?endif?>

	<?
	$topMenu->Show();

	$args = array();
	if(intval($_REQUEST['parent_id']))
		$args['parent_id'] = intval($_REQUEST['parent_id']);

	$tabControl->Begin(array(
		"FORM_ACTION" => Helper::getEditUrl(intval($_REQUEST[Helper::URL_PARAM_ID]) ? intval($_REQUEST[Helper::URL_PARAM_ID]) : false, $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']);?>

			<?if(!$geoHeadingShown && ($code == 'LATITUDE' || $code == 'LONGITUDE')):?>
开发者ID:ASDAFF,项目名称:1C_Bitrix_info_site,代码行数:30,代码来源:location_node_edit.php


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