103 |
- |
1 |
<?php echo showSectionHead($spTextKeyword['Detailed Keyword Position 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', 'keywords.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']['Keyword']?>: </th>
|
|
|
18 |
<td id="keyword_area" colspan='3'>
|
|
|
19 |
<?php echo $this->render('keyword/keywordselectbox', 'ajax'); ?>
|
|
|
20 |
</td>
|
|
|
21 |
</tr>
|
|
|
22 |
<tr>
|
|
|
23 |
<th><?php echo $spText['common']['Period']?>:</th>
|
|
|
24 |
<td>
|
|
|
25 |
<input type="text" value="<?php echo $fromTime?>" name="from_time" id="from_time"/>
|
|
|
26 |
<input type="text" value="<?php echo $toTime?>" name="to_time" id="to_time"/>
|
|
|
27 |
<script>
|
|
|
28 |
$( function() {
|
|
|
29 |
$( "#from_time, #to_time").datepicker({dateFormat: "yy-mm-dd"});
|
|
|
30 |
} );
|
|
|
31 |
</script>
|
|
|
32 |
</td>
|
|
|
33 |
<th><?php echo $spText['common']['Search Engine']?>: </th>
|
|
|
34 |
<td>
|
|
|
35 |
<?php echo $this->render('searchengine/seselectbox', 'ajax'); ?>
|
|
|
36 |
</td>
|
|
|
37 |
<td colspan="2"><a href="javascript:void(0);" onclick="scriptDoLoadPost('reports.php', 'search_form', 'content')" class="actionbut"><?php echo $spText['button']['Show Records']?></a></td>
|
|
|
38 |
</tr>
|
|
|
39 |
</table>
|
|
|
40 |
</form>
|
|
|
41 |
|
|
|
42 |
<?php
|
|
|
43 |
if(empty($keywordId)){
|
|
|
44 |
?>
|
|
|
45 |
<p class='note error'><?php echo $spText['common']['No Keywords Found']?>!</p>
|
|
|
46 |
<?php
|
|
|
47 |
exit;
|
|
|
48 |
}
|
|
|
49 |
?>
|
|
|
50 |
|
|
|
51 |
<div id='subcontent'>
|
|
|
52 |
<table width="100%" class="list">
|
|
|
53 |
<tr class="listHead">
|
|
|
54 |
<td class="left"><?php echo $spText['common']['Date']?></td>
|
|
|
55 |
<td><?php echo $seInfo['domain']?> <?php echo $spText['common']['Results']?></td>
|
|
|
56 |
<td class="right"><?php echo $spText['common']['Rank']?></td>
|
|
|
57 |
</tr>
|
|
|
58 |
<?php
|
|
|
59 |
$colCount = 3;
|
|
|
60 |
if(count($list) > 0){
|
|
|
61 |
$catCount = count($list);
|
|
|
62 |
$i = 0;
|
|
|
63 |
foreach($list as $listInfo){
|
|
|
64 |
|
|
|
65 |
$class = ($i % 2) ? "blue_row" : "white_row";
|
|
|
66 |
if($catCount == ($i + 1)){
|
|
|
67 |
$leftBotClass = "tab_left_bot";
|
|
|
68 |
$rightBotClass = "tab_right_bot";
|
|
|
69 |
}else{
|
|
|
70 |
$leftBotClass = "td_left_border td_br_right";
|
|
|
71 |
$rightBotClass = "td_br_right";
|
|
|
72 |
}
|
|
|
73 |
$scriptLink = "sec=show-info&keyId={$listInfo['keyword_id']}&time={$listInfo['time']}&seId=$seId";
|
|
|
74 |
$dateLink = scriptAJAXLinkHref('reports.php', 'subcontent', $scriptLink, date('Y-m-d', $listInfo['time']) );
|
|
|
75 |
?>
|
|
|
76 |
<tr class="<?php echo $class?>">
|
|
|
77 |
<td class="<?php echo $leftBotClass?>" width='100px;'><?php echo $dateLink; ?></td>
|
|
|
78 |
<td class='td_br_right' id='seresult'>
|
|
|
79 |
<a href='<?php echo $listInfo['url']?>' target='_blank'><?php echo stripslashes($listInfo['title']);?></a>
|
|
|
80 |
<p><?php echo stripslashes($listInfo['description']);?><p>
|
|
|
81 |
<label><?php echo $listInfo['url']?></label>
|
|
|
82 |
</td>
|
|
|
83 |
<td class="<?php echo $rightBotClass?>" width="100px" style='text-align:left;'><b><?php echo $listInfo['rank'].'</b> '. $listInfo['rank_diff']?></td>
|
|
|
84 |
</tr>
|
|
|
85 |
<?php
|
|
|
86 |
$i++;
|
|
|
87 |
}
|
|
|
88 |
}else{
|
|
|
89 |
echo showNoRecordsList($colCount-2);
|
|
|
90 |
}
|
|
|
91 |
?>
|
|
|
92 |
<tr class="listBot">
|
|
|
93 |
<td class="left" colspan="<?php echo ($colCount-1)?>"></td>
|
|
|
94 |
<td class="right"></td>
|
|
|
95 |
</tr>
|
|
|
96 |
</table>
|
|
|
97 |
</div>
|