Commit:    9997cc0adfe1eb232c7a8b3948a15b052daccd08
Author:    Johannes Schlüter <[email protected]>         Mon, 12 Aug 2013 
00:37:50 +0200
Parents:   8d01df7fa2b434c1d5b3582ca6d8eed3b3d3355b
Branches:  master

Link:       
http://git.php.net/?p=web/bugs.git;a=commitdiff;h=9997cc0adfe1eb232c7a8b3948a15b052daccd08

Log:
Improve layout

Changed paths:
  M  www/stats.php


Diff:
diff --git a/www/stats.php b/www/stats.php
index 97daa6b..3762f6f 100644
--- a/www/stats.php
+++ b/www/stats.php
@@ -144,7 +144,7 @@ OUTPUT;
        }
 }
 
-echo "</table>\n<hr>\n<b>PHP Versions for recent bug reports:";
+echo "</table>\n<hr>\n<p><b>PHP Versions for recent bug reports:</b></p><div>";
 
 $query  = "  SELECT DATE_FORMAT(ts1, '%Y-%m') as d,
                     IF(b.php_version LIKE '%Git%', LEFT(b.php_version, 
LOCATE('Git', b.php_version)+2), b.php_version) AS formatted_version,
@@ -163,15 +163,17 @@ while ($row = $result->fetchRow(MDB2_FETCHMODE_ASSOC)) {
                if ($last_date !== null) {
                        echo "</table>\n\n";
                }
-               echo "<b>{$row[d]}:</b><br>\n<table>\n";
+               echo "<table style='float:left; margin-right:20px'>\n".
+                    "<tr><th colspan='2' 
class='bug_header'>{$row[d]}</th></tr>\n";
                $last_date = $row['d'];
        }
-       $version = htmlentities($row[formatted_version]);
+       $version = htmlentities($row[formatted_version], ENT_QUOTES, 'UTF-8');
        echo "<tr><td class='bug_head'>{$version}</td><td 
class='bug_bg1'>{$row[quant]}</td></tr>\n";
 }
 if ($last_date) {
-       echo "</table>\n\n";
+       echo "</table>\n";
 }
+echo "</div>\n";
 
 response_footer();


--
PHP Webmaster List Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to