Changeset 406 for trunk/web/addons/job_monarch/index.php
- Timestamp:
- 07/05/07 17:49:25 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/web/addons/job_monarch/index.php
r399 r406 92 92 } 93 93 94 function makeHeader( $page_call ) {94 function makeHeader( $page_call, $title, $longtitle ) { 95 95 96 96 global $tpl, $grid, $context, $initgrid; 97 global $jobrange, $jobstart , $title, $longtitle;97 global $jobrange, $jobstart; 98 98 global $page, $gridwalk, $clustername; 99 99 global $parentgrid, $physical, $hostname; … … 154 154 exit; 155 155 } 156 $tpl->gotoBlock( "_ROOT" ); 156 157 157 158 if( $view != "search" ) … … 159 160 160 161 $tpl->assign( "date", date("r") ); 162 //printf("lg %s\n", $longtitle ); 163 //printf("title %s\n", $title ); 161 164 $tpl->assign( "longpage_title", $longtitle ); 162 165 $tpl->assign( "page_title", $title ); … … 207 210 208 211 if (!count($metrics)) { 209 echo "<h4>Cannot find any metrics for selected cluster \"$clustername\", exiting.</h4>\n"; echo "Check ganglia XML tree (telnet $ganglia_ip $ganglia_port)\n"; 212 echo "<h4>Cannot find any metrics for selected cluster \"$clustername\", exiting.</h4>\n"; 213 echo "Check ganglia XML tree (telnet $ganglia_ip $ganglia_port)\n"; 210 214 exit; 211 215 } 216 reset($metrics); 212 217 $firsthost = key($metrics); 213 foreach ($metrics[$firsthost] as $m => $foo) 214 $context_metrics[] = $m; 215 216 foreach ($reports as $r => $foo) 217 $context_metrics[] = $r; 218 219 $mmfh = array(); 220 221 $mmfh = $metrics[$firsthost]; 222 223 $context_metrics = array(); 224 225 //foreach ($mmfh as $mm => $mfoo) 226 foreach( $mmfh as $mm => $bla ) 227 { 228 $context_metrics[] = $mm; 229 } 230 231 foreach ($reports as $mr => $mfoo) 232 $context_metrics[] = $mr; 218 233 219 234 $node_menu .= "<B><A HREF=\"./?c=".rawurlencode($clustername)."\">Joblist</A></B> "; … … 329 344 } 330 345 331 if( $JOB_ARCHIVE && $page_call == ' index' ) {346 if( $JOB_ARCHIVE && $page_call == 'overview' ) { 332 347 $tpl->newBlock( "search" ); 333 348 $tpl->assignGlobal( "cluster_url", rawurlencode($clustername) ); … … 420 435 $longtitle = "Batch Report :: Powered by Job Monarch!"; 421 436 $title = "Batch Report"; 422 makeHeader( 'index' );437 //makeHeader( 'index' ); 423 438 $tpl->assign("cluster_url", rawurlencode($clustername) ); 424 439 $tpl->assign("cluster", $clustername );
Note: See TracChangeset
for help on using the changeset viewer.