Changeset 29338 for trunk/ippMonitor/raw/czartool_labels.php
- Timestamp:
- Oct 6, 2010, 11:22:48 AM (16 years ago)
- File:
-
- 1 edited
-
trunk/ippMonitor/raw/czartool_labels.php (modified) (10 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippMonitor/raw/czartool_labels.php
r29270 r29338 235 235 # 236 236 ########################################################################### 237 function createLabelsTable($pass, $proj, $db, $server, $labels, $distLabels, $pubLabels, $stages, $states, $selectedState, $selectedLabel, $selectedStage, $plotType) { 237 function createLabelsTable( 238 $pass, 239 $proj, 240 $db, 241 $server, 242 $labels, 243 $distLabels, 244 $pubLabels, 245 $stages, 246 $states, 247 $selectedState, 248 $selectedLabel, $selectedStage, $plotType) { 238 249 239 250 // set up table columns … … 251 262 if ($stage == "burntool") continue; 252 263 $reverting = getRevertStatus($db, $stage); 253 $link = "czartool_labels.php?pass=".$pass."&proj=".$proj."&label=".$selectedLabel."&stage=".$selectedStage."&plottype=".$plotType."&revertstage=".$stage."&revertmode="; 264 $link = 265 "czartool_labels.php?pass=".$pass 266 ."&proj=".$proj 267 ."&label=".$selectedLabel 268 ."&stage=".$selectedStage 269 ."&plottype=".$plotType 270 ."&revertstage=".$stage 271 ."&revertmode="; 272 254 273 if(!$reverting) {$label = "Start";$link = $link . "on";} 255 274 if($reverting) {$label = "Stop";$link = $link . "off";} … … 266 285 267 286 if ($stage == $selectedStage) $link = ""; 268 else $link = "czartool_labels.php?pass=" . $pass . "&proj=" . $proj . "&label=" . $selectedLabel . "&stage=".$stage."&plottype=".$plotType; 287 else $link = 288 "czartool_labels.php?pass=".$pass 289 ."&proj=".$proj 290 ."&label=".$selectedLabel 291 ."&stage=".$stage 292 ."&plottype=".$plotType; 293 269 294 write_table_cell($class, '%s', $link, $stage); 270 295 } 271 296 272 297 if ($selectedStage=="all_stages") $link = ""; 273 else $link = "czartool_labels.php?pass=" . $pass . "&proj=" . $proj . "&label=" . $selectedLabel . "&stage=all_stages"."&plottype=".$plotType; 298 else $link = 299 "czartool_labels.php?pass=".$pass 300 ."&proj=".$proj 301 ."&label=".$selectedLabel 302 ."&stage=all_stages" 303 ."&plottype=".$plotType; 304 274 305 write_table_cell($class, '%s', $link, "All stages"); 275 306 … … 277 308 echo "<tr><td></td>\n"; 278 309 279 $defaultlink = "czartool_labels.php?pass=" . $pass . "&proj=" . $proj."&label=".$selectedLabel."&stage=".$selectedStage."&plottype=".$plotType; 310 $defaultlink = 311 "czartool_labels.php?pass=".$pass 312 ."&proj=".$proj 313 ."&label=".$selectedLabel 314 ."&stage=".$selectedStage 315 ."&plottype=".$plotType; 280 316 281 317 // write rows … … 295 331 // create link to label summary page for each label 296 332 if ($thisLabel == $selectedLabel) $link = ""; 297 else $link = "czartool_labels.php?pass=" . $pass . "&proj=" . $proj . "&label=" . $thisLabel . "&stage=" . $selectedStage."&plottype=".$plotType; 333 else $link = 334 "czartool_labels.php?pass=".$pass 335 ."&proj=".$proj 336 ."&label=".$thisLabel 337 ."&stage=".$selectedStage 338 ."&plottype=".$plotType; 298 339 299 340 echo "<tr><td></td>\n"; … … 445 486 $faults = $row[1]; 446 487 447 $str = "$pending"; 488 if ($pending == 0) 489 $str = ""; 490 else 491 $str = "$pending"; 448 492 449 493 if ($state == "new") { … … 470 514 write_header_cell($class, "Server"); 471 515 write_header_cell($class, "Alive?"); 472 $link = "czartool_labels.php?pass=".$pass."&proj=".$proj."&label=".$selectedLabel."&stage=".$selectedStage."&plottype=".$plotType."&allservercmd=stop"; 516 $link = "czartool_labels.php?pass=".$pass 517 ."&proj=".$proj 518 ."&label=".$selectedLabel 519 ."&stage=".$selectedStage 520 ."&plottype=".$plotType 521 ."&allservercmd=stop"; 522 473 523 write_table_cell($class, '%s', $link, "Stop all"); 474 $link = "czartool_labels.php?pass=".$pass."&proj=".$proj."&label=".$selectedLabel."&stage=".$selectedStage."&plottype=".$plotType."&allservercmd=run"; 524 $link = "czartool_labels.php?pass=".$pass 525 ."&proj=".$proj 526 ."&label=".$selectedLabel 527 ."&stage=".$selectedStage 528 ."&plottype=".$plotType 529 ."&allservercmd=run"; 530 475 531 write_table_cell($class, '%s', $link, "Run all"); 476 532 echo "</tr>\n"; … … 481 537 482 538 echo "<tr><td></td>\n"; 483 $link = "czartool_labels.php?pass=".$pass."&proj=".$proj."&server=".$server."&label=".$selectedLabel."&stage=".$selectedStage."&plottype=".$plotType; 539 $link = "czartool_labels.php?pass=".$pass 540 ."&proj=".$proj 541 ."&server=".$server 542 ."&label=".$selectedLabel 543 ."&stage=".$selectedStage 544 ."&plottype=".$plotType; 545 484 546 write_table_cell($class, '%s', $link, $server); 485 547 write_table_cell($class, '%s', "", $alive ? "yes" : "NO"); … … 487 549 if ($alive) { 488 550 489 $link = "czartool_labels.php?pass=".$pass."&proj=".$proj."&label=".$selectedLabel."&stage=".$selectedStage."&plottype=".$plotType."&server=".$server."&servercmd="; 551 $link = "czartool_labels.php?pass=".$pass 552 ."&proj=".$proj 553 ."&label=".$selectedLabel 554 ."&stage=".$selectedStage 555 ."&plottype=".$plotType 556 ."&server=".$server 557 ."&servercmd="; 558 490 559 if ($running) { 491 560 … … 502 571 } 503 572 else { 504 573 505 574 write_table_cell($class, '%s', "", ""); 506 575 write_table_cell($class, '%s', "", "");
Note:
See TracChangeset
for help on using the changeset viewer.
