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


PHP CAdminForm::Buttons方法代码示例

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


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

示例1: BeginNote

			<input type="text" id="COUPON" name="COUPON" size="32" maxlength="32" value="<? echo htmlspecialcharsbx($arCoupon['COUPON']); ?>" />&nbsp;
			<input type="button" value="<? echo GetMessage("DSC_CPN_GEN") ?>" id="COUPON_GENERATE">
		</td>
	</tr><?
	$tabControl->EndCustomField('COUPON',
		'<input type="hidden" name="COUPON" value="'.htmlspecialcharsbx($arCoupon['COUPON']).'">'
	);
	$tabControl->AddCalendarField('DATE_APPLY', GetMessage("DDSC_CPN_DATE").':', $arCoupon['DATE_APPLY']);
	$tabControl->AddTextField("DESCRIPTION", GetMessage("DSC_CPN_DESCRIPTION").':', htmlspecialcharsbx($arCoupon['DESCRIPTION']), array("cols" => 50, 'rows' => 6));

	$arButtonsParams = array(
		"disabled" => $bReadOnly,
		"back_url" => "/bitrix/admin/cat_discount_coupon.php?lang=".LANGUAGE_ID.GetFilterParams("filter_", false)
	);

$tabControl->Buttons($arButtonsParams);

$tabControl->Show();

