当前位置: 首页>>代码示例>>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;未经允许,请勿转载。