Ignore:
Timestamp:
06/15/05 10:48:34 (18 years ago)
Author:
bastiaans
Message:

web/addons/toga/templates/header.tpl:

  • Use block to include link to archive search

web/addons/toga/templates/overview.tpl:

  • Cleanup
  • Javascript moved to seperate .js file

web/addons/toga/templates/search.tpl:

  • Added search results and future showhosts block section

web/addons/toga/index.php:

  • Use block instead of include for archive search link

web/addons/toga/search.php:

  • Setup of working search style

web/addons/toga/libtoga.php:

  • searchDbase() will return a list of jobids matching the criteria
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/web/addons/toga/search.php

    r138 r140  
    3232function makeSearchPage() {
    3333        global $clustername, $tpl, $id, $user, $name, $start_from_time, $start_to_time, $queue;
    34         global $end_from_time, $end_to_time;
     34        global $end_from_time, $end_to_time, $filter;
    3535
    3636        $tpl->assign( "cluster", $clustername );
     
    4646        if( validateFormInput() ) {
    4747
     48                $tpl->newBlock( "search_results" );
    4849                $tdb = new TarchDbase();
    49                 $tdb->searchDbase( $id, $queue, $user, $name, $start_from_time, $start_to_time, $end_from_time, $end_to_time );
    50                 $tpl->assign( "search_results", "templates/search_results.tpl" );
     50                $search_ids = $tdb->searchDbase( $id, $queue, $user, $name, $start_from_time, $start_to_time, $end_from_time, $end_to_time );
     51
     52                foreach( $search_ids as $foundid ) {
     53
     54                        printf("found job %s\n", $foundid );
     55                        //output jobzooi
     56
     57                }
     58               
     59                if( count( $search_ids ) == 1 ) {
     60
     61                        $tpl->newBlock( "showhosts" );
     62                }
    5163
    5264                // show search results
Note: See TracChangeset for help on using the changeset viewer.