2004-12-12 03:51:51 +00:00
|
|
|
<?php
|
|
|
|
|
/***********/
|
|
|
|
|
/* SideBar */
|
|
|
|
|
/***********/
|
2006-07-21 04:21:04 +00:00
|
|
|
require_once(BASE."include/distribution.php");
|
2005-10-25 00:47:32 +00:00
|
|
|
require_once(BASE."include/vendor.php");
|
2006-06-17 06:10:10 +00:00
|
|
|
require_once(BASE."include/util.php");
|
2004-03-15 16:22:00 +00:00
|
|
|
|
2007-01-04 02:35:01 +00:00
|
|
|
function global_sidebar_menu()
|
|
|
|
|
{
|
|
|
|
|
global $aClean;
|
2006-06-17 06:10:10 +00:00
|
|
|
|
2004-12-23 01:12:03 +00:00
|
|
|
$g = new htmlmenu(APPDB_OWNER." Menu");
|
2006-06-03 23:53:41 +00:00
|
|
|
$g->add("AppDB", BASE);
|
2007-07-11 02:41:58 +00:00
|
|
|
$g->add(APPDB_OWNER, APPDB_OWNER_URL);
|
2006-06-03 23:53:41 +00:00
|
|
|
$g->add("Bugzilla", BUGZILLA_ROOT);
|
2006-06-05 01:11:07 +00:00
|
|
|
$g->add("Wine Wiki", "http://wiki.winehq.org");
|
2004-03-15 16:22:00 +00:00
|
|
|
$g->done();
|
|
|
|
|
|
2005-02-09 23:59:09 +00:00
|
|
|
$g = new htmlmenu("AppDB");
|
2007-12-02 19:39:15 +01:00
|
|
|
$g->add("Screenshots", BASE."objectManager.php?sClass=screenshot&sTitle=View+Screenshots");
|
2004-12-23 01:12:03 +00:00
|
|
|
$g->add("Browse Apps", BASE."appbrowse.php");
|
2007-11-09 23:10:34 +01:00
|
|
|
$g->add("Browse Newest Apps", BASE."objectManager.php?sClass=application&".
|
|
|
|
|
"bIsQueue=false&sTitle=Newest%20apps&sOrderBy=appId&bAscending=false");
|
2007-01-09 04:29:51 +00:00
|
|
|
$g->add("Downloadable Apps", BASE."browse_downloadable.php");
|
2006-09-27 02:44:16 +00:00
|
|
|
$g->add("Browse Apps by Rating", BASE."browse_by_rating.php");
|
2004-12-23 01:12:03 +00:00
|
|
|
$g->add("Top 25", BASE."votestats.php");
|
2007-04-24 23:48:14 +00:00
|
|
|
$g->add("Submit Application", BASE."objectManager.php?sClass=application_queue&".
|
|
|
|
|
"sTitle=Submit+Application&sAction=add");
|
2005-02-11 23:42:50 +00:00
|
|
|
$g->add("Help & Documentation", BASE."help/");
|
2007-06-17 22:10:30 +00:00
|
|
|
$g->add("Statistics", BASE."appdbStats.php");
|
|
|
|
|
$g->add("Distributions (".distribution::objectGetEntriesCount(false, false).")", BASE."objectManager.php?sClass=distribution&bIsQueue=false&sTitle=View%20Distributions");
|
|
|
|
|
$g->add("Vendors (".vendor::objectGetEntriesCount(false, false).")", BASE."objectManager.php?sClass=vendor&bIsQueue=false&sTitle=View%20Vendors");
|
2005-05-14 14:47:13 +00:00
|
|
|
$g->add("Email your suggestions for improving the AppDB", "mailto:appdb@winehq.org");
|
2004-03-15 16:22:00 +00:00
|
|
|
$g->done();
|
|
|
|
|
|
|
|
|
|
$g = new htmlmenu("Search");
|
2006-07-06 17:27:54 +00:00
|
|
|
$g->addmisc(app_search_box(!empty($aClean['sSearchQuery']) ? $aClean['sSearchQuery'] : ''));
|
2004-03-15 16:22:00 +00:00
|
|
|
$g->done();
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function app_search_box($q = '')
|
|
|
|
|
{
|
2007-08-25 03:47:55 +00:00
|
|
|
// google custom search dialog
|
|
|
|
|
// used in place of appdb specific search engine code
|
|
|
|
|
// Chris Morgan <cmorgan@alum.wpi.edu> maintains
|
|
|
|
|
// the search engine settings
|
2007-11-10 00:41:19 +01:00
|
|
|
$shSearchStr = '
|
2007-08-25 04:17:21 +00:00
|
|
|
<!-- Google CSE Search Box Begins -->
|
2007-11-10 00:41:19 +01:00
|
|
|
<script type="text/javascript">
|
|
|
|
|
document.write(\'<form id=\"searchbox_013271970634691685804:bc-56dvxydi\" action=\"http://appdb.winehq.org/search_results.php\">\')
|
|
|
|
|
document.write(\'<input type="hidden" name="cx" value="013271970634691685804:bc-56dvxydi" />\')
|
|
|
|
|
document.write(\'<input type=\"hidden\" name=\"cof" value=\"FORID:11\" />\')
|
|
|
|
|
document.write(\'<input name=\"q\" type=\"text\" size=\"20\" />\')
|
|
|
|
|
document.write(\'<input type=\"submit\" name=\"sa\" value=\"Search\" />\')
|
|
|
|
|
document.write(\'</form>\')
|
|
|
|
|
</script>
|
2007-08-25 03:47:55 +00:00
|
|
|
<script type="text/javascript" src="http://www.google.com/coop/cse/brand?form=searchbox_013271970634691685804%3Abc-56dvxydi"></script>
|
|
|
|
|
<!-- Google CSE Search Box Ends -->
|
2007-11-10 00:41:19 +01:00
|
|
|
';
|
|
|
|
|
// Search dialog using our own search engine, displayed when
|
|
|
|
|
// JavaScript is unavailable
|
|
|
|
|
$shSearchStr .= '
|
|
|
|
|
<noscript>
|
|
|
|
|
<form method="post" action="search.php">
|
|
|
|
|
<input type="text" size="20" name="sSearchQuery" />
|
|
|
|
|
<input type="submit" value="Search" />
|
|
|
|
|
</form>
|
|
|
|
|
</noscript>
|
2007-08-25 03:47:55 +00:00
|
|
|
';
|
|
|
|
|
|
2007-11-10 00:41:19 +01:00
|
|
|
return $shSearchStr;
|
2004-03-15 16:22:00 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
?>
|