make aggregate names in the tree clickable / bring up aggregate properties.
authorxzilla <xzilla>
Fri, 10 Nov 2006 01:15:04 +0000 (01:15 +0000)
committerxzilla <xzilla>
Fri, 10 Nov 2006 01:15:04 +0000 (01:15 +0000)
aggregates.php

index 9cba3694bda425050c2bf392e89de8724ae31a94..263ddf6994fc12d16d7bc101c9073bdb21f8c5b0 100644 (file)
@@ -3,7 +3,7 @@
        /**
         * Manage aggregates in a database
         *
-        * $Id: aggregates.php,v 1.14 2006/08/09 21:19:44 xzilla Exp $
+        * $Id: aggregates.php,v 1.15 2006/11/10 01:15:04 xzilla Exp $
         */
 
        // Include application functions
                global $misc, $data;
                
                $aggregates = $data->getAggregates();
-               
-               $proto = concat(field('proname'), ' (', field('proargtypes'), ')');
+
+                $proto = concat(field('proname'), ' (', field('proargtypes'), ')');
+                $reqvars = $misc->getRequestVars('aggregate');
                
                $attrs = array(
-                       'text'   => $proto,
-                       'icon'   => 'Aggregate',
-                       'toolTip'=> field('aggcomment'),
+                       'text'    => $proto,
+                       'icon'    => 'Aggregate',
+                       'toolTip' => field('aggcomment'),
+
+                        'action'  => url('redirect.php',
+                                                        $reqvars,
+                                                        array(
+                                                            'action' => 'properties',
+                                                            'aggrname' => field('proname'),
+                                                            'aggrtype' => field('proargtypes')
+                                                            )
+                                        )
+
                );
                
                $misc->printTreeXML($aggregates, $attrs);