From: Metabox Date: Wed, 24 Apr 2019 18:39:16 +0000 (+1000) Subject: Reverted back layout of log. X-Git-Url: https://lifelog.hopto.org/gitweb/?a=commitdiff_plain;h=567cb242b135297bae3744832d4b669aab8243dc;p=LifeLog.git Reverted back layout of log. --- diff --git a/htdocs/cgi-bin/main.cgi b/htdocs/cgi-bin/main.cgi index 3e428b6..596687c 100755 --- a/htdocs/cgi-bin/main.cgi +++ b/htdocs/cgi-bin/main.cgi @@ -147,8 +147,8 @@ elsif($rs_cat_idx){ $stmt = $stmS.$stmD. " AND ID_CAT='".$rs_cat_idx."'" .$stmE; } else{ - $stmt = $stmS." ID_CAT='".$rs_cat_idx."'" .$stmE; - } + $stmt = $stmS." ID_CAT='".$rs_cat_idx."'" .$stmE; + } } else{ if($stmD){ @@ -227,20 +227,17 @@ while(my @row = $st->fetchrow_array()) { } $log = join('' , @chnks); #Decode escaped \\n - my $style; - if($log=~/\\n/){ - $style = '" class="log"'; - $log =~ s/\\n/
/gs; - } + $log =~ s/\\n/
/gs; + $tbl .= ' '.$dt->ymd."\n". ''.$dt->hms."\n". - '' . $log . "\n". + '' . $log . "\n". '' . $amm ."\n". '' . $ct ."\n". - ' + ' @@ -257,12 +254,12 @@ while(my @row = $st->fetchrow_array()) { #End of table? if($rs_prev && $tbl_rc < $REC_LIMIT){ -$st = $db->prepare( "SELECT count(*) FROM LOG;" ); -$st->execute(); -my @row = $st->fetchrow_array(); -if($row[0]>$REC_LIMIT){ - &buildNavigationButtons(1); -} + $st = $db->prepare( "SELECT count(*) FROM LOG;" ); + $st->execute(); + my @row = $st->fetchrow_array(); + if($row[0]>$REC_LIMIT){ + &buildNavigationButtons(1); + } } if($tbl_rc==0){ @@ -303,17 +300,17 @@ my $frm = qq( * LOG ENTRY FORM *
- Date:Date:hms . qq(">    - Log: - + Log: + Category: $cats -  Ammount: +  Ammount: