Subversion Repositories cheapmusic

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
103 - 1
<?php echo showSectionHead($spTextTools['Backlinks Reports']); ?>
2
<form id='search_form'>
3
<table width="100%" class="search">
4
	<tr>
5
		<th><?php echo $spText['common']['Website']?>: </th>
6
		<td>
7
			<select name="website_id" id="website_id" style='width:190px;' onchange="scriptDoLoadPost('backlinks.php', 'search_form', 'content', '&sec=reports')">
8
				<?php foreach($websiteList as $websiteInfo){?>
9
					<?php if($websiteInfo['id'] == $websiteId){?>
10
						<option value="<?php echo $websiteInfo['id']?>" selected><?php echo $websiteInfo['name']?></option>
11
					<?php }else{?>
12
						<option value="<?php echo $websiteInfo['id']?>"><?php echo $websiteInfo['name']?></option>
13
					<?php }?>
14
				<?php }?>
15
			</select>
16
		</td>
17
		<th><?php echo $spText['common']['Period']?>:</th>
18
		<td>
19
			<input type="text" value="<?php echo $fromTime?>" name="from_time"/>
20
			<input type="text" value="<?php echo $toTime?>" name="to_time"/>
21
			<script type="text/javascript">
22
			$(function() {
23
				$( "input[name='from_time'], input[name='to_time']").datepicker({dateFormat: "yy-mm-dd"});
24
			});
25
		  	</script>
26
		</td>
27
		<td colspan="2"><a href="javascript:void(0);" onclick="scriptDoLoadPost('backlinks.php', 'search_form', 'content', '&sec=reports')" class="actionbut"><?php echo $spText['button']['Show Records']?></a></td>
28
	</tr>
29
</table>
30
</form>
31
 
32
<?php
33
	if(empty($websiteId)){
34
		?>
35
		<p class='note error'><?php echo $spText['common']['No Records Found']?>!</p>
36
		<?php
37
		exit;
38
	}
39
?>
40
 
41
<div id='subcontent'>
42
<table width="100%" class="list">
43
	<tr class="listHead">
44
		<td class="left"><?php echo $spText['common']['Date']?></td>
45
		<td>Google</td>
46
		<td>Alexa</td>
47
		<td class="right">Bing</td>
48
	</tr>
49
	<?php
50
	$colCount = 4;
51
	if(count($list) > 0){
52
		$catCount = count($list);
53
		$i = 0;
54
		foreach($list as $listInfo){
55
 
56
			$class = ($i % 2) ? "blue_row" : "white_row";
57
            if($catCount == ($i + 1)){
58
                $leftBotClass = "tab_left_bot";
59
                $rightBotClass = "tab_right_bot";
60
            }else{
61
                $leftBotClass = "td_left_border td_br_right";
62
                $rightBotClass = "td_br_right";
63
            }
64
			?>
65
			<tr class="<?php echo $class?>">
66
				<td class="<?php echo $leftBotClass?>"><?php echo $listInfo['result_date']; ?></td>
67
				<td class='td_br_right' style='text-align:left;padding-left:40px;'><a href="<?php echo $directLinkList['google']?>" target="_blank"><?php echo $listInfo['google'].'</a> '. $listInfo['rank_diff_google']?></td>
68
				<td class='td_br_right' style='text-align:left;padding-left:40px;'><a href="<?php echo $directLinkList['alexa']?>" target="_blank"><?php echo $listInfo['alexa'].'</a> '. $listInfo['rank_diff_alexa']?></td>
69
				<td class='<?php echo $rightBotClass?>' style='text-align:left;padding-left:40px;'><a href="<?php echo $directLinkList['msn']?>" target="_blank"><?php echo $listInfo['msn'].'</a> '. $listInfo['rank_diff_msn']?></td>
70
			</tr>
71
			<?php
72
			$i++;
73
		}
74
	}else{
75
		echo showNoRecordsList($colCount-2);
76
	}
77
	?>
78
	<tr class="listBot">
79
		<td class="left" colspan="<?php echo ($colCount-1)?>"></td>
80
		<td class="right"></td>
81
	</tr>
82
</table>
83
</div>