當前位置: 首頁>>代碼示例>>PHP>>正文


PHP CAdminList::BeginCustomContent方法代碼示例

本文整理匯總了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) {
開發者ID:DarneoStudio,項目名稱:bitrix,代碼行數:31,代碼來源:iblock_convert.php

示例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 . ");");
}
開發者ID:k-kalashnikov,項目名稱:geekcon_new,代碼行數:31,代碼來源:adv_detail.php


注:本文中的CAdminList::BeginCustomContent方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。