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

48 lines
1.5 KiB
PHP
Raw Normal View History

<?php
/***********/
/* SideBar */
/***********/
2005-10-21 02:48:27 +00:00
require_once(BASE."include/distributions.php");
require_once(BASE."include/vendor.php");
2004-03-15 16:22:00 +00:00
function global_sidebar_menu() {
$g = new htmlmenu(APPDB_OWNER." Menu");
$g->add(APPDB_OWNER, APPDB_OWNER_URL);
$g->add("AppDB", BASE);
$g->add("Bugzilla", BUGZILLA_ROOT);
$g->add("Wine Wiki", "http:\\wiki.winehq.org");
2004-03-15 16:22:00 +00:00
$g->done();
$g = new htmlmenu("AppDB");
$g->add("AppDB Home", BASE);
$g->add("Screenshots", BASE."viewScreenshots.php");
$g->add("Browse Apps", BASE."appbrowse.php");
$g->add("Top 25", BASE."votestats.php");
$g->add("Submit Application", BASE."appsubmit.php?sub=view&apptype=application");
$g->add("Help &amp; Documentation", BASE."help/");
$g->add("AppDB Stats", BASE."appdbStats.php");
2005-10-21 02:48:27 +00:00
$g->add("View Distributions (".getNumberOfDistributions().")", BASE."distributionView.php");
$g->add("View Vendors (".getNumberOfvendors().")", BASE."vendorview.php");
2005-10-21 02:48:27 +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");
2004-12-25 20:14:03 +00:00
$g->addmisc(app_search_box(isset($_REQUEST['q']) ? $_REQUEST['q'] : ''));
2004-03-15 16:22:00 +00:00
$g->done();
}
function app_search_box($q = '')
{
$str = "</span><form method=\"get\" action=\"".BASE."search.php\">\n";
$str .= "<input type=text name=q value='$q' size=11 class=searchfield>";
2004-03-15 16:22:00 +00:00
$str .= "<input type=submit value='Search' class=searchbutton>\n";
$str .= "</form>\n<span>";
2004-03-15 16:22:00 +00:00
return $str;
}
?>