Correct required fields for type creation
authorsoranzo <soranzo>
Fri, 30 Nov 2007 15:25:23 +0000 (15:25 +0000)
committersoranzo <soranzo>
Fri, 30 Nov 2007 15:25:23 +0000 (15:25 +0000)
types.php

index f478787930f85a3003b2bbb4893b12577ccb6be8..7357b256445c2850f49e0c47db8ecf88ac114136 100644 (file)
--- a/types.php
+++ b/types.php
@@ -3,7 +3,7 @@
        /**
         * Manage types in a database
         *
-        * $Id: types.php,v 1.41 2007/10/03 17:32:07 ioguix Exp $
+        * $Id: types.php,v 1.42 2007/11/30 15:25:23 soranzo Exp $
         */
 
        // Include application functions
                echo "<tr><th class=\"data left required\">{$lang['strname']}</th>\n";
                echo "<td class=\"data1\"><input name=\"typname\" size=\"32\" maxlength=\"{$data->_maxNameLen}\" value=\"",
                        htmlspecialchars($_POST['typname']), "\" /></td></tr>\n";
-               echo "<tr><th class=\"data left\">{$lang['strinputfn']}</th>\n";
+               echo "<tr><th class=\"data left required\">{$lang['strinputfn']}</th>\n";
                echo "<td class=\"data1\"><select name=\"typin\">";
                while (!$funcs->EOF) {
                        $proname = htmlspecialchars($funcs->fields['proname']);
                        $funcs->moveNext();
                }
                echo "</select></td></tr>\n";
-               echo "<tr><th class=\"data left\">{$lang['stroutputfn']}</th>\n";
+               echo "<tr><th class=\"data left required\">{$lang['stroutputfn']}</th>\n";
                echo "<td class=\"data1\"><select name=\"typout\">";
                $funcs->moveFirst();
                while (!$funcs->EOF) {
                        $funcs->moveNext();
                }
                echo "</select></td></tr>\n";
-               echo "<tr><th class=\"data left required\">{$lang['strlength']}</th>\n";
+               echo "<tr><th class=\"data left" . (version_compare($data->major_version, '7.4', '<') ? ' required' : '') . "\">{$lang['strlength']}</th>\n";
                echo "<td class=\"data1\"><input name=\"typlen\" size=\"8\" value=\"",
                        htmlspecialchars($_POST['typlen']), "\" /></td></tr>";
                echo "<tr><th class=\"data left\">{$lang['strdefault']}</th>\n";