david_williams | 14d8ea9 | 2011-09-15 05:14:16 +0000 | [diff] [blame] | 1 |
|
| 2 |
|
| 3 | <?php
|
| 4 |
|
| 5 | $debugRecentHistory=false;
|
| 6 |
|
| 7 | if (!isset($buckets) || !function_exists("computeMainData")) {
|
| 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 |
|
| 27 | foreach($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\"> </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 />";
|
| 71 | echo "isset(\$buckets): " . isset($buckets). "<br />";
|
| 72 | }
|
| 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 | {
|
| 76 | if ($debugRecentHistory) {
|
| 77 | echo "in loop<br />";
|
| 78 | }
|
| 79 | 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 | foreach($aBranchBucket as $innerValue) {
|
| 91 | //if ($debugRecentHistory) {
|
| 92 | // echo "Debug recentHistory: innerValue: $innerValue <br />";
|
| 93 | //}
|
| 94 | $buildName = computeBuildName($innerValue);
|
| 95 | $streamName = computeStreamName($bValue);
|
| 96 |
|
| 97 | echo "<tr>";
|
| 98 | echo "<td width=\"13%\"><a href=\"$innerValue/\">$buildName</a></td>";
|
| 99 | echo "<td width=\"8%\">$streamName</td>";
|
| 100 | echo "<td width=\"20%\">$timeStamps[$innerValue]</td>";
|
| 101 | echo "<td> </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"> </td>
|
| 122 | </tr>
|
| 123 | </table>
|