Skip to content
Snippets Groups Projects
Commit aebeb77a authored by david_williams's avatar david_williams
Browse files

archive download files

parent d38f4c5b
No related branches found
No related tags found
No related merge requests found
...@@ -155,12 +155,6 @@ include 'drops/report.php'; ...@@ -155,12 +155,6 @@ include 'drops/report.php';
$latestTimeStamp=array(); $latestTimeStamp=array();
$latestFile = array(); $latestFile = array();
echo "<table border=0 cellpadding=2 width=\"100%\"><tr>";
echo "<td colspan=\"2\" bgcolor=\"#0080C0\"><b><font color=\"#FFFFFF\" face=\"Arial,Helvetica\">Latest Downloads</td></font></b>";
echo "</td></tr></table>";
foreach ($buildBranches as $buildBranch ) { foreach ($buildBranches as $buildBranch ) {
$dirfilename = "drops/".$buildBranch; $dirfilename = "drops/".$buildBranch;
...@@ -250,54 +244,16 @@ foreach ($buildBranches as $buildBranch ) { ...@@ -250,54 +244,16 @@ foreach ($buildBranches as $buildBranch ) {
} }
} }
?>
<TABLE
width="100%"
cellpadding=2>
<tr>
<td width=\"30%\"><b>Build Type</b></td>
<td><b>Build Stream</b></td>
<td><b>Build Name</b></td>
<td><b>Build Date</b></td>
</tr>
<?php
foreach($dropType as $value) {
$prefix=$typeToPrefix[$value];
foreach($buildBranches as $bValue) {
if (array_key_exists($bValue,$latestFile) && array_key_exists($prefix, $latestFile[$bValue])) {
$fileName = $latestFile[$bValue][$prefix];
echo "<tr>
<td width=\"30%\">$value</td> <td>$bValue</td>";
$parts = explode("-", $fileName); foreach($dropType as $value) {
$prefix=$typeToPrefix[$value];
if (sizeof($parts) > 1) {
// Uncomment the line below if we need click through licenses.
// echo "<td><a href=license.php?license=drops/$bValue/$fileName>$parts[1]</a></td>";
// Comment the line below if we need click through licenses. echo "
echo "<td><a href=\"drops/$bValue/$fileName/\">$parts[1]</a></td>"; <table width=\"100%\" cellpadding=2>
<tr bgcolor=\"#999999\">
echo "<td>$timeStamps[$fileName]</td>"; <td align=left width=\"30%\"><b><a name=\"$value\"><font color=\"#FFFFFF\" face=\"Arial,Helvetica\">$value";
echo "</tr>"; echo "</font></a></b></td>
}
}
}
}
?>
</TABLE>
<?php
foreach($dropType as $value) {
$prefix=$typeToPrefix[$value];
echo "
<table width=\"100%\" cellpadding=2>
<tr bgcolor=\"#999999\">
<td align=left width=\"30%\"><b><a name=\"$value\"><font color=\"#FFFFFF\" face=\"Arial,Helvetica\">$value";
echo "</font></a></b></td>
</TR> </TR>
<TR> <TR>
<td align=left> <td align=left>
...@@ -307,48 +263,48 @@ foreach ($buildBranches as $buildBranch ) { ...@@ -307,48 +263,48 @@ foreach ($buildBranches as $buildBranch ) {
<td><b>Build Date</b></td> <td><b>Build Date</b></td>
</tr>"; </tr>";
foreach($buildBranches as $bValue) { foreach($buildBranches as $bValue) {
if (array_key_exists($bValue,$buckets) && array_key_exists($prefix, $buckets[$bValue])) { if (array_key_exists($bValue,$buckets) && array_key_exists($prefix, $buckets[$bValue])) {
echo "<tr><td colspan=\"7\"/><hr/></tr>"; echo "<tr><td colspan=\"7\"/><hr/></tr>";
$aBucket = $buckets[$bValue][$prefix]; $aBucket = $buckets[$bValue][$prefix];
if (isset($aBucket)) { if (isset($aBucket)) {
rsort($aBucket); rsort($aBucket);
$i = 0; $i = 0;
$ts = array(); $ts = array();
$ts2iv = array(); $ts2iv = array();
foreach($aBucket as $iv) { foreach($aBucket as $iv) {
$parts = explode("-", $iv); $parts = explode("-", $iv);
$ts[$i] = $parts[2]; $ts[$i] = $parts[2];
$ts2iv[$ts[$i]] = $iv; $ts2iv[$ts[$i]] = $iv;
$i++; $i++;
} }
rsort($ts); rsort($ts);
$i = 0; $i = 0;
$aBucket = array(); $aBucket = array();
foreach($ts as $tsvalue) { foreach($ts as $tsvalue) {
$aBucket[$i] = $ts2iv[$tsvalue]; $aBucket[$i] = $ts2iv[$tsvalue];
$i++; $i++;
} }
foreach($aBucket as $innerValue) { foreach($aBucket as $innerValue) {
$parts = explode("-", $innerValue); $parts = explode("-", $innerValue);
echo "<tr>"; echo "<tr>";
// Uncomment the line below if we need click through licenses. // Uncomment the line below if we need click through licenses.
// echo "<td><a href=\"license.php?license=drops/$bValue/$innerValue\">$parts[1]</a></td>"; // echo "<td><a href=\"license.php?license=drops/$bValue/$innerValue\">$parts[1]</a></td>";
// Comment the line below if we need click through licenses. // Comment the line below if we need click through licenses.
echo "<td><a href=\"drops/$bValue/$innerValue/\">$parts[1]</a></td>"; echo "<td><a href=\"drops/$bValue/$innerValue/\">$parts[1]</a></td>";
echo "<td>$bValue</td>"; echo "<td>$bValue</td>";
echo "<td>$timeStamps[$innerValue]</td>"; echo "<td>$timeStamps[$innerValue]</td>";
} }
}}} }}}
echo "</table></table>"; echo "</table></table>";
} }
?> ?>
<table <table
border="0" border="0"
width="100%" width="100%"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment