Support for verbose page titles

Verbose page titles again

Adds support for more verbose page titles based on current
page and action by user and removes sort by options from
search form as they're obsolete by column links.

Signed-off-by: Callan Barrett <wizzomafizzo@gmail.com>
This commit is contained in:
Callan Barrett 2008-01-13 07:43:05 +09:00 committed by Dan McGee
parent d4b07f2b33
commit 379e16eebd
7 changed files with 43 additions and 62 deletions

View file

@ -8,7 +8,7 @@ include("pkgfuncs_po.inc"); # Add to handle the i18n of My Packages
include("account_po.inc"); # use some form of this for i18n support
set_lang(); # this sets up the visitor's language
check_sid(); # see if they're still logged in
html_header(); # print out the HTML header
html_header(__("Accounts")); # print out the HTML header
# Main page processing here

View file

@ -7,10 +7,7 @@ include("pkgfuncs_po.inc"); # Add to handle the i18n of My Packages
include("aur.inc");
set_lang();
check_sid();
# Any cookies have been sent, can now display HTML
#
html_header();
html_header(__("Home"));
# Big Top Level Table (Table 1)
echo "<div class=\"pgbox\">\n";

View file

@ -7,7 +7,24 @@ include("pkgfuncs.inc"); # package specific functions
include("search_po.inc"); # use some form of this for i18n support
set_lang(); # this sets up the visitor's language
check_sid(); # see if they're still logged in
html_header(); # print out the HTML header
# set the title to something useful depending on
# what "page" we're on
#
if (isset($_GET['ID'])) {
$id = pkgname_from_id($_GET['ID']);
if (!empty($id)) {
$title = $id;
}
} else if (isset($_GET['K'])) {
$title = "Search: " . $_GET['K'];
} else if (isset($_GET['do_MyPackages'])) {
$title = __("My Packages");
} else {
$title = __("Packages");
}
html_header($title); # print out the HTML header
# enable debugging
#

View file

@ -8,7 +8,7 @@ include("pkgfuncs.inc"); # package functions
include("config.inc"); # configuration file with dir locations
set_lang(); # this sets up the visitor's language
check_sid(); # see if they're still logged in
html_header(); # print out the HTML header
html_header("Submit"); # print out the HTML header
echo "<div class=\"pgbox\">\n";
echo " <div class=\"pgboxtitle\"><span class=\"f3\">".__("Submit")."</span></div>\n";
echo " <div class=\"pgboxbody\">\n";