if ($period_preset == 'specific') { echo "<input type='hidden' name='period_start' value='{$period_start}'>" . "\n"; echo "<input type='hidden' name='period_end' value='{$period_end}'>" . "\n"; } echo "<input type='hidden' name='returnurl' value='stats.php'>" . "\n"; echo "<input type='hidden' name='entity' value='conversions'>" . "\n"; echo "<input type='hidden' name='setPerPage' value='{$setPerPage}'>" . "\n"; echo "<input type='hidden' name='pageID' value='{$pageID}'>" . "\n"; } echo "\n <br /><br />\n <table border='0' width='100%' cellpadding='0' cellspacing='0'>"; $column1 = _getHtmlHeaderColumn($GLOBALS['strDateTime'], 'date_time', $pageName, $entityIds, $listorder, $orderdirection); $column2 = _getHtmlHeaderColumn($GLOBALS['strStatus'], 'connection_status', $pageName, $entityIds, $listorder, $orderdirection); $column3 = _getHtmlHeaderColumn($GLOBALS['strTrackerID'], 'tracker_id', $pageName, $entityIds, $listorder, $orderdirection); $column4 = _getHtmlHeaderColumn($GLOBALS['strTrackerName'], 'trackername', $pageName, $entityIds, $listorder, $orderdirection); $column5 = _getHtmlHeaderColumn($GLOBALS['strCampaignID'], 'campaignid', $pageName, $entityIds, $listorder, $orderdirection); $column6 = _getHtmlHeaderColumn($GLOBALS['strCampaignName'], 'campaignname', $pageName, $entityIds, $listorder, $orderdirection); echo "\n <tr height='1'>\n <td><img src='" . OX::assetPath() . "/images/spacer.gif' width='150' height='1' border='0' alt='' title=''></td>\n <td><img src='" . OX::assetPath() . "/images/spacer.gif' width='80' height='1' border='0' alt='' title=''></td>\n <td><img src='" . OX::assetPath() . "/images/spacer.gif' width='60' height='1' border='0' alt='' title=''></td>\n <td><img src='" . OX::assetPath() . "/images/spacer.gif' width='80' height='1' border='0' alt='' title=''></td>\n <td><img src='" . OX::assetPath() . "/images/spacer.gif' width='60' height='1' border='0' alt='' title=''></td>\n <td><img src='" . OX::assetPath() . "/images/spacer.gif' width='80' height='1' border='0' alt='' title=''></td>\n </tr>\n <tr height='25'>\n <td width='150' style='padding-left: 16px'> {$column1}</td>\n <td align='center' style='padding: 0 4px'>{$column2}</td>\n <td align='{$phpAds_TextAlignLeft}' style='padding: 0 4px'>{$column3}</td>\n <td align='{$phpAds_TextAlignLeft}' style='padding: 0 4px'>{$column4}</td>\n <td align='{$phpAds_TextAlignLeft}' style='padding: 0 4px'>{$column5}</td>\n <td align='{$phpAds_TextAlignLeft}' style='padding: 0 4px'>{$column6}</td>\n </tr>\n <tr height='1'><td colspan='6' bgcolor='#888888'><img src='" . OX::assetPath() . "/images/break.gif' height='1' width='100%'></td></tr>"; // Variable to determine if the row should be grey or white... $i = 0; $statusesColors = array(MAX_CONNECTION_STATUS_IGNORE => 'grey', MAX_CONNECTION_STATUS_PENDING => 'darkblue', MAX_CONNECTION_STATUS_ONHOLD => 'blue', MAX_CONNECTION_STATUS_APPROVED => 'green', MAX_CONNECTION_STATUS_DISAPPROVED => 'red', MAX_CONNECTION_STATUS_DUPLICATE => 'grey'); $totalRequests = 0; $totalViews = 0; $totalClicks = 0; $totalConversions = 0; // Loop through advertisers MAX_sortArray($aConversions, $listorder == 'id' ? 'date_time' : $listorder, $orderdirection == 'up'); foreach ($aConversions as $conversionId => $conversion) { $conversionExpanded = MAX_isExpanded($conversionId, $expand, $aNodes, 'a'); $bgcolor = $i++ % 2 == 0 ? " bgcolor='#F6F6F6'" : ''; $connectionStatus = $GLOBALS['_MAX']['STATUSES'][$conversion['connection_status']]; $translatedStatus = $GLOBALS[$connectionStatus];
function MAX_displayStatsHistoryHeader($pageName, $listorder, $orderdirection, $entityIds = null) { global $phpAds_TextAlignRight; $column1 = _getHtmlHeaderColumn($GLOBALS['strDays'], 'name', $pageName, $entityIds, $listorder, $orderdirection); $column2 = _getHtmlHeaderColumn($GLOBALS['strImpressions'], 'sum_views', $pageName, $entityIds, $listorder, $orderdirection); $column3 = _getHtmlHeaderColumn($GLOBALS['strClicks'], 'sum_clicks', $pageName, $entityIds, $listorder, $orderdirection); $column4 = _getHtmlHeaderColumn($GLOBALS['strCTRShort'], 'ctr', $pageName, $entityIds, $listorder, $orderdirection); $column5 = _getHtmlHeaderColumn($GLOBALS['strConversions'], 'sum_conversions', $pageName, $entityIds, $listorder, $orderdirection); $column6 = _getHtmlHeaderColumn($GLOBALS['strCNVRShort'], 'cnvr', $pageName, $entityIds, $listorder, $orderdirection); echo "\n <table border='0' cellpadding='0' cellspacing='0' width='100%'>\n <tr height='1'>\n <td><img src='" . OX::assetPath() . "/images/spacer.gif' width='200' height='1' border='0' alt='' title=''></td>\n <td><img src='" . OX::assetPath() . "/images/spacer.gif' width='80' height='1' border='0' alt='' title=''></td>\n <td><img src='" . OX::assetPath() . "/images/spacer.gif' width='80' height='1' border='0' alt='' title=''></td>\n <td><img src='" . OX::assetPath() . "/images/spacer.gif' width='80' height='1' border='0' alt='' title=''></td>\n <td><img src='" . OX::assetPath() . "/images/spacer.gif' width='80' height='1' border='0' alt='' title=''></td>\n <td><img src='" . OX::assetPath() . "/images/spacer.gif' width='80' height='1' border='0' alt='' title=''></td>\n </tr>\n <tr height='25'>\n <td width='30%'>{$column1}</td>\n <td align='{$phpAds_TextAlignRight}'>{$column2}</td>\n <td align='{$phpAds_TextAlignRight}'>{$column3}</td>\n <td align='{$phpAds_TextAlignRight}'>{$column4}</td>\n <td align='{$phpAds_TextAlignRight}'>{$column5}</td>\n <td align='{$phpAds_TextAlignRight}'>{$column6}</td>\n </tr>\n <tr height='1'><td colspan='7' bgcolor='#888888'><img src='" . OX::assetPath() . "/images/break.gif' height='1' width='100%'></td></tr>\n "; }