mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-05-01 15:52:55 +02:00
fifteen-theme: made all log tables themeable
With this commit it is possible to make css designs to all tables in the logs.
This commit is contained in:
@@ -354,11 +354,11 @@ if ($logsettings{'LOGVIEW_REVERSE'} eq 'on') { @log = reverse @log; }
|
||||
if ($lines != 0) { &oldernewer(); }
|
||||
|
||||
print <<END
|
||||
<table width='100%'>
|
||||
<table width='100%' class='tbl'>
|
||||
<tr>
|
||||
<td width='10%' align='center' class='boldbase'><b>$Lang::tr{'time'}</b></td>
|
||||
<td width='10%' align='center' class='boldbase'><b>$Lang::tr{'section'}</b></td>
|
||||
<td width='80%'> </td>
|
||||
<th width='10%' align='center' class='boldbase'><b>$Lang::tr{'time'}</b></th>
|
||||
<th width='10%' align='center' class='boldbase'><b>$Lang::tr{'section'}</b></th>
|
||||
<th width='80%'> </th>
|
||||
</tr>
|
||||
END
|
||||
;
|
||||
@@ -383,13 +383,15 @@ foreach $_ (@log)
|
||||
$data = substr ($data,80); #permit correct display in table cell
|
||||
$d .= ' ' . substr ($data,0,80);
|
||||
}
|
||||
|
||||
my $col="";
|
||||
|
||||
if ($lines % 2) {
|
||||
print "<tr bgcolor='$color{'color20'}'>"; }
|
||||
print "<tr>";
|
||||
$col="bgcolor='$color{'color20'}'"; }
|
||||
else {
|
||||
print "<tr bgcolor='$color{'color22'}'>"; }
|
||||
print "<td>$time<td>$sec<td>" .&Header::cleanhtml ("$d", 'y') . "</td></tr>\n";
|
||||
print "<tr>";
|
||||
$col="bgcolor='$color{'color22'}'"; }
|
||||
print "<td $col>$time<td $col>$sec<td $col>" .&Header::cleanhtml ("$d", 'y') . "</td></tr>\n";
|
||||
$lines++;
|
||||
}
|
||||
#print '</tt>';
|
||||
|
||||
Reference in New Issue
Block a user