blob: 8017a222acb59d64d97eeec40193eb2d4b7acbda [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_williams38cdb422007-09-23 06:24:37 +00007if (!isset($buckets)) {
8 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 }
89 /*
90 $i = 0;
91 $ts = array();
92 $ts2iv = array();
93 foreach($aBranchBucket as $iv) {
94 $ivParts = explode("-", $iv);
95 $ts[$i] = $ivParts[2];
96 $ts2iv[$ts[$i]] = $iv;
97 $i++;
98 }
99
100 rsort($ts);
101 $i = 0;
102 $anewBucket = array();
103 foreach($ts as $tsvalue) {
104 $anewBucket[$i] = $ts2iv[$tsvalue];
105 $i++;
106 }
107 */
108 foreach($aBranchBucket as $innerValue) {
109 if ($debugRecentHistory) {
110 echo "innerValue: $innerValue <br />";
111 }
112 $innerValueParts = explode("-", $innerValue);
113 echo "<tr>";
114 echo "<td width=\"13%\"><a href=\"drops/$bValue/$innerValue/\">$innerValueParts[1]</a></td>";
115 echo "<td width=\"8%\">$bValue</td>";
116 echo "<td width=\"20%\">$timeStamps[$innerValue]</td>";
117 echo "<td>&nbsp;</td>";
118 // our recent summary results handling requires php 5 (for simple xml file loading)
119 // so, if not php 5, just don't display any summary results
120 // This was found to be required, since some mirror our whole site (e.g. IBM) and not all their
121 // mirrors use PHP 5
122 if (phpversion() >= 5) {
123 include 'handleSummaryResults.php';
124 }
125 echo "</tr>";
126 }
127 }
128 }
129 }
130 echo "</table>";
131
132}
133?>
134
135<table border="0" cellpadding="2" width="100%">
136 <tr>
137 <td bgcolor="#999999">&nbsp;</td>
138 </tr>
139</table>