当前位置: 首页>>代码示例>>PHP>>正文


PHP phpAds_PageHeader函数代码示例

本文整理汇总了PHP中phpAds_PageHeader函数的典型用法代码示例。如果您正苦于以下问题:PHP phpAds_PageHeader函数的具体用法?PHP phpAds_PageHeader怎么用?PHP phpAds_PageHeader使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了phpAds_PageHeader函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: startMVC

 public function startMVC()
 {
     $oRequest = new OX_Admin_UI_Controller_Request();
     //setup controller
     $oController = $this->createController();
     ob_start();
     $oController->process($oRequest);
     $actionContent = ob_get_contents();
     ob_end_clean();
     //create view
     if ($oController->hasViewScript()) {
         $view = $this->createView($oController->getAction());
         //pass model variables to view
         $oController->assignModelToView($view);
     }
     //LAYOUT
     // setup dummy installer section display
     $oMenu = OA_Admin_Menu::singleton();
     $oMenu->add(new OA_Admin_Menu_Section('install', '', ''));
     if ($oController->hasLayout()) {
         //layout
         $oPageHeader = $oController->getModelProperty('pageHeader');
         phpAds_PageHeader('install', $oPageHeader, $imgPath, false, true, false);
     }
     if ($view) {
         $view->display();
     }
     echo $actionContent;
     if ($oController->hasLayout()) {
         phpAds_PageFooter($imgPath);
         // Do not remove. This is a marker that AJAX response parsers look for to
         // determine whether the response did not redirect to the installer.
         echo "<!-- install -->";
     }
 }
开发者ID:Spark-Eleven,项目名称:revive-adserver,代码行数:35,代码来源:install.php

示例2: displayPage

function displayPage($form, $aMessages = '')
{
    phpAds_PageHeader('devtools-plugins', '', '../../');
    $oTpl = new OA_Plugin_Template('oxPlugin.html', 'oxPlugin');
    //$oTpl->debugging = true;
    $oTpl->assign('aMessages', $aMessages);
    $oTpl->assign('form', $form->serialize());
    $oTpl->display();
    phpAds_PageFooter();
}
开发者ID:ballistiq,项目名称:revive-adserver,代码行数:10,代码来源:oxPlugin-index.php

示例3: OA_HeaderNavigation

function OA_HeaderNavigation()
{
    global $agencyid;
    if (OA_Permission::isAccount(OA_ACCOUNT_ADMIN)) {
        phpAds_PageHeader("agency-access");
        $doAgency = OA_Dal::staticGetDO('agency', $agencyid);
        MAX_displayInventoryBreadcrumbs(array(array("name" => $doAgency->name)), "agency");
    } else {
        phpAds_PageHeader("agency-user");
    }
}
开发者ID:Spark-Eleven,项目名称:revive-adserver,代码行数:11,代码来源:agency-user.php

示例4: display

 /**
  * A method to launch and display the widget
  *
  */
 function display()
 {
     $aConf = $GLOBALS['_MAX']['CONF'];
     phpAds_PageHeader(null, new OA_Admin_UI_Model_PageHeaderModel(), '', false, false);
     $oTpl = new OA_Admin_Template('dashboard/main.html');
     if (!$aConf['ui']['dashboardEnabled'] || !$aConf['sync']['checkForUpdates']) {
         $dashboardUrl = MAX::constructURL(MAX_URL_ADMIN, 'dashboard.php?widget=Disabled');
     } else {
         $dashboardUrl = MAX::constructURL(MAX_URL_ADMIN, 'dashboard.php?widget=Grid');
     }
     $oTpl->assign('dashboardURL', $dashboardUrl);
     $oTpl->display();
     phpAds_PageFooter('', true);
 }
开发者ID:Jaree,项目名称:revive-adserver,代码行数:18,代码来源:Index.php

示例5: parseDay

 /**
  * A method to parse the day paramer, check it's validity, and store it
  * in the provided $aDates array.
  *
  * @param array $aDates A references to an array that will be set to
  *                      contain the valid day as the "day_begin" and
  *                      "day_end" values.
  */
 function parseDay(&$aDates)
 {
     $day = MAX_getValue('day', '');
     if (!preg_match('/^(\\d\\d\\d\\d)(\\d\\d)(\\d\\d)$/D', $day, $matches)) {
         phpAds_PageHeader('2');
         phpAds_Die($GLOBALS['strAccessDenied'], $GLOBALS['strNotAdmin']);
     }
     if (!checkdate($matches[2], $matches[3], $matches[1])) {
         phpAds_PageHeader('2');
         phpAds_Die($GLOBALS['strAccessDenied'], $GLOBALS['strNotAdmin']);
     }
     $aDates = array();
     $aDates['day_begin'] = "{$matches[1]}-{$matches[2]}-{$matches[3]}";
     $aDates['day_end'] = "{$matches[1]}-{$matches[2]}-{$matches[3]}";
 }