$tabControl->ShowWarnings("tabControl", $obMessages);
echo BeginNote();
?><span class="required" style="vertical-align: super; font-size: smaller;">1</span> <? echo GetMessage('DSC_CPN_ONE_ORDER_NOTE');
echo EndNote();
?><script type="text/javascript">
BX.ready(function(){
	var obCouponValue = BX('COUPON');
	var obCouponBtn = BX('COUPON_GENERATE');
	if (!!obCouponValue && !!obCouponBtn)
	{
		BX.bind(obCouponBtn, 'click', function(){
			BX.showWait();
开发者ID:ASDAFF,项目名称:entask.ru,代码行数:31,代码来源:cat_discount_coupon_edit.php

示例2: intval

	<?php 
echo $tabControl->ShowUserFieldsWithReadyData('HLBLOCK_' . $hlblock['ID'], $row, false, 'ID');
?>

	<?php 
$ufields = $USER_FIELD_MANAGER->GetUserFields('HLBLOCK_' . $hlblock['ID']);
$hasSomeFields = !empty($ufields);
?>

	<?php 
$disable = true;
if ($isEditMode) {
    $disable = false;
}
if ($hasSomeFields) {
    $tabControl->Buttons(array("disabled" => $disable, "back_url" => "highloadblock_rows_list.php?ENTITY_ID=" . intval($hlblock['ID']) . "&lang=" . LANGUAGE_ID));
} else {
    $tabControl->Buttons(false);
}
$tabControl->Show();
?>
</form>



<?php 
if ($_REQUEST["mode"] == "list") {
    require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/epilog_admin_js.php";
} else {
    require_once $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/epilog_admin.php";
}
开发者ID:DarneoStudio,项目名称:bitrix,代码行数:31,代码来源:highloadblock_row_edit.php

示例3: array

" />
				<?$APPLICATION->IncludeComponent("bitrix:sale.location.selector.system", "", array(
						"ENTITY_PRIMARY" => $id,
						"LINK_ENTITY_NAME" => "Bitrix\Sale\Location\SiteLocation",
						"INPUT_NAME" => 'element[LOC]',
						"SELECTED_IN_REQUEST" => array(
							'L' => isset($_REQUEST['element']['LOC']['L']) ? explode(':', $_REQUEST['element']['LOC']['L']) : false,
							'G' => isset($_REQUEST['element']['LOC']['G']) ? explode(':', $_REQUEST['element']['LOC']['G']) : false
						)
					),
					false
				);?>

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

	<?
	$tabControl->Buttons(array(
		"disabled" => !$userIsAdmin,
		"btnApply" => true,
		"btnCancel" => true,
		"back_url" => $returnUrl,
	));

	$tabControl->Show();
	?>

<?endif?>

<?require($_SERVER["DOCUMENT_ROOT"].BX_ROOT."/modules/main/include/epilog_admin.php");?>
开发者ID:ASDAFF,项目名称:1C_Bitrix_info_site,代码行数:31,代码来源:location_zone_edit.php

示例4: while

    while ($item = $res->fetch()) {
        $path[] = $item['CHAIN'];
    }
    $path = implode(', ', array_reverse($path));
    ?>
	<tr>
		<td><?php 
    echo GetMessage("COMPANY_LOCATION");
    ?>
</td>
		<td><?php 
    echo $path;
    ?>
</td>
	</tr>
<?php 
}
$tabControl->EndCustomField('LOCATIONS', '');
$tabControl->AddEditField("ADDRESS", GetMessage("COMPANY_LOCATION"), false, array(), htmlspecialcharsbx($fields['ADDRESS']));
$tabControl->AddEditField("CODE", GetMessage("COMPANY_CODE"), false, array(), htmlspecialcharsbx($fields['CODE']));
if ($id > 0) {
    $tabControl->AddViewField("XML_ID", GetMessage("COMPANY_XML_ID"), htmlspecialcharsbx($fields['XML_ID']));
} else {
    $tabControl->AddEditField("XML_ID", GetMessage("COMPANY_XML_ID"), false, array(), htmlspecialcharsbx($fields['XML_ID']));
}
$tabControl->Buttons(array("disabled" => $saleModulePermissions < 'W', "back_url" => "sale_company.php?lang=" . $lang));
$tabControl->Show();
?>

<?php 
require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/epilog_admin.php";
开发者ID:Satariall,项目名称:izurit,代码行数:31,代码来源:company_edit.php

示例5: intval

							</tr>
						</table>
					</div>
				</td>
			</tr>
		</table>
	</td>
</tr>
<?
$tabControl->EndCustomField("BASKET_CONTAINER");

if (!defined('BX_PUBLIC_MODE') || BX_PUBLIC_MODE != 1)
{
	$tabControl->Buttons(
		array(
			"disabled" => ($boolLocked || !$bUserCanEditOrder),
			"back_url" => "/bitrix/admin/sale_order_new.php?lang=".LANGUAGE_ID."&ID=".$ID."&dontsave=Y&LID=".CUtil::JSEscape($LID).GetFilterParams("filter_"))
	);
}

$tabControl->Show();

// order basket user by manager
if (isset($_GET["user_id"]) && isset($_GET["LID"]) && !$bVarsFromForm)
{
	$userId = intval($_GET["user_id"]);
	$LID = trim($_GET["LID"]);

	$arParams = array();
	echo '<script type="text/javascript">';
	echo 'window.onload = function () {';
开发者ID:ASDAFF,项目名称:entask.ru,代码行数:31,代码来源:order_new.php

示例6: htmlspecialcharsEx

    echo $arGroups["ID"];
    ?>
] <?php 
    echo htmlspecialcharsEx($arGroups["NAME"]);
    ?>
</option><?php 
}
?>
			</select>
		</td>
	</tr><?php 
if ($ID > 0 && !empty($arDiscountGroupList)) {
    $arHidden = array();
    foreach ($arDiscountGroupList as &$value) {
        if (0 < intval($value)) {
            $arHidden[] = '<input type="hidden" name="USER_GROUPS[]" value="' . intval($value) . '">';
        }
    }
    if (isset($value)) {
        unset($value);
    }
    $strHidden = implode('', $arHidden);
} else {
    $strHidden = '<input type="hidden" name="USER_GROUPS[]" value="">';
}
$tabControl->EndCustomField("USER_GROUPS", $strHidden);
$tabControl->BeginNextFormTab();
$tabControl->AddEditField("XML_ID", GetMessage("BT_SALE_DISCOUNT_EDIT_FIELDS_XML_ID") . ":", false, array("size" => 50, "maxlength" => 255), htmlspecialcharsbx($arDiscount['XML_ID']));
$tabControl->Buttons(array("disabled" => $saleModulePermissions < "W", "back_url" => "/bitrix/admin/sale_discount.php?lang=" . LANGUAGE_ID . GetFilterParams("filter_")));
$tabControl->Show();
require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/epilog_admin.php";
开发者ID:k-kalashnikov,项目名称:geekcon_new,代码行数:31,代码来源:discount_edit.php

示例7: CAdminCalendar

    $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;
    }
    $calendar = new CAdminCalendar();
    echo $calendar->CalendarPeriodCustom($prefix . 'ACTIVE_FROM', $prefix . 'ACTIVE_TO', $activeFrom, $activeTo, true, 19, true, array(CAdminCalendar::PERIOD_EMPTY => Loc::getMessage('BX_SALE_DISCOUNT_COUPON_PERIOD_EMPTY'), CAdminCalendar::PERIOD_INTERVAL => Loc::getMessage('BX_SALE_DISCOUNT_COUPON_PERIOD_INTERVAL')), $periodValue);
    unset($calendar, $activeTo, $activeFrom, $periodValue);
    ?>
</td>
	</tr><?php 
    $control->EndCustomField($prefix . 'PERIOD');
    $control->AddDropDownField($prefix . 'TYPE', Loc::getMessage('BX_SALE_DISCOUNT_COUPON_FIELD_TYPE'), true, $couponTypes, $coupon['COUPON']['TYPE']);
    $control->AddEditField($prefix . 'MAX_USE', Loc::getMessage('BX_SALE_DISCOUNT_COUPON_FIELD_MAX_USE'), false, array(), $coupon['COUPON']['MAX_USE'] > 0 ? $coupon['COUPON']['MAX_USE'] : '');
    $control->Buttons(false, '');
    $control->Show();
    ?>
<script type="text/javascript">top.BX.WindowManager.Get().adjustSizeEx();</script>
<?php 
} else {
    if ($couponID > 0 && !$copy) {
        $control->AddViewField($prefix . 'ID', Loc::getMessage('BX_SALE_DISCOUNT_COUPON_FIELD_ID'), $couponID, false);
    }
    $control->AddCheckBoxField($prefix . 'ACTIVE', Loc::getMessage('BX_SALE_DISCOUNT_COUPON_FIELD_ACTIVE'), true, array('Y', 'N'), $coupon['ACTIVE'] == 'Y');
    if ($couponID > 0) {
        $discountName = '<a href="sale_discount_edit.php?lang=' . LANGUAGE_ID . '&ID=' . $coupon['DISCOUNT_ID'] . '">[' . $coupon['DISCOUNT_ID'] . ']</a>';
        if ($coupon['DISCOUNT_NAME'] !== '') {
            $discountName .= ' ' . $coupon['DISCOUNT_NAME'];
        }
        $discountName .= '<input type="hidden" name="DISCOUNT_ID" value="' . $coupon['DISCOUNT_ID'] . '">';
开发者ID:DarneoStudio,项目名称:bitrix,代码行数:31,代码来源:discount_coupon_edit.php

示例8: GetMessage

    if (is_array($val) && array_key_exists("VALUE", $val)) {
        $hidden .= _ShowHiddenValue('PROP[' . $prop_fields["ID"] . '][' . $key . '][VALUE]', $val["VALUE"]);
        $hidden .= _ShowHiddenValue('PROP[' . $prop_fields["ID"] . '][' . $key . '][DESCRIPTION]', $val["DESCRIPTION"]);
    } else {
        $hidden .= _ShowHiddenValue('PROP[' . $prop_fields["ID"] . '][' . $key . '][VALUE]', $val);
        $hidden .= _ShowHiddenValue('PROP[' . $prop_fields["ID"] . '][' . $key . '][DESCRIPTION]', "");
    }
}
$tabControl->EndCustomField("PROPERTY_1" . $prop_fields["ID"], $hidden);
$tabControl->BeginNextFormTab();
?>
<div><?php 
$tabControl->BeginCustomField("UFS", '', false);
if ($USER_FIELD_MANAGER->getRights('LEARNING_LGROUPS') < 'W') {
    ?>
		<p style="font-weight:bold;">
			<?php 
    echo GetMessage('LEARNING_ACCESS_DENIED_TO_UF_MANAGE');
    ?>
		</p>
		<?php 
}
$USER_FIELD_MANAGER->EditFormShowTab('LEARNING_LGROUPS', $bVarsFromForm, $ID);
$tabControl->EndCustomField("UFS");
?>
</div><?php 
$tabControl->Buttons(array("back_url" => "learn_group_admin.php?lang=" . LANG . GetFilterParams("filter_", false)));
$tabControl->arParams["FORM_ACTION"] = $APPLICATION->GetCurPage() . "?lang=" . LANG . GetFilterParams("filter_");
$tabControl->Show();
$tabControl->ShowWarnings($tabControl->GetName(), $message);
require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/epilog_admin.php";
开发者ID:mrdeadmouse,项目名称:u136006,代码行数:31,代码来源:learn_group_edit.php

示例9: SaleFormatCurrency

echo SaleFormatCurrency($str_PRICE, $str_CURRENCY);
?>
						</div>
					</td>
					</tr>
					</table>
					</div>
				</td>
			</tr>
		</table>
	</td>
</tr>
<?php 
$tabControl->EndCustomField("BASKET_CONTAINER");
if (!defined('BX_PUBLIC_MODE') || BX_PUBLIC_MODE != 1) {
    $tabControl->Buttons(array("back_url" => "/bitrix/admin/sale_order.php?lang=" . LANG . "&LID=" . CUtil::JSEscape($LID) . GetFilterParams("filter_")));
}
$tabControl->Show();
//order basket user by manager
if (isset($_GET["user_id"]) && isset($_GET["LID"]) && !$bVarsFromForm) {
    $str_USER_ID = IntVal($_GET["user_id"]);
    $LID = trim($_GET["LID"]);
    $arParams = array();
    echo "<script>";
    echo "window.onload = function () {";
    echo "fUserGetProfile(BX(\"user_id\"));\n";
    if (CModule::IncludeModule('catalog') && CModule::IncludeModule('iblock') && isset($_GET["product"]) && count($_GET["product"]) > 0) {
        $bXmlId = COption::GetOptionString("sale", "show_order_product_xml_id", "N");
        $arProductId = array();
        $arBuyerGroups = CUser::GetUserGroup($str_USER_ID);
        $arGetProduct = array();
开发者ID:k-kalashnikov,项目名称:geekcon_new,代码行数:31,代码来源:order_new.php

示例10:

				'',
				array(
					"SITE_ID" => $LID,
					"AJAX_CALL" => "N",
					"COUNTRY_INPUT_NAME" => "COUNTRY_".$arProperties["ID"],
					"REGION_INPUT_NAME" => "REGION_".$arProperties["ID"],
					"CITY_INPUT_NAME" => "LOCATION_".$arProperties["ID"],
					"CITY_OUT_LOCATION" => "Y",
					"ALLOW_EMPTY_CITY" => "Y",
					"LOCATION_VALUE" => $fieldValue,
					"COUNTRY" => "",
					"ONCITYCHANGE" => "",
					"PUBLIC" => "N",
				),
				null,
				array('HIDE_ICONS' => 'Y')
			);
		?>
				</td>
			</tr>
		<?
			$tabControl->EndCustomField("CODE_".$arProperties["ID"]);
		}
	}

	$tabControl->Buttons(array("back_url"=>"/bitrix/admin/sale_buyers_profile.php?lang=".LANGUAGE_ID."&USER_ID=".$USER_ID));
	$tabControl->Show();
}

