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


PHP PageCompMainCode函數代碼示例

本文整理匯總了PHP中PageCompMainCode函數的典型用法代碼示例。如果您正苦於以下問題:PHP PageCompMainCode函數的具體用法?PHP PageCompMainCode怎麽用?PHP PageCompMainCode使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。


在下文中一共展示了PageCompMainCode函數的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: pathinfo

 */
/**
 * @page samples
 * @section comments Comments
 */
/**
 * Please refer to the following file for custom class and SQL dump data for this example:
 * @see BxCmtsMy.php
 */
$aPathInfo = pathinfo(__FILE__);
require_once $aPathInfo['dirname'] . '/../inc/header.inc.php';
require_once BX_DIRECTORY_PATH_INC . "design.inc.php";
$oTemplate = BxDolTemplate::getInstance();
$oTemplate->setPageNameIndex(BX_PAGE_DEFAULT);
$oTemplate->setPageHeader('Comments');
$oTemplate->setPageContent('page_main_code', PageCompMainCode());
$oTemplate->getPageCode();
/**
 * page code function
 */
function PageCompMainCode()
{
    $iObjectId = 1;
    bx_import('BxDolCmts');
    $oCmts = BxDolCmts::getObjectInstance('sample', $iObjectId);
    if (!$oCmts->isEnabled()) {
        return '';
    }
    return $oCmts->getCommentsBlock();
}
/** @} */
開發者ID:blas-dmx,項目名稱:trident,代碼行數:31,代碼來源:comments.php

示例2: check_logged

<?php

/**
 * Copyright (c) BoonEx Pty Limited - http://www.boonex.com/
 * CC-BY License - http://creativecommons.org/licenses/by/3.0/
 */
require_once 'inc/header.inc.php';
require_once BX_DIRECTORY_PATH_INC . 'design.inc.php';
require_once BX_DIRECTORY_PATH_INC . 'profiles.inc.php';
// --------------- page variables and login
$_page['name_index'] = 17;
check_logged();
$_page['header'] = _t("_ADVICE_H");
$_page['header_text'] = _t("_ADVICE_H1");
// --------------- page components
$_ni = $_page['name_index'];
$_page_cont[$_ni]['page_main_code'] = PageCompMainCode();
// --------------- [END] page components
PageCode();
// --------------- page components functions
/**
 * page code function
 */
function PageCompMainCode()
{
    $sRet = '<div class="dbContent">' . str_replace('<site_url>', $GLOBALS['site']['url'], _t("_ADVICE")) . '</div>';
    return DesignBoxContent(_t("_ADVICE_H1"), $sRet, $GLOBALS['oTemplConfig']->PageCompThird_db_num);
}
開發者ID:Prashank25,項目名稱:dolphin.pro,代碼行數:28,代碼來源:advice.php

示例3: Header

if (!$groupID) {
    Header("Location: {$site['url']}groups_home.php");
    exit;
}
$bcd = getParam('breadCrampDivider');
$_page['header_text'] = _t("_Group members");
$_page['header'] = _t("_Group members");
$_ni = $_page['name_index'];
if ($arrGroup = getGroupInfo($groupID)) {
    $arrGroup['Name_html'] = htmlspecialchars_adv($arrGroup['Name']);
    if ((int) $arrGroup['hidden_group'] and !isGroupMember($memberID, $groupID) and !$logged['admin']) {
        $_page_cont[$_ni]['page_main_code'] = _t("_You cannot view group members while not a group member");
    } else {
        if ($arrGroup['status'] == 'Active' or $arrGroup['creatorID'] == $memberID or $logged['admin']) {
            $_page['header'] = _t("_Group members");
            PageCompMainCode();
        } else {
            $_page['name_index'] = 0;
            $_page['header'] = _t("_Group is suspended");
            $_page['header_text'] = _t("_Group is suspended");
            $_page_cont[0]['page_main_code'] = _t("_Sorry, group is suspended");
        }
    }
} else {
    $_page_cont[$_ni]['page_main_code'] = _t("_Group not found_desc");
}
// --------------- page components
// --------------- [END] page components
PageCode();
// --------------- page components functions
/**
開發者ID:BackupTheBerlios,項目名稱:dolphin-dwbn-svn,代碼行數:31,代碼來源:group_members.php


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