Don't show queued apps and versions

This commit is contained in:
Jonathan Ernst
2005-02-19 01:21:14 +00:00
committed by WineHQ
parent 1ef6eeae88
commit 42f0ceca42
4 changed files with 5 additions and 2 deletions

View File

@@ -36,7 +36,7 @@ function display_bundle($appId)
{ {
$oApp = new Application($appId); $oApp = new Application($appId);
$result = query_appdb("SELECT appFamily.appId, appName, description FROM appBundle, appFamily ". $result = query_appdb("SELECT appFamily.appId, appName, description FROM appBundle, appFamily ".
"WHERE bundleId = $appId AND appBundle.appId = appFamily.appId"); "WHERE appFamily.queued='false' AND bundleId = $appId AND appBundle.appId = appFamily.appId");
if(!$result || mysql_num_rows($result) == 0) if(!$result || mysql_num_rows($result) == 0)
{ {
return; // do nothing return; // do nothing

View File

@@ -39,6 +39,7 @@ class Application {
$sQuery = "SELECT appFamily.*, appVersion.versionId AS versionId $sQuery = "SELECT appFamily.*, appVersion.versionId AS versionId
FROM appFamily, appVersion FROM appFamily, appVersion
WHERE appFamily.appId = appVersion.appId WHERE appFamily.appId = appVersion.appId
AND appVersion.queued='false'
AND appFamily.appId = ".$iAppId." ORDER BY versionName"; AND appFamily.appId = ".$iAppId." ORDER BY versionName";
if($hResult = query_appdb($sQuery)) if($hResult = query_appdb($sQuery))
{ {

View File

@@ -44,7 +44,8 @@ class Category {
*/ */
$sQuery = "SELECT appId $sQuery = "SELECT appId
FROM appFamily FROM appFamily
WHERE catId = ".$iCatId; WHERE catId = ".$iCatId."
AND queued = 'false'";
if($hResult = query_appdb($sQuery)) if($hResult = query_appdb($sQuery))
{ {
while($oRow = mysql_fetch_object($hResult)) while($oRow = mysql_fetch_object($hResult))

View File

@@ -13,6 +13,7 @@ require(BASE."include/application.php");
$sQuery = "SELECT * $sQuery = "SELECT *
FROM appFamily FROM appFamily
WHERE appName != 'NONAME' WHERE appName != 'NONAME'
AND queued = 'false'
AND appName LIKE '%".addslashes($_REQUEST['q'])."%' AND appName LIKE '%".addslashes($_REQUEST['q'])."%'
OR keywords LIKE '%".addslashes($_REQUEST['q'])."%' OR keywords LIKE '%".addslashes($_REQUEST['q'])."%'
ORDER BY appName"; ORDER BY appName";