echo "\t\t\t\t\t<td>\n"; echo "\t\t\t\t\t\t<b>" . $GLOBALS['strConversionWindow'] . "</b>\n"; echo "\t\t\t\t\t</td>\n"; echo "\t\t\t\t</tr>\n"; echo "\t\t\t\t<tr height='1'>\n"; echo "\t\t\t\t\t<td colspan='4' bgcolor='#888888'><img src='images/break.gif' height='1' width='100%'></td>\n"; echo "\t\t\t\t</tr>\n"; $i = 0; $checkedall = true; if (isset($campaignid) && $campaignid > 0) { $res = phpAds_dbQuery("SELECT *" . " FROM " . $phpAds_config['tbl_campaigns_trackers'] . " WHERE campaignid=" . $campaignid) or phpAds_sqlDie(); while ($row = phpAds_dbFetchArray($res)) { $campaign_tracker_row[$row['trackerid']] = $row; } } $res = phpAds_dbQuery("SELECT *" . " FROM " . $phpAds_config['tbl_trackers'] . " WHERE clientid=" . $clientid . phpAds_getTrackerListOrder($listorder, $orderdirection)) or phpAds_sqlDie(); if (phpAds_dbNumRows($res) == 0) { echo "\t\t\t\t<tr bgcolor='#F6F6F6'>\n"; echo "\t\t\t\t\t<td colspan='4' height='25'> " . $strNoTrackersToLink . "</td>\n"; echo "\t\t\t\t</tr>\n"; } else { echo "\t\t\t\t<form name='availabletrackers' method='post' action='campaign-trackers.php'>\n"; echo "\t\t\t\t<input type='hidden' name='campaignid' value='" . $GLOBALS['campaignid'] . "'>\n"; echo "\t\t\t\t<input type='hidden' name='clientid' value='" . $GLOBALS['clientid'] . "'>\n"; echo "\t\t\t\t<input type='hidden' name='action' value='set'>\n"; while ($row = phpAds_dbFetchArray($res)) { $trackers[$row['trackerid']] = $row; } for (reset($trackers); $tkey = key($trackers); next($trackers)) { $tracker = $trackers[$tkey]; if ($i > 0) {
if (!isset($listorder)) { if (isset($Session['prefs']['tracker-campaigns.php']['listorder'])) { $listorder = $Session['prefs']['tracker-campaigns.php']['listorder']; } else { $listorder = ''; } } if (!isset($orderdirection)) { if (isset($Session['prefs']['tracker-campaigns.php']['orderdirection'])) { $orderdirection = $Session['prefs']['tracker-campaigns.php']['orderdirection']; } else { $orderdirection = ''; } } // Get other trackers $res = phpAds_dbQuery("SELECT *" . " FROM " . $phpAds_config['tbl_trackers'] . " WHERE clientid=" . $clientid . phpAds_getTrackerListOrder($navorder, $navdirection)); while ($row = phpAds_dbFetchArray($res)) { phpAds_PageContext(phpAds_buildName($row['trackerid'], $row['trackername']), "tracker-campaigns.php?clientid=" . $clientid . "&trackerid=" . $row['trackerid'], $trackerid == $row['trackerid']); } if (phpAds_isUser(phpAds_Admin) || phpAds_isUser(phpAds_Agency)) { phpAds_PageShortcut($strClientProperties, 'advertiser-edit.php?clientid=' . $clientid, 'images/icon-advertiser.gif'); //phpAds_PageShortcut($strTrackerHistory, 'stats-tracker-history.php?clientid='.$clientid.'&trackerid='.$trackerid, 'images/icon-statistics.gif'); $extra = "\t\t\t\t<form action='tracker-modify.php'>" . "\n"; $extra .= "\t\t\t\t<input type='hidden' name='trackerid' value='{$trackerid}'>" . "\n"; $extra .= "\t\t\t\t<input type='hidden' name='clientid' value='{$clientid}'>" . "\n"; $extra .= "\t\t\t\t<input type='hidden' name='returnurl' value='tracker-campaigns.php'>" . "\n"; $extra .= "\t\t\t\t<br><br>" . "\n"; $extra .= "\t\t\t\t<b>{$strModifyTracker}</b><br>" . "\n"; $extra .= "\t\t\t\t<img src='images/break.gif' height='1' width='160' vspace='4'><br>" . "\n"; $extra .= "\t\t\t\t<img src='images/icon-duplicate-tracker.gif' align='absmiddle'> <a href='tracker-modify.php?clientid=" . $clientid . "&trackerid=" . $trackerid . "&duplicate=true&returnurl=tracker-campaigns.php'>{$strDuplicate}</a><br>" . "\n"; $extra .= "\t\t\t\t<img src='images/break.gif' height='1' width='160' vspace='4'><br>" . "\n";