Subversion Repositories cheapmusic

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
103 - 1
<?php echo showSectionHead($spTextTools['Rank 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('rank.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('rank.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><?php echo $spText['common']['MOZ Rank']?></td>
46
		<td><?php echo $spText['common']['Domain Authority']?></td>
47
		<td><?php echo $spText['common']['Page Authority']?></td>
48
		<td class="right"><?php echo $spText['common']['Alexa Rank']?></td>
49
	</tr>
50
	<?php
51
	$colCount = 5;
52
	if(count($list) > 0){
53
		$catCount = count($list);
54
		$i = 0;
55
		foreach($list as $listInfo){
56
 
57
			$class = ($i % 2) ? "blue_row" : "white_row";
58
            if($catCount == ($i + 1)){
59
                $leftBotClass = "tab_left_bot";
60
                $rightBotClass = "tab_right_bot";
61
            }else{
62
                $leftBotClass = "td_left_border td_br_right";
63
                $rightBotClass = "td_br_right";
64
            }
65
			?>
66
			<tr class="<?php echo $class?>">
67
				<td class="<?php echo $leftBotClass?>"><?php echo $listInfo['result_date']; ?></td>
68
				<td class='td_br_right left'><b><?php echo $listInfo['moz_rank'].'</b> '. $listInfo['rank_diff_moz']?></td>
69
				<td class='td_br_right left'><b><?php echo $listInfo['domain_authority'].'</b> '. $listInfo['rank_diff_domain_authority']?></td>
70
				<td class='td_br_right left'><b><?php echo $listInfo['page_authority'].'</b> '. $listInfo['rank_diff_page_authority']?></td>
71
				<td class="<?php echo $rightBotClass?>" style='text-align:left;padding-left:160px;'><b><?php echo $listInfo['alexa_rank'].'</b> '. $listInfo['rank_diff_alexa']?></td>
72
			</tr>
73
			<?php
74
			$i++;
75
		}
76
	}else{
77
		echo showNoRecordsList($colCount-2);
78
	}
79
	?>
80
	<tr class="listBot">
81
		<td class="left" colspan="<?php echo ($colCount-1)?>"></td>
82
		<td class="right"></td>
83
	</tr>
84
</table>
85
</div>