Add the ability to add download URLs to application versions. They are

displayed in the version view marked as 'free downloads'.  The links will
later be used to allow browsing of downloadable applications.
This commit is contained in:
Alexander Nicolaysen Sørnes
2007-01-05 05:20:05 +00:00
committed by WineHQ
parent 9f88239d1f
commit 52a155588c
5 changed files with 250 additions and 1 deletions

View File

@@ -10,6 +10,7 @@ require_once(BASE."include/screenshot.php");
require_once(BASE."include/bugs.php");
require_once(BASE."include/util.php");
require_once(BASE."include/testData.php");
require_once(BASE."include/downloadurl.php");
/**
* Version class for handling versions.
@@ -667,6 +668,9 @@ class Version {
echo "<tr class=\"$sMaintainerColor\" valign=\"top\"><td><b>Maintainer&#8217;s Rating</b></td><td>".$this->sTestedRating."</td></tr>\n";
echo "<tr class=\"$sMaintainerColor\" valign=\"top\"><td><b>Maintainer&#8217;s Version</b></td><td>".$this->sTestedRelease."</td></tr>\n";
if($sDownloadurls = downloadurl::display($this->iVersionId))
echo $sDownloadurls;
// image
$img = Screenshot::get_random_screenshot_img($oApp->iAppId, $this->iVersionId, false);
echo "<tr><td align=\"center\" colspan=\"2\">$img</td></tr>\n";