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


PHP CAdminForm::EndCustomField方法代码示例

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


在下文中一共展示了CAdminForm::EndCustomField方法的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: htmlspecialcharsEx

				<?
			}
			else
			{
				$arStatusLand = CSaleStatus::GetLangByID($str_STATUS_ID, LANGUAGE_ID);
				echo htmlspecialcharsEx("[".$str_STATUS_ID."] ".$arStatusLand["NAME"]);
			}
			?>
			<input type="hidden" name="user_id" id="user_id" value="<?php 
echo $str_USER_ID;
?>
" onChange="fUserGetProfile(this);" >
		</td>
	</tr>
<?
$tabControl->EndCustomField("ORDER_STATUS");

if ($ID > 0)
{
	$arSitesShop = array();
	$rsSites = CSite::GetList($by="id", $order="asc", array("ACTIVE" => "Y"));
	while ($arSite = $rsSites->Fetch())
	{
		$site = COption::GetOptionString("sale", "SHOP_SITE_".$arSite["ID"], "");
		if ($arSite["ID"] == $site)
		{
			$arSitesShop[$arSite["ID"]] = array("ID" => $arSite["ID"], "NAME" => $arSite["NAME"]);
		}
	}

	if (count($arSitesShop) > 1)
开发者ID:ASDAFF,项目名称:entask.ru,代码行数:31,代码来源:order_new.php

示例3: GetMessage

		<?
		$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", '');

				$tabControl->BeginCustomField("DATE_UPDATE", GetMessage("SOD_DATE_UPDATE"));
					?>
					<tr>
						<td width="40%"><?echo $tabControl->GetCustomLabelHTML()?>:</td>
						<td width="60%"><?echo $arOrder["DATE_UPDATE"]?></td>
					</tr>
开发者ID:akniyev,项目名称:arteva.ru,代码行数:31,代码来源:order_detail.php

示例4:

		<td>
			<select name="STATUS">
				<?foreach($status as $key=>$value):?>
					<option value="<?php 
echo $key;
?>
"<?if($block["STATUS"]==$key):?> selected<?endif;?>><?php 
echo $value;
?>
</option>
				<?endforeach;?>
			</select>
		</td>
	</tr>
<?
$tabControl->EndCustomField("field");

$tabControl->Buttons(
	array(
		//"disabled"=>($POST_RIGHT<"W"),
		"back_url"=>"softbalance_callback.php?lang=".LANG,
	)
);

$tabControl->Show();

// дополнительное уведомление об ошибках - вывод иконки около поля, в котором возникла ошибка
$tabControl->ShowWarnings("post_form", $message);
?>

<?php 
开发者ID:ASDAFF,项目名称:callback.form,代码行数:31,代码来源:edit.php

示例5: GetMessage

		$tabControl->AddViewField('ID','ID:',$ID,false);
	if (!empty($arDiscountList))
	{
		if (0 < $ID)
		{
			$tabControl->BeginCustomField("DISCOUNT_ID", GetMessage('DSC_CPN_DISC').':', false);
			?><tr id="tr_DISCOUNT_ID" class="adm-detail-required-field">
			<td width="40%"><? echo $tabControl->GetCustomLabelHTML(); ?></td>
			<td width="60%"><?
				if (isset($arDiscountList[$arCoupon['DISCOUNT_ID']]))
				{
					echo htmlspecialcharsex($arDiscountList[$arCoupon['DISCOUNT_ID']]);
				}
			?></td>
			</tr><?
			$tabControl->EndCustomField('DISCOUNT_ID');
		}
		else
		{
			$tabControl->AddDropDownField("DISCOUNT_ID", GetMessage('DSC_CPN_DISC').':', true, $arDiscountList, $arCoupon['DISCOUNT_ID']);
		}
	}
	else
	{
		$tabControl->BeginCustomField("DISCOUNT_ID", GetMessage('DSC_CPN_DISC').':', true);
		?><tr id="tr_DISCOUNT_ID" class="adm-detail-required-field">
			<td width="40%"><? echo $tabControl->GetCustomLabelHTML(); ?></td>
			<td width="60%">&nbsp;<a href="/bitrix/admin/cat_discount_edit.php?lang=<? echo LANGUAGE_ID; ?>&return_url=<? echo urlencode($APPLICATION->GetCurPage()."?lang=".LANGUAGE_ID); ?>"><? echo GetMessage('DSC_ADD_DISCOUNT'); ?></a></td>
		</tr><?
		$tabControl->EndCustomField('DISCOUNT_ID');
	}
开发者ID:ASDAFF,项目名称:entask.ru,代码行数:31,代码来源:cat_discount_coupon_edit.php

示例6: GetMessage

$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);
?>
<tr>
	<td><?php 
