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


PHP phpAds_PageFooter函数代码示例

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


在下文中一共展示了phpAds_PageFooter函数的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: 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

示例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 {
         $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

示例5: displayPage

function displayPage($zone, $form, $zoneErrors = null)
{
    //header and breadcrumbs
    $pageName = basename($_SERVER['PHP_SELF']);
    $agencyId = OA_Permission::getAgencyId();
    $aEntities = array('affiliateid' => $zone['affiliateid'], 'zoneid' => $zone['zoneid']);
    $aOtherPublishers = Admin_DA::getPublishers(array('agency_id' => $agencyId));
    $aOtherZones = Admin_DA::getZones(array('publisher_id' => $zone['affiliateid']));
    MAX_displayNavigationZone($pageName, $aOtherPublishers, $aOtherZones, $aEntities);
    //get template and display form
    $oTpl = new OA_Admin_Template('zone-edit.html');
    $oTpl->assign('zoneid', $zone['zoneid']);
    $oTpl->assign('zoneHeight', $zone["height"]);
    $oTpl->assign('zoneWidth', $zone["width"]);
    $oTpl->assign('zoneErrors', $zoneErrors);
    $oTpl->assign('form', $form->serialize());
    $oTpl->display();
    //footer
    phpAds_PageFooter();
}
开发者ID:villos,项目名称:tree_admin,代码行数:20,代码来源:zone-edit.php

示例6: displayPage

function displayPage($aAgency, $form)
{
    if ($aAgency['agencyid'] != '') {
        OA_Admin_Menu::setAgencyPageContext($aAgency['agencyid'], 'agency-edit.php');
        MAX_displayInventoryBreadcrumbs(array(array("name" => $aAgency['name'])), "agency");
        phpAds_PageHeader();
    } else {
        MAX_displayInventoryBreadcrumbs(array(array("name" => "")), "agency", true);
        phpAds_PageHeader("agency-edit_new");
    }
    //get template and display form
    $oTpl = new OA_Admin_Template('agency-edit.html');
    $oTpl->assign('form', $form->serialize());
    $oTpl->display();
    //footer
    phpAds_PageFooter();
}
开发者ID:ballistiq,项目名称:revive-adserver,代码行数:17,代码来源:agency-edit.php

示例7: displayPage

function displayPage($channel, $form)
{
    $pageName = basename($_SERVER['PHP_SELF']);
    $agencyId = OA_Permission::getAgencyId();
    // Obtain the needed data
    if (!empty($channel['affiliateid'])) {
        $aEntities = array('agencyid' => $agencyId, 'affiliateid' => $channel['affiliateid'], 'channelid' => $channel['channelid']);
        // Editing a channel at the publisher level; Only use the
        // channels at this publisher level for the navigation bar
        $aOtherChannels = Admin_DA::getChannels(array('publisher_id' => $channel['affiliateid']));
    } else {
        $aEntities = array('agencyid' => $agencyId, 'channelid' => $channel['channelid']);
        // Editing a channel at the agency level; Only use the
        // channels at this agency level for the navigation bar
        $aOtherChannels = Admin_DA::getChannels(array('agency_id' => $agencyId, 'channel_type' => 'agency'));
    }
    //show header and breadcrumbs
    MAX_displayNavigationChannel($pageName, $aOtherChannels, $aEntities);
    //get template and display form
    $oTpl = new OA_Admin_Template('channel-edit.html');
    $oTpl->assign('form', $form->serialize());
    $oTpl->assign('formId', $form->getId());
    $oTpl->display();
    //show footer
    phpAds_PageFooter();
}
开发者ID:villos,项目名称:tree_admin,代码行数:26,代码来源:channel-edit.php

示例8: pageFooter

 /**
  * Display page footer and make sure that the session gets destroyed
  *
  */
 function pageFooter()
 {
     // Remove session
     unset($GLOBALS['session']);
     phpAds_PageFooter();
 }
开发者ID:ballistiq,项目名称:revive-adserver,代码行数:10,代码来源:PasswordRecovery.php

示例9: displayLogin

 /**
  * A static method to display a login screen
  *
  * @static
  *
  * @param string $sMessage
  * @param string $sessionID
  * @param bool $inlineLogin
  */
 function displayLogin($sMessage = '', $sessionID = 0, $inLineLogin = false)
 {
     global $strUsername, $strPassword, $strLogin, $strWelcomeTo, $strEnterUsername, $strNoAdminInteface, $strForgotPassword;
     $aConf = $GLOBALS['_MAX']['CONF'];
     $aPref = $GLOBALS['_MAX']['PREF'];
     @header('Cache-Control: max-age=0, no-cache, proxy-revalidate, must-revalidate');
     if (!$inLineLogin) {
         phpAds_PageHeader(phpAds_Login);
     }
     // Check environment settings
     $oSystemMgr = new OA_Environment_Manager();
     $aSysInfo = $oSystemMgr->checkSystem();
     foreach ($aSysInfo as $env => $vals) {
         $errDetails = '';
         if (is_array($vals['error']) && !empty($vals['error'])) {
             if ($env == 'PERMS') {
                 // Just note that some file/folders are unwritable and that more information can be found in the debug.log
                 OA_Admin_UI::queueMessage('Error: File permission errors detected.<br />These <em>may</em> impact the accurate delivery of your ads,<br />See the debug.log file for the list of unwritable files', 'global', 'error', 0);
             } else {
                 foreach ($vals['error'] as $key => $val) {
                     $errDetails .= '<li>' . htmlspecialchars($key) . ' &nbsp; => &nbsp; ' . htmlspecialchars($val) . '</li>';
                 }
                 phpAds_Die(' Error: ' . $err, $errDetails);
             }
         }
     }
     $oTpl = new OA_Admin_Template('login.html');
     $appName = !empty($aConf['ui']['applicationName']) ? $aConf['ui']['applicationName'] : PRODUCT_NAME;
     $oTpl->assign('uiEnabled', $aConf['ui']['enabled']);
     $oTpl->assign('sessionID', $sessionID);
     $oTpl->assign('appName', $appName);
     $oTpl->assign('message', $sMessage);
     $oTpl->display();
     phpAds_PageFooter();
     exit;
 }
开发者ID:Spark-Eleven,项目名称:revive-adserver,代码行数:45,代码来源:authentication.php

示例10: displayPage

function displayPage($aAdvertiser, $form)
{
    //header and breadcrumbs
    $oHeaderModel = buildAdvertiserHeaderModel($aAdvertiser);
    if ($aAdvertiser['clientid'] != "") {
        if (OA_Permission::isAccount(OA_ACCOUNT_ADMIN) || OA_Permission::isAccount(OA_ACCOUNT_MANAGER)) {
            OA_Admin_Menu::setAdvertiserPageContext($aAdvertiser['clientid'], 'advertiser-index.php');
            addAdvertiserPageToolsAndShortcuts($aAdvertiser['clientid']);
            phpAds_PageHeader(null, $oHeaderModel);
        } else {
            phpAds_PageHeader(null, $oHeaderModel);
        }
    } else {
        //new advertiser
        phpAds_PageHeader('advertiser-edit_new', $oHeaderModel);
    }
    //get template and display form
    $oTpl = new OA_Admin_Template('advertiser-edit.html');
    $oTpl->assign('clientid', $aAdvertiser['clientid']);
    $oTpl->assign('form', $form->serialize());
    $oTpl->display();
    //footer
    phpAds_PageFooter();
}
开发者ID:Spark-Eleven,项目名称:revive-adserver,代码行数:24,代码来源:advertiser-edit.php

示例11: displayPage

function displayPage($bannerid, $campaignid, $clientid, $bannerTypes, $aBanner, $type, $form, $ext_bannertype, $formDisabled = false)
{
    // Initialise some parameters
    $pageName = basename($_SERVER['SCRIPT_NAME']);
    $aEntities = array('clientid' => $clientid, 'campaignid' => $campaignid, 'bannerid' => $bannerid);
    $entityId = OA_Permission::getEntityId();
    if (OA_Permission::isAccount(OA_ACCOUNT_ADVERTISER)) {
        $entityType = 'advertiser_id';
    } else {
        $entityType = 'agency_id';
    }
    // Display navigation
    $aOtherCampaigns = Admin_DA::getPlacements(array($entityType => $entityId));
    $aOtherBanners = Admin_DA::getAds(array('placement_id' => $campaignid), false);
    // Display banner preview
    MAX_displayNavigationBanner($pageName, $aOtherCampaigns, $aOtherBanners, $aEntities);
    //actual page content - type chooser and form
    /*-------------------------------------------------------*/
    /* Main code                                             */
    /*-------------------------------------------------------*/
    $oTpl = new OA_Admin_Template('banner-edit.html');
    $oTpl->assign('clientId', $clientid);
    $oTpl->assign('campaignId', $campaignid);
    $oTpl->assign('bannerId', $bannerid);
    $oTpl->assign('bannerTypes', $bannerTypes);
    $oTpl->assign('bannerType', $ext_bannertype ? $ext_bannertype : $type);
    $oTpl->assign('bannerHeight', $aBanner["height"]);
    $oTpl->assign('bannerWidth', $aBanner["width"]);
    $oTpl->assign('disabled', $formDisabled);
    $oTpl->assign('form', $form->serialize());
    $oTpl->display();
    /*********************************************************/
    /* HTML framework                                        */
    /*********************************************************/
    phpAds_PageFooter();
}
开发者ID:ballistiq,项目名称:revive-adserver,代码行数:36,代码来源:banner-edit.php

示例12: display

 function display()
 {
     $this->_processHeaderNavigation();
     require_once MAX_PATH . '/lib/OA/Admin/Template.php';
     $oTpl = new OA_Admin_Template($this->pagePrefix . '-user.html');
     $oTpl->assign('action', $this->pagePrefix . '-user.php');
     $oTpl->assign('backUrl', $this->backUrl);
     $oTpl->assign('method', 'POST');
     $oTpl->assign('aErrors', $this->aErrors);
     $this->oPlugin->setTemplateVariables($oTpl);
     $oTpl->assign('existingUser', !empty($this->userid));
     $oTpl->assign('showLinkButton', !empty($this->request['link']));
     $doUsers = OA_Dal::staticGetDO('users', $this->userid);
     $userData = array();
     if ($doUsers) {
         $userData = $doUsers->toArray();
     } else {
         $userData['username'] = $this->request['login'];
         $userData['contact_name'] = $this->request['contact_name'];
         $userData['email_address'] = $this->request['email_address'];
         $userData['language'] = $this->request['language'];
     }
     $userData['userid'] = $this->userid;
     $aTplFields = array(array('title' => $GLOBALS['strUserDetails'], 'fields' => $this->oPlugin->getUserDetailsFields($userData, $this->request['link'])));
     $aPermissionsFields = $this->_builPermissionFields();
     if (!empty($aPermissionsFields)) {
         $aTplFields[] = array('title' => $GLOBALS['strPermissions'], 'fields' => $aPermissionsFields);
     }
     $oTpl->assign('fields', $aTplFields);
     $aHiddenFields = $this->_getHiddenFields($userData, $this->request['link'], $this->aHiddenFields);
     $oTpl->assign('hiddenFields', $aHiddenFields);
     $oTpl->display();
     $this->_processFooterNavigation();
     phpAds_PageFooter();
 }
开发者ID:villos,项目名称:tree_admin,代码行数:35,代码来源:UserAccess.php

示例13: display_page

function display_page($banner_id, $campaign_id, $client_id)
{
    $page_name = basename($_SERVER['PHP_SELF']);
    $entities = array('clientid' => $client_id, 'campaignid' => $campaign_id, 'bannerid' => $banner_id);
    $entity_id = OA_Permission::getEntityId();
    if (OA_Permission::isAccount(OA_ACCOUNT_ADVERTISER)) {
        $entity_type = 'advertiser_id';
    } else {
        $entity_type = 'agency_id';
    }
    // Display navigation
    $other_campaigns = Admin_DA::getPlacements(array($entity_type => $entity_id));
    $other_banners = Admin_DA::getAds(array('placement_id' => $campaign_id), false);
    displayNavigationBanner($page_name, $other_campaigns, $other_banners, $entities);
    if (!empty($banner_id)) {
        $template_id = OA_Dal::factoryDO('Zpbanners')->get_zp_banner_id((int) $banner_id);
        $form = explode('|', form_ajax_request($template_id));
    }
    $template = new OA_Plugin_Template('designer-form.html', 'bannerDesigner');
    //$oTpl->debugging = true;
    $template->assign('bannerid', $banner_id);
    $template->assign('campaignid', $campaign_id);
    $template->assign('clientid', $client_id);
    $template->assign('template_id', $template_id);
    $template->assign('form', $form);
    $template->display();
    phpAds_PageFooter();
}
开发者ID:TheProjecter,项目名称:openx-banner-creator,代码行数:28,代码来源:banner-designer.php

示例14: phpAds_displayData

function phpAds_displayData($source_arr, $pageID)
{
    global $parent;
    echo "<form action='" . $pageID . "' method='post'>\n";
    $parent_arr = explode('/', $parent);
    echo "<h1><a href='" . $pageID . "?parent='>Top</a> : ";
    $tmp_parent = "";
    for ($i = 0; $i < sizeof($parent_arr); $i++) {
        if ($i != 0) {
            echo ' / ';
        }
        $tmp_parent = strlen($tmp_parent) > 0 ? $tmp_parent . '/' . $parent_arr[$i] : $parent_arr[$i];
        echo "<a href='" . $pageID . "?parent=" . urlencode($tmp_parent) . "'>" . $parent_arr[$i] . "</a>";
    }
    echo "</h1>\n";
    echo "<table cellspacing='0' cellpadding='0' border='1'>\n";
    echo "<tr class='data_header_row'>\n";
    echo "\t<td class='data_header_cell'>Views</td>\n";
    echo "\t<td class='data_header_cell'>Source</td>\n";
    echo "\t<td class='data_header_cell'>Modified Source</td>\n";
    echo "\t<td class='data_header_cell'>Remove this part</td>\n";
    echo "\t<td class='data_header_cell'>Remove parent</td>\n";
    echo "</tr>\n";
    for ($i = 0; $i < sizeof($source_arr); $i++) {
        if (is_array($source_arr[$i])) {
            $source_part = $source_arr[$i]['source_part'];
            $sum_views = $source_arr[$i]['sum_views'];
            echo "<tr class='data_row" . ($cnt % 2 == 0 ? "_alt" : "") . "'>\n";
            echo "\t<td class='data_cell'>" . $sum_views . "</td>\n";
            echo "\t<td class='data_cell'>";
            echo "<a href='" . $pageID . "?parent=" . urlencode(strlen($parent) > 0 ? $parent . '/' . $source_part : $source_part) . "'>";
            echo $source_part;
            echo "</td>\n";
            echo "<td>";
            echo "<input type='hidden' name='source_old[]' value='" . $source_part . "'>";
            echo "<input type='text' class='flat' size='26' name='source_new[]' value='" . $source_part . "' style='width:250px;'>";
            echo "</td>\n";
            echo "<td>";
            echo "<input type='checkbox' name='source_del[]' value='" . $source_part . "'>";
            echo "</td>\n";
            echo "<td>";
            if (strlen($parent) > 0) {
                echo "<input type='checkbox' name='source_parent_del[]' value='" . $source_part . "'>";
            } else {
                echo "&nbsp;";
            }
            echo "</td>\n";
            echo "</tr>\n";
        }
    }
    echo "</table>\n";
    echo "<input type='hidden' name='parent' value='" . $parent . "'>\n";
    echo "<input type='submit' name='submit' value='Update Fields'>\n";
    echo "</form>\n";
    phpAds_PageFooter();
}
开发者ID:miller-tamil,项目名称:openads-plus,代码行数:56,代码来源:maintenance-source-edit.php

示例15: phpAds_PageHeader

}
// display header and navigation, with proper 'active page' marked using $activeNav[$action]
phpAds_PageHeader($activeNav[$action], new OA_Admin_UI_Model_PageHeaderModel(), $imgPath, false, true, false);
// calculate percentage complete
$currSection = $oMenu->get($currentSectionID);
$showSections = $currSection->getSections();
$totalNav = count($showSections) - 1;
$progressRate = 100 / $totalNav;
for ($i = 0; $i < count($showSections); $i++) {
    if ($activeNav[$action] == $showSections[$i]->getId()) {
        if ($i == 0) {
            $progressVal = 0;
        } elseif ($i == $totalNav) {
            $progressVal = 100;
        } else {
            $progressVal = round($i * $progressRate);
        }
        break;
    } else {
        $progressVal = 0;
    }
}
// display main template
include 'templates/install-index.html';
// 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 -->";
//OA::logMem('end installer');
// display footer
phpAds_PageFooter($imgPath);
开发者ID:villos,项目名称:tree_admin,代码行数:30,代码来源:install.php


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