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
Jonathan Ernst bd91db228c - access most globals by their $_XYZ['varname'] name
- fix some code errors and typos (missing $ in front of variable names
and so on)
- fixed a lot of warnings that would have been thrown when error_reporting
is set to show notices (if(isset($variable))) instead of if($variable) for
example)
2004-12-10 01:07:45 +00:00

44 lines
1.0 KiB
PHP

<?
/*
* SideBar
*
*/
function global_sidebar_menu() {
global $apidb_root, $q;
$g = new htmlmenu("WineHQ Menu");
$g->add("Back to WineHQ", "http://www.winehq.org/");
$g->done();
$g = new htmlmenu("App DB");
$g->add("AppDB Home", $apidb_root);
$g->add("Browse Apps", $apidb_root."appbrowse.php");
$g->add("Top 25", $apidb_root."votestats.php");
$g->add("Submit App", $apidb_root."appsubmit.php");
$g->add("Documentation", $apidb_root."help/");
$g->add("Help & Support", $apidb_root."support.php");
$g->add("Appdb Stats", $apidb_root."appdbStats.php");
$g->done();
$g = new htmlmenu("Search");
$g->addmisc(app_search_box($q));
$g->done();
}
function app_search_box($q = '')
{
global $apidb_root;
$str = '<form method="get" action="'.$apidb_root.'search.php">'."\n";
$str .= "<input type=text name=q value='$q' size=8 class=searchfield>";
$str .= "<input type=submit value='Search' class=searchbutton>\n";
$str .= "</form>\n";
return $str;
}
?>