Fix the newest apps list so it displays the correct date when the application was submitted, plus some small fixes

This commit is contained in:
Alexander Nicolaysen Sørnes
2006-11-28 01:10:26 +00:00
committed by WineHQ
parent 79a5e062dd
commit 11e0bf2da7

View File

@@ -1,6 +1,6 @@
<?php
/**
* Browse newest versions
* Browse newest applications
*
*/
@@ -8,13 +8,13 @@ require("path.php");
require(BASE."include/incl.php");
require(BASE."include/filter.php");
// set default value
/* Set default value */
if(empty($aClean['iNumVersions']) || $aClean['iNumVersions'] > 200 || $aClean['iNumVersions'] < 0)
$aClean['iNumVersions'] = 25;
apidb_header("Browse Newest Applications");
/* selector for how many versions to view */
/* Selector for how many versions to view */
echo "<form method=\"post\" name=\"sMessage\" action=\"".$_SERVER['PHP_SELF']."\">";
echo "<b>How many versions to display:</b>";
echo "<select name='iNumVersions'>";
@@ -46,7 +46,7 @@ if($hResult)
echo "<tr class=\"color4\">\n";
echo "<td><font color=\"white\">Submission Date</font></td>\n";
echo "<td><font color=\"white\">Application</font></td>\n";
echo "<td><font color=\"white\">Description</font></td></td>\n";
echo "<td><font color=\"white\">Description</font></td></tr>\n";
$c = 1;
while($row = mysql_fetch_object($hResult))
@@ -54,7 +54,7 @@ if($hResult)
$bgcolor = ($c % 2) ? "color0" : "color1";
$link = "<a href=\"appview.php?iAppId=$row->appId\"> $row->appName </a>";
echo "<tr class=\"$bgcolor\">";
echo "<td width=\"20%\">".print_short_date(mysqltimestamp_to_unixtimestamp($oApp->sSubmitTime))."</td>\n";
echo "<td width=\"20%\">".print_short_date(mysqltimestamp_to_unixtimestamp($row->submitTime))."</td>\n";
echo "<td>$link </td>\n";
echo "<td>$row->description </td></tr>\n";
$c++;