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");
|
2007-07-11 02:41:58 +00:00
|
|
|
$g->add(APPDB_OWNER, APPDB_OWNER_URL);
|
2008-02-26 16:57:45 -06:00
|
|
|
$g->add("AppDB", BASE);
|
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");
|
2008-02-26 16:57:45 -06:00
|
|
|
$g->add("Wine Forum", "http://forum.winehq.org");
|
2004-03-15 16:22:00 +00:00
|
|
|
$g->done();
|
|
|
|
|
|
2005-02-09 23:59:09 +00:00
|
|
|
$g = new htmlmenu("AppDB");
|
2008-02-27 14:16:43 +01:00
|
|
|
$g->add('Home', BASE.'index.php');
|
2008-02-23 12:06:24 +11:00
|
|
|
$g->add("Screenshots", BASE."objectManager.php?sClass=screenshot&sTitle=View+Screenshots");
|
2008-06-12 23:50:42 +02:00
|
|
|
$g->add("Browse Apps", BASE."objectManager.php?sClass=application&".
|
2008-06-15 11:59:33 +02:00
|
|
|
'sTitle=Browse%20Applications&sOrderBy=appName&bAscending=true');
|
2004-12-23 01:12:03 +00:00
|
|
|
$g->add("Top 25", BASE."votestats.php");
|
2008-02-23 12:06:24 +11: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");
|
2008-02-23 12:06:24 +11:00
|
|
|
$g->add('Distributions ('.distribution::objectGetEntriesCount('accepted').')', BASE.'objectManager.php?sClass=distribution&sTitle=View%20Distributions');
|
|
|
|
|
$g->add('Vendors ('.vendor::objectGetEntriesCount('accepted').')', BASE.'objectManager.php?sClass=vendor&sTitle=View%20Vendors');
|
2005-05-14 14:47:13 +00:00
|
|
|
$g->add("Email your suggestions for improving the AppDB", "mailto:appdb@winehq.org");
|
2008-01-06 01:14:56 +01:00
|
|
|
$g->done();
|
2004-03-15 16:22:00 +00:00
|
|
|
|
2008-02-28 00:53:36 +01:00
|
|
|
$g = new htmlmenu('Search the AppDB');
|
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\">\')
|
2008-02-23 12:06:24 +11:00
|
|
|
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>\')
|
2007-11-10 00:41:19 +01:00
|
|
|
</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">
|
2008-02-23 12:06:24 +11:00
|
|
|
<input type="text" size="20" name="sSearchQuery">
|
|
|
|
|
<input type="submit" value="Search">
|
2007-11-10 00:41:19 +01:00
|
|
|
</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
|
|
|
}
|
|
|
|
|
|
|
|
|
|
?>
|