r1484 + fix dictionary renderer
authorDenis Ovsienko <infrastation@yandex.ru>
Fri, 11 Jan 2008 12:42:59 +0000 (12:42 +0000)
committerDenis Ovsienko <infrastation@yandex.ru>
Fri, 11 Jan 2008 12:42:59 +0000 (12:42 +0000)
inc/interface.php

index 97689a7..a27c133 100644 (file)
@@ -2613,9 +2613,9 @@ function renderDictionary ()
        global $nextorder;
        $dict = getDict();
        echo "<br><table class=cooltable border=0 cellpadding=5 cellspacing=0 align=center>\n";
-       $order = 'odd';
        foreach ($dict as $chapter_no => $chapter)
        {
+               $order = 'odd';
                echo "<tr><th>Chapter</th><th>[refcnt]</th><th>Word</th></tr>\n";
                $wc = count ($chapter['word']);
                echo "<tr class=row_${order}><td class=tdleft" . ($wc ? " rowspan = ${wc}" : '');
@@ -2631,7 +2631,7 @@ function renderDictionary ()
                                        echo "<tr class=row_${order}>";
                                else
                                        $chap_start = FALSE;
-                               echo "<td></td><td><div title='key=${key}'>${value}</div></td></tr>\n";
+                               echo "<td>&nbsp;</td><td><div title='key=${key}'>${value}</div></td></tr>\n";
                                $order = $nextorder[$order];
                        }
                }