Ignore:
Timestamp:
01/22/09 16:33:31 (15 years ago)
Author:
ramonb
Message:

web2/addons/job_monarch/image.php:

  • added query search option for node filtering

web2/addons/job_monarch/jobstore.php:

  • also search nodes and jobid with query

web2/addons/job_monarch/js/jobgrid.js:

  • added load event to datastore to trigger clusterimage reload and include any searchfield query

web2/addons/job_monarch/libtoga.php:

  • added query filter for clusterimage node filtering
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/web2/addons/job_monarch/libtoga.php

    r562 r563  
    13631363                                                                        }
    13641364                                                                }
     1365                                                                if( $filtername == 'query' )
     1366                                                                {
     1367                                                                        foreach( $jobs[$myjob] as $myj_attr => $myj_val )
     1368                                                                        {
     1369                                                                                if(!is_array( $myj_val ) )
     1370                                                                                {
     1371                                                                                        if( strpos( $myj_val, $filtervalue ) !== false )
     1372                                                                                        {
     1373                                                                                                $addhost = 1;
     1374                                                                                                continue;
     1375                                                                                        }
     1376                                                                                }
     1377                                                                                else
     1378                                                                                {
     1379                                                                                        foreach( $myj_val as $myj_v )
     1380                                                                                        {
     1381                                                                                                if( strpos( $myj_v, $filtervalue ) !== false )
     1382                                                                                                {
     1383                                                                                                        $addhost = 1;
     1384                                                                                                        continue;
     1385                                                                                                }
     1386                                                                                        }
     1387                                                                                }
     1388                                                                                if( strpos( $myjob, $filtervalue ) !== false )
     1389                                                                                {
     1390                                                                                        $addhost        = 1;
     1391                                                                                        continue;
     1392                                                                                }
     1393                                                                        }
     1394                                                                }
    13651395                                                        }
    13661396                                                }
Note: See TracChangeset for help on using the changeset viewer.