Changeset 149 for trunk/web/addons/toga/index.php
- Timestamp:
- 06/20/05 14:50:55 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/web/addons/toga/index.php
r145 r149 38 38 global $metrics, $reports, $m, $default_metric; 39 39 global $default_refresh, $filterorder, $view; 40 global $TARCHD ;40 global $TARCHD, $period_start, $period_stop, $h, $id; 41 41 42 42 if( isset($default_metric) and !isset($m) ) … … 189 189 190 190 if( $view == "search" ) { 191 191 192 $node_menu .= "<B>></B>\n"; 192 193 $node_menu .= "<B>Jobarchive</B> "; 193 194 $tpl->assign("view", "search" ); 194 195 $form_name = "archive_search_form"; 195 $tpl->assign("form_name", $form_name ); 196 $tpl->assignGlobal("form_name", $form_name ); 197 196 198 } else { 197 199 $form_name = "toga_form"; 198 $tpl->assign ("form_name", $form_name );200 $tpl->assignGlobal("form_name", $form_name ); 199 201 $tpl->assign("view", "overview" ); 200 202 } … … 218 220 $metric_menu .= "</SELECT>\n"; 219 221 220 $tpl->assign("metric_menu", $metric_menu );221 222 } 223 224 $tpl->assign("metric_menu", $metric_menu ); 222 225 } 223 226 $m = $metricname; … … 269 272 } 270 273 274 function includeHostPage() { 275 276 global $tpl; 277 278 $tpl->assignInclude( "main", "templates/host_view.tpl" ); 279 } 280 271 281 $tpl = new TemplatePower( "templates/index.tpl" ); 272 282 273 283 $tpl->assignInclude( "header", "templates/header.tpl" ); 274 284 285 if( isset( $h ) and $h != '' ) { 286 $hostname = $h; 287 $view = "host"; 288 } 289 275 290 switch( $view ) { 276 291 … … 283 298 284 299 includeSearchPage(); 300 break; 301 302 case "host": 303 304 includeHostPage(); 285 305 break; 286 306 … … 313 333 break; 314 334 335 case "host": 336 337 include "./host_view.php"; 338 makeHostView(); 339 break; 340 315 341 default: 316 342
Note: See TracChangeset
for help on using the changeset viewer.