} $res = phpAds_dbQuery($query) or phpAds_sqlDie(); while ($row = phpAds_dbFetchArray($res)) { $extra .= "\t\t\t\t\t<option value='" . $row['clientid'] . "'>" . phpAds_buildName($row['clientid'], $row['clientname']) . "</option>\n"; } $extra .= "\t\t\t\t</select> \n"; $extra .= "\t\t\t\t<input type='image' src='images/" . $phpAds_TextDirection . "/go_blue.gif'><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-recycle.gif' align='absmiddle'>\n"; $extra .= "\t\t\t\t<a href='tracker-delete.php?clientid={$clientid}&trackerid={$trackerid}&returnurl=advertiser-trackers.php'" . phpAds_DelConfirm($strConfirmDeleteTracker) . ">{$strDelete}</a><br>\n"; $extra .= "\t\t\t\t</form>\n"; phpAds_PageHeader("4.1.4.3", $extra); echo "\t\t\t\t<img src='images/icon-advertiser.gif' align='absmiddle'> " . phpAds_getClientName($clientid) . "\n"; echo "\t\t\t\t<img src='images/" . $phpAds_TextDirection . "/caret-rs.gif'>\n"; echo "\t\t\t\t<img src='images/icon-tracker.gif' align='absmiddle'>\n"; echo "\t\t\t\t<b>" . phpAds_getTrackerName($trackerid) . "</b><br><br><br>\n"; phpAds_ShowSections(array("4.1.4.2", "4.1.4.3", "4.1.4.5", "4.1.4.4")); } if (isset($trackerid) && $trackerid != '') { $res = phpAds_dbQuery("SELECT *" . " FROM " . $phpAds_config['tbl_trackers'] . " WHERE trackerid=" . $trackerid) or phpAds_sqlDie(); if (phpAds_dbNumRows($res)) { $tracker = phpAds_dbFetchArray($res); } } $tabindex = 1; // Header echo "\t\t\t\t<table width='100%' border='0' align='center' cellspacing='0' cellpadding='0'>\n"; echo "\t\t\t\t<tr height='25'>\n"; echo "\t\t\t\t\t<td height='25' width='40%'>\n"; echo "\t\t\t\t\t\t<b> <a href='tracker-campaigns.php?clientid=" . $clientid . "&trackerid=" . $trackerid . "&listorder=name'>" . $GLOBALS['strName'] . "</a>"; if ($listorder == "name" || $listorder == "") {
$query = "SELECT clientid,clientname" . " FROM " . $phpAds_config['tbl_clients'] . " WHERE clientid!=" . $clientid . " AND agencyid=" . phpAds_getAgencyID(); } $res = phpAds_dbQuery($query) or phpAds_sqlDie(); while ($row = phpAds_dbFetchArray($res)) { $extra .= "\t\t\t\t\t<option value='" . $row['clientid'] . "'>" . phpAds_buildName($row['clientid'], $row['clientname']) . "</option>\n"; } $extra .= "\t\t\t\t</select> \n"; $extra .= "\t\t\t\t<input type='image' src='images/" . $phpAds_TextDirection . "/go_blue.gif'><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-recycle.gif' align='absmiddle'>\n"; $extra .= "\t\t\t\t<a href='tracker-delete.php?clientid={$clientid}&trackerid={$trackerid}&returnurl=advertiser-trackers.php'" . phpAds_DelConfirm($strConfirmDeleteTracker) . ">{$strDelete}</a><br>\n"; $extra .= "\t\t\t\t</form>\n"; phpAds_PageHeader("4.1.4.4", $extra); echo "<img src='images/icon-advertiser.gif' align='absmiddle'> " . phpAds_getClientName(phpAds_getTrackerParentClientID($trackerid)); echo " <img src='images/" . $phpAds_TextDirection . "/caret-rs.gif'> "; echo "<img src='images/icon-tracker.gif' align='absmiddle'> <b>" . phpAds_getTrackerName($trackerid) . "</b><br><br><br>"; phpAds_ShowSections(array("4.1.4.2", "4.1.4.3", "4.1.4.5", "4.1.4.4")); } else { if (isset($move) && $move == 't') { // Convert client to tracker phpAds_PageHeader("4.1.4.4"); echo "<img src='images/icon-advertiser.gif' align='absmiddle'> " . phpAds_getClientName($clientid); echo " <img src='images/" . $phpAds_TextDirection . "/caret-rs.gif'> "; echo "<img src='images/icon-tracker.gif' align='absmiddle'> <b>" . $strUntitled . "</b><br><br><br>"; phpAds_ShowSections(array("4.1.4.4")); } else { // New tracker phpAds_PageHeader("4.1.4.1"); echo "<img src='images/icon-advertiser.gif' align='absmiddle'> " . phpAds_getClientName($clientid); echo " <img src='images/" . $phpAds_TextDirection . "/caret-rs.gif'> "; echo "<img src='images/icon-tracker.gif' align='absmiddle'> <b>" . $strUntitled . "</b><br><br><br>";