- fix the 46 errors reported by the w3c html validator in appview.php?versionid=whatever - fix the 97 errors reported by the w3c html validator in index.php
38 lines
995 B
PHP
38 lines
995 B
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->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=8 class=searchfield>";
|
|
$str .= "<input type=submit value='Search' class=searchbutton>\n";
|
|
$str .= "</form>\n<span>";
|
|
return $str;
|
|
}
|
|
|
|
?>
|