appdb/. browse_newest_apps.php
ChangeSet ID: 30094 CVSROOT: /opt/cvs-commit Module name: appdb Changes by: wineowner(a)winehq.org 2006/11/27 19:10:26 Modified files: . : browse_newest_apps.php Log message: Alexander Nicolaysen Sørnes <alex(a)thehandofagony.com> Fix the newest apps list so it displays the correct date when the application was submitted, plus some small fixes Patch: http://cvs.winehq.org/patch.py?id=30094 Old revision New revision Changes Path 1.1 1.2 +5 -5 appdb/browse_newest_apps.php Index: appdb/browse_newest_apps.php diff -u -p appdb/browse_newest_apps.php:1.1 appdb/browse_newest_apps.php:1.2 --- appdb/browse_newest_apps.php:1.1 28 Nov 2006 1:10:26 -0000 +++ appdb/browse_newest_apps.php 28 Nov 2006 1:10:26 -0000 @@ -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++;
participants (1)
-
WineHQ