From: Andrew DeFaria Date: Tue, 27 Jul 2021 00:21:14 +0000 (-0700) Subject: More changes to quickstats. X-Git-Url: https://defaria.com/gitweb/?a=commitdiff_plain;h=15842e23ec99588d83312f43b66e468fabe40eec;p=clearscm.git More changes to quickstats. --- diff --git a/maps/bin/detail.cgi b/maps/bin/detail.cgi index ee2d2f4..ef67882 100755 --- a/maps/bin/detail.cgi +++ b/maps/bin/detail.cgi @@ -160,6 +160,8 @@ sub Body($) { MakeButtons $type; + print start_div {-id => 'highlightrow'}; + print start_table({-align => 'center', -id => $table_name, -border => 0, @@ -169,7 +171,7 @@ sub Body($) { print Tr [ - td {-class => 'tablebordertopleft'}, ' ', + th {-class => 'tablebordertopleft'}, '', th {-class => 'tableborder'}, 'Sender', th {-class => 'tableborder'}, 'List', th {-class => 'tableborder'}, 'Hit Count', @@ -357,10 +359,12 @@ sub Body($) { } # for print end_table; - print end_form; + print end_div; MakeButtons $type; + print end_form; + return; } # Body diff --git a/maps/bin/stats.cgi b/maps/bin/stats.cgi index 4b3cdfb..8163c41 100755 --- a/maps/bin/stats.cgi +++ b/maps/bin/stats.cgi @@ -28,7 +28,7 @@ use MAPSLog; use MAPSWeb; use DateUtils; -use CGI qw (:standard *table start_Tr end_Tr); +use CGI qw (:standard *table start_Tr end_Tr start_div end_div); use CGI::Carp 'fatalsToBrowser'; my $nbr_days = param('nbr_days'); @@ -41,6 +41,8 @@ $date = defined $date ? $date : Today2SQLDatetime; sub Body($) { my ($userid) = @_; + print start_div {-id => 'highlightrow'}; + print start_table ({-align => 'center', -id => $table_name, -border => 0, @@ -117,6 +119,7 @@ sub Body($) { print end_Tr; print end_table; + print end_div; return; } # Body diff --git a/maps/css/MAPSStyle.css b/maps/css/MAPSStyle.css index cc790d5..5849c91 100644 --- a/maps/css/MAPSStyle.css +++ b/maps/css/MAPSStyle.css @@ -75,6 +75,49 @@ body { width: 125px; } +#highlightrow table tr:hover td { + background: #c1dffc; + color: steelblue; +} + +#quickstats { + background-color: #579; +} +#quickstats table { + width: 100%; + overflow: hidden; + border-collapse: collapse; +} +#quickstats tr { + color: white; + display: block; +} +#quickstats tr:hover { + background: #c1dffc; + color: steelblue; +} +#quickstats a { + color: white; + text-decoration: none; +} +#quickstats td a:hover { + background: #c1dffc; + color: steelblue; +} +#quickstats tr td:first-child { + position: relative; +} +#quickstats a:before { + content: ''; + position: absolute; + left: 0; + top: 0; + bottom: 0; + display: block; + width: 142px; +} + + #quickwrap { width: 130px; } @@ -95,11 +138,12 @@ body { font-size: 12px; font-weight: bold; } + #quickwrap td.link a:hover { background: #c1dffc; color: steelblue; } -table tr:hover td { +#quickwrap table tr:hover td { background: #c1dffc; color: steelblue; } @@ -159,12 +203,16 @@ table tr:hover td { font-weight: bold; line-height: 12px; font-size: 12px; + text-align: left; + width: 68px; } .smallnumber { color: white; line-height: 12px; font-size: 12px; + text-align: right; + width: 25px; } .header { @@ -504,6 +552,7 @@ img { background: White; border-left: 1px dotted #ccc; border-bottom: 1px dotted #ccc; + border-top: 1px dotted #ccc; font-size: 14px; } diff --git a/maps/lib/MAPSWeb.pm b/maps/lib/MAPSWeb.pm index 5097b77..5425480 100644 --- a/maps/lib/MAPSWeb.pm +++ b/maps/lib/MAPSWeb.pm @@ -70,7 +70,7 @@ sub displayquickstats($) { print p {-align => 'center'}, b ('as of ' . FormatTime($time)); - print start_div {-id => 'quickwrap'}; + print start_div {-id => 'quickstats'}; print start_table { -cellspacing => 0, diff --git a/maps/php/MAPS.php b/maps/php/MAPS.php index 6ccc76d..6f1a8ba 100755 --- a/maps/php/MAPS.php +++ b/maps/php/MAPS.php @@ -254,40 +254,40 @@ function displayquickstats() { ""; print << +
- + - + - + - + - + - + - + @@ -479,11 +479,11 @@ function ListDomains($top = 10) { $result = mysqli_query($db, $statement) or DBError("ListDomains: Unable to execute query: ", $statement); + print "
"; print <<
- - + @@ -491,21 +491,19 @@ END; // Get results for ($i = 0; $i < $top; $i++) { - $row = mysqli_fetch_array ($result); + $row = mysqli_fetch_array($result); $domain = $row["domain"]; $nbr = $row["nbr"]; print ""; $ranking = $i + 1; if ($i < $top - 1) { - print "\n"; - print ""; + print "\n"; print ""; print ""; print ""; } else { - print "\n"; - print ""; + print "\n"; print ""; print ""; print ""; @@ -519,6 +517,7 @@ END;
ProcessedProcessed $processed n/a
${nulllist_link}Nulllist $nulllist $nulllist_pct%
${returned_link}Returned $returned $returned_pct%
${whitelist_link}Whitelist $whitelist $whitelist_pct%
${blacklist_link}Blacklist $blacklist $blacklist_pct%
${registered_link}Registered $registered n/a
${mailloop_link}Mailloop $mailloop n/a
MarkRanking  Domain Returns
" . $ranking . "" . $ranking . "$domain$nbr" . $ranking . "" . $ranking . "$domain$nbr
+ END; } // ListDomains diff --git a/maps/php/list.php b/maps/php/list.php index 964f061..04ba543 100755 --- a/maps/php/list.php +++ b/maps/php/list.php @@ -60,7 +60,7 @@ $this_page = $next / $lines + 1;
- +
+
@@ -118,6 +119,7 @@ $this_page = $next / $lines + 1;
 

+
diff --git a/maps/world.gif b/maps/world.gif deleted file mode 100644 index d4e1a93..0000000 Binary files a/maps/world.gif and /dev/null differ