if (count($list) > 0) { $catCount = count($list); foreach ($list as $i => $listInfo) { $class = $i % 2 ? "blue_row" : "white_row"; if ($catCount == $i + 1) { $leftBotClass = "tab_left_bot"; $rightBotClass = "tab_right_bot"; } else { $leftBotClass = "td_left_border td_br_right"; $rightBotClass = "td_br_right"; } // if from popup if ($fromPopUp) { $logLink = scriptAJAXLinkHref('log.php', 'content', "sec=crawl_log_details&id=" . $listInfo['id'], $listInfo['id']); } else { $logLink = scriptAJAXLinkHrefDialog('log.php', 'content', "sec=crawl_log_details&id=" . $listInfo['id'], $listInfo['id']); } // crawl log is for keyword if ($listInfo['crawl_type'] == 'keyword') { // if ref is is integer find keyword name if (!empty($listInfo['keyword'])) { $listInfo['ref_id'] = $listInfo['keyword']; } // find search engine info if (preg_match("/^\\d+\$/", $listInfo['subject'])) { $seCtrler = new SearchEngineController(); $seInfo = $seCtrler->__getsearchEngineInfo($listInfo['subject']); $listInfo['subject'] = $seInfo['domain']; } } ?>
left" width='100px;'><?php echo $listInfo['name']; ?> </td> <?php } ?> <?php foreach ($seList as $index => $seInfo) { $rank = empty($positionInfo[$seInfo['id']]['rank']) ? '-' : $positionInfo[$seInfo['id']]['rank']; $rankDiff = empty($positionInfo[$seInfo['id']]['rank_diff']) ? '' : $positionInfo[$seInfo['id']]['rank_diff']; $rankPadding = ""; if ($rank != '-') { $rankLink = scriptAJAXLinkHrefDialog('reports.php', 'content', $scriptLink . "&se_id=" . $seInfo['id'], $rank); $graphLink = scriptAJAXLinkHrefDialog('graphical-reports.php', 'content', $scriptLink . "&se_id=" . $seInfo['id'], ' ', 'graphicon'); $rankPadding = empty($rankDiff) ? "" : " "; $rankLink = $rankPadding . $rankLink; } else { $rankDiff = $graphLink = ""; $rankLink = $rank; } if ($index + 1 == $seCount) { ?> <td class="<?php echo $rightBotClass; ?> " style='width:100px' nowrap><?php echo "{$rankLink} {$graphLink} {$rankDiff}"; ?> </td>
$colCount = 6; if (count($list) > 0) { $catCount = count($list); foreach ($list as $i => $listInfo) { $class = $i % 2 ? "blue_row" : "white_row"; if ($catCount == $i + 1) { $leftBotClass = "tab_left_bot"; $rightBotClass = "tab_right_bot"; } else { $leftBotClass = "td_left_border td_br_right"; $rightBotClass = "td_br_right"; } $logLink = scriptAJAXLinkHrefDialog('proxy.php', 'content', "sec=edit&proxyId=" . $listInfo['proxy_id'], $listInfo['proxy'] . ":" . $listInfo['port']); $countLink = scriptAJAXLinkHrefDialog('log.php', 'content', "sec=crawl_log" . "{$urlParams}&status=&proxy_id=" . $listInfo['proxy_id'], $listInfo['count'], '', 'OnClick', 1000); $successLink = scriptAJAXLinkHrefDialog('log.php', 'content', "sec=crawl_log" . "{$urlParams}&status=success&proxy_id=" . $listInfo['proxy_id'], $listInfo['success'], '', 'OnClick', 1000); $failLink = scriptAJAXLinkHrefDialog('log.php', 'content', "sec=crawl_log" . "{$urlParams}&status=fail&proxy_id=" . $listInfo['proxy_id'], $listInfo['fail'], '', 'OnClick', 1000); ?> <tr class="<?php echo $class; ?> "> <td class="<?php echo $leftBotClass; ?> "><input type="checkbox" name="ids[]" value="<?php echo $listInfo['id']; ?> "></td> <td class="td_br_right"><?php echo $listInfo['proxy_id']; ?>