r21676 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r21675‎ | r21676 | r21677 >
Date:23:11, 27 April 2007
Author:kim
Status:old
Tags:
Comment:
cosmetic changes
Modified paths:
  • /trunk/extensions/Wikidata/util/stats.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Wikidata/util/stats.php
@@ -79,8 +79,8 @@
8080 order by count(*) desc
8181 ")or die ("error ".mysql_error());
8282
83 -echo "
84 -<table cellpadding=0 width=950><tr><td width=200><b>Language</b></td><td><b>Expressions</b></td><td></td></tr>";
 83+echo '
 84+<table cellpadding=0 width=950><tr><td width=100><b>Language</b></td><td align=right><b>Expressions</b></td><td width=30></td><td></td></tr>';
8585 $width=500;
8686 $limit=500;
8787 $max=0;
@@ -88,7 +88,7 @@
8989 if($max<$row[1])$max=$row[1];
9090 $wi=ceil((($row[1]/$max)*$width));
9191 $per=ceil((($row[1]/$max)*100));
92 -if($row[1]>$limit)echo "<tr><td >".$lang[$row[0]]."</td><td>".$row[1]."</td><td><img src=sc1.png width=\"$wi\" height=20> $per %</td></tr>";
 92+if($row[1]>$limit)echo "<tr><td >".$lang[$row[0]].'</td><td align="right">'.$row[1]."</td><td width=30></td><td><img src=sc1.png width=\"$wi\" height=20> $per %</td></tr>";
9393 else $tx.=$lang[$row[0]]." (".$row[1]."), ";
9494 //$ar[$row[0]].=$row[1]." ".$row[2]."\n";
9595 //filewrite("out/".$row[0].".txt",$row[1]." ".$row[2]);