Subversion Repositories cheapmusic

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
103 - 1
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="list">
2
	<tr class="listHead">
3
		<td class="left"><?php echo $spText['common']['Url']?></td>
4
		<td><?php echo $spTextPS['Desktop Speed']?></td>
5
		<td><?php echo $spTextPS['Mobile Speed']?></td>
6
		<td><?php echo $spTextPS['Mobile Usability']?></td>
7
		<td class="right"><?php echo $spText['common']['Details']?></td>
8
	</tr>
9
	<?php
10
	$colCount = 5;
11
	if(count($list) > 0){
12
		$catCount = count($list);
13
		$i = 0;
14
		foreach($list as $url){
15
 
16
			$class = ($i % 2) ? "blue_row" : "white_row";
17
            if($catCount == ($i + 1)){
18
                $leftBotClass = "tab_left_bot";
19
                $rightBotClass = "tab_right_bot";
20
            }else{
21
                $leftBotClass = "td_left_border td_br_right";
22
                $rightBotClass = "td_br_right";
23
            }
24
            $tdWidth = "25%";
25
            $debugVar = !empty($_POST['debug']) ? "&debug=1" : "";
26
            $debugVar .= !empty($_POST['debug_format']) ? "&debug_format=" . $_POST['debug_format'] : "" ;
27
			?>
28
			<tr class="<?php echo $class?>">
29
				<td class="<?php echo $leftBotClass?>" style="text-align:left;padding-left:10px;"><?php echo $url?></td>
30
				<td class="td_br_right"><?php echo $reportList[$url]['desktop']['speed_score'] ? $reportList[$url]['desktop']['speed_score'] : 0;?> / 100</td>
31
				<td class="td_br_right"><?php echo $reportList[$url]['mobile']['speed_score'] ? $reportList[$url]['mobile']['speed_score'] : 0;?> / 100</td>
32
				<td class="td_br_right"><?php echo $reportList[$url]['mobile']['usability_score'] ? $reportList[$url]['mobile']['usability_score'] : 0;?> / 100</td>
33
				<td class="<?php echo $rightBotClass?>">
34
					<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>
35
					<div id="details_id<?php echo $i?>" style="display: none;">
36
						<?php include(SP_VIEWPATH."/pagespeed/pagespeeddetails.ctp.php");?>
37
					</div>
38
				</td>
39
			</tr>
40
			<?php
41
			$i++;
42
		}
43
	}else{
44
		echo showNoRecordsList($colCount-2);
45
	}
46
	?>
47
	<tr class="listBot">
48
		<td class="left" colspan="<?php echo ($colCount-1)?>"></td>
49
		<td class="right"></td>
50
	</tr>
51
</table>