本文整理汇总了PHP中CAdminList::BeginCustomContent方法的典型用法代码示例。如果您正苦于以下问题:PHP CAdminList::BeginCustomContent方法的具体用法?PHP CAdminList::BeginCustomContent怎么用?PHP CAdminList::BeginCustomContent使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CAdminList
的用法示例。
在下文中一共展示了CAdminList::BeginCustomContent方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: foreach
if (is_array($_SESSION["BX_IBLOCK_CONV"]["arNumber"])) {
foreach ($_SESSION["BX_IBLOCK_CONV"]["arNumber"] as $id) {
$id = intval($id);
$ar["arNumber"][$id] = $id;
}
}
$_SESSION["BX_IBLOCK_CONV"] = $ar;
} else {
$_SESSION["BX_IBLOCK_CONV"] = false;
}
$arErrors = array();
$arMessages = array();
$APPLICATION->SetTitle(GetMessage("IBCONV_TITLE"));
$sTableID = "tbl_iblock_convert";
$lAdmin = new CAdminList($sTableID);
$lAdmin->BeginCustomContent();
if (!CIBlockRights::UserHasRightTo($IBLOCK_ID, $IBLOCK_ID, "iblock_edit") || !check_bitrix_sessid() && $STEP > 0) {
$arErrors[] = GetMessage("IBCONV_PERMISSION");
} else {
$rsIBlock = CIBlock::GetList(array(), array("ID" => $IBLOCK_ID, "CHECK_PERMISSIONS" => "N"));
if ($arIBlock = $rsIBlock->Fetch()) {
if ($arIBlock["VERSION"] == 1) {
if ($STEP != 0 && $WAY != 12) {
$arErrors[] = GetMessage("IBCONV_WRONG_CONVERSION");
} elseif ($STEP == 1) {
$STEP = 2;
} elseif ($STEP == 2) {
$STEP = FirstStep12($arIBlock);
} elseif ($STEP == 3) {
$STEP = NextStep12($arIBlock);
} elseif ($STEP == 4) {
示例2: CAdminList
$lAdmin_tab8 = new CAdminList($sTableID_tab8);
$lAdmin_tab8->BeginCustomContent();
if (strlen($strError) > 0) {
CAdminMessage::ShowMessage($strError);
} elseif ($_REQUEST["table_id"] == $sTableID_tab8) {
?>
Hello
<?php
}
$lAdmin_tab8->EndCustomContent();
if ($_REQUEST["table_id"] == $sTableID_tab8) {
$lAdmin_tab->CheckListMode();
}
$sTableID_tab9 = "t_adv_graph_list";
$lAdmin_tab9 = new CAdminList($sTableID_tab9);
$lAdmin_tab9->BeginCustomContent();
if (strlen($strError) > 0) {
CAdminMessage::ShowMessage($strError);
} elseif ($_REQUEST["table_id"] == $sTableID_tab9) {
?>
Hello
<?php
}
$lAdmin_tab9->EndCustomContent();
if ($_REQUEST["table_id"] == $sTableID_tab9) {
$lAdmin_tab->CheckListMode();
}
$aTabs = array(array("DIV" => "tab1", "TAB" => GetMessage("STAT_STATISTICS"), "ICON" => "", "TITLE" => GetMessage("STAT_CAMPAIGN_STATISTICS"), "ONSELECT" => "selectTabWithFilter(" . $sFilterID . ", " . $sTableID_tab1 . ");"), array("DIV" => "tab9", "TAB" => GetMessage("STAT_GRAPHICS"), "ICON" => "", "TITLE" => GetMessage("STAT_DYNAMICS_LIST"), "ONSELECT" => "selectTabWithFilter(" . $sFilterID . ", " . $sTableID_tab9 . ");"));
if ($STAT_RIGHT > "M") {
$aTabs[] = array("DIV" => "tab2", "TAB" => GetMessage("STAT_FINANCES") . " (ROI)", "ICON" => "", "TITLE" => GetMessage("STAT_FINANCES") . " (ROI)", "ONSELECT" => "selectTabWithFilter(" . $sFilterID . ", " . $sTableID_tab2 . ");");
}