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