From 88632301a902db1a1ae12da631e789b3cdc6fbe1 Mon Sep 17 00:00:00 2001 From: wbudic Date: Wed, 6 Mar 2019 18:53:30 +1100 Subject: [PATCH] Cosmetic changes. --- htdocs/cgi-bin/main.cgi | 23 +++++++++++------------ htdocs/cgi-bin/remove.cgi | 10 +++++++--- htdocs/cgi-bin/wsrc/main.css | 4 +++- 3 files changed, 21 insertions(+), 16 deletions(-) diff --git a/htdocs/cgi-bin/main.cgi b/htdocs/cgi-bin/main.cgi index 34c628d..24eb69d 100755 --- a/htdocs/cgi-bin/main.cgi +++ b/htdocs/cgi-bin/main.cgi @@ -91,9 +91,9 @@ $cats = $cats.''; my $tbl = qq(
- +
- + ); @@ -200,8 +200,8 @@ if($tbl_start>0){ $log = join('' , @chnks) ; - $tbl = $tbl . ''. - '" . + $tbl = $tbl . ''. + '" . ''. ''. ''. @@ -246,8 +246,7 @@ if($tbl_start>0){ } } - $tbl = $tbl . ''; + $srh .= ''; $ctmsg = ""; } -$srh = $srh.' - - +$srh .= ' + + @@ -352,7 +351,7 @@ sub buildNavigationButtons{ $tfId = 1; } - $tbl = $tbl . ''; + $tbl .= ''; if($rs_prev && $rs_prev>0 && $tbl_start>0){ diff --git a/htdocs/cgi-bin/remove.cgi b/htdocs/cgi-bin/remove.cgi index 20aea56..f8d0f9c 100755 --- a/htdocs/cgi-bin/remove.cgi +++ b/htdocs/cgi-bin/remove.cgi @@ -75,7 +75,7 @@ exit; sub DisplayDateDiffs{ $tbl = '
DateTimeLog#CategoryEditDateTimeLog#CategoryEdit
'. $dt->ymd . '' . $dt->hms . "
'. $dt->ymd . '' . $dt->hms . "' . $log . '' . $amm .'' . $ct .'
- + $tbl .= '
  @@ -300,16 +299,16 @@ my $srh = qq( my $ctmsg = '

  (Use the Category dropdown to change).

'; if($rs_keys || $rs_cat_idx || $stmD){ - $srh = $srh.'
-
+
View by Category:'.$ctmsg.'
View by (YYYY-MM-DD)
Date:
View by Category:'.$ctmsg.'
View by Date: From: To: 
- '; + '; $stm = 'SELECT DATE, LOG FROM LOG WHERE '; my @prms = $q->param('chk'); @@ -111,10 +111,14 @@ sub dateDiff{ my($d1,$d2)=@_; my $span = DateTime::Format::Human::Duration->new(); my $dur = $span->format_duration($d2 - $d1); -return sprintf( "%s
between %s and %s", $dur, $d1, $d2 ); -} +return sprintf( "%s
between %s and %s", $dur, boldDate($d1), boldDate($d2)); +} +sub boldDate{ + my($d)=@_; +return "".$d->ymd." ".$d->hms; +} sub ConfirmedDelition{ diff --git a/htdocs/cgi-bin/wsrc/main.css b/htdocs/cgi-bin/wsrc/main.css index 54aa937..f5e20c4 100644 --- a/htdocs/cgi-bin/wsrc/main.css +++ b/htdocs/cgi-bin/wsrc/main.css @@ -5,12 +5,14 @@ } p { + font-family: Bookman; margin-left: 70px; font-weight: bold; } table, th, td{ + font-family: Bookman; border-collapse: collapse; width: 740px; padding-top: 5px; @@ -18,7 +20,7 @@ table, th, td{ } div{ - + font-family: Verdana; width: 740px; text-align: center; vertical-align: middle; -- 2.34.1

Date Differences

* DATE DIFFERENCES *