echo $tabControl->GetCustomLabelHTML();
?>
:</td>
	<td>
		<input type="checkbox" name="ANSWERED" value="Y"<?php 
if ($str_ANSWERED == "Y") {
    echo " checked";
}
?>
 onclick="OnChangeAnswered(this.checked)">
	</td>
开发者ID:DarneoStudio,项目名称:bitrix,代码行数:31,代码来源:learn_test_result_edit.php

示例7:

    $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');
    ?>
<!-- COURSE_ID -->
<?php 
    $tabControl->BeginCustomField("COURSE_ID", "COURSE_ID", false);
    ?>
	<?php 
    if ($COURSE_ID > 0) {
        ?>
		<tr>
			<td><?php 
        echo $tabControl->GetCustomLabelHTML();
        ?>
:</td>
			<td><?php 
        echo $COURSE_ID;
开发者ID:DarneoStudio,项目名称:bitrix,代码行数:31,代码来源:learn_course_edit.php

示例8: htmlspecialcharsEx

    ?>
				</select>
				<?php 
} else {
    $arStatusLand = CSaleStatus::GetLangByID($str_STATUS_ID, LANGUAGE_ID);
    echo htmlspecialcharsEx("[" . $str_STATUS_ID . "] " . $arStatusLand["NAME"]);
}
?>
			<input type="hidden" name="user_id" id="user_id" value="<?php 
echo $str_USER_ID;
?>
" onChange="fUserGetProfile(this);" >
		</td>
	</tr>
