本文整理汇总了PHP中BxDolPageView类的典型用法代码示例。如果您正苦于以下问题:PHP BxDolPageView类的具体用法?PHP BxDolPageView怎么用?PHP BxDolPageView使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了BxDolPageView类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: BxPfwPageCart
function BxPfwPageCart(&$oMain)
{
parent::BxDolPageView('bx_pfw_cart');
$this->_oMain = $oMain;
$GLOBALS['oTopMenu']->setCurrentProfileID($this->_oMain->getUserId());
$GLOBALS['oTopMenu']->setCustomVar('sys_payment_module_uri', $this->_oMain->_oConfig->getUri());
}
示例2: BxPmtOrdersPage
function BxPmtOrdersPage($sType, &$oPayments)
{
parent::BxDolPageView('bx_pmt_orders');
$this->_sType = $sType;
$this->_oPayments =& $oPayments;
$GLOBALS['oTopMenu']->setCurrentProfileID($this->_oPayments->_iUserId);
}
示例3: profileCustomizeBlock
function profileCustomizeBlock($aTopMenu, $sPage, $aTargets, $sTarget, $aVars)
{
$sContent = '';
$aMenuItems = array();
$sBaseUrl = BX_DOL_URL_ROOT . $this->_oConfig->getBaseUri();
$aItems = array();
foreach ($aTopMenu as $sName => $aItem) {
$aItems[] = array('title' => $sName, 'active' => $aItem['active'], 'href' => $aItem['href'], 'onclick' => 'oBxSctrMain.reloadCustomizeBlock(this.href, false); return false;');
}
$sTopMenu = BxDolPageView::getBlockCaptionMenu('site_customize', $aItems);
// content for box
if ($sPage != 'themes') {
$sTopControls = $this->parsePageByName('designbox_top_controls.html', array('top_controls' => $this->parseHtmlByName('content_box_top_controls.html', array('name_box' => _t('_bx_sctr_select_target'), 'name_targets_box' => 'background_box', 'bx_repeat:targets' => $aTargets))));
$sBoxContent = $this->parseHtmlByName('content_box.html', array('bx_if:select_target' => array('condition' => !empty($aTargets), 'content' => array('top_controls' => $sTopControls)), 'content' => call_user_func_array(array($this, '_customPage' . ucfirst($sPage)), array($sPage, $sTarget, $aVars)), 'bx_repeat:buttons' => array(array('btn_type' => 'button', 'btn_name' => 'preview', 'btn_value' => _t('_bx_sctr_btn_preview'), 'btn_action' => "oBxSctrMain.reloadCustom('" . $sPage . "', '" . $sTarget . "', 'preview');"), array('btn_type' => 'button', 'btn_name' => 'reset', 'btn_value' => _t('_bx_sctr_btn_reset'), 'btn_action' => "oBxSctrMain.resetCustom('" . $sPage . "', '" . $sTarget . "', 'reset');"), array('btn_type' => 'button', 'btn_name' => 'save', 'btn_value' => _t('_bx_sctr_btn_save'), 'btn_action' => "oBxSctrMain.reloadCustom('" . $sPage . "', '" . $sTarget . "', 'save');"), array('btn_type' => 'button', 'btn_name' => 'publish', 'btn_value' => _t('_bx_sctr_btn_publish'), 'btn_action' => "oBxSctrMain.showPublish('{$sBaseUrl}publish');"))));
} else {
$iUserId = $sTarget == 'my' ? $this->_oModule->iUserId : 0;
$sPageThemes = $this->_customPageThemes($iUserId, true);
if ($sPageThemes) {
$aButtons = array(array('btn_type' => 'button', 'btn_name' => 'preview', 'btn_value' => _t('_bx_sctr_btn_preview'), 'btn_action' => "oBxSctrMain.previewTheme();"), array('btn_type' => 'button', 'btn_name' => 'reset', 'btn_value' => _t('_bx_sctr_btn_reset'), 'btn_action' => "oBxSctrMain.resetCustom('', '', 'reset');"), array('btn_type' => 'button', 'btn_name' => 'save', 'btn_value' => _t('_bx_sctr_btn_save'), 'btn_action' => "oBxSctrMain.saveTheme();"));
} else {
$aButtons = array();
}
if ($sPageThemes && $sTarget != 'shared') {
$aButtons[] = array('btn_type' => 'button', 'btn_name' => 'delete', 'btn_value' => _t('_bx_sctr_btn_delete'), 'btn_action' => "oBxSctrMain.deleteTheme('" . $sBaseUrl . "deletetheme/');");
}
$aButtons[] = array('btn_type' => 'button', 'btn_name' => 'reset', 'btn_value' => _t('_bx_sctr_btn_reset_all'), 'btn_action' => "oBxSctrMain.resetAll('{$sBaseUrl}resetall');");
$sTopControls = $this->parsePageByName('designbox_top_controls.html', array('top_controls' => $this->parseHtmlByName('content_box_top_controls.html', array('name_box' => _t('_bx_sctr_select_target'), 'name_targets_box' => 'background_box', 'bx_repeat:targets' => $aTargets))));
$sBoxContent = $this->parseHtmlByName('content_box.html', array('bx_if:select_target' => array('condition' => !empty($aTargets), 'content' => array('top_controls' => $sTopControls)), 'content' => $sPageThemes ? $sPageThemes : MsgBox(_t('_Empty')), 'bx_repeat:buttons' => $aButtons));
}
// customize box
$sContent = $this->parseHtmlByName('customize_block.html', array('js_code' => $this->getJsCode(true), 'content' => $GLOBALS['oFunctions']->transBox(DesignBoxContent(_t('_bx_sctr'), $sBoxContent, 1, $sTopMenu), false)));
$this->addCss(array('main.css'));
$this->addJs(array('colorinput.js', 'main.js'));
return $sContent;
}
示例4: BxDolProfilePageView
function BxDolProfilePageView(&$oPr, &$aSite, &$aDir)
{
$this->oProfileV =& $oPr;
$this->aConfSite = $aSite;
$this->aConfDir = $aDir;
parent::BxDolPageView('profile');
}
示例5: BxPmtDetailsPage
function BxPmtDetailsPage(&$oPayments)
{
parent::BxDolPageView('bx_pmt_details');
$this->_oPayments =& $oPayments;
$GLOBALS['oTopMenu']->setCurrentProfileID($this->_oPayments->_iUserId);
$GLOBALS['oTopMenu']->setCustomVar('sys_payment_module_uri', $this->_oPayments->_oConfig->getUri());
}
示例6: BxSitesPageHon
function BxSitesPageHon(&$oSites)
{
parent::BxDolPageView('bx_sites_hon');
$this->_oSites =& $oSites;
$this->_oTemplate = $oSites->_oTemplate;
$this->_oDb = $oSites->_oDb;
}
示例7: BxSitesPageMain
function BxSitesPageMain(&$oSites)
{
parent::BxDolPageView('bx_sites_main');
$this->_oSites =& $oSites;
$this->_oTemplate = $oSites->_oTemplate;
$this->_oConfig = $oSites->_oConfig;
$this->_oDb = $oSites->_oDb;
}
示例8: BxBaseCategoriesModule
function BxBaseCategoriesModule($aParam, $sTitle, $sUrl)
{
$this->_sPage = 'categ_module';
$this->_sTitle = $sTitle ? $sTitle : _t('_categ_users');
$this->_sUrl = $sUrl;
$this->_aParam = $aParam;
parent::BxDolPageView($this->_sPage);
}
示例9: BxPmtHistoryPage
function BxPmtHistoryPage($sType, &$oPayments)
{
parent::BxDolPageView('bx_pmt_history');
$this->_iVendorId = $sType == 'site' ? BX_PMT_ADMINISTRATOR_ID : BX_PMT_EMPTY_ID;
$this->_oPayments =& $oPayments;
$GLOBALS['oTopMenu']->setCurrentProfileID($this->_oPayments->_iUserId);
$GLOBALS['oTopMenu']->setCustomVar('sys_payment_module_uri', $this->_oPayments->_oConfig->getUri());
}
示例10: BxDolMember
function BxDolMember($iMember, &$aSite, &$aDir)
{
$this->iMember = (int) $iMember;
$this->aMemberInfo = getProfileInfo($this->iMember);
$this->aConfSite = $aSite;
$this->aConfDir = $aDir;
parent::BxDolPageView('member');
}
示例11: BxAvaPageMain
function BxAvaPageMain(&$oMain)
{
$this->_oMain =& $oMain;
$this->_oTemplate = $oMain->_oTemplate;
$this->_oConfig = $oMain->_oConfig;
$this->_oDb = $oMain->_oDb;
parent::BxDolPageView('bx_avatar_main');
}
示例12: array
function __construct()
{
global $logged;
$this->aProfiles = array(0 => array(), 1 => array());
// double arrays (for couples)
$this->aValues = array(0 => array(), 1 => array());
$this->aErrors = array(0 => array(), 1 => array());
$iId = bx_get('ID');
$this->iProfileID = (int) $iId;
// basic checks
if ($logged['member']) {
$iMemberID = getLoggedId();
if (!$this->iProfileID) {
//if profile id is not set by request, edit own profile
$this->iProfileID = $iMemberID;
$this->iArea = 2;
} else {
// check if this member is owner
if ($this->iProfileID == $iMemberID) {
$this->iArea = 2;
}
}
} elseif ($logged['admin']) {
$this->iArea = 3;
} elseif ($logged['moderator']) {
$this->iArea = 4;
}
$this->bAjaxMode = (isset($_SERVER['HTTP_X_REQUESTED_WITH']) and $_SERVER['HTTP_X_REQUESTED_WITH'] == 'XMLHttpRequest');
$this->bForceAjaxSave = bx_get('force_ajax_save');
parent::__construct('pedit');
}
示例13:
function __construct(&$oSites)
{
parent::__construct('bx_sites_hon');
$this->_oSites =& $oSites;
$this->_oTemplate = $oSites->_oTemplate;
$this->_oDb = $oSites->_oDb;
}
示例14:
function __construct(&$oMain)
{
parent::__construct('bx_pfw_cart');
$this->_oMain = $oMain;
$GLOBALS['oTopMenu']->setCurrentProfileID($this->_oMain->getUserId());
$GLOBALS['oTopMenu']->setCustomVar('sys_payment_module_uri', $this->_oMain->_oConfig->getUri());
}
示例15: array
/**
* @description : class constructor ;
*/
function __construct($sPageName = null)
{
global $aPreValues;
// read data from cache file ;
$oCache = $GLOBALS['MySQL']->getDbCacheObject();
$this->aMembersInfo = $oCache->getData($GLOBALS['MySQL']->genDbCacheKey('sys_browse_people'));
if (null === $this->aMembersInfo) {
$this->aMembersInfo = array();
}
// fill aDateBirthRange array ;
$iStartDate = getParam('search_start_age');
$iLastDate = getParam('search_end_age');
// fill date of birth array
while ($iStartDate <= $iLastDate) {
$this->aDateBirthRange[$iStartDate . '-' . ($iStartDate + 2)] = 0;
$iStartDate += 3;
}
// check permalink mode ;
$this->bPermalinkMode = getParam('permalinks_browse') ? true : false;
// check member on line time ;
$this->iMemberOnlineTime = (int) getParam("member_online_time");
// fill sex array ;
ksort($aPreValues['Sex'], SORT_STRING);
foreach ($aPreValues['Sex'] as $sKey => $aItems) {
$this->aSexRange[$sKey] = 0;
}
// fill country array ;
ksort($aPreValues['Country'], SORT_STRING);
foreach ($aPreValues['Country'] as $sKey => $aItems) {
$this->aCountryRange[$sKey] = 0;
}
if ($sPageName) {
parent::__construct($sPageName);
}
}