/** Tools and Breadcrumbs **/ function MAX_displayNavigationTracker($advertiserId, $trackerId, $aOtherAdvertisers) { addTrackerPageTools($advertiserId, $trackerId, $aOtherAdvertisers); $oHeaderModel = MAX_displayTrackerBreadcrumbs($advertiserId, $trackerId); phpAds_PageHeader(null, $oHeaderModel); }
} MAX_displayNavigationTracker($clientid, $trackerid, $aOtherAdvertisers); } else { if (isset($move) && $move == 't') { // Convert client to tracker // TODO: is this still used? if not, we may want to remove it phpAds_PageHeader("4.1.4.4"); echo "<img src='" . OX::assetPath() . "/images/icon-advertiser.gif' align='absmiddle'> " . phpAds_getClientName($clientid); echo " <img src='" . OX::assetPath() . "/images/" . $phpAds_TextDirection . "/caret-rs.gif'> "; echo "<img src='" . OX::assetPath() . "/images/icon-tracker.gif' align='absmiddle'> <b>" . $strUntitled . "</b><br /><br /><br />"; phpAds_ShowSections(array("4.1.4.4")); } else { // New tracker // TODO: is this still used? if not, we may want to remove it phpAds_PageHeader("4.1.4.1"); MAX_displayTrackerBreadcrumbs(null, $clientid); phpAds_ShowSections(array("4.1.4.1")); } } if ($trackerid != "" || isset($move) && $move == 't') { // Edit or Convert // Fetch exisiting settings // Parent setting for converting, tracker settings for editing if ($trackerid != "") { $ID = $trackerid; } if (isset($move) && $move == 't') { if (isset($clientid) && $clientid != "") { $ID = $clientid; } }
function displayPage($tracker, $form) { //header and breadcrumbs if ($tracker['trackerid'] != "") { $doClients = OA_Dal::factoryDO('clients'); $doClients->whereAdd('clientid <>' . $tracker['clientid']); if (OA_Permission::isAccount(OA_ACCOUNT_MANAGER)) { $doClients->agencyid = OA_Permission::getAgencyId(); } $doClients->find(); $aOtherAdvertisers = array(); while ($doClients->fetch() && ($row = $doClients->toArray())) { $aOtherAdvertisers[] = $row; } MAX_displayNavigationTracker($tracker['clientid'], $tracker['trackerid'], $aOtherAdvertisers); } else { // New tracker $oHeaderModel = MAX_displayTrackerBreadcrumbs($tracker['clientid'], null); phpAds_PageHeader("tracker-edit_new", $oHeaderModel); } //get template and display form $oTpl = new OA_Admin_Template('tracker-edit.html'); $oTpl->assign('form', $form->serialize()); $oTpl->assign('formId', $form->getId()); $oTpl->display(); //footer phpAds_PageFooter(); }