Changeset 7974 for trunk/MagicSoft/Mars/datacenter/db/include.php
- Timestamp:
- 09/27/06 11:30:10 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/db/include.php
r7874 r7974 404 404 ); 405 405 $offlimitcolour="#FF0000"; 406 407 406 408 407 … … 455 454 456 455 //determine color of text in cell 457 foreach($limitsmean as $key2 => $element2)456 if (!empty($limitsmean)) 458 457 { 459 $mean=$key2 . "Mean"; 460 $rms2=$key2 . "Rms"; 461 if ($key==$alias[$element2] && !empty($_GET[$mean])) 458 foreach($limitsmean as $key2 => $element2) 462 459 { 463 if (!empty($_GET[$rms2])) 460 $mean=$key2 . "Mean"; 461 $rms2=$key2 . "Rms"; 462 if ($key==$alias[$element2] && !empty($_GET[$mean])) 463 { 464 if (!empty($_GET[$rms2])) 465 { 466 $colour=$offlimitcolour; 467 foreach ($sigma as $margin => $newcolour) 468 { 469 $min=$_GET[$mean] - ($margin * $_GET[$rms2]); 470 $max=$_GET[$mean] + ($margin * $_GET[$rms2]); 471 if ($min < $element && $element < $max) 472 $colour=$newcolour; 473 } 474 printf("<font color='%s' style='font-weight:bold'>", $colour); 475 } 476 } 477 } 478 } 479 if (!empty($limitsmin)) 480 { 481 foreach($limitsmin as $key2 => $element2) 482 { 483 $limit1=$key2 . "1"; 484 $limit2=$key2 . "2"; 485 if ($key==$alias[$element2] && !empty($_GET[$limit1])) 464 486 { 465 487 $colour=$offlimitcolour; 466 foreach ($sigma as $margin => $newcolour) 488 if ($_GET[$limit1] <= $element) 489 $colour=$sigma[1]; 490 else 467 491 { 468 $min=$_GET[$mean] - ($margin * $_GET[$rms2]); 469 $max=$_GET[$mean] + ($margin * $_GET[$rms2]); 470 if ($min < $element && $element < $max) 471 $colour=$newcolour; 492 if (!empty($_GET[$limit2])) 493 { 494 if ($_GET[$limit2] <= $element) 495 $colour=$sigma[5]; 496 } 472 497 } 473 498 printf("<font color='%s' style='font-weight:bold'>", $colour); … … 476 501 } 477 502 478 foreach($limitsmin as $key2 => $element2)503 if (!empty($limitsmax)) 479 504 { 480 $limit1=$key2 . "1"; 481 $limit2=$key2 . "2"; 482 if ($key==$alias[$element2] && !empty($_GET[$limit1])) 505 foreach($limitsmax as $key2 => $element2) 483 506 { 484 $colour=$offlimitcolour; 485 if ($_GET[$limit1] <= $element) 486 $colour=$sigma[1]; 487 else 507 $limit1=$key2 . "1"; 508 $limit2=$key2 . "2"; 509 if ($key==$alias[$element2] && !empty($_GET[$limit1])) 488 510 { 489 if (!empty($_GET[$limit2])) 511 $colour=$offlimitcolour; 512 if ($_GET[$limit1] >= $element) 513 $colour=$sigma[1]; 514 else 490 515 { 491 if ($_GET[$limit2] <= $element) 492 $colour=$sigma[5]; 516 if (!empty($_GET[$limit2])) 517 { 518 if ($_GET[$limit2] >= $element) 519 $colour=$sigma[5]; 520 } 493 521 } 522 printf("<font color='%s' style='font-weight:bold'>", $colour); 494 523 } 495 printf("<font color='%s' style='font-weight:bold'>", $colour);496 }497 498 }499 500 foreach($limitsmax as $key2 => $element2)501 {502 $limit1=$key2 . "1";503 $limit2=$key2 . "2";504 if ($key==$alias[$element2] && !empty($_GET[$limit1]))505 {506 $colour=$offlimitcolour;507 if ($_GET[$limit1] >= $element)508 $colour=$sigma[1];509 else510 {511 if (!empty($_GET[$limit2]))512 {513 if ($_GET[$limit2] >= $element)514 $colour=$sigma[5];515 }516 }517 printf("<font color='%s' style='font-weight:bold'>", $colour);518 524 } 519 525 }
Note:
See TracChangeset
for help on using the changeset viewer.