Subversion Repositories cheapmusic

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
103 - 1
<?php echo showSectionHead($spTextSat['Search Engine Saturation 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('saturationchecker.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('saturationchecker.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 class="right">Bing</td>
47
	</tr>
48
	<?php
49
	$colCount = 3;
50
	if(count($list) > 0){
51
		$catCount = count($list);
52
		$i = 0;
53
		foreach($list as $listInfo){
54
 
55
			$class = ($i % 2) ? "blue_row" : "white_row";
56
            if($catCount == ($i + 1)){
57
                $leftBotClass = "tab_left_bot";
58
                $rightBotClass = "tab_right_bot";
59
            }else{
60
                $leftBotClass = "td_left_border td_br_right";
61
                $rightBotClass = "td_br_right";
62
            }
63
			?>
64
			<tr class="<?php echo $class?>">
65
				<td class="<?php echo $leftBotClass?>"><?php echo $listInfo['result_date']; ?></td>
66
				<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>
67
				<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>
68
			</tr>
69
			<?php
70
			$i++;
71
		}
72
	}else{
73
		echo showNoRecordsList($colCount-2);
74
	}
75
	?>
76
	<tr class="listBot">
77
		<td class="left" colspan="<?php echo ($colCount-1)?>"></td>
78
		<td class="right"></td>
79
	</tr>
80
</table>
81
</div>