require($DOCUMENT_ROOT."/bitrix/modules/main/include/epilog_admin.php");
?>
开发者ID:ASDAFF,项目名称:entask.ru,代码行数:31,代码来源:buyers_profile_edit.php

示例11: showEditPageButtons

 /**
  * Отображение кнопок для управления элементом на странице редактирования.
  */
 protected function showEditPageButtons()
 {
     $listHelper = static::getHelperClass(AdminListHelper::className());
     $this->tabControl->Buttons(array('back_url' => $listHelper::getUrl(array_merge($this->additionalUrlParams, array('lang' => LANGUAGE_ID, 'restore_query' => 'Y')))));
 }
开发者ID:s-sementsov,项目名称:digitalwand.admin_helper,代码行数:8,代码来源:AdminEditHelper.php

示例12: GetMessage

						]
					});

					nextNum++;
					BX("marks-table-tbody").appendChild(row);
				}
				<?php 
if ($ID == 0) {
    ?>
					addMark();
					<?php 
}
?>
			</script>
			<br />
			<a href="javascript:void(0)" class="adm-btn" onclick="addMark();"><?php 
echo GetMessage("LEARNING_ADD_MARK");
?>
</a>
		</td>
	</tr>
<?php 
$tabControl->EndCustomField("MARKS");
?>

