Add labels to checkboxes/radio buttons. Patch by Guillaume LELARGE from suggestion by
authorxzilla <xzilla>
Sat, 17 Jun 2006 12:57:36 +0000 (12:57 +0000)
committerxzilla <xzilla>
Sat, 17 Jun 2006 12:57:36 +0000 (12:57 +0000)
Joseph Scott

22 files changed:
all_db.php
constraints.php
database.php
dataexport.php
domains.php
functions.php
indexes.php
login.php
operators.php
plugin_slony.php
privileges.php
rules.php
schemas.php
sequences.php
sqledit.php
tables.php
tblproperties.php
triggers.php
types.php
users.php
viewproperties.php
views.php

index 39a341419507a245bfde116f9206b2ed9dea47a5..fa68b2bf7209091d14366f41d7d681b448bf6389 100644 (file)
@@ -3,7 +3,7 @@
        /**
         * Manage databases within a server
         *
-        * $Id: all_db.php,v 1.43 2006/01/06 21:06:57 xzilla Exp $
+        * $Id: all_db.php,v 1.44 2006/06/17 12:57:36 xzilla Exp $
         */
 
        // Include application functions
                echo "<tr><th class=\"data\">{$lang['strformat']}</th><th class=\"data\" colspan=\"2\">{$lang['stroptions']}</th></tr>\n";
                // Data only
                echo "<tr><th class=\"data left\" rowspan=\"2\">";
-               echo "<input type=\"radio\" name=\"what\" value=\"dataonly\" checked=\"checked\" />{$lang['strdataonly']}</th>\n";
+               echo "<input type=\"radio\" id=\"what1\" name=\"what\" value=\"dataonly\" checked=\"checked\" /><label for=\"what1\">{$lang['strdataonly']}</label></th>\n";
                echo "<td>{$lang['strformat']}</td>\n";
                echo "<td><select name=\"d_format\">\n";
                echo "<option value=\"copy\">COPY</option>\n";
                echo "<option value=\"sql\">SQL</option>\n";
                echo "</select>\n</td>\n</tr>\n";
-               echo "<td>{$lang['stroids']}</td><td><input type=\"checkbox\" name=\"d_oids\" /></td>\n</tr>\n";
+               echo "<td><label for=\"d_oids\">{$lang['stroids']}</label></td><td><input type=\"checkbox\" id=\"d_oids\" name=\"d_oids\" /></td>\n</tr>\n";
                // Structure only
-               echo "<tr><th class=\"data left\"><input type=\"radio\" name=\"what\" value=\"structureonly\" />{$lang['strstructureonly']}</th>\n";
-               echo "<td>{$lang['strdrop']}</td><td><input type=\"checkbox\" name=\"s_clean\" /></td>\n</tr>\n";
+               echo "<tr><th class=\"data left\"><input type=\"radio\" id=\"what2\" name=\"what\" value=\"structureonly\" /><label for=\"what2\">{$lang['strstructureonly']}</label></th>\n";
+               echo "<td><label for=\"s_clean\">{$lang['strdrop']}</label></td><td><input type=\"checkbox\" id=\"s_clean\" name=\"s_clean\" /></td>\n</tr>\n";
                // Structure and data
                echo "<tr><th class=\"data left\" rowspan=\"3\">";
-               echo "<input type=\"radio\" name=\"what\" value=\"structureanddata\" />{$lang['strstructureanddata']}</th>\n";
+               echo "<input type=\"radio\" id=\"what3\" name=\"what\" value=\"structureanddata\" /><label for=\"what3\">{$lang['strstructureanddata']}</label></th>\n";
                echo "<td>{$lang['strformat']}</td>\n";
                echo "<td><select name=\"sd_format\">\n";
                echo "<option value=\"copy\">COPY</option>\n";
                echo "<option value=\"sql\">SQL</option>\n";
                echo "</select>\n</td>\n</tr>\n";
-               echo "<td>{$lang['strdrop']}</td><td><input type=\"checkbox\" name=\"sd_clean\" /></td>\n</tr>\n";
-               echo "<td>{$lang['stroids']}</td><td><input type=\"checkbox\" name=\"sd_oids\" /></td>\n</tr>\n";
+               echo "<td><label for=\"sd_clean\">{$lang['strdrop']}</label></td><td><input type=\"checkbox\" id=\"sd_clean\" name=\"sd_clean\" /></td>\n</tr>\n";
+               echo "<td><label for=\"sd_oids\">{$lang['stroids']}</label></td><td><input type=\"checkbox\" id=\"sd_oids\" name=\"sd_oids\" /></td>\n</tr>\n";
                echo "</table>\n";
                
                echo "<h3>{$lang['stroptions']}</h3>\n";
-               echo "<p><input type=\"radio\" name=\"output\" value=\"show\" checked=\"checked\" />{$lang['strshow']}\n";
-               echo "<br/><input type=\"radio\" name=\"output\" value=\"download\" />{$lang['strdownload']}</p>\n";
+               echo "<p><input type=\"radio\" id=\"output1\" name=\"output\" value=\"show\" checked=\"checked\" /><label for=\"output1\">{$lang['strshow']}</label>\n";
+               echo "<br/><input type=\"radio\" id=\"output2\" name=\"output\" value=\"download\" /><label for=\"output2\">{$lang['strdownload']}</label></p>\n";
 
                echo "<p><input type=\"hidden\" name=\"action\" value=\"export\" />\n";
                echo "<p><input type=\"hidden\" name=\"subject\" value=\"server\" />\n";                
index fc2296bca62ac945744ed7c3402b6486391d6014..ce117402aa096d0c096c3116866a8323db0fc729 100644 (file)
@@ -3,7 +3,7 @@
        /**
         * List constraints on a table
         *
-        * $Id: constraints.php,v 1.42 2005/10/18 03:45:15 chriskl Exp $
+        * $Id: constraints.php,v 1.43 2006/06/17 12:57:36 xzilla Exp $
         */
 
        // Include application functions
                        echo $misc->form;
                        // Show cascade drop option if supportd
                        if ($data->hasDropBehavior()) {
-                               echo "<p><input type=\"checkbox\" name=\"cascade\" /> {$lang['strcascade']}</p>\n";
+                               echo "<p><input type=\"checkbox\" id=\"cascade\" name=\"cascade\" /> <label for=\"cascade\">{$lang['strcascade']}</label></p>\n";
                        }
                        echo "<input type=\"submit\" name=\"drop\" value=\"{$lang['strdrop']}\" />\n";
                        echo "<input type=\"submit\" name=\"cancel\" value=\"{$lang['strcancel']}\" />\n";
index acc30ce224fb1fa76a05fbdeebeb191e9557f4f7..255a39da3cf2d8f6ba3fff20d3ac723efac6bcf5 100755 (executable)
@@ -3,7 +3,7 @@
        /**
         * Manage schemas within a database
         *
-        * $Id: database.php,v 1.83 2006/05/24 04:53:40 chriskl Exp $
+        * $Id: database.php,v 1.84 2006/06/17 12:57:36 xzilla Exp $
         */
 
        // Include application functions
                echo "<tr><th class=\"data\">{$lang['strformat']}</th><th class=\"data\" colspan=\"2\">{$lang['stroptions']}</th></tr>\n";
                // Data only
                echo "<tr><th class=\"data left\" rowspan=\"2\">";
-               echo "<input type=\"radio\" name=\"what\" value=\"dataonly\" checked=\"checked\" />{$lang['strdataonly']}</th>\n";
+               echo "<input type=\"radio\" id=\"what\" name=\"what1\" value=\"dataonly\" checked=\"checked\" /><label=\"what1\">{$lang['strdataonly']}</label></th>\n";
                echo "<td>{$lang['strformat']}</td>\n";
                echo "<td><select name=\"d_format\">\n";
                echo "<option value=\"copy\">COPY</option>\n";
                echo "<option value=\"sql\">SQL</option>\n";
                echo "</select>\n</td>\n</tr>\n";
