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/index.php

    r138 r140  
    3838        global $metrics, $reports, $m, $default_metric;
    3939        global $default_refresh, $filterorder, $view;
     40        global $TARCHD;
    4041
    4142        if( isset($default_metric) and !isset($m) )
     
    209210        $m = $metricname;
    210211
     212        if( $TARCHD ) {
     213                $tpl->newBlock( "search" );
     214                $tpl->assignGlobal( "cluster_url", rawurlencode($clustername) );
     215                $tpl->assignGlobal( "cluster", $clustername );
     216                $tpl->gotoBlock( "_ROOT" );
     217        }
     218
    211219        # Make sure that no data is cached..
    212220        header ("Expires: Mon, 26 Jul 1997 05:00:00 GMT");    # Date in the past
     
    242250}
    243251
    244 function includeSearchThumb() {
    245         global $tpl;
    246 
    247         $tpl->assignInclude( "archive", "templates/inc_search.tpl" );
    248 
    249 }
    250 
    251252function includeOverview() {
    252253        global $tpl;
     
    264265
    265266                includeOverview();
    266                 if( $TARCHD )
    267                         includeSearchThumb();
    268267                break;
    269268
Note: See TracChangeset for help on using the changeset viewer.