<?php 
$tabControl->Buttons(array('disabled' => $isBtnsDisabled, "back_url" => "learn_test_admin.php?lang=" . LANG . '&PARENT_LESSON_ID=' . ($_GET['PARENT_LESSON_ID'] + 0) . '&LESSON_PATH=' . htmlspecialcharsbx($_GET['LESSON_PATH']) . "&COURSE_ID=" . $COURSE_ID . GetFilterParams("find_", false)));
$tabControl->arParams["FORM_ACTION"] = $APPLICATION->GetCurPage() . "?lang=" . LANG . "&COURSE_ID=" . $COURSE_ID . '&PARENT_LESSON_ID=' . ($_GET['PARENT_LESSON_ID'] + 0) . '&LESSON_PATH=' . htmlspecialcharsbx($_GET['LESSON_PATH']) . "&ID=" . $ID;
$tabControl->Show();
$tabControl->ShowWarnings($tabControl->GetName(), $message);
require $_SERVER["DOCUMENT_ROOT"] . BX_ROOT . "/modules/main/include/epilog_admin.php";
开发者ID:DarneoStudio,项目名称:bitrix,代码行数:31,代码来源:learn_test_edit.php

示例13: array

$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));
$form->EndCustomField('form');
$form->Show();
?>
</form>