-               echo "<td>{$lang['stroids']}</td><td><input type=\"checkbox\" name=\"d_oids\" /></td>\n</tr>\n";
+               echo "<td><label for=\"d_oids\">{$lang['stroids']}</label></td><td><input type=\"checkbox\" id=\"d_oids\" name=\"d_oids\" /></td>\n</tr>\n";
                // Structure only
-               echo "<tr><th class=\"data left\"><input type=\"radio\" name=\"what\" value=\"structureonly\" />{$lang['strstructureonly']}</th>\n";
-               echo "<td>{$lang['strdrop']}</td><td><input type=\"checkbox\" name=\"s_clean\" /></td>\n</tr>\n";
+               echo "<tr><th class=\"data left\"><input type=\"radio\" id=\"what2\" name=\"what\" value=\"structureonly\" /><label for=\"what2\">{$lang['strstructureonly']}</label></th>\n";
+               echo "<td><label for=\"s_clean\">{$lang['strdrop']}</label></td><td><input type=\"checkbox\" id=\"s_clean\" name=\"s_clean\" /></td>\n</tr>\n";
                // Structure and data
                echo "<tr><th class=\"data left\" rowspan=\"3\">";
-               echo "<input type=\"radio\" name=\"what\" value=\"structureanddata\" />{$lang['strstructureanddata']}</th>\n";
+               echo "<input type=\"radio\" id=\"what3\" name=\"what\" value=\"structureanddata\" /><label for=\"what3\">{$lang['strstructureanddata']}</label></th>\n";
                echo "<td>{$lang['strformat']}</td>\n";
                echo "<td><select name=\"sd_format\">\n";
                echo "<option value=\"copy\">COPY</option>\n";
                echo "<option value=\"sql\">SQL</option>\n";
                echo "</select>\n</td>\n</tr>\n";
-               echo "<td>{$lang['strdrop']}</td><td><input type=\"checkbox\" name=\"sd_clean\" /></td>\n</tr>\n";
-               echo "<td>{$lang['stroids']}</td><td><input type=\"checkbox\" name=\"sd_oids\" /></td>\n</tr>\n";
+               echo "<td><label for=\"sd_clean\">{$lang['strdrop']}</label></td><td><input type=\"checkbox\" id=\"sd_clean\" name=\"sd_clean\" /></td>\n</tr>\n";
+               echo "<td><label for=\"sd_oids\">{$lang['stroids']}</label></td><td><input type=\"checkbox\" id=\"sd_oids\" name=\"sd_oids\" /></td>\n</tr>\n";
                echo "</table>\n";
                
                echo "<h3>{$lang['stroptions']}</h3>\n";
-               echo "<p><input type=\"radio\" name=\"output\" value=\"show\" checked=\"checked\" />{$lang['strshow']}\n";
-               echo "<br/><input type=\"radio\" name=\"output\" value=\"download\" />{$lang['strdownload']}\n";
+               echo "<p><input type=\"radio\" id=\"output1\" name=\"output\" value=\"show\" checked=\"checked\" /><label for=\"output1\">{$lang['strshow']}</label>\n";
+               echo "<br/><input type=\"radio\" id=\"output2\" name=\"output\" value=\"download\" /><label for=\"output2\">{$lang['strdownload']}</label>\n";
                // MSIE cannot download gzip in SSL mode - it's just broken
                if (!(strstr($_SERVER['HTTP_USER_AGENT'], 'MSIE') && isset($_SERVER['HTTPS']))) {
-                       echo "<br /><input type=\"radio\" name=\"output\" value=\"gzipped\" />{$lang['strdownloadgzipped']}\n";
+                       echo "<br /><input type=\"radio\" id=\"output3\" name=\"output\" value=\"gzipped\" /><label for=\"output3\">{$lang['strdownloadgzipped']}</label>\n";
                }
                echo "</p>\n";
                echo "<p><input type=\"hidden\" name=\"action\" value=\"export\" />\n";
                                echo "<tr>\n";
                                echo "<td class=\"data1\" align=\"center\" valign=\"bottom\">\n";
                                echo "<form name=\"adminfrm\" id=\"adminfrm\" action=\"{$PHP_SELF}\" method=\"post\">\n";
-                               echo "<input type=\"checkbox\" id=\"vacuum_analyze\" name=\"vacuum_analyze\" />{$lang['stranalyze']}<br />\n";
+                               echo "<input type=\"checkbox\" id=\"vacuum_analyze\" name=\"vacuum_analyze\" /><label for=\"vacuum_analyze\">{$lang['stranalyze']}</label><br />\n";
                                if ($data->hasFullVacuum()) {
-                                       echo "<input type=\"checkbox\" id=\"vacuum_full\" name=\"vacuum_full\" />{$lang['strfull']}<br />\n";                           
-                                       echo "<input type=\"checkbox\" id=\"vacuum_freeze\" name=\"vacuum_freeze\" />{$lang['strfreeze']}<br />\n";
+                                       echo "<input type=\"checkbox\" id=\"vacuum_full\" name=\"vacuum_full\" /><label for=\"vacuum_full\">{$lang['strfull']}</label><br />\n";                                
+                                       echo "<input type=\"checkbox\" id=\"vacuum_freeze\" name=\"vacuum_freeze\" /><label for=\"vacuum_freeze\">{$lang['strfreeze']}</label><br />\n";
                                }
                                echo "<input type=\"submit\" value=\"{$lang['strvacuum']}\" />\n";
                                echo "<input type=\"hidden\" name=\"action\" value=\"vacuum\" />\n";
                                // Reindex
                                echo "<td class=\"data1\" align=\"center\" valign=\"bottom\">\n";
                                echo "<form name=\"adminfrm\" id=\"adminfrm\" action=\"{$PHP_SELF}\" method=\"post\">\n";
-                               echo "<input type=\"checkbox\" id=\"reindex_force\" name=\"reindex_force\" />{$lang['strforce']}<br />\n";
+                               echo "<input type=\"checkbox\" id=\"reindex_force\" name=\"reindex_force\" /><label for=\"reindex_force\">{$lang['strforce']}</label><br />\n";
                                echo "<input type=\"submit\" value=\"{$lang['strreindex']}\" />\n";
                                echo "<input type=\"hidden\" name=\"action\" value=\"reindex\" />\n";
                                echo $misc->form;
                }
                else echo "</p>\n";
 
