r1530 + done with dictionary layout (ticket:17) and words refcnt guard (ticket:46)
authorDenis Ovsienko <infrastation@yandex.ru>
Mon, 14 Jan 2008 23:25:19 +0000 (23:25 +0000)
committerDenis Ovsienko <infrastation@yandex.ru>
Mon, 14 Jan 2008 23:25:19 +0000 (23:25 +0000)
ChangeLog
inc/interface.php

index a9a07d1d1a248cb5ee4379445accce3c2aa8f5d5..e16f28520c2e32393654904e1ab5ab9bd822f812 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -6,6 +6,7 @@
        update: Live VLANs color legend now distinguishes between 1 and 0
                MAC addresses on a port
        update: fixed tabindex in NATv4 rules form
        update: Live VLANs color legend now distinguishes between 1 and 0
                MAC addresses on a port
        update: fixed tabindex in NATv4 rules form
+       update: better dictionary editor layout
        new feature: more information for rack view
        new feature: rack thumbnails caching
        new feature: rackspace and IPv4 subnets utilization indicator
        new feature: more information for rack view
        new feature: rack thumbnails caching
        new feature: rackspace and IPv4 subnets utilization indicator
index 7af6f31f6318bc28a5d5b98aa447fc16c432bf30..da38842e551ed88356169bcab3fd1719cf503640 100644 (file)
@@ -2675,6 +2675,7 @@ function renderDictionaryEditor ()
 {
        global $root, $pageno, $tabno, $nextorder;
        $dict = getDict();
 {
        global $root, $pageno, $tabno, $nextorder;
        $dict = getDict();
+       showMessageOrError();
        echo "<br><table class=cooltable border=0 cellpadding=5 cellspacing=0 align=center>\n";
        foreach ($dict as $chapter_no => $chapter)
        {
        echo "<br><table class=cooltable border=0 cellpadding=5 cellspacing=0 align=center>\n";
        foreach ($dict as $chapter_no => $chapter)
        {
@@ -2691,7 +2692,7 @@ function renderDictionaryEditor ()
                echo "<input type=hidden name=chapter_no value='${chapter['no']}'>";
                echo "<td>&nbsp;</td>";
                echo "<td class=tdright><input type=text name=dict_value size=32></td>";
                echo "<input type=hidden name=chapter_no value='${chapter['no']}'>";
                echo "<td>&nbsp;</td>";
                echo "<td class=tdright><input type=text name=dict_value size=32></td>";
-               echo "<td><input type=submit value=OK></td>";
+               echo "<td><input type=submit value='Add new'></td>";
                echo '</tr></form>';
                foreach ($chapter['word'] as $key => $value)
                {
                echo '</tr></form>';
                foreach ($chapter['word'] as $key => $value)
                {
@@ -2701,10 +2702,10 @@ function renderDictionaryEditor ()
                        echo "<input type=hidden name=op value='upd'>";
                        echo "<input type=hidden name=chapter_no value='${chapter['no']}'>";
                        echo "<input type=hidden name=dict_key value='${key}'>";
                        echo "<input type=hidden name=op value='upd'>";
                        echo "<input type=hidden name=chapter_no value='${chapter['no']}'>";
                        echo "<input type=hidden name=dict_key value='${key}'>";
-                       echo '<td>';
+                       echo "<tr class=row_${order}><td>";
                        // Prevent deleting words currently used somewhere.
                        if ($chapter['refcnt'][$key])
                        // Prevent deleting words currently used somewhere.
                        if ($chapter['refcnt'][$key])
-                               echo $chapter['refcnt'][$key]
+                               echo $chapter['refcnt'][$key];
                        else
                        {
                                echo "<a href='${root}process.php?page=${pageno}&tab=${tabno}&op=del&chapter_no=${chapter['no']}&dict_key=${key}'>";
                        else
                        {
                                echo "<a href='${root}process.php?page=${pageno}&tab=${tabno}&op=del&chapter_no=${chapter['no']}&dict_key=${key}'>";