Subversion Repositories cheapmusic

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
103 - 1
<?php echo showSectionHead($spTextTools['Website 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" style='width:190px;' onchange="scriptDoLoadPost('webmaster-tools.php', 'search_form', 'content', '&sec=viewWebsiteSearchReports')">
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">
28
			<a href="javascript:void(0);" onclick="scriptDoLoadPost('webmaster-tools.php', 'search_form', 'content', '&sec=viewWebsiteSearchReports')" class="actionbut">
29
				<?php echo $spText['button']['Show Records']?>
30
			</a>
31
		</td>
32
	</tr>
33
</table>
34
</form>
35
 
36
<br><br>
37
<div id='subcontent'>
38
<table id="cust_tab">
39
	<tr>
40
		<th><?php echo $spText['common']['Date']?></th>
41
		<th><?php echo $spText['label']['Clicks']?></th>
42
		<th><?php echo $spText['label']['Impressions']?></th>
43
		<th><?php echo "CTR"?></th>
44
		<th><?php echo $spTextWB['Average Position']?></th>
45
	</tr>
46
	<?php
47
	foreach($list as $listInfo){
48
		?>
49
		<tr class="<?php echo $class?>">
50
			<td><?php echo $listInfo['report_date']; ?></td>
51
			<td><b><?php echo $listInfo['clicks'].'</b> '. $listInfo['rank_diff_clicks']?></td>
52
			<td><b><?php echo $listInfo['impressions'].'</b> '. $listInfo['rank_diff_impressions']?></td>
53
			<td><b><?php echo $listInfo['ctr'].'</b> '. $listInfo['rank_diff_ctr']?></td>
54
			<td><b><?php echo $listInfo['average_position'].'</b> '. $listInfo['rank_diff_average_position']?></td>
55
		</tr>
56
		<?php
57
	}
58
	?>
59
</table>
60
</div>