开发者ID:hostinger,项目名称:revive-adserver,代码行数:23,代码来源:Daily.php

示例6: OA_headerNavigation

function OA_headerNavigation()
{
    $oHeaderModel = buildAdvertiserHeaderModel($GLOBALS['clientid']);
    if (OA_Permission::isAccount(OA_ACCOUNT_MANAGER)) {
        phpAds_PageHeader("advertiser-access", $oHeaderModel);
        phpAds_ShowSections(array("4.1.2", "4.1.3", "4.1.5", "4.1.5.2"));
    } else {
        $sections = array();
        if (OA_Permission::hasPermission(OA_PERM_BANNER_ACTIVATE) || OA_Permission::hasPermission(OA_PERM_BANNER_EDIT)) {
            $sections[] = '2.2';
        }
        $sections[] = '2.3';
        $sections[] = '2.3.2';
        phpAds_PageHeader('advertiser-access', $oHeaderModel);
        phpAds_ShowSections($sections);
    }
}
开发者ID:villos,项目名称:tree_admin,代码行数:17,代码来源:advertiser-user.php

示例7: display

 /**
  * A method to launch and display the widget
  *
  */
 function display()
 {
     $aConf = $GLOBALS['_MAX']['CONF'];
     phpAds_PageHeader(null, new OA_Admin_UI_Model_PageHeaderModel(), '', false, false);
     $oTpl = new OA_Admin_Template('dashboard/main.html');
     if (!$aConf['ui']['dashboardEnabled'] || !$aConf['sync']['checkForUpdates']) {
         $dashboardUrl = MAX::constructURL(MAX_URL_ADMIN, 'dashboard.php?widget=Disabled');
     } else {
         $m2mTicket = OA_Dal_Central_M2M::getM2MTicket(OA_Permission::getAccountId());
         if (empty($m2mTicket)) {
             $dashboardUrl = MAX::constructURL(MAX_URL_ADMIN, 'dashboard.php?widget=Reload');
         } else {
             $dashboardUrl = $this->buildDashboardUrl($m2mTicket, null, '&amp;');
         }
     }
     $oTpl->assign('dashboardURL', $dashboardUrl);
     $oTpl->display();
     phpAds_PageFooter('', true);
 }
开发者ID:villos,项目名称:tree_admin,代码行数:23,代码来源:Index.php

