From af87e895357d62a90114ec87186e06bdd933e56c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Alexander=20Nicolaysen=20S=C3=B8rnes?=
\n";
- echo " \n\n";
-
- $c = 0;
- while($ob = query_fetch_object($hResult))
- {
- $oApp = new application($ob->appId);
- //set row color
- $bgcolor = ($c % 2 == 0) ? "color0" : "color1";
-
- //display row
- echo "Application Name \n";
- echo " Description \n";
- echo "\n";
- echo " \n\n";
-
- $c++;
- }
-
- echo "\n\n";
- echo html_frame_end();
-}
-
-/**
- * We want to see an application family (=no version).
- */
-if( isset($aClean['iAppId']) )
-{
- $oApp = new Application($aClean['iAppId']);
- $oApp->display();
-} else if( isset($aClean['iVersionId']) ) // We want to see a particular version.
-{
- $oVersion = new Version($aClean['iVersionId']);
+ if( isset($aClean['iAppId']) ) // Application
+ $oObject = new Application($aClean['iAppId']);
+ else // We want to see a particular version.
+ $oObject = new Version($aClean['iVersionId']);
// header
- apidb_header("Viewing App: ".version::fullName($oVersion->iVersionId));
- $oVersion->display($aClean);
+ apidb_header($oObject->objectGetCustomTitle("display"));
+
+ if(isset($aClean['iVersionId']))
+ $oObject->display($aClean);
+ else
+ $oObject->display();
+
+ apidb_footer();
} else
{
// Oops! Called with no params, bad llamah!
util_show_error_page_and_exit('Page Called with No Params!');
}
-apidb_footer();
?>
diff --git a/help/appdb_faq.help b/help/appdb_faq.help
index 94657ae..3fa60ee 100644
--- a/help/appdb_faq.help
+++ b/help/appdb_faq.help
@@ -12,7 +12,7 @@ Application Database.".$oApp->objectMakeLink()." \n";
- echo " ".util_trim_description($oApp->sDescription)." \n";
- echo "
A: The Application Database is a repository for
Windows application compatibility information with Wine.
In particular it provides the following information:
-(see the Visual FoxPro entry for an
+(see the Visual FoxPro entry for an
example)
| Application Name | \n"; + echo "Description | \n"; + echo "
| ".$oApp->objectMakeLink()." | \n"; + echo "".util_trim_description($oApp->sDescription)." | \n"; + echo "