Initial revision

This commit is contained in:
Jeremy Newman
2004-03-15 16:22:00 +00:00
commit 8f28ae10c4
122 changed files with 8116 additions and 0 deletions

41
include/sidebar.php Normal file
View File

@@ -0,0 +1,41 @@
<?
/*
* 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->done();
$g = new htmlmenu("Search");
$g->addmisc(app_search_box($q));
$g->done();
}
function app_search_box($q = '')
{
$str .= "<form method=GET action=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;
}
?>