objectManager: Fix lower-case letter in 'email Text'
[NewAppDB.git] / index.php
blob147045fbed12b400e6c276c076cf236f24ed41f9
1 <?php
2 /**
3 * Application database index page.
5 * TODO:
6 * - rename outputTopXRowAppsFromRating according to our coding standards
7 * - rename variables that don't follow our coding standards
8 */
10 // application environment
11 require("path.php");
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'>
19 <h1>Welcome</h1>
21 <p>This is the Wine Application Database (AppDB). Here you can get information on application
22 compatibility with Wine.</p>
23 <?php
24 $str_benefits="
25 <ul>
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>
33 </ul>
35 if(!$_SESSION['current']->isLoggedIn())
37 echo "
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>
41 $str_benefits
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>";
46 } else
48 echo "
49 <p>As an Application Database member you enjoy some exclusive benefits like:<p>
51 $str_benefits
53 <p>We&#8217;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>";
59 <?php
61 $iNumApps = version::objectGetEntriesCount('accepted');
63 $voteQuery = "SELECT appVotes.versionId, count(userId) as count ".
64 "FROM appVotes ".
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
72 if( !empty($oRow) )
74 if($oRow->versionId)
76 $shVoteAppLink = version::fullNameLink($oRow->versionId);
77 echo " with $shVoteAppLink being the\n";
78 echo "top <a href='votestats.php'>voted</a> application.\n";
79 } else
81 echo " please <a href=\"".BASE."help/?sTopic=voting\" title=\"help on voting\"".
82 "style=\"cursor: help\">vote</a> for your favourite application.\n";
87 <br><br>
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
93 </div>
94 Applications which install and run flawlessly on an out-of-the-box Wine installation
95 </div>
96 <div>
97 <table class="platinum">
98 <tr class="rowtitle">
99 <th>Application</th><th>Description</th><th>Screenshot</th>
100 </tr>
101 <?php
102 outputTopXRowAppsFromRating('Platinum', 10);
104 </table>
105 </div>
106 </div>
107 <br>
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
113 </div>
114 Applications that work flawlessly with some special configuration
115 </div>
116 <div>
117 <table class="gold">
118 <tr class="rowtitle">
119 <th>Application</th><th>Description</th><th>Screenshot</th>
120 </tr>
121 <?php
122 outputTopXRowAppsFromRating('Gold', 10);
124 </table>
125 </div>
126 </div>
127 <br>
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
133 </div>
134 Applications with minor issues that do not affect typical usage
135 </div>
136 <div>
137 <table class="silver">
138 <tr class="rowtitle">
139 <th>Application</th><th>Description</th><th>Screenshot</th>
140 </tr>
141 <?php
142 outputTopXRowAppsFromRating('Silver', 10);
144 </table>
145 </div>
146 </div>
148 <br><br>
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.
154 </p>
155 </div>
157 <?php
159 // promotional buttons
160 echo "<center>\n";
161 echo "<table>\n";
162 echo "<tr>\n";
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";
168 echo "</td>\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";
172 echo "</td>\n";
173 echo "</tr>\n";
174 echo "</table>\n";
175 echo "</center>\n";
177 apidb_footer();