Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="list">
<tr class="listHead">
<td class="left"><?php echo $spText['common']['Url']?></td>
<td><?php echo $spTextPS['Desktop Speed']?></td>
<td><?php echo $spTextPS['Mobile Speed']?></td>
<td><?php echo $spTextPS['Mobile Usability']?></td>
<td class="right"><?php echo $spText['common']['Details']?></td>
</tr>
<?php
$colCount = 5;
if(count($list) > 0){
$catCount = count($list);
$i = 0;
foreach($list as $url){
$class = ($i % 2) ? "blue_row" : "white_row";
if($catCount == ($i + 1)){
$leftBotClass = "tab_left_bot";
$rightBotClass = "tab_right_bot";
}else{
$leftBotClass = "td_left_border td_br_right";
$rightBotClass = "td_br_right";
}
$tdWidth = "25%";
$debugVar = !empty($_POST['debug']) ? "&debug=1" : "";
$debugVar .= !empty($_POST['debug_format']) ? "&debug_format=" . $_POST['debug_format'] : "" ;
?>
<tr class="<?php echo $class?>">
<td class="<?php echo $leftBotClass?>" style="text-align:left;padding-left:10px;"><?php echo $url?></td>
<td class="td_br_right"><?php echo $reportList[$url]['desktop']['speed_score'] ? $reportList[$url]['desktop']['speed_score'] : 0;?> / 100</td>
<td class="td_br_right"><?php echo $reportList[$url]['mobile']['speed_score'] ? $reportList[$url]['mobile']['speed_score'] : 0;?> / 100</td>
<td class="td_br_right"><?php echo $reportList[$url]['mobile']['usability_score'] ? $reportList[$url]['mobile']['usability_score'] : 0;?> / 100</td>
<td class="<?php echo $rightBotClass?>">
<a href="javascript:void(0);" onclick="scriptDoLoadDialog('index.php', 'tmp', 'sec=showdiv&div_id=details_id<?php echo $i?>', 1000, 800)"><?php echo $spText['common']['Details']?> >></a>
<div id="details_id<?php echo $i?>" style="display: none;">
<?php include(SP_VIEWPATH."/pagespeed/pagespeeddetails.ctp.php");?>
</div>
</td>
</tr>
<?php
$i++;
}
}else{
echo showNoRecordsList($colCount-2);
}
?>
<tr class="listBot">
<td class="left" colspan="<?php echo ($colCount-1)?>"></td>
<td class="right"></td>
</tr>
</table>