<script type="text/javascript">
    (function (params) {
        var
            $selectTypes = $('select[name="'+params['types']['name']+'"]'),
            $selectIblocks = $('select[name="'+params['iblocks']['name']+'"]'),
            $selectProperties = $('select[name="'+params['properties']['name']+'"]');

        var
            data = {
                types: params['types']['list'],
开发者ID:Under5,项目名称:bitrix-module-tools,代码行数:31,代码来源:conversion.php

示例14: array

			<?
		}
		?>
	<?
	$tabControl->EndCustomField("SECTION_PROPERTY", '');
}

if(strlen($return_url)>0)
	$bu = $return_url;
else
	$bu = "/bitrix/admin/".CIBlock::GetAdminSectionListLink($IBLOCK_ID, array('find_section_section'=>intval($find_section_section)));

if (!defined('BX_PUBLIC_MODE') || BX_PUBLIC_MODE != 1):
	$tabControl->Buttons(array(
		"disabled" => false,
		"btnSaveAndAdd" => (!$bAutocomplete),
		"btnApply" => (!$bAutocomplete),
		"return_url" => $bu,
	));
elseif($nobuttons !== "Y"):
	$save_and_add = "{
		title: '".CUtil::JSEscape(GetMessage("IBSEC_E_SAVE_AND_ADD"))."',
		name: 'save_and_add',
		id: 'save_and_add',
		className: 'adm-btn-add',
		action: function () {
			var FORM = this.parentWindow.GetForm();
			FORM.appendChild(BX.create('INPUT', {
				props: {
					type: 'hidden',
					name: 'save_and_add',
					value: 'Y'
开发者ID:ASDAFF,项目名称:entask.ru,代码行数:32,代码来源:iblock_section_edit.php

示例15: GetMessage

	ob_start();
	?>
	<input <?if ($bDisabled) echo "disabled";?> type="submit" class="adm-btn-save" name="save" id="save" value="<?echo GetMessage("IBLOCK_EL_SAVE")?>">
	<? if (!$bAutocomplete)
	{
		?><input <?if ($bDisabled) echo "disabled";?> type="submit" class="button" name="apply" id="apply" value="<?echo GetMessage('IBLOCK_APPLY')?>"><?
	}
	?>
	<input <?if ($bDisabled) echo "disabled";?> type="submit" class="button" name="dontsave" id="dontsave" value="<?echo GetMessage("IBLOCK_EL_CANC")?>">
	<? if (!$bAutocomplete)
	{
		?><input <?if ($bDisabled) echo "disabled";?> type="submit" class="adm-btn-add" name="save_and_add" id="save_and_add" value="<?echo GetMessage("IBLOCK_EL_SAVE_AND_ADD")?>"><?
	}
	$buttons_add_html = ob_get_contents();
	ob_end_clean();
	$tabControl->Buttons(false, $buttons_add_html);
elseif(!$bPropertyAjax && $nobuttons !== "Y"):

	$wfClose = "{
		title: '".CUtil::JSEscape(GetMessage("IBLOCK_EL_CANC"))."',
		name: 'dontsave',
		id: 'dontsave',
		action: function () {
			var FORM = this.parentWindow.GetForm();
			FORM.appendChild(BX.create('INPUT', {
				props: {
					type: 'hidden',
					name: this.name,
					value: 'Y'
				}
			}));
开发者ID:ASDAFF,项目名称:entask.ru,代码行数:31,代码来源:iblock_element_edit.php


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