This repository has been archived on 2025-05-24. You can view files and clone it, but cannot push or open issues or pull requests.
Files
qemudb/include/sidebar.php
Chris Morgan 15c57e937b Place the 'AppDB' link at the top of the global menu, users may use it to return back to the
main page of the AppDB and having it be the second link makes it more difficult to locate
2007-07-11 02:41:58 +00:00

53 lines
1.9 KiB
PHP

<?php
/***********/
/* SideBar */
/***********/
require_once(BASE."include/distribution.php");
require_once(BASE."include/vendor.php");
require_once(BASE."include/util.php");
function global_sidebar_menu()
{
global $aClean;
$g = new htmlmenu(APPDB_OWNER." Menu");
$g->add("AppDB", BASE);
$g->add(APPDB_OWNER, APPDB_OWNER_URL);
$g->add("Bugzilla", BUGZILLA_ROOT);
$g->add("Wine Wiki", "http://wiki.winehq.org");
$g->done();
$g = new htmlmenu("AppDB");
$g->add("Screenshots", BASE."viewScreenshots.php");
$g->add("Browse Apps", BASE."appbrowse.php");
$g->add("Browse Newest Apps", BASE."browse_newest_apps.php");
$g->add("Downloadable Apps", BASE."browse_downloadable.php");
$g->add("Browse Apps by Rating", BASE."browse_by_rating.php");
$g->add("Top 25", BASE."votestats.php");
$g->add("Submit Application", BASE."objectManager.php?sClass=application_queue&".
"sTitle=Submit+Application&sAction=add");
$g->add("Help &amp; Documentation", BASE."help/");
$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");
$g->add("Email your suggestions for improving the AppDB", "mailto:appdb@winehq.org");
$g->done();
$g = new htmlmenu("Search");
$g->addmisc(app_search_box(!empty($aClean['sSearchQuery']) ? $aClean['sSearchQuery'] : ''));
$g->done();
}
function app_search_box($q = '')
{
$str = "</span><form method=\"get\" action=\"".BASE."search.php\">\n";
$str .= "<input type=text name=sSearchQuery value='$q' size=11 class=searchfield>";
$str .= "<input type=submit value='Search' class=searchbutton>\n";
$str .= "</form>\n<span>";
return $str;
}
?>