示例8: phpAds_PageHeader

    phpAds_PageHeader("4.1.3.2", $extra);
    echo "<img src='images/icon-client.gif' align='absmiddle'>&nbsp;" . phpAds_getParentName($campaignid);
    echo "&nbsp;<img src='images/" . $phpAds_TextDirection . "/caret-rs.gif'>&nbsp;";
    echo "<img src='images/icon-campaign.gif' align='absmiddle'>&nbsp;<b>" . phpAds_getClientName($campaignid) . "</b><br><br><br>";
    phpAds_ShowSections(array("4.1.3.2", "4.1.3.3", "4.1.3.4"));
} else {
    if (isset($move) && $move == 't') {
        // Convert client to campaign
        phpAds_PageHeader("4.1.3.2");
        echo "<img src='images/icon-client.gif' align='absmiddle'>&nbsp;" . phpAds_getClientName($clientid);
        echo "&nbsp;<img src='images/" . $phpAds_TextDirection . "/caret-rs.gif'>&nbsp;";
        echo "<img src='images/icon-campaign.gif' align='absmiddle'>&nbsp;<b>" . $strUntitled . "</b><br><br><br>";
        phpAds_ShowSections(array("4.1.3.2"));
    } else {
        // New campaign
        phpAds_PageHeader("4.1.3.1");
        echo "<img src='images/icon-client.gif' align='absmiddle'>&nbsp;" . phpAds_getClientName($clientid);
        echo "&nbsp;<img src='images/" . $phpAds_TextDirection . "/caret-rs.gif'>&nbsp;";
        echo "<img src='images/icon-campaign.gif' align='absmiddle'>&nbsp;<b>" . $strUntitled . "</b><br><br><br>";
        phpAds_ShowSections(array("4.1.3.1"));
    }
}
if ($campaignid != "" || isset($move) && $move == 't') {
    // Edit or Convert
    // Fetch exisiting settings
    // Parent setting for converting, campaign settings for editing
    if ($campaignid != "") {
        $ID = $campaignid;
    }
    if (isset($move) && $move == 't') {
        if (isset($clientid) && $clientid != "") {
开发者ID:henryhe514,项目名称:ChineseCommercial,代码行数:31,代码来源:campaign-edit.php

示例9: phpAds_SettingsWriteAdd

        }
    }
    phpAds_SettingsWriteAdd('type_html_auto', isset($type_html_auto));
    phpAds_SettingsWriteAdd('type_html_php', isset($type_html_php));
    if (!count($errormessage)) {
        if (phpAds_SettingsWriteFlush()) {
            header("Location: settings-admin.php");
            exit;
        }
    }
}
/*********************************************************/
/* HTML framework                                        */
/*********************************************************/
phpAds_PrepareHelp();
phpAds_PageHeader("5.1");
phpAds_ShowSections(array("5.1", "5.3", "5.4", "5.2"));
phpAds_SettingsSelection("banner");
/*********************************************************/
/* Cache settings fields and get help HTML Code          */
/*********************************************************/
// Split FTP settings
if (!empty($phpAds_config['type_web_ftp'])) {
    if ($ftpserver = @parse_url($phpAds_config['type_web_ftp'])) {
        // Decode URL parts
        $ftpserver['user'] = urldecode($ftpserver['user']);
        $ftpserver['pass'] = urldecode($ftpserver['pass']);
        $ftpserver['path'] = urldecode($ftpserver['path']);
        $ftpserver['path'] = preg_replace('#^/#', '', $ftpserver['path']);
        $ftpserver['path'] = preg_replace('#/$#', '', $ftpserver['path']);
        $phpAds_config['type_web_ftp_host'] = $ftpserver['host'] . (isset($ftpserver['port']) && $ftpserver['port'] != '' ? ':' . $ftpserver['port'] : '');
开发者ID:henryhe514,项目名称:ChineseCommercial,代码行数:31,代码来源:settings-banner.php

示例10: array_keys

        //was empty, is still empty - just pick one, no need for redirect
        $ids = array_keys($aAdvertisers);
        $clientid = !empty($ids) ? $ids[0] : -1;
        //if no advertisers set to non-existent id
    }
} else {
    if (!isset($aAdvertisers[$clientid])) {
        $page = basename($_SERVER['SCRIPT_NAME']);
        OX_Admin_Redirect::redirect($page);
    }
}
/*-------------------------------------------------------*/
/* HTML framework                                        */
/*-------------------------------------------------------*/
$oHeaderModel = buildHeaderModel($clientid, $aAdvertisers);
phpAds_PageHeader(null, $oHeaderModel);
/*-------------------------------------------------------*/
/* Get preferences                                       */
/*-------------------------------------------------------*/
if (!isset($hideinactive)) {
    if (isset($session['prefs']['advertiser-campaigns.php'][$clientid]['hideinactive'])) {
        $hideinactive = $session['prefs']['advertiser-campaigns.php'][$clientid]['hideinactive'];
    } else {
        $pref =& $GLOBALS['_MAX']['PREF'];
        $hideinactive = $pref['ui_hide_inactive'] == true;
    }
}
if (!isset($listorder)) {
    if (isset($session['prefs']['advertiser-campaigns.php'][$clientid]['listorder'])) {
        $listorder = $session['prefs']['advertiser-campaigns.php'][$clientid]['listorder'];
    } else {
开发者ID:Spark-Eleven,项目名称:revive-adserver,代码行数:31,代码来源:advertiser-campaigns.php

示例11: phpAds_registerGlobal

/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License.       */
/************************************************************************/
// Include required files
require "config.php";
require "lib-statistics.inc.php";
require "../libraries/lib-reports.inc.php";
// Register input variables
phpAds_registerGlobal('startday', 'startmonth', 'startyear', 'endday', 'endmonth', 'endyear');
// Security check
phpAds_checkAccess(phpAds_Admin + phpAds_Agency);
if (phpAds_isUser(phpAds_Agency)) {
    $query = "SELECT clientid FROM " . $phpAds_config['tbl_clients'] . " WHERE clientid=" . $clientid . " AND agencyid=" . phpAds_getUserID();
    $res = phpAds_dbQuery($query) or phpAds_sqlDie();
    if (phpAds_dbNumRows($res) == 0) {
        phpAds_PageHeader("2");
        phpAds_Die($strAccessDenied, $strNotAdmin);
    }
}
/*********************************************************/
/* Main code                                             */
/*********************************************************/
if (isset($clientid) && $clientid != '') {
    if (isset($startyear) && isset($startmonth) && isset($startday) && $startyear != '' && $startmonth != '' && $startday != '') {
        $first_unixtimestamp = mktime(0, 0, 0, $startmonth, $startday, $startyear);
    } else {
        $first_unixtimestamp = 0;
    }
    if (isset($endyear) && isset($endmonth) && isset($endday)) {
        $last_unixtimestamp = mktime(23, 59, 59, $endmonth, $endday, $endyear);
    } else {
开发者ID:miller-tamil,项目名称:openads-plus,代码行数:31,代码来源:advertiser-mailreport.php

示例12: pageHeader

 /**
  * Display page header
  *
  */
 function pageHeader()
 {
     phpAds_PageHeader(phpAds_PasswordRecovery);
     echo "<br><br>";
 }
开发者ID:ballistiq,项目名称:revive-adserver,代码行数:9,代码来源:PasswordRecovery.php

示例13: phpAds_registerGlobal

*/
// Require the initialisation file
require_once '../../init.php';
// Required files
require_once MAX_PATH . '/lib/OA/Dal.php';
require_once MAX_PATH . '/lib/max/language/Loader.php';
require_once MAX_PATH . '/www/admin/config.php';
require_once MAX_PATH . '/lib/max/other/lib-userlog.inc.php';
// Register input variables
phpAds_registerGlobal('start');
// Security check
OA_Permission::enforceAccount(OA_ACCOUNT_ADMIN);
/*-------------------------------------------------------*/
/* HTML framework                                        */
/*-------------------------------------------------------*/
phpAds_PageHeader("userlog-index");
phpAds_UserlogSelection("maintenance");
// Load the required language files
Language_Loader::load('userlog');
/*-------------------------------------------------------*/
/* Main code                                             */
/*-------------------------------------------------------*/
$doUserLog = OA_Dal::factoryDO('userlog');
if (!($count = $doUserLog->count())) {
    $count = 0;
}
$limit = 10;
$start = isset($start) ? (int) $start : 0;
$doUserLog = OA_Dal::factoryDO('userlog');
$doUserLog->orderBy('timestamp DESC');
$doUserLog->limit($start * $limit, $limit);
开发者ID:Spark-Eleven,项目名称:revive-adserver,代码行数:31,代码来源:userlog-maintenance.php

示例14: phpAds_PageHeader

                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
/*-------------------------------------------------------*/
/* HTML framework                                        */
/*-------------------------------------------------------*/
phpAds_PageHeader("plugin-index", new OA_Admin_UI_Model_PageHeaderModel($GLOBALS['strPlugins']), '', false, true);
/*-------------------------------------------------------*/
/* Main code                                             */
/*-------------------------------------------------------*/
if (is_null($oTpl)) {
    if (array_key_exists('selection', $_REQUEST) && $_REQUEST['selection'] == 'groups') {
        $oTpl = new OA_Admin_Template('plugin-group-index-list.html');
        $oTpl->assign('aWarnings', $oComponentGroupManager->aWarnings);
        $oTpl->assign('selected', 'groups');
        $oTpl->assign('aPlugins', $oComponentGroupManager->getComponentGroupsList());
    } else {
        $oTpl = new OA_Admin_Template('plugin-index.html');
        $oTpl->assign('selected', 'plugins');
        $oTpl->assign('aPackages', $oPluginManager->getPackagesList());
        $oTpl->assign('aWarnings', $oPluginManager->aWarnings);
        $oTpl->assign('aErrors', $oPluginManager->aErrors);
开发者ID:villos,项目名称:tree_admin,代码行数:31,代码来源:plugin-index.php

示例15: phpAds_PageHeader

if (!empty($advertiserId)) {
    OA_Permission::enforceAccessToObject('clients', $advertiserId);
}
if (!empty($campaignId)) {
    OA_Permission::enforceAccessToObject('campaigns', $campaignId);
}
if (!empty($publisherId)) {
    OA_Permission::enforceAccessToObject('affiliates', $publisherId);
}
if (!empty($zoneId)) {
    OA_Permission::enforceAccessToObject('zones', $zoneId);
}
/*-------------------------------------------------------*/
/* HTML framework                                        */
/*-------------------------------------------------------*/
phpAds_PageHeader("5.4");
if (OA_Permission::isAccount(OA_ACCOUNT_ADMIN)) {
    // Show all "My Account" sections
    phpAds_ShowSections(array("5.1", "5.2", "5.3", "5.5", "5.6", "5.4"));
    phpAds_UserlogSelection("index");
} else {
    if (OA_Permission::isAccount(OA_ACCOUNT_MANAGER)) {
        // Show the "Preferences", "User Log" and "Channel Management" sections of the "My Account" sections
        phpAds_ShowSections(array("5.1", "5.2", "5.4", "5.7"));
    } else {
        if (OA_Permission::isAccount(OA_ACCOUNT_TRAFFICKER) || OA_Permission::isAccount(OA_ACCOUNT_ADVERTISER)) {
            phpAds_ShowSections(array("5.1", "5.2", "5.4"));
        }
    }
}
// Paging related input variables
开发者ID:Apeplazas,项目名称:plazadelatecnologia,代码行数:31,代码来源:userlog-index.php


注:本文中的phpAds_PageHeader函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。