Changeset 8199 for trunk/MagicSoft/Mars/datacenter/db
- Timestamp:
- 11/01/06 19:28:24 (18 years ago)
- Location:
- trunk/MagicSoft/Mars/datacenter/db
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/db/include.php
r8182 r8199 430 430 $sigma = array 431 431 ( 432 5 => "#FF9900",433 3=> "#FFFF66",434 2 => "#33CC00",435 1 => "#006600",432 1 => "#33CC00", 433 2 => "#FFFF66", 434 3 => "#FF9900", 435 5 => "#FF0000", 436 436 ); 437 $o fflimitcolour="#FF0000";437 $okcolour="#006600"; 438 438 439 439 … … 484 484 if ($form) 485 485 { 486 // printf("<td>%s</td>",$row0["Sequ"]."ON");487 // printf("<td>%s</td>",$row0["Sequ"]."Off");488 486 CheckBox2($row0["Sequ"], "ON",""); 489 487 CheckBox2($row0["Sequ"], "Off",""); … … 496 494 printf(" <td align='right'>"); 497 495 496 $colour='#000000'; 498 497 //determine color of text in cell 499 498 if (!empty($limitsmean)) … … 503 502 $mean=$key2 . "Mean"; 504 503 $rms2=$key2 . "Rms"; 505 if ($key==$alias[$element2] && !empty($_GET[$mean]) )504 if ($key==$alias[$element2] && !empty($_GET[$mean]) && !empty($_GET[$rms2])) 506 505 { 507 if (!empty($_GET[$rms2])) 506 $colour=$okcolour; 507 foreach ($sigma as $margin => $newcolour) 508 508 { 509 $colour=$offlimitcolour; 510 foreach ($sigma as $margin => $newcolour) 511 { 512 $min=$_GET[$mean] - ($margin * $_GET[$rms2]); 513 $max=$_GET[$mean] + ($margin * $_GET[$rms2]); 514 if ($min < $element && $element < $max) 515 $colour=$newcolour; 516 } 517 printf("<font color='%s' style='font-weight:bold'>", $colour); 509 $min=$_GET[$mean] - ($margin * $_GET[$rms2]); 510 $max=$_GET[$mean] + ($margin * $_GET[$rms2]); 511 if (!($min < $element && $element < $max)) 512 $colour=$newcolour; 518 513 } 519 514 } … … 528 523 if ($key==$alias[$element2] && !empty($_GET[$limit1])) 529 524 { 530 $colour=$offlimitcolour; 531 if ($_GET[$limit1] <= $element) 532 $colour=$sigma[1]; 533 else 534 { 535 if (!empty($_GET[$limit2])) 536 { 537 if ($_GET[$limit2] <= $element) 538 $colour=$sigma[5]; 539 } 540 } 541 printf("<font color='%s' style='font-weight:bold'>", $colour); 525 if ($colour=='#000000') 526 $colour=$okcolour; 527 528 if (!empty($_GET[$limit2]) && $_GET[$limit2] > $element) 529 $colour=$sigma[5]; 530 531 if ($_GET[$limit1] > $element && $_GET[$limit2] <= $element) 532 $colour=$sigma[3]; 542 533 } 543 534 } … … 552 543 if ($key==$alias[$element2] && !empty($_GET[$limit1])) 553 544 { 554 $colour=$offlimitcolour; 555 if ($_GET[$limit1] >= $element) 556 $colour=$sigma[1]; 557 else 558 { 559 if (!empty($_GET[$limit2])) 560 { 561 if ($_GET[$limit2] >= $element) 562 $colour=$sigma[5]; 563 } 564 } 565 printf("<font color='%s' style='font-weight:bold'>", $colour); 545 if ($colour=='#000000') 546 $colour=$okcolour; 547 548 if (!empty($_GET[$limit2]) && $_GET[$limit2] < $element) 549 $colour=$sigma[5]; 550 551 if ($_GET[$limit1] < $element && $_GET[$limit2] >= $element) 552 $colour=$sigma[3]; 566 553 } 567 554 } 568 555 } 556 if ($colour!='#000000' && (!empty($limitsmean) || !empty($limitsmin) || !empty($limitsmax))) 557 printf("<font color='%s' style='font-weight:bold'>", $colour); 569 558 570 559 //fill text in cell 571 560 printf(" %s </td>\n", str_replace("&ws;", " ", str_replace(" ", " ", $element))); 561 562 if ($colour!='#000000' && (!empty($limitsmean) || !empty($limitsmin) || !empty($limitsmax))) 563 printf("</font>"); 572 564 } 573 565 printf(" </tr>\n"); -
trunk/MagicSoft/Mars/datacenter/db/magicdefs.php
r8198 r8199 47 47 "fPulsePosLimit" => "fMeanPulsePosInner", 48 48 "fRunTimeLimit" => "fRunTime/60", 49 "fRelTimeMinLimit" => "fEffOnTime/fRunTime", 49 50 ); 50 51 … … 56 57 "fIMCLimit" => "fIsolatedMaxCluster", 57 58 "fMaxHumLimit" => "fMaxHumidity", 58 "fRelTime Limit"=> "fEffOnTime/fRunTime",59 "fRelTimeMaxLimit" => "fEffOnTime/fRunTime", 59 60 ); 60 61 … … 297 298 "fZdMinLimit" => "ZdMin", 298 299 "fZdMaxLimit" => "ZdMax", 299 "fRelTimeLimit" => "Rel.Ontime", 300 "fRelTimeMaxLimit" => "Rel.Ontime", 301 "fRelTimeMinLimit" => "Rel.Ontime", 300 302 "fEMin" => "Emin", 301 303 "fEMax" => "Emax",
Note:
See TracChangeset
for help on using the changeset viewer.