155 |
- |
1 |
<?php
|
|
|
2 |
echo showSectionHead($spTextTools['PageSpeed Reports']);
|
|
|
3 |
$webUrl = "";
|
|
|
4 |
?>
|
103 |
- |
5 |
<form id='search_form'>
|
|
|
6 |
<table width="100%" class="search">
|
|
|
7 |
<tr>
|
|
|
8 |
<th><?php echo $spText['common']['Website']?>: </th>
|
|
|
9 |
<td>
|
|
|
10 |
<select name="website_id" id="website_id" style='width:190px;' onchange="scriptDoLoadPost('pagespeed.php', 'search_form', 'content', '&sec=reports')">
|
|
|
11 |
<?php foreach($websiteList as $websiteInfo){?>
|
155 |
- |
12 |
<?php
|
|
|
13 |
if($websiteInfo['id'] == $websiteId){
|
|
|
14 |
$webUrl = $websiteInfo['url'];
|
|
|
15 |
?>
|
103 |
- |
16 |
<option value="<?php echo $websiteInfo['id']?>" selected><?php echo $websiteInfo['name']?></option>
|
|
|
17 |
<?php }else{?>
|
|
|
18 |
<option value="<?php echo $websiteInfo['id']?>"><?php echo $websiteInfo['name']?></option>
|
|
|
19 |
<?php }?>
|
|
|
20 |
<?php }?>
|
|
|
21 |
</select>
|
|
|
22 |
</td>
|
|
|
23 |
<th><?php echo $spText['common']['Period']?>:</th>
|
|
|
24 |
<td>
|
|
|
25 |
<input type="text" value="<?php echo $fromTime?>" name="from_time"/>
|
|
|
26 |
<input type="text" value="<?php echo $toTime?>" name="to_time"/>
|
|
|
27 |
<script type="text/javascript">
|
|
|
28 |
$(function() {
|
|
|
29 |
$( "input[name='from_time'], input[name='to_time']").datepicker({dateFormat: "yy-mm-dd"});
|
|
|
30 |
});
|
|
|
31 |
</script>
|
|
|
32 |
</td>
|
|
|
33 |
<td colspan="2"><a href="javascript:void(0);" onclick="scriptDoLoadPost('pagespeed.php', 'search_form', 'content', '&sec=reports')" class="actionbut"><?php echo $spText['button']['Show Records']?></a></td>
|
|
|
34 |
</tr>
|
|
|
35 |
</table>
|
|
|
36 |
</form>
|
|
|
37 |
|
|
|
38 |
<?php
|
|
|
39 |
if(empty($websiteId)){
|
|
|
40 |
?>
|
|
|
41 |
<p class='note error'><?php echo $spText['common']['No Records Found']?>!</p>
|
|
|
42 |
<?php
|
|
|
43 |
exit;
|
|
|
44 |
}
|
|
|
45 |
?>
|
|
|
46 |
|
|
|
47 |
<div id='subcontent'>
|
|
|
48 |
<table width="100%" class="list">
|
|
|
49 |
<tr class="listHead">
|
155 |
- |
50 |
<td><?php echo $spText['common']['Date']?></td>
|
103 |
- |
51 |
<td><?php echo $spTextPS['Desktop Speed']?></td>
|
|
|
52 |
<td><?php echo $spTextPS['Mobile Speed']?></td>
|
155 |
- |
53 |
<td><?php echo $spText['common']['Details']?></td>
|
103 |
- |
54 |
</tr>
|
|
|
55 |
<?php
|
|
|
56 |
$colCount = 4;
|
|
|
57 |
if(count($list) > 0){
|
155 |
- |
58 |
foreach($list as $listInfo){
|
103 |
- |
59 |
?>
|
155 |
- |
60 |
<tr>
|
|
|
61 |
<td><?php echo $listInfo['result_date']; ?></td>
|
|
|
62 |
<td><a><?php echo $listInfo['desktop_speed_score'].'</a> '. $listInfo['rank_diff_desktop_speed_score']?></td>
|
|
|
63 |
<td><a><?php echo $listInfo['mobile_speed_score'].'</a> '. $listInfo['rank_diff_mobile_speed_score']?></td>
|
|
|
64 |
<td>
|
|
|
65 |
<a href="https://developers.google.com/speed/pagespeed/insights/?url=<?php echo $webUrl; ?>" target="_blank">
|
|
|
66 |
<?php echo $spText['common']['Details']?> >>
|
|
|
67 |
</a>
|
103 |
- |
68 |
</td>
|
|
|
69 |
</tr>
|
|
|
70 |
<?php
|
|
|
71 |
}
|
|
|
72 |
}else{
|
|
|
73 |
echo showNoRecordsList($colCount-2);
|
|
|
74 |
}
|
|
|
75 |
?>
|
|
|
76 |
</table>
|
|
|
77 |
</div>
|