103 |
- |
1 |
<?php echo showSectionHead($spTextTools['Website Search Reports']); ?>
|
|
|
2 |
<table id="cust_tab">
|
|
|
3 |
<tr>
|
|
|
4 |
<th><?php echo $spText['common']['Url']?></th>
|
|
|
5 |
<th><?php echo $spText['label']['Clicks']?></th>
|
|
|
6 |
<th><?php echo $spText['label']['Impressions']?></th>
|
|
|
7 |
<th><?php echo "CTR"?></th>
|
|
|
8 |
<th><?php echo $spTextWB['Average Position']?></th>
|
|
|
9 |
</tr>
|
|
|
10 |
<tr>
|
|
|
11 |
<td><?php echo $websiteInfo['url']?></td>
|
|
|
12 |
<td><?php echo $websiteReport['clicks']?></td>
|
|
|
13 |
<td><?php echo $websiteReport['impressions']?></td>
|
|
|
14 |
<td><?php echo round($websiteReport['ctr'] * 100, 2)?></td>
|
|
|
15 |
<td><?php echo round($websiteReport['average_position'], 2)?></td>
|
|
|
16 |
</tr>
|
|
|
17 |
</table>
|
|
|
18 |
|
|
|
19 |
<script type="text/javascript">
|
|
|
20 |
$(document).ready(function() {
|
|
|
21 |
$("table").tablesorter({
|
|
|
22 |
sortList: [[2,1]]
|
|
|
23 |
});
|
|
|
24 |
});
|
|
|
25 |
</script>
|
|
|
26 |
|
|
|
27 |
<br>
|
|
|
28 |
<?php echo showSectionHead($spTextTools['Keyword Search Reports']); ?>
|
|
|
29 |
<table id="cust_tab" class="tablesorter">
|
|
|
30 |
<thead>
|
|
|
31 |
<tr>
|
|
|
32 |
<th><?php echo $spText['common']['Id']?></th>
|
|
|
33 |
<th><?php echo $spText['common']['Keyword']?></th>
|
|
|
34 |
<th><?php echo $spText['label']['Clicks']?></th>
|
|
|
35 |
<th><?php echo $spText['label']['Impressions']?></th>
|
|
|
36 |
<th><?php echo "CTR"?></th>
|
|
|
37 |
<th><?php echo $spTextWB['Average Position']?></th>
|
|
|
38 |
</tr>
|
|
|
39 |
</thead>
|
|
|
40 |
<tbody>
|
|
|
41 |
<?php
|
|
|
42 |
$i = 1;
|
|
|
43 |
foreach($keywordAnalytics as $keyword => $listInfo){
|
|
|
44 |
$foundStyle = !empty($searchInfo['name']) && stristr($keyword, $searchInfo['name']) ? "background-color: #ffff00;" : "";
|
|
|
45 |
?>
|
|
|
46 |
<tr style="<?php echo $foundStyle?>">
|
|
|
47 |
<td><?php echo $i++?></td>
|
|
|
48 |
<td><?php echo $keyword?></td>
|
|
|
49 |
<td><?php echo $listInfo['clicks']?></td>
|
|
|
50 |
<td><?php echo $listInfo['impressions']?></td>
|
|
|
51 |
<td><?php echo round($listInfo['ctr'] * 100, 2)?></td>
|
|
|
52 |
<td><?php echo round($listInfo['position'], 2)?></td>
|
|
|
53 |
</tr>
|
|
|
54 |
<?php }?>
|
|
|
55 |
</tbody>
|
|
|
56 |
</table>
|