From c7a9c2f3d3e396f3cedbf8b65a987d4c3ee7889f Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Fri, 21 Oct 2011 16:03:42 -0500 Subject: Show last voted date on account details page We already show it in the account listing page as well, so we should show it here too. Also use a standard date format; we weren't using this non-punctuated format anywhere else. Signed-off-by: Dan McGee Signed-off-by: Lukas Fleischer --- web/lib/acctfuncs.inc.php | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'web/lib') diff --git a/web/lib/acctfuncs.inc.php b/web/lib/acctfuncs.inc.php index 969fb60..94e2e72 100644 --- a/web/lib/acctfuncs.inc.php +++ b/web/lib/acctfuncs.inc.php @@ -461,7 +461,7 @@ function search_results_page($UTYPE,$O=0,$SB="",$U="",$T="", print ""; print ""; $row["LastVoted"] - ? print date("Ymd", $row["LastVoted"]) + ? print date("Y-m-d", $row["LastVoted"]) : print __("Never"); print ""; print ""; @@ -526,12 +526,13 @@ function search_results_page($UTYPE,$O=0,$SB="",$U="",$T="", # Display non-editable account info # -function display_account_info($U="", $T="", $E="", $R="", $I="") { +function display_account_info($U="", $T="", $E="", $R="", $I="", $LV="") { # U: value to display for username # T: value to display for account type # E: value to display for email address # R: value to display for RealName # I: value to display for IRC nick + # LV: value to display for last voted global $SUPPORTED_LANGS; @@ -573,6 +574,13 @@ function display_account_info($U="", $T="", $E="", $R="", $I="") { print " ".htmlspecialchars($I,ENT_QUOTES)."\n"; print " \n"; + print " \n"; + print " ".__("Last Voted").":\n"; + print " "; + print $LV ? date("Y-m-d", $LV) : __("Never"); + print "\n"; + print " \n"; + print " \n"; print " ".__("View this user's packages")."\n"; print " \n"; -- cgit v1.2.3-70-g09d2