remove hard coded infix operators list and replace with the existing list in the...
authorchriskl <chriskl>
Wed, 26 May 2004 14:03:17 +0000 (14:03 +0000)
committerchriskl <chriskl>
Wed, 26 May 2004 14:03:17 +0000 (14:03 +0000)
views.php

index 86e0ddbce67cd6c5ac0286dd8e74594379867ce5..793a6736eeeaa07d386707aae364ce223d54dc1a 100644 (file)
--- a/views.php
+++ b/views.php
@@ -3,7 +3,7 @@
        /**
         * Manage views in a database
         *
-        * $Id: views.php,v 1.36 2004/05/25 00:46:52 soranzo Exp $
+        * $Id: views.php,v 1.37 2004/05/26 14:03:17 chriskl Exp $
         */
 
        // Include application functions
                                echo "</table>\n<br />\n";
                        }                                               
                                                
-                       // Output additional conditions                 
-                       $arrOperators = array('=' => '=', 'LIKE' => 'LIKE', '!=' => '!=', '>' => '>', '<' =>'<', 'IN' => 'IN', '!!=' => '!!=', 'BETWEEN' => 'BETWEEN');
+                       // Output additional conditions
+                       
+                       // Build list of available operators (infix only)
+                       $arrOperators = array();
+                       foreach ($data->selectOps as $k => $v) {
+                               if ($v == 'i') $arrOperators[$k] = $k;
+                       }
+
                        echo "<table>\n";
                        echo "<tr><th class=\"data\">{$lang['strviewconditions']}</th></tr>";                                   
                        $rowClass = 'data1';