use DateTime;
use DateTime::Format::SQLite;
use DateTime::Duration;
+use Regexp::Common qw /URI/;
my $driver = "SQLite";
my $database = "../../dbLifeLog/data_log.db";
my $tfId = 0;
my $id = 0;
my $tbl_start = index $stmt, "<=";
+my $re_a_tag = qr/<a\s+.*?>.*<\/a>/si ;
if($tbl_start>0){
#check if we are at the beggining of the LOG table?
$stc->finish();
}
+
while(my @row = $st->fetchrow_array()) {
$id = $row[0];
}else{
$tfId = 1;
}
+ my @chunks = split(/($re_a_tag)/si , $log) ;
+
+ foreach my $chunks_i ( @chunks ) {
+ next if $chunks_i =~ /$re_a_tag/ ;
+ $chunks_i =~ s/($RE{URI}{HTTP})/<a href="$1" target=_blank>$1<\/a>/gsi;
+ }
+ $log = join('' , @chunks) ;
$tbl = $tbl . '<tr class="r'.$tfId.'"><td id="y'.$id.'">'. $dt->ymd . '</td>'.
'<td id="t'.$id.'">' . $dt->hms . "</td>" .
### CGI END
+
sub buildNavigationButtons{
my $is_end_of_rs = shift;