Subversion Repositories cheapmusic

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
103 - 1
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="list">
2
	<tr class="listHead">
3
		<td class="left"><?php echo $spText['common']['Url']?></td>
4
		<td>Google</td>
5
		<td>Alexa</td>
6
		<td class="right">Bing</td>
7
	</tr>
8
	<?php
9
	$colCount = 4;
10
	if(count($list) > 0){
11
		$catCount = count($list);
12
		$i = 0;
13
		foreach($list as $url){
14
 
15
			$class = ($i % 2) ? "blue_row" : "white_row";
16
            if($catCount == ($i + 1)){
17
                $leftBotClass = "tab_left_bot";
18
                $rightBotClass = "tab_right_bot";
19
            }else{
20
                $leftBotClass = "td_left_border td_br_right";
21
                $rightBotClass = "td_br_right";
22
            }
23
 
24
            $tdWidth = "80px";
25
            $debugVar = !empty($_POST['debug']) ? "&debug=1" : "";
26
            $debugVar .= !empty($_POST['debug_format']) ? "&debug_format=" . $_POST['debug_format'] : ""
27
			?>
28
			<tr class="<?php echo $class?>">
29
				<td class="<?php echo $leftBotClass?>" style="text-align:left;padding-left:10px;"><?php echo $url?></td>
30
				<td class="td_br_right" width="<?php echo $tdWidth?>" id='googlerank<?php echo $i?>'>
31
					<script type="text/javascript">
32
						scriptDoLoadPost('backlinks.php', 'tmp', 'googlerank<?php echo $i?>', 'sec=backlink&engine=google&url=<?php echo urlencode($url); ?><?php echo $debugVar?>');
33
					</script>
34
				</td>
35
				<td class="td_br_right" width="<?php echo $tdWidth?>" id='alexa<?php echo $i?>'>
36
					<script type="text/javascript">
37
						scriptDoLoadPost('backlinks.php', 'tmp', 'alexa<?php echo $i?>', 'sec=backlink&engine=alexa&url=<?php echo urlencode($url); ?><?php echo $debugVar?>');
38
					</script>
39
				</td>
40
				<td class="<?php echo $rightBotClass?>" width="<?php echo $tdWidth?>" id='msnrank<?php echo $i?>'>
41
					<script type="text/javascript">
42
						scriptDoLoadPost('backlinks.php', 'tmp', 'msnrank<?php echo $i?>', 'sec=backlink&engine=msn&url=<?php echo urlencode($url); ?><?php echo $debugVar?>');
43
					</script>
44
				</td>
45
			</tr>
46
			<?php
47
			$i++;
48
		}
49
	}else{
50
		echo showNoRecordsList($colCount-2);
51
	}
52
	?>
53
	<tr class="listBot">
54
		<td class="left" colspan="<?php echo ($colCount-1)?>"></td>
55
		<td class="right"></td>
56
	</tr>
57
</table>