Changeset 140 for trunk/web/addons/toga/search.php
- Timestamp:
- 06/15/05 10:48:34 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/web/addons/toga/search.php
r138 r140 32 32 function makeSearchPage() { 33 33 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; 35 35 36 36 $tpl->assign( "cluster", $clustername ); … … 46 46 if( validateFormInput() ) { 47 47 48 $tpl->newBlock( "search_results" ); 48 49 $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 } 51 63 52 64 // show search results
Note: See TracChangeset
for help on using the changeset viewer.