address that anymore. Expand the width of the search box, maybe its small size keeps people from using it? Add an item on the default appdb panel to encourage users to email their suggestions for the appdb to the appdb mailing list.
39 lines
1.1 KiB
PHP
39 lines
1.1 KiB
PHP
<?php
|
|
/***********/
|
|
/* SideBar */
|
|
/***********/
|
|
|
|
function global_sidebar_menu() {
|
|
|
|
$g = new htmlmenu(APPDB_OWNER." Menu");
|
|
$g->add("Back to ".APPDB_OWNER, APPDB_OWNER_URL);
|
|
$g->done();
|
|
|
|
$g = new htmlmenu("AppDB");
|
|
$g->add("AppDB Home", BASE);
|
|
$g->add("Browse Apps", BASE."appbrowse.php");
|
|
$g->add("Top 25", BASE."votestats.php");
|
|
$g->add("Submit Application", BASE."appsubmit.php?apptype=1");
|
|
$g->add("Help & Documentation", BASE."help/");
|
|
$g->add("AppDB Stats", BASE."appdbStats.php");
|
|
$g->add("Email your suggestions for improving the AppDB", "mailto:appdb@winehq.org");
|
|
$g->done();
|
|
|
|
$g = new htmlmenu("Search");
|
|
$g->addmisc(app_search_box(isset($_REQUEST['q']) ? $_REQUEST['q'] : ''));
|
|
$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>";
|
|
$str .= "<input type=submit value='Search' class=searchbutton>\n";
|
|
$str .= "</form>\n<span>";
|
|
return $str;
|
|
}
|
|
|
|
?>
|