Changeset 410


Ignore:
Timestamp:
07/06/07 14:20:56 (14 years ago)
Author:
bastiaans
Message:

job_monarch/search.php,
job_monarch/index.php:

  • fixes to search page header
Location:
trunk/web/addons/job_monarch
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/web/addons/job_monarch/index.php

    r409 r410  
    340340        //$ex_fn = $tpl->getVarValue( "_ROOT", "form_name" );
    341341
    342         $context_ranges[]="hour";
    343         $context_ranges[]="day";
    344         $context_ranges[]="week";
    345         $context_ranges[]="month";
    346         $context_ranges[]="year";
    347         $context_ranges[]="job";
    348 
    349         $range_menu = "<B>Last</B>&nbsp;&nbsp;" ."<SELECT NAME=\"r\" OnChange=\"toga_form.submit();\">\n";
    350         foreach ($context_ranges as $v) {
    351                 $url=rawurlencode($v);
    352                 $range_menu .= "<OPTION VALUE=\"$url\" ";
    353                 if ($v == $range)
    354                         $range_menu .= "SELECTED";
    355                 $range_menu .= ">$v\n";
    356         }
    357         $range_menu .= "</SELECT>\n";
    358 
    359         $tpl->assign("range_menu", $range_menu);
     342        if( $view != "search" )
     343        {
     344                $context_ranges[]="hour";
     345                $context_ranges[]="day";
     346                $context_ranges[]="week";
     347                $context_ranges[]="month";
     348                $context_ranges[]="year";
     349                $context_ranges[]="job";
     350
     351                $range_menu = "<B>Last</B>&nbsp;&nbsp;" ."<SELECT NAME=\"r\" OnChange=\"toga_form.submit();\">\n";
     352                foreach ($context_ranges as $v) {
     353                        $url=rawurlencode($v);
     354                        $range_menu .= "<OPTION VALUE=\"$url\" ";
     355                        if ($v == $range)
     356                                $range_menu .= "SELECTED";
     357                        $range_menu .= ">$v\n";
     358                }
     359                $range_menu .= "</SELECT>\n";
     360
     361                $tpl->assign("range_menu", $range_menu);
     362
     363        }
    360364
    361365        if( $view == "search" or $view == "host" ) {
  • trunk/web/addons/job_monarch/search.php

    r399 r410  
    260260        //printf("job_start = %s job_stop = %s\n", $job_start, $job_stop );
    261261        //printf("start = %s stop = %s\n", $start, $stop );
     262
     263        $longtitle = "Batch Archive Search :: Powered by Job Monarch!";
     264        $title = "Batch Archive Search";
     265
     266        makeHeader( 'search', $title, $longtitle );
    262267
    263268        $tpl->assign( "cluster", $clustername );
Note: See TracChangeset for help on using the changeset viewer.