-               echo "<input type=\"checkbox\" name=\"paginate\"", (isset($_REQUEST['paginate']) ? ' checked="checked"' : ''), " /> {$lang['strpaginate']}\n";
+               echo "<input type=\"checkbox\" id=\"paginate\" name=\"paginate\"", (isset($_REQUEST['paginate']) ? ' checked="checked"' : ''), " /><label for=\"paginate\">{$lang['strpaginate']}</label>\n";
                echo "<br />\n";
                echo "<p><input type=\"submit\" value=\"{$lang['strrun']}\" />\n";
                if ($data->hasFullExplain()) {
index 5089519e150bf4a332c66b215a6f817d426d1c6b..e330edcb12bccc9da567b50b875295845eb41066 100644 (file)
@@ -4,7 +4,7 @@
         * Does an export to the screen or as a download.  This checks to
         * see if they have pg_dump set up, and will use it if possible.
         *
-        * $Id: dataexport.php,v 1.22 2005/10/18 03:45:16 chriskl Exp $
+        * $Id: dataexport.php,v 1.23 2006/06/17 12:57:36 xzilla Exp $
         */
 
        $extensions = array(
                echo "</table>\n";
 
                echo "<h3>{$lang['stroptions']}</h3>\n";
-               echo "<p><input type=\"radio\" name=\"output\" value=\"show\" checked=\"checked\" />{$lang['strshow']}\n";
-               echo "<br/><input type=\"radio\" name=\"output\" value=\"download\" />{$lang['strdownload']}</p>\n";
+               echo "<p><input type=\"radio\" id=\"output1\" name=\"output\" value=\"show\" checked=\"checked\" /><label for=\"output1\">{$lang['strshow']}</label>\n";
+               echo "<br/><input type=\"radio\" id=\"output2\" name=\"output\" value=\"download\" /><label for=\"output2\">{$lang['strdownload']}</label></p>\n";
 
                echo "<p><input type=\"hidden\" name=\"action\" value=\"export\" />\n";
                echo "<input type=\"hidden\" name=\"what\" value=\"dataonly\" />\n";
index 2399ced0dd915d4f5b2322255faa6edfe226891a..38e34cca710b3f535b34379cf5a12b631d8a13f2 100644 (file)
@@ -3,7 +3,7 @@
        /**
         * Manage domains in a database
         *
-        * $Id: domains.php,v 1.22 2005/11/25 08:49:08 jollytoad Exp $
+        * $Id: domains.php,v 1.23 2006/06/17 12:57:36 xzilla Exp $
         */
 
        // Include application functions
@@ -59,8 +59,8 @@
                        echo "<td class=\"data1\">", $misc->printVal($domaindata->f['domname']), "</td></tr>\n";
                        echo "<tr><th class=\"data left required\">{$lang['strtype']}</th>\n";
                        echo "<td class=\"data1\">", $misc->printVal($domaindata->f['domtype']), "</td></tr>\n";
-                       echo "<tr><th class=\"data left\">{$lang['strnotnull']}</th>\n";
-                       echo "<td class=\"data1\"><input type=\"checkbox\" name=\"domnotnull\"", (isset($_POST['domnotnull']) ? ' checked="checked"' : ''), " /></td></tr>\n";
+                       echo "<tr><th class=\"data left\"><label for=\"domnotnull\">{$lang['strnotnull']}</label></th>\n";
+                       echo "<td class=\"data1\"><input type=\"checkbox\" id=\"domnotnull\" name=\"domnotnull\"", (isset($_POST['domnotnull']) ? ' checked="checked"' : ''), " /></td></tr>\n";
                        echo "<tr><th class=\"data left\">{$lang['strdefault']}</th>\n";
                        echo "<td class=\"data1\"><input name=\"domdefault\" size=\"32\" value=\"", 
                                htmlspecialchars($_POST['domdefault']), "\" /></td></tr>\n";
                        echo $misc->form;
                        // Show cascade drop option if supportd
                        if ($data->hasDropBehavior()) {
-                               echo "<p><input type=\"checkbox\" name=\"cascade\" /> {$lang['strcascade']}</p>\n";
+                               echo "<p><input type=\"checkbox\" id=\"cascade\" name=\"cascade\" /> <label for=\"cascade\">{$lang['strcascade']}</label></p>\n";
                        }
                        echo "<input type=\"submit\" name=\"drop\" value=\"{$lang['strdrop']}\" />\n";
                        echo "<input type=\"submit\" name=\"cancel\" value=\"{$lang['strcancel']}\" />\n";
                        echo $misc->form;
                        // Show cascade drop option if supportd
                        if ($data->hasDropBehavior()) {
-                               echo "<p><input type=\"checkbox\" name=\"cascade\" /> {$lang['strcascade']}</p>\n";
+                               echo "<p><input type=\"checkbox\" id=\"cascade\" name=\"cascade\" /><label for=\"cascade\">{$lang['strcascade']}</label></p>\n";
                        }
                        echo "<input type=\"submit\" name=\"drop\" value=\"{$lang['strdrop']}\" />\n";
                        echo "<input type=\"submit\" name=\"cancel\" value=\"{$lang['strcancel']}\" />\n";
                echo "<option value=\"[]\"", ($_POST['domarray'] == '[]') ? ' selected="selected"' : '', ">[ ]</option>\n";
                echo "</select></td></tr>\n";
 
-               echo "<tr><th class=\"data left\">{$lang['strnotnull']}</th>\n";
-               echo "<td class=\"data1\"><input type=\"checkbox\" name=\"domnotnull\"", 
+               echo "<tr><th class=\"data left\"><label for=\"domnotnull\">{$lang['strnotnull']}</label></th>\n";
+               echo "<td class=\"data1\"><input type=\"checkbox\" id=\"domnotnull\" name=\"domnotnull\"", 
                        (isset($_POST['domnotnull']) ? ' checked="checked"' : ''), " /></td></tr>\n";
                echo "<tr><th class=\"data left\">{$lang['strdefault']}</th>\n";
                echo "<td class=\"data1\"><input name=\"domdefault\" size=\"32\" value=\"", 
index bd728382544d51841dfc0bfa627be7a26319abb6..474fbc9af92daffc8a6b332dee7f60e1adbca730 100644 (file)
@@ -3,7 +3,7 @@
        /**
         * Manage functions in a database
         *
-        * $Id: functions.php,v 1.53 2005/11/25 08:49:08 jollytoad Exp $
+        * $Id: functions.php,v 1.54 2006/06/17 12:57:36 xzilla Exp $
         */
 
        // Include application functions
                        echo $misc->form;
                        // Show cascade drop option if supportd
                        if ($data->hasDropBehavior()) {
-                               echo "<p><input type=\"checkbox\" name=\"cascade\" /> {$lang['strcascade']}</p>\n";
+                               echo "<p><input type=\"checkbox\" id=\"cascade\" name=\"cascade\" /><label for=\"cascade\">{$lang['strcascade']}</label></p>\n";
                        }
                        echo "<input type=\"submit\" name=\"drop\" value=\"{$lang['strdrop']}\" />\n";
                        echo "<input type=\"submit\" name=\"cancel\" value=\"{$lang['strcancel']}\" />\n";
index acb881b185bb3a6c2b94fbb7acf059dd59621314..67f994a530e90702e03e47e226a7b049800e2343 100644 (file)
@@ -3,7 +3,7 @@
        /**
         * List indexes on a table
         *
-        * $Id: indexes.php,v 1.37 2005/10/18 03:45:16 chriskl Exp $
+        * $Id: indexes.php,v 1.38 2006/06/17 12:57:36 xzilla Exp $
         */
 
        // Include application functions
@@ -30,7 +30,7 @@
                        echo "<p>", sprintf($lang['strconfcluster'], $misc->printVal($_REQUEST['index'])), "</p>\n";
 
                        echo "<form action=\"$PHP_SELF\" method=\"post\">\n";
-                       echo "<p><input type=\"checkbox\" name=\"analyze\"", (isset($_REQUEST['analyze']) ? ' checked="checked"' : ''), " /> {$lang['stranalyze']}</p>\n";
+                       echo "<p><input type=\"checkbox\" id=\"analyze\" name=\"analyze\"", (isset($_REQUEST['analyze']) ? ' checked="checked"' : ''), " /><label for=\"analyze\">{$lang['stranalyze']}</label></p>\n";
                        echo "<input type=\"hidden\" name=\"action\" value=\"cluster_index\" />\n";
                        echo "<input type=\"hidden\" name=\"table\" value=\"", htmlspecialchars($_REQUEST['table']), "\" />\n";
                        echo "<input type=\"hidden\" name=\"index\" value=\"", htmlspecialchars($_REQUEST['index']), "\" />\n";
                echo "</select></td></tr>\n";                           
                echo "</tr>";
                echo "<tr>";
-               echo "<th class=\"data left\" scope=\"row\">{$lang['strunique']}</th>";
-               echo "<td class=\"data1\"><input type=\"checkbox\" name=\"formUnique\"", (isset($_POST['formUnique']) ? 'checked="checked"' : ''), " /></td>";
+               echo "<th class=\"data left\" scope=\"row\"><label for=\"formUnique\">{$lang['strunique']}</label></th>";
+               echo "<td class=\"data1\"><input type=\"checkbox\" id=\"formUnique\" name=\"formUnique\"", (isset($_POST['formUnique']) ? 'checked="checked"' : ''), " /></td>";
                echo "</tr>";
                if ($data->hasPartialIndexes()) {
                        echo "<tr>";
                        echo $misc->form;
                        // Show cascade drop option if supportd
                        if ($data->hasDropBehavior()) {
-                               echo "<p><input type=\"checkbox\" name=\"cascade\" /> {$lang['strcascade']}</p>\n";
+                               echo "<p><input type=\"checkbox\" id=\"cascade\" name=\"cascade\" /> <label for=\"cascade\">{$lang['strcascade']}</label></p>\n";
                        }
                        echo "<input type=\"submit\" name=\"drop\" value=\"{$lang['strdrop']}\" />\n";
                        echo "<input type=\"submit\" name=\"cancel\" value=\"{$lang['strcancel']}\" />\n";
index 6a0dadefa56a9d773d580569b620336b12013237..1142c873ab0f05bb8557a9a64e655b3258bf44e9 100755 (executable)
--- a/login.php
+++ b/login.php
@@ -3,7 +3,7 @@
        /**
         * Login screen
         *
-        * $Id: login.php,v 1.31 2005/11/19 09:13:05 chriskl Exp $
+        * $Id: login.php,v 1.32 2006/06/17 12:57:36 xzilla Exp $
         */
        global $conf;
        
@@ -44,7 +44,7 @@
                </tr>
        </table>
 <?php if (sizeof($conf['servers']) > 1) : ?>
-       <p><input type="checkbox" name="loginShared" <?php echo isset($_POST['loginShared']) ? 'checked="checked"' : '' ?> /><?php echo $lang['strtrycred'] ?></p>
+       <p><input type="checkbox" id="loginShared" name="loginShared" <?php echo isset($_POST['loginShared']) ? 'checked="checked"' : '' ?> /><label for="loginShared"><?php echo $lang['strtrycred'] ?></label></p>
 <?php endif; ?>
        <p><input type="submit" name="loginSubmit" value="<?php echo $lang['strlogin']; ?>" /></p>
 </form>
index 7e5a868224366d07685574e06d9091851169c805..70c43b77a501e7ef4abb18a449a5a9c5f79480a2 100644 (file)
@@ -3,7 +3,7 @@
        /**
         * Manage operators in a database
         *
-        * $Id: operators.php,v 1.21 2005/11/25 08:49:08 jollytoad Exp $
+        * $Id: operators.php,v 1.22 2006/06/17 12:57:36 xzilla Exp $
         */
 
        // Include application functions
@@ -83,7 +83,7 @@
                        echo $misc->form;
                        // Show cascade drop option if supportd
                        if ($data->hasDropBehavior()) {
-                               echo "<p><input type=\"checkbox\" name=\"cascade\" /> {$lang['strcascade']}</p>\n";
+                               echo "<p><input type=\"checkbox\" id=\"cascade\" name=\"cascade\" /> <label for=\"cascade\">{$lang['strcascade']}</label></p>\n";
                        }
                        echo "<input type=\"submit\" name=\"drop\" value=\"{$lang['strdrop']}\" />\n";
                        echo "<input type=\"submit\" name=\"cancel\" value=\"{$lang['strcancel']}\" />\n";
index e744f570fe9a31308ede3675de9d57252a07319d..192286f4260916805fee9f49efaf3afa7c6d445f 100755 (executable)
@@ -3,7 +3,7 @@
        /**
         * Slony database tab plugin
         *
-        * $Id: plugin_slony.php,v 1.8 2005/11/25 08:59:35 jollytoad Exp $
+        * $Id: plugin_slony.php,v 1.9 2006/06/17 12:57:36 xzilla Exp $
         */
 
        // Avoid database connections whenever possible
                                        echo "\t<tr>\n\t\t<th class=\"data left required\">{$lang['strtriggers']}</th>\n";
                                        echo "<td class=\"data1\" colspan=\"3\"><p>{$lang['strtabletriggerstoretain']}</p>\n";
                                        while (!$triggers->EOF) {
-                                               echo "<input type=\"checkbox\" name=\"storedtriggers[", htmlspecialchars($triggers->f['tgname']), "]\">";
-                                               echo htmlspecialchars($triggers->f['tgname']), "<br/>\n";
+                                               echo "<input type=\"checkbox\" id=\"storedtriggers[", htmlspecialchars($triggers->f['tgname']), "]\" name=\"storedtriggers[", htmlspecialchars($triggers->f['tgname']), "]\">";
+                                               echo "<label for=\"storedtriggers[", htmlspecialchars($triggers->f['tgname']), "]\">", htmlspecialchars($triggers->f['tgname']), "</label><br/>\n";
                                                $triggers->moveNext();  
                                        }
                                        echo "</select></td></tr>\n";                                   
index f21ae3a5e9f7286c7029374cfc0c9b341eaa0325..f019a2cfaea7f352b520e77d456f8dfb35cf6350 100644 (file)
@@ -3,7 +3,7 @@
        /**
         * Manage privileges in a database
         *
-        * $Id: privileges.php,v 1.38 2005/10/18 03:45:16 chriskl Exp $
+        * $Id: privileges.php,v 1.39 2006/06/17 12:57:36 xzilla Exp $
         */
 
        // Include application functions
@@ -58,7 +58,7 @@
                        echo "</select></td></tr>\n";
                        echo "<tr><th class=\"data left\">{$lang['strgroups']}</th>\n";
                        echo "<td class=\"data1\">\n";
-                       echo "<input type=\"checkbox\" name=\"public\"", (isset($_REQUEST['public']) ? ' checked="checked"' : ''), " />PUBLIC\n";
+                       echo "<input type=\"checkbox\" id=\"public\" name=\"public\"", (isset($_REQUEST['public']) ? ' checked="checked"' : ''), " /><label for=\"public\">PUBLIC</label>\n";
                        // Only show groups if there are groups!
                        if ($groups->recordCount() > 0) {
                                echo "<br /><select name=\"groupname[]\" multiple=\"multiple\" size=\"", min(6, $groups->recordCount()), "\">\n";
@@ -75,8 +75,8 @@
                        echo "<td class=\"data1\">\n";
                        foreach ($data->privlist[$_REQUEST['subject']] as $v) {
                                $v = htmlspecialchars($v);
-                               echo "<input type=\"checkbox\" name=\"privilege[$v]\"", 
-                                                       isset($_REQUEST['privilege'][$v]) ? ' checked="checked"' : '', " />{$v}<br />\n";
+                               echo "<input type=\"checkbox\" id=\"privilege[$v]\" name=\"privilege[$v]\"", 
+                                                       isset($_REQUEST['privilege'][$v]) ? ' checked="checked"' : '', " /><label for=\"privilege[$v]\">{$v}</label><br />\n";
                        }
                        echo "</td></tr>\n";
                        // Grant option
                                echo "<tr><th class=\"data left\">{$lang['stroptions']}</th>\n";
                                echo "<td class=\"data1\">\n";
                                if ($mode == 'grant') {
-                                       echo "<input type=\"checkbox\" name=\"grantoption\"", 
-                                                               isset($_REQUEST['grantoption']) ? ' checked="checked"' : '', " />GRANT OPTION\n";
+                                       echo "<input type=\"checkbox\" id=\"grantoption\" name=\"grantoption\"", 
+                                                               isset($_REQUEST['grantoption']) ? ' checked="checked"' : '', " /><label for=\"grantoption\">GRANT OPTION</label>\n";
                                }
                                elseif ($mode == 'revoke') {
-                                       echo "<input type=\"checkbox\" name=\"grantoption\"", 
-                                                               isset($_REQUEST['grantoption']) ? ' checked="checked"' : '', " />GRANT OPTION FOR<br />\n";
-                                       echo "<input type=\"checkbox\" name=\"cascade\"", 
-                                                               isset($_REQUEST['cascade']) ? ' checked="checked"' : '', " />CASCADE<br />\n";
+                                       echo "<input type=\"checkbox\" id=\"grantoption\" name=\"grantoption\"", 
+                                                               isset($_REQUEST['grantoption']) ? ' checked="checked"' : '', " /><label for=\"grantoption\">GRANT OPTION FOR</label><br />\n";
+                                       echo "<input type=\"checkbox\" id=\"cascade\" name=\"cascade\"", 
+                                                               isset($_REQUEST['cascade']) ? ' checked="checked"' : '', " /><label for=\"cascade\">CASCADE</label><br />\n";
                                }
                                echo "</td></tr>\n";
                        }
index c69733ec033d948361245d46d98b77468b2857bb..5fcf7477072c06ebecdaae0e235d7b1d39c840c1 100644 (file)
--- a/rules.php
+++ b/rules.php
@@ -3,7 +3,7 @@
        /**
         * List rules on a table OR view
         *
-        * $Id: rules.php,v 1.25 2005/10/18 03:45:16 chriskl Exp $
+        * $Id: rules.php,v 1.26 2006/06/17 12:57:36 xzilla Exp $
         */
 
        // Include application functions
                        echo "<tr><th class=\"data left\">{$lang['strwhere']}</th>\n";
                        echo "<td class=\"data1\"><input name=\"where\" size=\"32\" value=\"",
                                htmlspecialchars($_POST['where']), "\" /></td></tr>\n";
-                       echo "<tr><th class=\"data left\">{$lang['strinstead']}</th>\n";
+                       echo "<tr><th class=\"data left\"><label for=\"instead\">{$lang['strinstead']}</label></th>\n";
                        echo "<td class=\"data1\">";
-                       echo "<input type=\"checkbox\" name=\"instead\" ", (isset($_POST['instead'])) ? ' checked="checked"' : '', " />\n";
+                       echo "<input type=\"checkbox\" id=\"instead\" name=\"instead\" ", (isset($_POST['instead'])) ? ' checked="checked"' : '', " />\n";
                        echo "</td></tr>\n";
                        echo "<tr><th class=\"data left required\">{$lang['straction']}</th>\n";
                        echo "<td class=\"data1\">";
-                       echo "<input type=\"radio\" name=\"type\" value=\"NOTHING\"", ($_POST['type'] == 'NOTHING') ? ' checked="checked"' : '', " /> NOTHING<br />\n";
+                       echo "<input type=\"radio\" id=\"type1\" name=\"type\" name=\"type\" value=\"NOTHING\"", ($_POST['type'] == 'NOTHING') ? ' checked="checked"' : '', " /> <label for=\"type1\">NOTHING</label><br />\n";
                        echo "<input type=\"radio\" name=\"type\" value=\"SOMETHING\"", ($_POST['type'] == 'SOMETHING') ? ' checked="checked"' : '', " />\n";
                        echo "(<input name=\"raction\" size=\"32\" value=\"",
                                htmlspecialchars($_POST['raction']), "\" />)</td></tr>\n";
                        echo $misc->form;
                        // Show cascade drop option if supportd
                        if ($data->hasDropBehavior()) {
-                               echo "<p><input type=\"checkbox\" name=\"cascade\" /> {$lang['strcascade']}</p>\n";
+                               echo "<p><input type=\"checkbox\" id=\"cascade\" name=\"cascade\" /> <label for=\"cascade\">{$lang['strcascade']}</label></p>\n";
                        }
                        echo "<input type=\"submit\" name=\"yes\" value=\"{$lang['stryes']}\" />\n";
                        echo "<input type=\"submit\" name=\"no\" value=\"{$lang['strno']}\" />\n";
index f05357a921541fcd0aa105ed56047f9bf916df84..be61db8a02149cb4fa373186ead0e96ec201d837 100755 (executable)
@@ -3,7 +3,7 @@
        /**
         * Manage schemas in a database
         *
-        * $Id: schemas.php,v 1.7 2006/04/10 21:25:06 xzilla Exp $
+        * $Id: schemas.php,v 1.8 2006/06/17 12:57:36 xzilla Exp $
         */
 
        // Include application functions
                        echo "<input type=\"hidden\" name=\"schema\" value=\"", htmlspecialchars($_REQUEST['schema']), "\" />\n";
                        // Show cascade drop option if supportd
                        if ($data->hasDropBehavior()) {
-                               echo "<p><input type=\"checkbox\" name=\"cascade\" /> {$lang['strcascade']}</p>\n";
+                               echo "<p><input type=\"checkbox\" id=\"cascade\" name=\"cascade\" /> <label for=\"cascade\">{$lang['strcascade']}</label></p>\n";
                        }
                        echo "<input type=\"submit\" name=\"drop\" value=\"{$lang['strdrop']}\" />\n";
                        echo "<input type=\"submit\" name=\"cancel\" value=\"{$lang['strcancel']}\" />\n";
index a37959fb8df894329564589ba3e3cac890060375..0caf284fe2ac2dd4b237daffbf9f7f445c086d88 100644 (file)
@@ -3,7 +3,7 @@
        /**
         * Manage sequences in a database
         *
-        * $Id: sequences.php,v 1.32 2006/05/19 07:17:29 chriskl Exp $
+        * $Id: sequences.php,v 1.33 2006/06/17 12:57:36 xzilla Exp $
         */
        
        // Include application functions
                        echo $misc->form;
                        // Show cascade drop option if supportd
                        if ($data->hasDropBehavior()) {
-                               echo "<p><input type=\"checkbox\" name=\"cascade\" /> {$lang['strcascade']}</p>\n";
+                               echo "<p><input type=\"checkbox\" id=\"cascade\" name=\"cascade\" /> <label for=\"cascade\">{$lang['strcascade']}</label></p>\n";
                        }
                        echo "<input type=\"submit\" name=\"drop\" value=\"{$lang['strdrop']}\" />\n";
                        echo "<input type=\"submit\" name=\"cancel\" value=\"{$lang['strcancel']}\" />\n";
                echo "<td class=\"data1\"><input name=\"formCacheValue\" size=\"5\" value=\"",
                        htmlspecialchars($_POST['formCacheValue']), "\" /></td></tr>\n";
                
-               echo "<tr><th class=\"data left\">{$lang['striscycled']}</th>\n";
-               echo "<td class=\"data1\"><input type=\"checkbox\" name=\"formCycledValue\" value=\"",
+               echo "<tr><th class=\"data left\"><label for=\"formCycledValue\">{$lang['striscycled']}</label></th>\n";
+               echo "<td class=\"data1\"><input type=\"checkbox\" id=\"formCycledValue\" name=\"formCycledValue\" value=\"",
                        (isset($_POST['formCycledValue']) ? ' checked="checked"' : ''), "\" /></td></tr>\n";
 
                echo "</table>\n";
                        echo "<td class=\"data1\"><input name=\"formCacheValue\" size=\"5\" value=\"",
                                htmlspecialchars($sequence->f['cache_value']), "\" /></td></tr>\n";
                        
-                       echo "<tr><th class=\"data left\">{$lang['striscycled']}</th>\n";
-                       echo "<td class=\"data1\"><input type=\"checkbox\" name=\"formCycledValue\" value=\"",
+                       echo "<tr><th class=\"data left\"><label for=\"formCycledValue\">{$lang['striscycled']}</label></th>\n";
+                       echo "<td class=\"data1\"><input type=\"checkbox\" id=\"formCycledValue\" name=\"formCycledValue\" value=\"",
                                ($sequence->f['is_cycled'] ? ' checked="checked"' : ''), "\" /></td></tr>\n";
        
                        echo "</table>\n";
index 9f58db819dc69260c5be18a5741f19b88a218285..877dc0adc50eb407ba363e9e73fcb647bbb28935 100644 (file)
@@ -3,7 +3,7 @@
        /**
         * Alternative SQL editing window
         *
-        * $Id: sqledit.php,v 1.29 2005/10/18 03:45:16 chriskl Exp $
+        * $Id: sqledit.php,v 1.30 2006/06/17 12:57:36 xzilla Exp $
         */
 
        // Include application functions
                
                echo "<textarea style=\"width: 100%;\" rows=\"10\" cols=\"50\" name=\"query\">",
                        htmlspecialchars($_REQUEST['query']), "</textarea>\n";
-               echo "<label><input type=\"checkbox\" name=\"paginate\"", (isset($_REQUEST['paginate']) ? ' checked="checked"' : ''), " />&nbsp;{$lang['strpaginate']}</label>\n";
+               echo "<label for=\"paginate\"><input type=\"checkbox\" id=\"paginate\" name=\"paginate\"", (isset($_REQUEST['paginate']) ? ' checked="checked"' : ''), " />&nbsp;{$lang['strpaginate']}</label>\n";
                
                echo "<p><input type=\"submit\" value=\"{$lang['strrun']}\" />\n";
                if ($data->hasFullExplain()) {
index 2f6d6661e79499b4d64a2c28f66cfe0efe61f1a4..f7baabb25b1d189a707da31071cff177671c0bf1 100644 (file)
@@ -3,7 +3,7 @@
        /**
         * List tables in a database
         *
-        * $Id: tables.php,v 1.76 2006/05/19 07:17:30 chriskl Exp $
+        * $Id: tables.php,v 1.77 2006/06/17 12:57:36 xzilla Exp $
         */
 
        // Include application functions
@@ -49,7 +49,7 @@
                                        htmlspecialchars($_REQUEST['fields']), "\" /></td>\n\t</tr>\n";
                                if ($data->hasWithoutOIDs()) {
                                        echo "\t<tr>\n\t\t<th class=\"data left\">{$lang['stroptions']}</th>\n";
-                                       echo "\t\t<td class=\"data\"><label><input type=\"checkbox\" name=\"withoutoids\"", isset($_REQUEST['withoutoids']) ? ' checked="checked"' : '', " />WITHOUT OIDS</label></td>\n\t</tr>\n";
+                                       echo "\t\t<td class=\"data\"><label for=\"withoutoids\"><input type=\"checkbox\" id=\"withoutoids\" name=\"withoutoids\"", isset($_REQUEST['withoutoids']) ? ' checked="checked"' : '', " />WITHOUT OIDS</label></td>\n\t</tr>\n";
                                }
                                
                                // Tablespace (if there are any)
                                        $attrs->moveNext();
                                }
                                // Select all checkbox
-                               echo "<tr><td colspan=\"5\"><input type=\"checkbox\" name=\"selectall\" onClick=\"javascript:selectAll()\" />{$lang['strselectallfields']}</td>";
+                               echo "<tr><td colspan=\"5\"><input type=\"checkbox\" id=\"selectall\" name=\"selectall\" onClick=\"javascript:selectAll()\" /><label for=\"selectall\">{$lang['strselectallfields']}</label></td>";
                                echo "</table></p>\n";
                        }
                        else echo "<p>{$lang['strinvalidparam']}</p>\n";
                        echo $misc->form;
                        // Show cascade drop option if supportd
                        if ($data->hasDropBehavior()) {
-                               echo "<p><input type=\"checkbox\" name=\"cascade\" /> {$lang['strcascade']}</p>\n";
+                               echo "<p><input type=\"checkbox\" id=\"cascade\" name=\"cascade\" /> <label for=\"cascade\">{$lang['strcascade']}</label></p>\n";
                        }
                        echo "<input type=\"submit\" name=\"drop\" value=\"{$lang['strdrop']}\" />\n";
                        echo "<input type=\"submit\" name=\"cancel\" value=\"{$lang['strcancel']}\" />\n";
                        echo $misc->form;
                        // Show vacuum full option if supportd
                        if ($data->hasFullVacuum()) {
-                               echo "<p><input type=\"checkbox\" name=\"vacuum_full\" /> {$lang['strfull']}</p>\n";
-                               echo "<p><input type=\"checkbox\" name=\"vacuum_analyze\" /> {$lang['stranalyze']}</p>\n";
+                               echo "<p><input type=\"checkbox\" id=\"vacuum_full\" name=\"vacuum_full\" /> <label for=\"vacuum_full\">{$lang['strfull']}</label></p>\n";
+                               echo "<p><input type=\"checkbox\" id=\"vacuum_analyze\" name=\"vacuum_analyze\" /> <label for=\"vacuum_analyze\">{$lang['stranalyze']}</label></p>\n";
                        }
                        echo "<input type=\"submit\" name=\"vacuum\" value=\"{$lang['strvacuum']}\" />\n";
                        echo "<input type=\"submit\" name=\"cancel\" value=\"{$lang['strcancel']}\" />\n";
index f5e9a0ad3fee331722b066e26c823634d78d78a7..205e6cae008e6dfc18b6909a0230895b13ae7ac0 100644 (file)
@@ -3,7 +3,7 @@
        /**
         * List tables in a database
         *
-        * $Id: tblproperties.php,v 1.68 2006/01/05 21:33:10 xzilla Exp $
+        * $Id: tblproperties.php,v 1.69 2006/06/17 12:57:36 xzilla Exp $
         */
 
        // Include application functions
                echo "<tr><th class=\"data\">{$lang['strformat']}</th><th class=\"data\" colspan=\"2\">{$lang['stroptions']}</th></tr>\n";
                // Data only
                echo "<tr><th class=\"data left\" rowspan=\"", ($hasID) ? 2 : 1, "\">";
-               echo "<input type=\"radio\" name=\"what\" value=\"dataonly\" checked=\"checked\" />{$lang['strdataonly']}</th>\n";
+               echo "<input type=\"radio\" id=\"what1\" name=\"what\" value=\"dataonly\" checked=\"checked\" /><label for=\"what1\">{$lang['strdataonly']}</label></th>\n";
                echo "<td>{$lang['strformat']}</td>\n";
                echo "<td><select name=\"d_format\">\n";
                echo "<option value=\"copy\">COPY</option>\n";
                echo "<option value=\"xml\">XML</option>\n";
                echo "</select>\n</td>\n</tr>\n";
                if ($hasID) {
-                       echo "<tr><td>{$lang['stroids']}</td><td><input type=\"checkbox\" name=\"d_oids\" /></td>\n</tr>\n";
+                       echo "<tr><td><label for=\"d_oids\">{$lang['stroids']}</td><td><input type=\"checkbox\" id=\"d_oids\" name=\"d_oids\" /></td>\n</tr>\n";
                }
                // Structure only
-               echo "<tr><th class=\"data left\"><input type=\"radio\" name=\"what\" value=\"structureonly\" />{$lang['strstructureonly']}</th>\n";
-               echo "<td>{$lang['strdrop']}</td><td><input type=\"checkbox\" name=\"s_clean\" /></td>\n</tr>\n";
+               echo "<tr><th class=\"data left\"><input type=\"radio\" id=\"what2\" name=\"what\" value=\"structureonly\" /><label for=\"what2\">{$lang['strstructureonly']}</label></th>\n";
+               echo "<td><label for=\"s_clean\">{$lang['strdrop']}</label></td><td><input type=\"checkbox\" id=\"s_clean\" name=\"s_clean\" /></td>\n</tr>\n";
                // Structure and data
                echo "<tr><th class=\"data left\" rowspan=\"", ($hasID) ? 3 : 2, "\">";
-               echo "<input type=\"radio\" name=\"what\" value=\"structureanddata\" />{$lang['strstructureanddata']}</th>\n";
+               echo "<input type=\"radio\" id=\"what3\" name=\"what\" value=\"structureanddata\" /><label for=\"what3\">{$lang['strstructureanddata']}</label></th>\n";
                echo "<td>{$lang['strformat']}</td>\n";
                echo "<td><select name=\"sd_format\">\n";
                echo "<option value=\"copy\">COPY</option>\n";
                echo "<option value=\"sql\">SQL</option>\n";
                echo "</select>\n</td>\n</tr>\n";
-               echo "<tr><td>{$lang['strdrop']}</td><td><input type=\"checkbox\" name=\"sd_clean\" /></td>\n</tr>\n";
+               echo "<tr><td><label for=\"sd_clean\">{$lang['strdrop']}</label></td><td><input type=\"checkbox\" id=\"sd_clean\" name=\"sd_clean\" /></td>\n</tr>\n";
                if ($hasID) {
-                       echo "<tr><td>{$lang['stroids']}</td><td><input type=\"checkbox\" name=\"sd_oids\" /></td>\n</tr>\n";
+                       echo "<tr><td><label for=\"sd_oids\">{$lang['stroids']}</label></td><td><input type=\"checkbox\" id=\"sd_oids\" name=\"sd_oids\" /></td>\n</tr>\n";
                }
                echo "</table>\n";
                
                echo "<h3>{$lang['stroptions']}</h3>\n";
-               echo "<p><input type=\"radio\" name=\"output\" value=\"show\" checked=\"checked\" />{$lang['strshow']}\n";
-               echo "<br/><input type=\"radio\" name=\"output\" value=\"download\" />{$lang['strdownload']}</p>\n";
+               echo "<p><input type=\"radio\" id=\"output1\" name=\"output\" value=\"show\" checked=\"checked\" /><label for=\"output1\">{$lang['strshow']}</label>\n";
+               echo "<br/><input type=\"radio\" id=\"output2\" name=\"output\" value=\"download\" /><label for=\"output2\">{$lang['strdownload']}</label></p>\n";
 
                echo "<p><input type=\"hidden\" name=\"action\" value=\"export\" />\n";
                echo $misc->form;
                        echo $misc->form;
                        // Show cascade drop option if supportd
                        if ($data->hasDropBehavior()) {
-                               echo "<p><input type=\"checkbox\" name=\"cascade\"> {$lang['strcascade']}</p>\n";
+                               echo "<p><input type=\"checkbox\" id=\"cascade\" name=\"cascade\"> <label for=\"cascade\">{$lang['strcascade']}</label></p>\n";
                        }
                        echo "<input type=\"submit\" name=\"drop\" value=\"{$lang['strdrop']}\" />\n";
                        echo "<input type=\"submit\" name=\"cancel\" value=\"{$lang['strcancel']}\" />\n";
index 1d512a8613ad2a5403d8f61cd46f587c0980b475..d223ce33221a31eb5c1ead1888709b59081b31ff 100644 (file)
@@ -3,7 +3,7 @@
        /**
         * List triggers on a table
         *
-        * $Id: triggers.php,v 1.28 2005/10/18 03:45:16 chriskl Exp $
+        * $Id: triggers.php,v 1.29 2006/06/17 12:57:36 xzilla Exp $
         */
 
        // Include application functions
@@ -82,7 +82,7 @@
                        echo $misc->form;
                        // Show cascade drop option if supportd
                        if ($data->hasDropBehavior()) {
-                               echo "<p><input type=\"checkbox\" name=\"cascade\" /> {$lang['strcascade']}</p>\n";
+                               echo "<p><input type=\"checkbox\" id=\"cascade\" name=\"cascade\" /> <label for=\"cascade\">{$lang['strcascade']}</label></p>\n";
                        }
                        echo "<input type=\"submit\" name=\"yes\" value=\"{$lang['stryes']}\" />\n";
                        echo "<input type=\"submit\" name=\"no\" value=\"{$lang['strno']}\" />\n";
index 89cfaa7639a3c58ade6e4ae200259059e393d915..5ff90154b44a33e8e21e521e1d61f03b5916f969 100644 (file)
--- a/types.php
+++ b/types.php
@@ -3,7 +3,7 @@
        /**
         * Manage types in a database
         *
-        * $Id: types.php,v 1.29 2005/11/25 08:49:08 jollytoad Exp $
+        * $Id: types.php,v 1.30 2006/06/17 12:57:36 xzilla Exp $
         */
 
        // Include application functions
                        echo $misc->form;
                        // Show cascade drop option if supportd
                        if ($data->hasDropBehavior()) {
-                               echo "<p><input type=\"checkbox\" name=\"cascade\" /> {$lang['strcascade']}</p>\n";
+                               echo "<p><input type=\"checkbox\" id=\"cascade\" name=\"cascade\" /> <label for=\"cascade\">{$lang['strcascade']}</label></p>\n";
                        }
                        echo "<input type=\"submit\" name=\"drop\" value=\"{$lang['strdrop']}\" />\n";
                        echo "<input type=\"submit\" name=\"cancel\" value=\"{$lang['strcancel']}\" />\n";
                echo "<tr><th class=\"data left\">{$lang['strdelimiter']}</th>\n";
                echo "<td class=\"data1\"><input name=\"typdelim\" size=\"1\" maxlength=\"1\" value=\"",
                        htmlspecialchars($_POST['typdelim']), "\" /></td></tr>";
-               echo "<tr><th class=\"data left\">{$lang['strpassbyval']}</th>\n";
-               echo "<td class=\"data1\"><input type=\"checkbox\" name=\"typbyval\"", 
+               echo "<tr><th class=\"data left\"><label for=\"typbyval\">{$lang['strpassbyval']}</label></th>\n";
+               echo "<td class=\"data1\"><input type=\"checkbox\" id=\"typbyval\" name=\"typbyval\"", 
                        isset($_POST['typbyval']) ? ' checked="checked"' : '', " /></td></tr>";
                echo "<tr><th class=\"data left\">{$lang['stralignment']}</th>\n";
                echo "<td class=\"data1\"><select name=\"typalign\">";
index c0226fcb0fc802295926c2ae19f0af28dfd78769..db0a030fffc52b606b070d1df74bedbc21523729 100644 (file)
--- a/users.php
+++ b/users.php
@@ -3,7 +3,7 @@
        /**
         * Manage users in a database cluster
         *
-        * $Id: users.php,v 1.31 2005/10/18 03:45:16 chriskl Exp $
+        * $Id: users.php,v 1.32 2006/06/17 12:57:36 xzilla Exp $
         */
 
        // Include application functions
                        echo "<table>\n";
                        echo "\t<tr>\n\t\t<th class=\"data left\">{$lang['strusername']}</th>\n";
                        echo "\t\t<td class=\"data1\">", ($canRename ? "<input name=\"newname\" size=\"15\" value=\"" . htmlspecialchars($_POST['newname']) . "\" />" : $misc->printVal($userdata->f['usename'])), "</td>\n\t</tr>\n";
-                       echo "\t<tr>\n\t\t<th class=\"data left\">{$lang['strsuper']}</th>\n";
-                       echo "\t\t<td class=\"data1\"><input type=\"checkbox\" name=\"formSuper\"", 
+                       echo "\t<tr>\n\t\t<th class=\"data left\"><label for=\"formSuper\">{$lang['strsuper']}</label></th>\n";
+                       echo "\t\t<td class=\"data1\"><input type=\"checkbox\" id=\"formSuper\" name=\"formSuper\"", 
                                (isset($_POST['formSuper'])) ? ' checked="checked"' : '', " /></td>\n\t</tr>\n";
-                       echo "\t<tr>\n\t\t<th class=\"data left\">{$lang['strcreatedb']}</th>\n";
-                       echo "\t\t<td class=\"data1\"><input type=\"checkbox\" name=\"formCreateDB\"", 
+                       echo "\t<tr>\n\t\t<th class=\"data left\"><label for=\"formCreateDB\">{$lang['strcreatedb']}</label></th>\n";
+                       echo "\t\t<td class=\"data1\"><input type=\"checkbox\" id=\"formCreateDB\" name=\"formCreateDB\"", 
                                (isset($_POST['formCreateDB'])) ? ' checked="checked"' : '', " /></td>\n\t</tr>\n";
                        echo "\t<tr>\n\t\t<th class=\"data left\">{$lang['strexpires']}</th>\n";
                        echo "\t\t<td class=\"data1\"><input size=\"16\" name=\"formExpires\" value=\"", htmlspecialchars($_POST['formExpires']), "\" /></td>\n\t</tr>\n";
                echo "\t\t<td class=\"data1\"><input size=\"15\" type=\"password\" name=\"formPassword\" value=\"", htmlspecialchars($_POST['formPassword']), "\" /></td>\n\t</tr>\n";
                echo "\t<tr>\n\t\t<th class=\"data left\">{$lang['strconfirm']}</th>\n";
                echo "\t\t<td class=\"data1\"><input size=\"15\" type=\"password\" name=\"formConfirm\" value=\"", htmlspecialchars($_POST['formConfirm']), "\" /></td>\n\t</tr>\n";
-               echo "\t<tr>\n\t\t<th class=\"data left\">{$lang['strsuper']}</th>\n";
-               echo "\t\t<td class=\"data1\"><input type=\"checkbox\" name=\"formSuper\"", 
+               echo "\t<tr>\n\t\t<th class=\"data left\"><label for=\"formSuper\">{$lang['strsuper']}</label></th>\n";
+               echo "\t\t<td class=\"data1\"><input type=\"checkbox\" id=\"formSuper\" name=\"formSuper\"", 
                        (isset($_POST['formSuper'])) ? ' checked="checked"' : '', " /></td>\n\t</tr>\n";
-               echo "\t<tr>\n\t\t<th class=\"data left\">{$lang['strcreatedb']}</th>\n";
-               echo "\t\t<td class=\"data1\"><input type=\"checkbox\" name=\"formCreateDB\"", 
+               echo "\t<tr>\n\t\t<th class=\"data left\"><label for=\"formCreateDB\">{$lang['strcreatedb']}</label></th>\n";
+               echo "\t\t<td class=\"data1\"><input type=\"checkbox\" id=\"formCreateDB\" name=\"formCreateDB\"", 
                        (isset($_POST['formCreateDB'])) ? ' checked="checked"' : '', " /></td>\n\t</tr>\n";
                echo "\t<tr>\n\t\t<th class=\"data left\">{$lang['strexpires']}</th>\n";
                echo "\t\t<td class=\"data1\"><input size=\"30\" name=\"formExpires\" value=\"", htmlspecialchars($_POST['formExpires']), "\" /></td>\n\t</tr>\n";
index a4d6dd00bd7f86d95acc3205d84ab0f7651600d7..00b4c2289a61fbfba4c87a2fe8dbebcbf0e4c466 100755 (executable)
@@ -3,7 +3,7 @@
        /**
         * List views in a database
         *
-        * $Id: viewproperties.php,v 1.16 2005/10/18 03:45:16 chriskl Exp $
+        * $Id: viewproperties.php,v 1.17 2006/06/17 12:57:37 xzilla Exp $
         */
 
        // Include application functions
@@ -85,7 +85,7 @@
                // Data only
                echo "<!--\n";
                echo "<tr><th class=\"data left\">";
-               echo "<input type=\"radio\" name=\"what\" value=\"dataonly\" />{$lang['strdataonly']}</th>\n";
+               echo "<input type=\"radio\" id=\"what1\" name=\"what\" value=\"dataonly\" /><label for=\"what1\">{$lang['strdataonly']}</label></th>\n";
                echo "<td>{$lang['strformat']}</td>\n";
                echo "<td><select name=\"d_format\" >\n";
                echo "<option value=\"copy\">COPY</option>\n";
                echo "-->\n";
 
                // Structure only
-               echo "<tr><th class=\"data left\"><input type=\"radio\" name=\"what\" value=\"structureonly\" checked=\"checked\" />{$lang['strstructureonly']}</th>\n";
-               echo "<td>{$lang['strdrop']}</td><td><input type=\"checkbox\" name=\"s_clean\" /></td>\n</tr>\n";
+               echo "<tr><th class=\"data left\"><input type=\"radio\" id=\"what2\" name=\"what\" value=\"structureonly\" checked=\"checked\" /><label for=\"id=\"what2\" \">{$lang['strstructureonly']}</label></th>\n";
+               echo "<td><label for=\"s_clean\">{$lang['strdrop']}</label></td><td><input type=\"checkbox\" id=\"s_clean\" name=\"s_clean\" /></td>\n</tr>\n";
                // Structure and data
                echo "<!--\n";
                echo "<tr><th class=\"data left\" rowspan=\"2\">";
-               echo "<input type=\"radio\" name=\"what\" value=\"structureanddata\" />{$lang['strstructureanddata']}</th>\n";
+               echo "<input type=\"radio\" id=\"what3\" name=\"what\" value=\"structureanddata\" /><label for=\"what3\">{$lang['strstructureanddata']}</label></th>\n";
                echo "<td>{$lang['strformat']}</td>\n";
                echo "<td><select name=\"sd_format\">\n";
                echo "<option value=\"copy\">COPY</option>\n";
                echo "<option value=\"sql\">SQL</option>\n";
                echo "</select>\n</td>\n</tr>\n";
-               echo "<td>{$lang['strdrop']}</td><td><input type=\"checkbox\" name=\"sd_clean\" /></td>\n</tr>\n";
+               echo "<td><label for=\"sd_clean\">{$lang['strdrop']}</label></td><td><input type=\"checkbox\" id=\"sd_clean\" name=\"sd_clean\" /></td>\n</tr>\n";
                echo "-->\n";
                echo "</table>\n";
                
                echo "<h3>{$lang['stroptions']}</h3>\n";
-               echo "<p><input type=\"radio\" name=\"output\" value=\"show\" checked=\"checked\" />{$lang['strshow']}\n";
-               echo "<br/><input type=\"radio\" name=\"output\" value=\"download\" />{$lang['strdownload']}</p>\n";
+               echo "<p><input type=\"radio\" id=\"output1\" name=\"output\" value=\"show\" checked=\"checked\" /><label for=\"output1\">{$lang['strshow']}</label>\n";
+               echo "<br/><input type=\"radio\" id=\"output2\" name=\"output\" value=\"download\" /><label for=\"output2\">{$lang['strdownload']}</label></p>\n";
 
                echo "<p><input type=\"hidden\" name=\"action\" value=\"export\" />\n";
                echo $misc->form;
index f40586e33c733d1eeccac57a0731e5519c18d27a..f763dc9e56bae1db0c0c0af83a42bba5bfc3cb86 100644 (file)
--- a/views.php
+++ b/views.php
@@ -3,7 +3,7 @@
        /**
         * Manage views in a database
         *
-        * $Id: views.php,v 1.55 2005/11/25 08:49:08 jollytoad Exp $
+        * $Id: views.php,v 1.56 2006/06/17 12:57:37 xzilla Exp $
         */
 
        // Include application functions
@@ -80,7 +80,7 @@
                                        $attrs->moveNext();
                                }
                                // Select all checkbox
-                               echo "<tr><td colspan=\"5\"><input type=\"checkbox\" name=\"selectall\" onClick=\"javascript:selectAll()\" />{$lang['strselectallfields']}</td>";
+                               echo "<tr><td colspan=\"5\"><input type=\"checkbox\" id=\"selectall\" name=\"selectall\" onClick=\"javascript:selectAll()\" /><label for=\"selectall\">{$lang['strselectallfields']}</label></td>";
                                echo "</table></p>\n";
                        }
                        else echo "<p>{$lang['strinvalidparam']}</p>\n";
                        echo $misc->form;
                        // Show cascade drop option if supportd
                        if ($data->hasDropBehavior()) {
-                               echo "<p><input type=\"checkbox\" name=\"cascade\" /> {$lang['strcascade']}</p>\n";
+                               echo "<p><input type=\"checkbox\" id=\"cascade\" name=\"cascade\" /> <label for=\"cascade\">{$lang['strcascade']}</label></p>\n";
                        }
                        echo "<input type=\"submit\" name=\"drop\" value=\"{$lang['strdrop']}\" />\n";
                        echo "<input type=\"submit\" name=\"cancel\" value=\"{$lang['strcancel']}\" />\n";