<?php 
$tabControl->EndCustomField("ORDER_STATUS");
if (IntVal($ID) > 0) {
    $arSitesShop = array();
    $rsSites = CSite::GetList($by = "id", $order = "asc", array("ACTIVE" => "Y"));
    while ($arSite = $rsSites->Fetch()) {
        $site = COption::GetOptionString("sale", "SHOP_SITE_" . $arSite["ID"], "");
        if ($arSite["ID"] == $site) {
            $arSitesShop[$arSite["ID"]] = array("ID" => $arSite["ID"], "NAME" => $arSite["NAME"]);
        }
    }
    if (count($arSitesShop) > 1) {
        $tabControl->BeginCustomField("ORDER_SITE", GetMessage("ORDER_SITE"), true);
        ?>
		<tr>
			<td width="40%">
				<?php 
开发者ID:k-kalashnikov,项目名称:geekcon_new,代码行数:31,代码来源:order_new.php

示例9: GetMessage

        }
        $tabControl->AddCheckBoxField("ACTIVE", GetMessage("IBLOCK_FIELD_ACTIVE") . ":", false, "Y", $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><?php 
        echo $tabControl->GetCustomLabelHTML();
        ?>
:</td>
		<td><?php 
        echo CAdminCalendar::CalendarDate("ACTIVE_FROM", $str_ACTIVE_FROM, 19, true);
        ?>
</td>
	</tr>
<?php 
        $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><?php 
        echo $tabControl->GetCustomLabelHTML();
        ?>
:</td>
		<td><?php 
        echo CAdminCalendar::CalendarDate("ACTIVE_TO", $str_ACTIVE_TO, 19, true);
        ?>
</td>
	</tr>

<?php 
        $tabControl->EndCustomField("ACTIVE_TO", '<input type="hidden" id="ACTIVE_TO" name="ACTIVE_TO" value="' . $str_ACTIVE_TO . '">');
开发者ID:k-kalashnikov,项目名称:geekcon_new,代码行数:31,代码来源:iblock_element_edit.php

示例10: GetMessage

$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");
$tabControl->BeginCustomField("CODE", GetMessage("LEARNING_ADMIN_CODE"), false);
?>
<tr>
	<td width="40%"><?php 
echo $tabControl->GetCustomLabelHTML();
?>
:</td>
	<td>
		<input type="text" name="CODE" size="20" maxlength="50" value="<?php 
echo $str_CODE;
?>
">
	</td>
</tr>
<?php 
开发者ID:mrdeadmouse,项目名称:u136006,代码行数:31,代码来源:learn_group_edit.php

示例11: htmlspecialcharsbx

					);
					while ($arVariants = $dbVariants->Fetch())
					{
						$selected = "";
						if ($arVariants["VALUE"] == $fieldValue)
							$selected .= " selected";
					?>
						<option <?echo $selected;?> value="<?echo htmlspecialcharsbx($arVariants["VALUE"]);?>"><?echo htmlspecialcharsbx($arVariants["NAME"]);?></option>
					<?
					}
					?>
					</select>
				</td>
			</tr>
			<?
			$tabControl->EndCustomField("CODE_".$arProperties["ID"]);
		}
		elseif ($arProperties["TYPE"] == "MULTISELECT")
		{
			$tabControl->BeginCustomField("CODE_".$arProperties["ID"], $arProperties["NAME"], $shure);
			?>
			<tr<? ($shure) ? " class=\"adm-detail-required-field\"" : "" ?>>
				<td width="40%">
					<?echo htmlspecialcharsbx($arProperties["NAME"]);?>:
				</td>
				<td width="60%">
					<select multiple size="5" name="<?echo "CODE_".$arProperties["ID"];?>[]">
					<?
					if (strlen($fieldValue) > 0)
					{
						$curVal = explode(",", $fieldValue);
开发者ID:ASDAFF,项目名称:entask.ru,代码行数:31,代码来源:buyers_profile_edit.php

示例12: foreach

" <?php 
            if ($code == 'SORT') {
                ?>
size="7"<?php 
            }
            ?>
 />

					<?php 
        }
        ?>

				</td>
			</tr>
		<?php 
        $tabControl->EndCustomField($code, '');
        ?>

	<?php 
    }
    ?>

	<?php 
    $languages = Helper::getLanguageList();
    $nameMap = Helper::getNameMap();
    ?>
	<?php 
    $tabControl->BeginCustomField('NAME', Loc::getMessage('SALE_LOCATION_E_HEADING_NAME_ALL'));
    ?>
	<?php 
    foreach ($languages as $lang) {
开发者ID:DarneoStudio,项目名称:bitrix,代码行数:31,代码来源:location_type_edit.php

示例13: GetMessage

	<?php 
if ($ID > 0) {
    ?>
		<tr>
			<td><?php 
    echo $tabControl->GetCustomLabelHTML();
    ?>
:</td>
			<td><?php 
    echo $str_ID;
    ?>
</td>
		</tr>
	<?php 
}
$tabControl->EndCustomField("ID");
?>
<!-- Timestamp_X -->
<?php 
$tabControl->BeginCustomField("TIMESTAMP_X", GetMessage("LEARNING_LAST_UPDATE"), false);
?>
	<?php 
if ($ID > 0) {
    ?>
		<tr>
			<td><?php 
    echo $tabControl->GetCustomLabelHTML();
    ?>
:</td>
			<td><?php 
    echo $str_TIMESTAMP_X;
开发者ID:DarneoStudio,项目名称:bitrix,代码行数:31,代码来源:learn_test_edit.php

示例14: GetMessage

	<?php 
    if ($LESSON_ID > 0) {
        ?>
		<tr>
			<td><?php 
        echo $tabControl->GetCustomLabelHTML();
        ?>
:</td>
			<td><?php 
        echo $str_LESSON_ID;
        ?>
</td>
		</tr>
	<?php 
    }
    $tabControl->EndCustomField("LESSON_ID");
    ?>

<!-- Timestamp_X -->
<?php 
    $tabControl->BeginCustomField("TIMESTAMP_X", GetMessage("LEARNING_LAST_UPDATE"), false);
    ?>
	<?php 
    if ($LESSON_ID > 0) {
        ?>
		<tr>
			<td><?php 
        echo $tabControl->GetCustomLabelHTML();
        ?>
:</td>
			<td><?php 
开发者ID:DarneoStudio,项目名称:bitrix,代码行数:31,代码来源:learn_unilesson_edit.php

示例15:

$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 
echo $localization->getDataByPath('list');
?>
:</td>
    <td width="60%">
<?if($fixes):?>
        <ul>
<?foreach ($fixes as $fixName => $fixCount):?>
            <li><b><?php 
echo $fixName;
?>
</b> [<b><?php 
开发者ID:ASDAFF,项目名称:bitrix-module-migrations,代码行数:31,代码来源:main.php


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