3 * Application database index page.
6 * - rename outputTopXRowAppsFromRating according to our coding standards
7 * - rename variables that don't follow our coding standards
10 // application environment
12 require(BASE
."include/incl.php");
14 apidb_header("Wine Application Database");
16 <img style
="float:right;" src
="images/appdb_montage.jpg" width
=391 height
=266 alt
="Wine AppDB">
18 <div
class='default_container'>
21 <p
>This is the Wine Application
Database (AppDB
). Here you can get information on application
22 compatibility with Wine
.</p
>
26 <li>Ability to <a href=\"".BASE
."help/?sTopic=voting\" title=\"help on voting\" style=\"cursor: help\">vote</a> on your favorite applications</li>
27 <li>Ability to customize the layout and behavior of the AppDB and comments system</li>
28 <li>Take credit for your witty posts</li>
29 <li>Ability to sign up to be an <a href=\"".BASE
."help/?sTopic=maintainer_guidelines\"
30 title=\"information about application maintainers\" style=\"cursor: help\">application maintainer</a></li>
31 <li>Submit new applications and versions</li>
32 <li>Submit new screenshots</li>
35 if(!$_SESSION['current']->isLoggedIn())
38 <p>Most of the features of the Application Database require that you have a user account and
39 are logged in. Some of the benefits of membership are:<p>
43 <p>So, what are you waiting for? [<a href=\"".login_url()."\">Log in</a>]
44 or [<a href=\"account.php?sCmd=new\">register</a>] now! Your help in
45 stomping out Wine issues will be greatly appreciated.</p>";
49 <p>As an Application Database member you enjoy some exclusive benefits like:<p>
53 <p>We’d like to thank you for being a member and being logged in to the system. Your help in
54 stomping out Wine issues will be greatly appreciated.</p>";
61 $iNumApps = version
::objectGetEntriesCount('accepted');
63 $voteQuery = "SELECT appVotes.versionId, count(userId) as count ".
65 "GROUP BY versionId ORDER BY count DESC LIMIT 1";
66 $hResult = query_parameters($voteQuery);
67 $oRow = query_fetch_object($hResult);
69 echo "There are <b>$iNumApps</b> applications currently in the database,";
71 // don't mention the top application if there are no votes yet
76 $shVoteAppLink = version
::fullNameLink($oRow->versionId
);
77 echo " with $shVoteAppLink being the\n";
78 echo "top <a href='votestats.php'>voted</a> application.\n";
81 echo " please <a href=\"".BASE
."help/?sTopic=voting\" title=\"help on voting\"".
82 "style=\"cursor: help\">vote</a> for your favourite application.\n";
89 <div
class="topx_style platinum">
90 <div
class="rating_header">
91 <div
class="rating_title">
92 Top
-10 <a href
="objectManager.php?sClass=application&sTitle=Browse+Applications&iappVersion-ratingOp0=5&sappVersion-ratingData0=Platinum&sOrderBy=appName&bAscending=true">Platinum
</a
> List
94 Applications which install
and run flawlessly on an out
-of
-the
-box Wine installation
97 <table
class="platinum">
99 <th
>Application
</th
><th
>Description
</th
><th
>Screenshot
</th
>
102 outputTopXRowAppsFromRating('Platinum', 10);
109 <div
class="topx_style gold">
110 <div
class="rating_header">
111 <div
class="rating_title">
112 Top
-10 <a href
="objectManager.php?sClass=application&sTitle=Browse+Applications&iappVersion-ratingOp0=5&sappVersion-ratingData0=Gold&sOrderBy=appName&bAscending=true">Gold
</a
> List
114 Applications that work flawlessly with some special configuration
118 <tr
class="rowtitle">
119 <th
>Application
</th
><th
>Description
</th
><th
>Screenshot
</th
>
122 outputTopXRowAppsFromRating('Gold', 10);
129 <div
class="topx_style silver">
130 <div
class="rating_header">
131 <div
class="rating_title">
132 Top
-10 <a href
="objectManager.php?sClass=application&sTitle=Browse+Applications&iappVersion-ratingOp0=5&sappVersion-ratingData0=Silver&sOrderBy=appName&bAscending=true">Silver
</a
> List
134 Applications with minor issues that
do not affect typical usage
137 <table
class="silver">
138 <tr
class="rowtitle">
139 <th
>Application
</th
><th
>Description
</th
><th
>Screenshot
</th
>
142 outputTopXRowAppsFromRating('Silver', 10);
150 <h2
>Other Wine Application Compatibility Sites
</h2
>
152 <a href
="http://www.wine-reviews.net/"><b
>Wine
-Reviews
</b
></a
>: Is a Wine application
and game
153 Blog
, with tips
and how
-to
's on getting listed applications and games to run.
159 // promotional buttons
163 echo "<td style='padding
:10px
;'>\n";
164 echo '<a href
="http://getfirefox.com/"
165 title
="Get Firefox - Web browsing redefined."><img
166 src
="http://www.mozilla.org/products/firefox/buttons/getfirefox_large2.png"
167 width
="178" height
="60" border
="0" alt
="Get Firefox"></a
>'."\n";
169 echo "<td style='padding
:10px
;'>\n";
170 echo '<a href
="http://xinha.python-hosting.com/" title
="Xinha textarea replacement">
171 <img src
="images/xinha-red-95.png" width
="95" height
="100" alt
="Xinha"></a
>'."\n";