blob: 7f0b1454442c736ba0d5ba668687c331ff969440 [file] [log] [blame]
david_williams38cdb422007-09-23 06:24:37 +00001
david_williams1a993892007-07-29 19:19:05 +00002
3<?php
4
5$debugRecentHistory=false;
6
david_williamsb8003992008-01-07 20:02:41 +00007if (!isset($buckets) || !function_exists("computeMainData")) {
david_williams38cdb422007-09-23 06:24:37 +00008 include 'computeMainData.php';
9 computeMainData($buildBranches, $debugRecentHistory);
10}
11
12?>
13
14<table border="0" cellpadding="2" width="100%">
15 <tr>
16 <td align="center" bgcolor="#999999"><font color="#FFFFFF"
17 face="Arial,Helvetica">
18 <?php
19 echo "$subsectionHeading";
20 ?>
21 </font></td>
22 </tr>
23</table>
24
25<?php
26
david_williams1a993892007-07-29 19:19:05 +000027foreach($dropType as $value) {
28 $prefix=$typeToPrefix[$value];
29
30 if ($debugRecentHistory) {
31 echo "dropType value: $value <br />";
32 echo "prefix: $prefix <br />";
33 }
34
35 echo "<table width=\"100%\" cellpadding=2>
36 <tr bgcolor=\"#999999\">
37 <td align=left colspan=\"11\">
38 <a name=\"$prefix\">
39 <font color=\"#FFFFFF\" face=\"Arial,Helvetica\">";
40 echo "$value";
41 echo "</font></a></td>";
42 echo "</tr>";
43
44 echo "<tr>
45 <td width=\"13%\">Build Name</td>
46 <td width=\"8%\">Stream</td>
47 <td width=\"20%\">Build Date</td>
48 <td colspan=\"8\">&nbsp;</td>
49 </tr>";
50
51 if ($debugRecentHistory) {
52 echo "buildBranches: <br />";
53 foreach($buildBranches as $tempbuildBranches) {
54 echo "$tempbuildBranches <br />";
55 }
56 echo "buckets: <br />";
57 if (isset($buckets)) {
58 foreach($buckets as $tempbuckets) {
59 foreach($tempbuckets as $tempbucket) {
60 foreach ($tempbucket as $oneTempBucket) {
61 echo "onetempBucket: $oneTempBucket <br />";
62 }
63 }
64 }
65 }
66 }
67
68 foreach($buildBranches as $bValue) {
69 if ($debugRecentHistory) {
70 echo "loop through each buildBranch: $bValue <br />";
david_williams38cdb422007-09-23 06:24:37 +000071 echo "isset(\$buckets): " . isset($buckets). "<br />";
david_williams1a993892007-07-29 19:19:05 +000072 }
73 if (isset($buckets) && array_key_exists($bValue, $buckets) && array_key_exists($prefix, $buckets[$bValue]))
74 //&& $buckets[$bValue] != NULL && array_key_exists($prefix, $buckets[$bValue]))
75 {
david_williams38cdb422007-09-23 06:24:37 +000076 if ($debugRecentHistory) {
77 echo "in loop<br />";
78 }
david_williams1a993892007-07-29 19:19:05 +000079 echo "<tr><td colspan=\"11\"><hr/></td></tr>";
80 $aBranchBucket = $buckets[$bValue][$prefix];
81 if (isset($aBranchBucket)) {
82 rsort($aBranchBucket);
83 if ($debugRecentHistory) {
84 echo "buckets in this branch: <br />";
85 foreach($aBranchBucket as $tempBucket) {
86 echo "$tempBucket <br />";
87 }
88 }
david_williams1a993892007-07-29 19:19:05 +000089
david_williams1a993892007-07-29 19:19:05 +000090 foreach($aBranchBucket as $innerValue) {
david_williamsfd220c82008-01-07 07:59:37 +000091 //if ($debugRecentHistory) {
92 // echo "Debug recentHistory: innerValue: $innerValue <br />";
93 //}
david_williams29d12192008-01-07 19:11:40 +000094 $buildName = computeBuildName($innerValue);
david_williamsb8003992008-01-07 20:02:41 +000095 $streamName = computeStreamName($bValue);
96
david_williams1a993892007-07-29 19:19:05 +000097 echo "<tr>";
david_williams29d12192008-01-07 19:11:40 +000098 echo "<td width=\"13%\"><a href=\"$innerValue/\">$buildName</a></td>";
david_williamsb8003992008-01-07 20:02:41 +000099 echo "<td width=\"8%\">$streamName</td>";
david_williams1a993892007-07-29 19:19:05 +0000100 echo "<td width=\"20%\">$timeStamps[$innerValue]</td>";
101 echo "<td>&nbsp;</td>";
102 // our recent summary results handling requires php 5 (for simple xml file loading)
103 // so, if not php 5, just don't display any summary results
104 // This was found to be required, since some mirror our whole site (e.g. IBM) and not all their
105 // mirrors use PHP 5
106 if (phpversion() >= 5) {
107 include 'handleSummaryResults.php';
108 }
109 echo "</tr>";
110 }
111 }
112 }
113 }
114 echo "</table>";
115
116}
117?>
118
119<table border="0" cellpadding="2" width="100%">
120 <tr>
121 <td bgcolor="#999999">&nbsp;</td>
122 </tr>
123</table>