Subversion Repositories cheapmusic

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
103 - 1
<?php echo showSectionHead($spTextTools['Keyword Search 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" onchange="doLoad('website_id', 'webmaster-tools.php', 'keyword_area', 'sec=keywordbox')">
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
	</tr>
28
	<tr>
29
		<th><?php echo $spText['common']['Keyword']?>: </th>
30
		<td id="keyword_area">
31
			<?php echo $this->render('keyword/keywordselectbox', 'ajax'); ?>
32
		</td>
33
		<td colspan="2">
34
			<a href="javascript:void(0);" onclick="scriptDoLoadPost('webmaster-tools.php', 'search_form', 'content', '&sec=viewKeywordSearchReports')" class="actionbut"><?php echo $spText['button']['Show Records']?></a>
35
		</td>
36
	</tr>
37
</table>
38
</form>
39
 
40
<?php
41
if(empty($keywordId)){
42
	?>
43
	<p class='note error'><?php echo $spText['common']['No Keywords Found']?>!</p>
44
	<?php
45
	exit;
46
}
47
?>
48
<br><br>
49
<div id='subcontent'>
50
<table id="cust_tab">
51
	<tr>
52
		<th><?php echo $spText['common']['Date']?></th>
53
		<th><?php echo $spText['label']['Clicks']?></th>
54
		<th><?php echo $spText['label']['Impressions']?></th>
55
		<th><?php echo "CTR"?></th>
56
		<th><?php echo $spTextWB['Average Position']?></th>
57
	</tr>
58
	<?php
59
	foreach($list as $listInfo){
60
		?>
61
		<tr>
62
			<td><?php echo $listInfo['report_date']; ?></td>
63
			<td><b><?php echo $listInfo['clicks'].'</b> '. $listInfo['rank_diff_clicks']?></td>
64
			<td><b><?php echo $listInfo['impressions'].'</b> '. $listInfo['rank_diff_impressions']?></td>
65
			<td><b><?php echo $listInfo['ctr'].'</b> '. $listInfo['rank_diff_ctr']?></td>
66
			<td><b><?php echo $listInfo['average_position'].'</b> '. $listInfo['rank_diff_average_position']?></td>
67
		</tr>
68
		<?php
69
	}
70
	?>
71
</table>
72
</div>