File: C:/xampp/htdocs/FograG7p2p/TVI-parsing9.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>G7 TVI Check</title>
<style type="text/css">
<!--
body {
font: 100% Verdana, Arial, Helvetica, sans-serif;
background: #ffffff;
margin: 0; /* 比較好的做法是將 Body 元素的邊界與欄位間隔調整為零,以處理不同的瀏覽器預設值 */
padding: 0;
text-align: center; /* 這樣會讓容器在 IE 5* 瀏覽器內置中對齊。然後,文字會在 #container 選取器中設定為靠左對齊預設值 */
color: #000000;
margin-left: 1px;
margin-top: 1px;
margin-right: 1px;
margin-bottom: 1px;
}
.oneColElsCtr #container {
width: 46em;
background: #FFFFFF;
margin: 0 auto; /* 自動邊界 (搭配寬度) 會讓頁面置中對齊 */
border: 0px solid #000000;
text-align: left; /* 這樣做會覆寫 Body 元素上的 text-align: center。 */
}
.oneColElsCtr #mainContent {
padding: 0 20px; /* 請記住,欄位間隔就是 Div 方塊內部的空間,而邊界就是 Div 方塊外部的空間 */
}
-->
</style></head>
<body class="oneColElsCtr">
<!--
$connection = mysql_connect("127.0.0.1", "root", "fredsql") or die ("Unable to connect!");
mysql_query("SET NAMES 'utf8'");
$db = "tvicheck";
// select database
mysql_select_db($db) or die ("Unable to select database!");
$myip = $_SERVER['REMOTE_ADDR'];
//echo $myip;
//$myip='210.71.174.1';
// generate and execute query
$query = " SELECT ip from G7base where ip='$myip' ";
$result = mysql_query($query) or die ("Error in query: $query. " . mysql_error());
//$row = mysql_fetch_object($result);
$cct=0;
while($row = mysql_fetch_object($result))
{
$cct=$cct+1;
}
echo $cct."block ";
///////////////////////////////////////////////////////////////blocking 10
-->
<?php
$dtime=time();
$dStr=substr($dtime,7,9)."-";
$sum=260;
$check=1;
if ($_FILES["file"]["error"] > 0)
{
echo "Return Code: " . $_FILES["file"]["error"] . "<br />";
}
else
{
echo "G7 TVI Checking form! (for Type 1 paper, white backing, Gcacol 2006)" . "<br />".$device;
echo "Upload: " . $_FILES["file"]["name"] . "<br />";
$filename=$dStr.$_FILES["file"]["name"];
//echo "Type: " . $_FILES["file"]["type"] . "<br />";
echo "Size: " . ($_FILES["file"]["size"] / 1024) . " Kb<br />";
// echo "Temp file: " . $_FILES["file"]["tmp_name"] . "<br />";
if (file_exists("upload/" .$dStr. $_FILES["file"]["name"]))
{
echo $_FILES["file"]["name"] . " already exists. ". "<br />";
}
else
{
move_uploaded_file($_FILES["file"]["tmp_name"],
"upload/" .$dStr. $_FILES["file"]["name"]);
echo "upload sucess! " . "<br />";
echo "if you see anything in ";$check=0;$sid=0;?><font color="red">RED</font><?php echo", you are no good! " . "<br />";
echo "Report start: " . "<br />";
// echo "Stored in: " . "upload/" . $_FILES["file"]["name"]. "<br />";
///parsing start
$contents = file("upload/".$dStr.$_FILES["file"]["name"]);
$string = implode($contents);
//echo $contents[20];
//echo $string;
$p = ereg_replace("\r\n?", "\n", $string);
$p = str_replace("\n", '', $p);
//echo $p;
//$dot = explode(",", $p);
function get_between ($text, $s1, $s2) {
$mid_url = "";
$pos_s = strrpos($text,$s1);
$pos_e = strrpos($text,$s2);
for ( $i=$pos_s+strlen($s1) ; (( $i<($pos_e)) && $i < strlen($text)) ; $i++ ) {
$mid_url .= $text[$i];
}
return $mid_url;
}
$datastring=get_between($p,"BEGIN_DATA","END_DATA");
$dot = explode("\t", $datastring);
//echo $datastring;
//echo "__dot [6] here".$dot[6]."end--<br>";
//echo "__dot [6+40] here".$dot[6+40-1]."end--<br>";
//echo "__dot [6+80] here".$dot[6+80-2]."end--<br>";
$PL=$dot[6+40*25-25];
$Pa=$dot[6+40*25-25+1];
$Pb=$dot[6+40*25-25+2];
//echo "__PL".$PL."end--<br>";
//echo "__Pa".$Pa."end--<br>";
//echo "__Pb".$Pb."end--<br>";
$c100L=$dot[6+40*12-12];
$c100a=$dot[6+40*12-12+1];
$c100b=$dot[6+40*12-12+2];
//echo "__c100L".$c100L."end--<br>";
//echo "__c100a".$c100a."end--<br>";
//echo "__c100b".$c100b."end--<br>";
$r100L=$dot[6+40*24-24];
$r100a=$dot[6+40*24-24+1];
$r100b=$dot[6+40*24-24+2];
//echo "__r100L".$r100L."end--<br>";
//echo "__r100a".$r100a."end--<br>";
//echo "__r100b".$r100b."end--<br>";
$m100L=$dot[6+40*37-37];
$m100a=$dot[6+40*37-37+1];
$m100b=$dot[6+40*37-37+2];
//echo "__m100L".$m100L."end--<br>";
//echo "__m100a".$m100a."end--<br>";
//echo "__m100b".$m100b."end--<br>";
$g100L=$dot[6+40*49-49];
$g100a=$dot[6+40*49-49+1];
$g100b=$dot[6+40*49-49+2];
//echo "__g100L".$g100L."end--<br>";
//echo "__g100a".$g100a."end--<br>";
//echo "__g100b".$g100b."end--<br>";
$y100L=$dot[6+40*62-62];
$y100a=$dot[6+40*62-62+1];
$y100b=$dot[6+40*62-62+2];
//echo "__y100L".$y100L."end--<br>";
//echo "__y100a".$y100a."end--<br>";
//echo "__y100b".$y100b."end--<br>";
$b100L=$dot[6+40*74-74];
$b100a=$dot[6+40*74-74+1];
$b100b=$dot[6+40*74-74+2];
//echo "__b100L".$b100L."end--<br>";
//echo "__b100a".$b100a."end--<br>";
//echo "__b100b".$b100b."end--<br>";
$k100L=$dot[6+40*99-99];
$k100a=$dot[6+40*99-99+1];
$k100b=$dot[6+40*99-99+2];
//echo "__k100L".$k100L."end--<br>";
//echo "__k100a".$k100a."end--<br>";
//echo "__k100b".$k100b."end--<br>";
?>
<table width="200" border="1" align="center">
<tr></tr>
<tr>
<td><div align="center">主色</div></td>
<td><font color="#aaaaaa">5%</font></td>
<td><font color="#aaaaaa">10%</font></td>
<td><font color="#aaaaaa">15%</font></td>
<td><font color="#aaaaaa">20%</font></td>
<td><font color="#aaaaaa">25%</font></td>
<td><font color="#666666">30%</font></td>
<td><font color="#666666">35%</font></td>
<td><font color="#666666">40%</font></td>
<td><font color="#666666">45%</font></td>
<td><font color="#666666">50%</font></td>
<td><font color="#666666">55%</font></td>
<td><font color="#666666">60%</font></td>
<td><font color="#666666">65%</font></td>
<td>70%</td>
<td>75%</td>
<td>80%</td>
<td>85%</td>
<td>90%</td>
<td>95%</td>
</tr>
<tr>
<td bgcolor="#33CCFF"><div align="center">C</div></td>
<?php
$L=32.4;$a=1.117;$b=-0.55;
$TT=(($a/500)+(($L+16)/116));
$TL=($L+16)/116;
$Tb=(($L+16)/116)-($b/200);
//echo $TL.'zz';
$tt2=82.521*$Tb*$Tb*$Tb;
//echo $tt2.'zz';
function getX($L,$a,$b){
$TT=(($a/500)+(($L+16)/116));
if($TT>0.206893) {
$X=96.422*$TT*$TT*$TT;}
else {
$X=96.422*((($a/500)+(($L+16)/116)-(16/116))/7.787);}
return round($X,2);
}
function getY($L,$a,$b){
$TL=($L+16)/116;
IF ($TL>0.206893) {
$Y=100*$TL*$TL*$TL;}
else {
$Y=100*(($L/116)/7.7873);}
return round($Y,2);
}
function getZ($L,$a,$b){
$Tb=(($L+16)/116)-($b/200);
IF($Tb>0.206893){
$Z=82.521*$Tb*$Tb*$Tb;}
else {
$Z=82.521*( (($L+16)/116)-($b/200)-(16/116))/7.787;}
return round($Z,2);
}
$Xi= getX(62.1,0.807,-4.22);
$Yi= getY(62.1,0.807,-4.22);
$Zi= getZ(62.1,0.807,-4.22);
$PX=getX($PL,$Pa,$Pb);
$PY=getY($PL,$Pa,$Pb);
$PZ=getZ($PL,$Pa,$Pb);
$C100X=getX($c100L,$c100a,$c100b);
$C100Y=getY($c100L,$c100a,$c100b);
$C100Z=getZ($c100L,$c100a,$c100b);
$M100X=getX($m100L,$m100a,$m100b);
$m100Y=getY($m100L,$m100a,$m100b);
$M100Z=getZ($m100L,$m100a,$m100b);
$Y100X=getX($y100L,$y100a,$y100b);
$Y100Y=gety($y100L,$y100a,$y100b);
$Y100Z=getZ($y100L,$y100a,$y100b);
$K100X=getX($k100L,$k100a,$k100b);
$K100Y=getY($k100L,$k100a,$k100b);
$K100Z=getZ($k100L,$k100a,$k100b);
$N=50;
//TVI_c = (paper_X – nc_X) / (paper_X – 100c_X) x 100 – n;
//$TVI_c=(82.7–$Xi)/(82.7–4)*100–50;
//echo "tvic".$TVI_c;
//echo "XYZ:".$Xi."_".$Yi."_".$Zi;
include 'densityV.php';
$pD=DensitySp("V",$dot[6+40*25-25+3],$dot[6+40*25-25+4],$dot[6+40*25-25+5],$dot[6+40*25-25+6],$dot[6+40*25-25+7],$dot[6+40*25-25+8],$dot[6+40*25-25+9],$dot[6+40*25-25+10],$dot[6+40*25-25+11],$dot[6+40*25-25+12],$dot[6+40*25-25+13],$dot[6+40*25-25+14],$dot[6+40*25-25+15],$dot[6+40*25-25+16],$dot[6+40*25-25+17],$dot[6+40*25-25+18],$dot[6+40*25-25+19],$dot[6+40*25-25+20],$dot[6+40*25-25+21],$dot[6+40*25-25+22],$dot[6+40*25-25+23],$dot[6+40*25-25+24],$dot[6+40*25-25+25],$dot[6+40*25-25+26],$dot[6+40*25-25+27],$dot[6+40*25-25+28],$dot[6+40*25-25+29],$dot[6+40*25-25+30],$dot[6+40*25-25+31],$dot[6+40*25-25+32],$dot[6+40*25-25+33]);
$cmyD=DensitySp("V",$dot[6+40*124-124+3],$dot[6+40*124-124+4],$dot[6+40*124-124+5],$dot[6+40*124-124+6],$dot[6+40*124-124+7],$dot[6+40*124-124+8],$dot[6+40*124-124+9],$dot[6+40*124-124+10],$dot[6+40*124-124+11],$dot[6+40*124-124+12],$dot[6+40*124-124+13],$dot[6+40*124-124+14],$dot[6+40*124-124+15],$dot[6+40*124-124+16],$dot[6+40*124-124+17],$dot[6+40*124-124+18],$dot[6+40*124-124+19],$dot[6+40*124-124+20],$dot[6+40*124-124+21],$dot[6+40*124-124+22],$dot[6+40*124-124+23],$dot[6+40*124-124+24],$dot[6+40*124-124+25],$dot[6+40*124-124+26],$dot[6+40*124-124+27],$dot[6+40*124-124+28],$dot[6+40*124-124+29],$dot[6+40*124-124+30],$dot[6+40*124-124+31],$dot[6+40*124-124+32],$dot[6+40*124-124+33]);
$kD=DensitySp("K",$dot[6+40*99-99+3],$dot[6+40*99-99+4],$dot[6+40*99-99+5],$dot[6+40*99-99+6],$dot[6+40*99-99+7],$dot[6+40*99-99+8],$dot[6+40*99-99+9],$dot[6+40*99-99+10],$dot[6+40*99-99+11],$dot[6+40*99-99+12],$dot[6+40*99-99+13],$dot[6+40*99-99+14],$dot[6+40*99-99+15],$dot[6+40*99-99+16],$dot[6+40*99-99+17],$dot[6+40*99-99+18],$dot[6+40*99-99+19],$dot[6+40*99-99+20],$dot[6+40*99-99+21],$dot[6+40*99-99+22],$dot[6+40*99-99+23],$dot[6+40*99-99+24],$dot[6+40*99-99+25],$dot[6+40*99-99+26],$dot[6+40*99-99+27],$dot[6+40*99-99+28],$dot[6+40*99-99+29],$dot[6+40*99-99+30],$dot[6+40*99-99+31],$dot[6+40*99-99+32],$dot[6+40*99-99+33]);
///////////////////C loop
for ( $i = 1; $i <= 22; $i += 1) {
//echo $dot[$i]."_dot_";
$Xi= getX($dot[6+40*$i-$i],$dot[6+40*$i-$i+1],$dot[6+40*$i-$i+2]);
$Yi= getY($dot[6+40*$i-$i],$dot[6+40*$i-$i+1],$dot[6+40*$i-$i+2]);
$Zi= getZ($dot[6+40*$i-$i],$dot[6+40*$i-$i+1],$dot[6+40*$i-$i+2]);
$N=$i*5+5;
//echo $c5d."::";
if ($i == "1"){
$cmy=8.7;//5
$TVI_c=round(($PX-$Xi)/($PX-$C100X)*100-$cmy,2);
$c5=$TVI_c;
?>
<td bgcolor="#00CCFF"><div align="right">
<?php
if (abs($TVI_c)>3.5){
$check=1;?>
<div align="right"><font color="red">
<?php
}
echo $TVI_c;
$sum=$sum-abs($TVI_c);
?>
</font></div>
</div></td>
<?php
}
if ($i == "2"){
$cmy=16.9;//10
$TVI_c=round(($PX-$Xi)/($PX-$C100X)*100-$cmy,2);
$c10=$TVI_c;
?>
<td bgcolor="#00CCFF"><div align="right">
<?php
if (abs($TVI_c)>3.5){
$check=1;?>
<div align="right"><font color="red">
<?php
}
echo $TVI_c;
$sum=$sum-abs($TVI_c);
?>
</font></div>
</div></td><td>
<?php
}
if ($i == "3"){
$cmy=31.6;//20
$TVI_c=round(($PX-$Xi)/($PX-$C100X)*100-$cmy,2);
$c20=$TVI_c;
?>
<td bgcolor="#00CCFF"><div align="right">
<?php
if (abs($TVI_c)>3.5){
$check=1;?>
<div align="right"><font color="red">
<?php
}
echo $TVI_c;
$sum=$sum-abs($TVI_c);
?>
</font></div>
</div></td><td>
<?php
}
//30
if ($i == "4"){
$cmy=45;////30
$TVI_c=round(($PX-$Xi)/($PX-$C100X)*100-$cmy,2);
$c30=$TVI_c;
?>
<td bgcolor="#00CCFF"><div align="right">
<?php
if (abs($TVI_c)>3.5){
$check=1;?>
<div align="right"><font color="red">
<?php
}
echo $TVI_c;
$sum=$sum-abs($TVI_c);
?>
</font></div>
</div></td><td>
<?php
}
if ($i == "5"){
$cmy=56.6;//40
$TVI_c=round(($PX-$Xi)/($PX-$C100X)*100-$cmy,2);
$c40=$TVI_c;
?>
<td bgcolor="#00CCFF"><div align="right">
<?php
if (abs($TVI_c)>3.5){
$check=1;?>
<div align="right"><font color="red">
<?php
}
echo $TVI_c;
$sum=$sum-abs($TVI_c);
?>
</font></div>
</div></td><td>
<?php
}
if ($i == "6"){
$cmy=66.8;//50
$TVI_c=round(($PX-$Xi)/($PX-$C100X)*100-$cmy,2);
$c50=$TVI_c;
?>
<td bgcolor="#00CCFF"><div align="right">
<?php
if (abs($TVI_c)>3.5){
$check=1;?>
<div align="right"><font color="red">
<?php
}
echo $TVI_c;
$sum=$sum-abs($TVI_c);
?>
</font></div>
</div></td><td>
<?php
}
if ($i == "7"){
$cmy=75.8;//60
$TVI_c=round(($PX-$Xi)/($PX-$C100X)*100-$cmy,2);
$c60=$TVI_c;
?>
<td bgcolor="#00CCFF"><div align="right">
<?php
if (abs($TVI_c)>3.5){
$check=1;?>
<div align="right"><font color="red">
<?php
}
echo $TVI_c;
$sum=$sum-abs($TVI_c);
?>
</font></div>
</div></td><td>
<?php
}
if ($i == "8"){
$cmy=83.9;//70
$TVI_c=round(($PX-$Xi)/($PX-$C100X)*100-$cmy,2);
$c70=$TVI_c;
?>
<td bgcolor="#00CCFF"><div align="right">
<?php
if (abs($TVI_c)>3.5){
$check=1;?>
<div align="right"><font color="red">
<?php
}
echo $TVI_c;
$sum=$sum-abs($TVI_c);
?>
</font></div>
</div></td><td>
<?php
}
if ($i == "9"){
$cmy=91;//80
$TVI_c=round(($PX-$Xi)/($PX-$C100X)*100-$cmy,2);
$c80=$TVI_c;
?>
<td bgcolor="#00CCFF"><div align="right">
<?php
if (abs($TVI_c)>3.5){
$check=1;?>
<div align="right"><font color="red">
<?php
}
echo $TVI_c;
$sum=$sum-abs($TVI_c);
?>
</font></div>
</div></td><td>
<?php
}
if ($i == "10"){
$cmy=96.2;//90
$TVI_c=round(($PX-$Xi)/($PX-$C100X)*100-$cmy,2);
$c90=$TVI_c;
?>
<td bgcolor="#00CCFF"><div align="right">
<?php
if (abs($TVI_c)>3.5){
$check=1;?>
<div align="right"><font color="red">
<?php
}
echo $TVI_c;
$sum=$sum-abs($TVI_c);
?>
</font></div>
</div></td>
<?php
}
if ($i == "11"){
$cmy=98.3;//95
$TVI_c=round(($PX-$Xi)/($PX-$C100X)*100-$cmy,2);
$c95=$TVI_c;
?>
<td bgcolor="#00CCFF"><div align="right">
<?php
if (abs($TVI_c)>3.5){
$check=1;?>
<div align="right"><font color="red">
<?php
}
echo $TVI_c;
$sum=$sum-abs($TVI_c);
?>
</font></div>
</div></td>
<?php
}
}//for loop C
?>
</tr>
<tr>
<td bgcolor="#FFCCFF"><div align="center">M</div></td>
<?php
for ( $i = 26; $i <= 36; $i += 1) {
$Xi= getX($dot[6+40*$i-$i],$dot[6+40*$i-$i+1],$dot[6+40*$i-$i+2]);
$Yi= getY($dot[6+40*$i-$i],$dot[6+40*$i-$i+1],$dot[6+40*$i-$i+2]);
$Zi= getZ($dot[6+40*$i-$i],$dot[6+40*$i-$i+1],$dot[6+40*$i-$i+2]);
//echo $c5d."::";
if ($i == "26"){
$cmy=8.1;//5
$TVI_m=round(($PY-$Yi)/($PY-$m100Y)*100-$cmy,2);
$m5=$TVI_m;
//TVI_m = (paper_Y – nm_Y) / (paper_Y – 100m_Y) x 100 – n; 100*($N$50-N55)/($N$50-$N$64)
?>
<td bgcolor="#FFCCFF"><div align="right">
<?php
if (abs($TVI_m)>3.5){
$check=1;?>
<div align="right"><font color="red">
<?php
}
echo $TVI_m;
$sum=$sum-abs($TVI_m);
?>
</font></div>
</div></td>
<?php
}
elseif ($i == "27")
{$cmy=15.8;//10
$TVI_m=round(($PY-$Yi)/($PY-$m100Y)*100-$cmy,2);
$m10=$TVI_m;
?>
<td bgcolor="#FFCCFF"><div align="right">
<?php
if (abs($TVI_m)>3.5){
$check=1;?>
<div align="right"><font color="red">
<?php
}
echo $TVI_m;
$sum=$sum-abs($TVI_m);
?>
</font></div>
</div></td><td>
<?php
}
elseif ($i == "28")
{$cmy=30.2;//20
$TVI_m=round(($PY-$Yi)/($PY-$m100Y)*100-$cmy,2);
$m20=$TVI_m;
?>
<td bgcolor="#FFCCFF"><div align="right">
<?php
if (abs($TVI_m)>3.5){
$check=1;?>
<div align="right"><font color="red">
<?php
}
echo $TVI_m;
$sum=$sum-abs($TVI_m);
?>
</font></div>
</div></td>
<td bgcolor="#FFCCFF"></td>
<?php
}
elseif ($i == "29")
{$cmy=43.6;/////////////////////////////////////30% +-4
$TVI_m=round(($PY-$Yi)/($PY-$m100Y)*100-$cmy,2);
$m30=$TVI_m;
?>
<td bgcolor="#FFCCFF"><div align="right">
<?php
if (abs($TVI_m)>3.5){
$check=1;?>
<div align="right"><font color="red">
<?php
}
echo $TVI_m;
$sum=$sum-abs($TVI_m);
?>
</font></div>
</div></td>
<td bgcolor="#FFCCFF"></td>
<?php
}
elseif ($i == "30")
{$cmy=55.3;//40
$TVI_m=round(($PY-$Yi)/($PY-$m100Y)*100-$cmy,2);
$m40=$TVI_m;
?>
<td bgcolor="#FFCCFF"><div align="right">
<?php
if (abs($TVI_m)>3.5){
$check=1;?>
<div align="right"><font color="red">
<?php
}
echo $TVI_m;
$sum=$sum-abs($TVI_m);
?>
</font></div>
</div></td>
<td bgcolor="#FFCCFF"></td>
<?php
}
elseif ($i == "31")
{$cmy=65.6;//50
$TVI_m=round(($PY-$Yi)/($PY-$m100Y)*100-$cmy,2);
$m50=$TVI_m;
?>
<td bgcolor="#FFCCFF"><div align="right">
<?php
if (abs($TVI_m)>3.5){
$check=1;?>
<div align="right"><font color="red">
<?php
}
echo $TVI_m;
$sum=$sum-abs($TVI_m);
?>
</font></div>
</div></td>
<td bgcolor="#FFCCFF"></td>
<?php
}
elseif ($i == "32")
{$cmy=75;//60
$TVI_m=round(($PY-$Yi)/($PY-$m100Y)*100-$cmy,2);
$m60=$TVI_m;
?>
<td bgcolor="#FFCCFF"><div align="right">
<?php
if (abs($TVI_m)>3.5){
$check=1;?>
<div align="right"><font color="red">
<?php
}
echo $TVI_m;
$sum=$sum-abs($TVI_m);
?>
</font></div>
</div></td>
<td bgcolor="#FFCCFF"></td>
<?php
}
elseif ($i == "33")
{$cmy=83.4;//70
$TVI_m=round(($PY-$Yi)/($PY-$m100Y)*100-$cmy,2);
$m70=$TVI_m;
?>
<td bgcolor="#FFCCFF"><div align="right">
<?php
if (abs($TVI_m)>3.5){
$check=1;?>
<div align="right"><font color="red">
<?php
}
echo $TVI_m;
$sum=$sum-abs($TVI_m);
?>
</font></div>
</div></td>
<td bgcolor="#FFCCFF"></td>
<?php
}
elseif ($i == "34")
{$cmy=90.7;//80
$TVI_m=round(($PY-$Yi)/($PY-$m100Y)*100-$cmy,2);
$m80=$TVI_m;
?>
<td bgcolor="#FFCCFF"><div align="right">
<?php
if (abs($TVI_m)>3.5){
$check=1;?>
<div align="right"><font color="red">
<?php
}
echo $TVI_m;
$sum=$sum-abs($TVI_m);
?>
</font></div>
</div></td>
<td bgcolor="#FFCCFF"></td>
<?php
}
elseif ($i == "35")
{$cmy=93.6;//90
$TVI_m=round(($PY-$Yi)/($PY-$m100Y)*100-$cmy,2);
$m90=$TVI_m;
?>
<td bgcolor="#FFCCFF"><div align="right">
<?php
if (abs($TVI_m)>3.5){
$check=1;?>
<div align="right"><font color="red">
<?php
}
echo $TVI_m;
$sum=$sum-abs($TVI_m);
?>
</font></div>
</div></td>
<?php
}
elseif ($i == "36")
{$cmy=98.2;//95
$TVI_m=round(($PY-$Yi)/($PY-$m100Y)*100-$cmy,2);
$m95=$TVI_m;
//TVI_m = (paper_Y – nm_Y) / (paper_Y – 100m_Y) x 100 – n;
?>
<td bgcolor="#FFCCFF"><div align="right">
<?php
if (abs($TVI_m)>3.5){
$check=1;?>
<div align="right"><font color="red">
<?php
}
echo $TVI_m;
//echo $dot[6+40*$i-$i];
$sum=$sum-abs($TVI_m);
?>
</font></div>
</div></td>
<?php
}
?>
</font></div>
</div></td>
<?php
}
//for loop//M
?>
</tr>
<tr>
<td bgcolor="#FFFFCC"><div align="center">Y</div></td>
<?php
for ( $i = 51; $i <= 64; $i += 1) {
$Xi= getX($dot[6+40*$i-$i],$dot[6+40*$i-$i+1],$dot[6+40*$i-$i+2]);
$Yi= getY($dot[6+40*$i-$i],$dot[6+40*$i-$i+1],$dot[6+40*$i-$i+2]);
$Zi= getZ($dot[6+40*$i-$i],$dot[6+40*$i-$i+1],$dot[6+40*$i-$i+2]);
//echo $dot[$i]."_dot_";TVI_y = (paper_Z – ny_Z) / (paper_Z – 100y_Z) x 100 – n;
//echo $c5d."::";
if ($i == "51")
{$cmy=8.3;//5
$TVI_y=round(($PZ-$Zi)/($PZ-$Y100Z)*100-$cmy,2);
$y5=$TVI_y;
?>
<td bgcolor="#FFFFCC"><div align="right">
<?php
if (abs($TVI_y)>3.5){
$check=1;?>
<div align="right"><font color="red">
<?php
}
echo $TVI_y;
//echo $dot[6+40*$i-$i];
$sum=$sum-abs($TVI_y);
?>
</font></div>
</div></td>
<?php
}
elseif ($i == "52")
{$cmy=16.6;//10
$TVI_y=round(($PZ-$Zi)/($PZ-$Y100Z)*100-$cmy,2);
$y10=$TVI_y;
?>
<td bgcolor="#FFFFCC"><div align="right">
<?php
if (abs($TVI_y)>3.5){
$check=1;?>
<div align="right"><font color="red">
<?php
}
echo $TVI_y;
//echo $dot[6+40*$i-$i];
$sum=$sum-abs($TVI_y);
?>
</font></div>
</div></td>
<td bgcolor="#FFFFCC"></td>
<?php
}
elseif ($i == "53")
{$cmy=31.6;//20
$TVI_y=round(($PZ-$Zi)/($PZ-$Y100Z)*100-$cmy,2);
$y20=$TVI_y;
?>
<td bgcolor="#FFFFCC"><div align="right">
<?php
if (abs($TVI_y)>3.5){
$check=1;?>
<div align="right"><font color="red">
<?php
}
echo $TVI_y;
//echo $dot[6+40*$i-$i];
$sum=$sum-abs($TVI_y);
?>
</font></div>
</div></td>
<td bgcolor="#FFFFCC"></td>
<?php
}
elseif ($i == "54")
{$cmy=44.4;/////////////////////////////////////30% +-4
$TVI_y=round(($PZ-$Zi)/($PZ-$Y100Z)*100-$cmy,2);
$y30=$TVI_y;
?>
<td bgcolor="#FFFFCC"><div align="right">
<?php
if (abs($TVI_y)>3.5){
$check=1;?>
<div align="right"><font color="red">
<?php
}
echo $TVI_y;
//echo $dot[6+40*$i-$i];
$sum=$sum-abs($TVI_y);
?>
</font></div>
</div></td>
<td bgcolor="#FFFFCC"></td>
<?php
}
elseif ($i == "55")
{$cmy=56;//40
$TVI_y=round(($PZ-$Zi)/($PZ-$Y100Z)*100-$cmy,2);
$y40=$TVI_y;
?>
<td bgcolor="#FFFFCC"><div align="right">
<?php
if (abs($TVI_y)>3.5){
$check=1;?>
<div align="right"><font color="red">
<?php
}
echo $TVI_y;
//echo $dot[6+40*$i-$i];
$sum=$sum-abs($TVI_y);
?>
</font></div>
</div></td>
<td bgcolor="#FFFFCC"></td>
<?php
}
elseif ($i == "56")
{$cmy=66.6;//50
$TVI_y=round(($PZ-$Zi)/($PZ-$Y100Z)*100-$cmy,2);
$y50=$TVI_y;
?>
<td bgcolor="#FFFFCC"><div align="right">
<?php
if (abs($TVI_y)>3.5){
$check=1;?>
<div align="right"><font color="red">
<?php
}
echo $TVI_y;
//echo $dot[6+40*$i-$i];
$sum=$sum-abs($TVI_y);
?>
</font></div>
</div></td>
<td bgcolor="#FFFFCC"></td>
<?php
}
elseif ($i == "57")
{$cmy=75.8;//60
$TVI_y=round(($PZ-$Zi)/($PZ-$Y100Z)*100-$cmy,2);
$y60=$TVI_y;
?>
<td bgcolor="#FFFFCC"><div align="right">
<?php
if (abs($TVI_y)>3.5){
$check=1;?>
<div align="right"><font color="red">
<?php
}
echo $TVI_y;
//echo $dot[6+40*$i-$i];
$sum=$sum-abs($TVI_y);
?>
</font></div>
</div></td>
<td bgcolor="#FFFFCC"></td>
<?php
}
elseif ($i == "58")
{$cmy=83.8;//70
$TVI_y=round(($PZ-$Zi)/($PZ-$Y100Z)*100-$cmy,2);
$y70=$TVI_y;
?>
<td bgcolor="#FFFFCC"><div align="right">
<?php
if (abs($TVI_y)>3.5){
$check=1;?>
<div align="right"><font color="red">
<?php
}
echo $TVI_y;
//echo $dot[6+40*$i-$i];
$sum=$sum-abs($TVI_y);
?>
</font></div>
</div></td>
<td bgcolor="#FFFFCC"></td>
<?php
}
elseif ($i == "59")
{$cmy=91.1;//80
$TVI_y=round(($PZ-$Zi)/($PZ-$Y100Z)*100-$cmy,2);
$y80=$TVI_y;
?>
<td bgcolor="#FFFFCC"><div align="right">
<?php
if (abs($TVI_y)>3.5){
$check=1;?>
<div align="right"><font color="red">
<?php
}
echo $TVI_y;
//echo $dot[6+40*$i-$i];
$sum=$sum-abs($TVI_y);
?>
</font></div>
</div></td>
<td bgcolor="#FFFFCC"></td>
<?php
}
elseif ($i == "60")
{$cmy=96.3;//90
$TVI_y=round(($PZ-$Zi)/($PZ-$Y100Z)*100-$cmy,2);
$y90=$TVI_y;
?>
<td bgcolor="#FFFFCC"><div align="right">
<?php
if (abs($TVI_y)>3.5){
$check=1;?>
<div align="right"><font color="red">
<?php
}
echo $TVI_y;
//echo $dot[6+40*$i-$i];
$sum=$sum-abs($TVI_y);
?>
</font></div>
</div></td>
<?php
}
elseif ($i == "61")
{$cmy=98.3;//95
$TVI_y=round(($PZ-$Zi)/($PZ-$Y100Z)*100-$cmy,2);
$y95=$TVI_y;
?>
<td bgcolor="#FFFFCC"><div align="right">
<?php
if (abs($TVI_y)>3.5){
$check=1;?>
<div align="right"><font color="red">
<?php
}
echo $TVI_y;
//echo $dot[6+40*$i-$i];
$sum=$sum-abs($TVI_y);
?>
</font></div>
</div></td>
<?php
}
}//for loop//Y
?>
</tr>
<tr>
<td bgcolor="#CCCCCC"><div align="center">K</div></td>
<?php
for ( $i = 78; $i <= 100; $i += 1) {
$Xi= getX($dot[6+40*$i-$i],$dot[6+40*$i-$i+1],$dot[6+40*$i-$i+2]);
$Yi= getY($dot[6+40*$i-$i],$dot[6+40*$i-$i+1],$dot[6+40*$i-$i+2]);
$Zi= getZ($dot[6+40*$i-$i],$dot[6+40*$i-$i+1],$dot[6+40*$i-$i+2]);
//TVI_k = (paper_Y – nk_Y) / (paper_Y – 100k_Y) x 100 – n;
if ($i == "78")
{$cmy=9.4;///////////////////////Strat +-3
$TVI_k=round(($PY-$Yi)/($PY-$K100Y)*100-$cmy,2);
$k5=$TVI_k;
$k5m=$k5+5;
$tvk5=4.4;
?>
<td bgcolor="#CCCCCC"><div align="right">
<?php
if (abs($TVI_k)>3.5){
$check=1;?>
<div align="right"><font color="red">
<?php
}
echo $TVI_k;
//echo $dot[6+40*$i-$i];
$sum=$sum-abs($TVI_k);
?>
</font></div>
</div></td>
<?php
}
elseif ($i == "80")//10
{
$tv=10;
$cmy=(0.967175*$tv-1.525445*pow(10,-2)*pow($tv,2)+9.1347*pow(10,-5)*pow($tv,3)-3.552*pow(10,-7)*pow($tv,4))+$tv;
$TVI_k=round(($PY-$Yi)/($PY-$K100Y)*100-$cmy,2);
$k10=$TVI_k;
$k10m=$k10+$cmy-$tv;
$tvk10=$cmy-$tv;
?>
<td bgcolor="#CCCCCC"><div align="right">
<?php
if (abs($TVI_k)>3.5){
$check=1;?>
<div align="right"><font color="red">
<?php
}
echo $TVI_k;
//echo $dot[6+40*$i-$i];
$sum=$sum-abs($TVI_k);
?>
</font></div>
</div></td>
<?php
}
elseif ($i == "81")
{$tv=$tv+5;;
$cmy=(0.967175*$tv-1.525445*pow(10,-2)*pow($tv,2)+9.1347*pow(10,-5)*pow($tv,3)-3.552*pow(10,-7)*pow($tv,4))+$tv;
$TVI_k=round(($PY-$Yi)/($PY-$K100Y)*100-$cmy,2);
$k15=$TVI_k;
$k15m=$k15+$cmy-$tv;
$tvk15=$cmy-$tv;
?>
<td bgcolor="#CCCCCC"><div align="right">
<?php
if (abs($TVI_k)>3.5){
$check=1;?>
<div align="right"><font color="red">
<?php
}
echo $TVI_k;
//echo $dot[6+40*$i-$i];
$sum=$sum-abs($TVI_k);
?>
</font></div>
</div></td>
<?php
}
elseif ($i == "82")
{$tv=$tv+5;;
$cmy=(0.967175*$tv-1.525445*pow(10,-2)*pow($tv,2)+9.1347*pow(10,-5)*pow($tv,3)-3.552*pow(10,-7)*pow($tv,4))+$tv;
$TVI_k=round(($PY-$Yi)/($PY-$K100Y)*100-$cmy,2);
$k20=$TVI_k;
$k20m=$k20+$cmy-$tv;
$tvk20=$cmy-$tv;
?>
<td bgcolor="#CCCCCC"><div align="right">
<?php
if (abs($TVI_k)>3.5){
$check=1;?>
<div align="right"><font color="red">
<?php
}
echo $TVI_k;
//echo $dot[6+40*$i-$i];
$sum=$sum-abs($TVI_k);
?>
</font></div>
</div></td>
<?php
}
elseif ($i == "83")
{$tv=$tv+5;;
$cmy=(0.967175*$tv-1.525445*pow(10,-2)*pow($tv,2)+9.1347*pow(10,-5)*pow($tv,3)-3.552*pow(10,-7)*pow($tv,4))+$tv;
$TVI_k=round(($PY-$Yi)/($PY-$K100Y)*100-$cmy,2);
$k25=$TVI_k;
$k25m=$k25+$cmy-$tv;
$tvk25=$cmy-$tv;
?>
<td bgcolor="#CCCCCC"><div align="right">
<?php
if (abs($TVI_k)>3.5){
$check=1;?>
<div align="right"><font color="red">
<?php
}
echo $TVI_k;
//echo $dot[6+40*$i-$i];
$sum=$sum-abs($TVI_k);
?>
</font></div>
</div></td>
<?php
}
elseif ($i == "84")
{$tv=$tv+5;;
$cmy=(0.967175*$tv-1.525445*pow(10,-2)*pow($tv,2)+9.1347*pow(10,-5)*pow($tv,3)-3.552*pow(10,-7)*pow($tv,4))+$tv;////////////////////////////////K30 start +-4
$TVI_k=round(($PY-$Yi)/($PY-$K100Y)*100-$cmy,2);
$k30=$TVI_k;
$k30m=$k30+$cmy-$tv;
$tvk30=$cmy-$tv;
?>
<td bgcolor="#CCCCCC"><div align="right">
<?php
if (abs($TVI_k)>3.5){
$check=1;?>
<div align="right"><font color="red">
<?php
}
echo $TVI_k;
//echo $dot[6+40*$i-$i];
$sum=$sum-abs($TVI_k);
?>
</font></div>
</div></td>
<?php
}
elseif ($i == "85")
{$tv=$tv+5;;
$cmy=(0.967175*$tv-1.525445*pow(10,-2)*pow($tv,2)+9.1347*pow(10,-5)*pow($tv,3)-3.552*pow(10,-7)*pow($tv,4))+$tv;
$TVI_k=round(($PY-$Yi)/($PY-$K100Y)*100-$cmy,2);
$k35=$TVI_k;
$k35m=$k35+$cmy-$tv;
$tvk35=$cmy-$tv;
?>
<td bgcolor="#CCCCCC"><div align="right">
<?php
if (abs($TVI_k)>3.5){
$check=1;?>
<div align="right"><font color="red">
<?php
}
echo $TVI_k;
//echo $dot[6+40*$i-$i];
$sum=$sum-abs($TVI_k);
?>
</font></div>
</div></td>
<?php
}
elseif ($i == "86")
{$tv=$tv+5;;
$cmy=(0.967175*$tv-1.525445*pow(10,-2)*pow($tv,2)+9.1347*pow(10,-5)*pow($tv,3)-3.552*pow(10,-7)*pow($tv,4))+$tv;
$TVI_k=round(($PY-$Yi)/($PY-$K100Y)*100-$cmy,2);
$k40=$TVI_k;
$k40m=$k40+$cmy-$tv;
$tvk40=$cmy-$tv;
?>
<td bgcolor="#CCCCCC"><div align="right">
<?php
if (abs($TVI_k)>3.5){
$check=1;?>
<div align="right"><font color="red">
<?php
}
echo $TVI_k;
//echo $dot[6+40*$i-$i];
$sum=$sum-abs($TVI_k);
?>
</font></div>
</div></td>
<?php
}
elseif ($i == "87")
{$tv=$tv+5;;
$cmy=(0.967175*$tv-1.525445*pow(10,-2)*pow($tv,2)+9.1347*pow(10,-5)*pow($tv,3)-3.552*pow(10,-7)*pow($tv,4))+$tv;
$TVI_k=round(($PY-$Yi)/($PY-$K100Y)*100-$cmy,2);
$k45=$TVI_k;
$k45m=$k45+$cmy-$tv;
$tvk45=$cmy-$tv;
?>
<td bgcolor="#CCCCCC"><div align="right">
<?php
if (abs($TVI_k)>3.5){
$check=1;?>
<div align="right"><font color="red">
<?php
}
echo $TVI_k;
//echo $dot[6+40*$i-$i];
$sum=$sum-abs($TVI_k);
?>
</font></div>
</div></td>
<?php
}
elseif ($i == "88")
{$tv=$tv+5;;
$cmy=(0.967175*$tv-1.525445*pow(10,-2)*pow($tv,2)+9.1347*pow(10,-5)*pow($tv,3)-3.552*pow(10,-7)*pow($tv,4))+$tv;
$TVI_k=round(($PY-$Yi)/($PY-$K100Y)*100-$cmy,2);
$k50=$TVI_k;
$k50m=$k50+$cmy-$tv;
$tvk50=$cmy-$tv;
?>
<td bgcolor="#CCCCCC"><div align="right">
<?php
if (abs($TVI_k)>3.5){
$check=1;?>
<div align="right"><font color="red">
<?php
}
echo $TVI_k;
//echo $dot[6+40*$i-$i];
$sum=$sum-abs($TVI_k);
?>
</font></div>
</div></td>
<?php
}
elseif ($i == "89")
{$tv=$tv+5;;
$cmy=(0.967175*$tv-1.525445*pow(10,-2)*pow($tv,2)+9.1347*pow(10,-5)*pow($tv,3)-3.552*pow(10,-7)*pow($tv,4))+$tv;
$TVI_k=round(($PY-$Yi)/($PY-$K100Y)*100-$cmy,2);
$k55=$TVI_k;
$k55m=$k55+$cmy-$tv;
$tvk55=$cmy-$tv;
?>
<td bgcolor="#CCCCCC"><div align="right">
<?php
if (abs($TVI_k)>3.5){
$check=1;?>
<div align="right"><font color="red">
<?php
}
echo $TVI_k;
//echo $dot[6+40*$i-$i];
$sum=$sum-abs($TVI_k);
?>
</font></div>
</div></td>
<?php
}
elseif ($i == "90")
{$tv=$tv+5;;
$cmy=(0.967175*$tv-1.525445*pow(10,-2)*pow($tv,2)+9.1347*pow(10,-5)*pow($tv,3)-3.552*pow(10,-7)*pow($tv,4))+$tv;
$TVI_k=round(($PY-$Yi)/($PY-$K100Y)*100-$cmy,2);
$k60=$TVI_k;
$k60m=$k60+$cmy-$tv;
$tvk60=$cmy-$tv;
?>
<td bgcolor="#CCCCCC"><div align="right">
<?php
if (abs($TVI_k)>3.5){
$check=1;?>
<div align="right"><font color="red">
<?php
}
echo $TVI_k;
//echo $dot[6+40*$i-$i];
$sum=$sum-abs($TVI_k);
?>
</font></div>
</div></td>
<?php
}
elseif ($i == "91")
{$tv=$tv+5;;
$cmy=(0.967175*$tv-1.525445*pow(10,-2)*pow($tv,2)+9.1347*pow(10,-5)*pow($tv,3)-3.552*pow(10,-7)*pow($tv,4))+$tv;
$TVI_k=round(($PY-$Yi)/($PY-$K100Y)*100-$cmy,2);
$k65=$TVI_k;
$k65m=$k65+$cmy-$tv;
$tvk65=$cmy-$tv;
?>
<td bgcolor="#CCCCCC"><div align="right">
<?php
if (abs($TVI_k)>3.5){
$check=1;?>
<div align="right"><font color="red">
<?php
}
echo $TVI_k;
//echo $dot[6+40*$i-$i];
$sum=$sum-abs($TVI_k);
?>
</font></div>
</div></td>
<?php
}
elseif ($i == "92")
{$tv=$tv+5;;
$cmy=(0.967175*$tv-1.525445*pow(10,-2)*pow($tv,2)+9.1347*pow(10,-5)*pow($tv,3)-3.552*pow(10,-7)*pow($tv,4))+$tv;///////////////////K70% Start +-3
$TVI_k=round(($PY-$Yi)/($PY-$K100Y)*100-$cmy,2);
$k70=$TVI_k;
$k70m=$k70+$cmy-$tv;
$tvk70=$cmy-$tv;
?>
<td bgcolor="#CCCCCC"><div align="right">
<?php
if (abs($TVI_k)>3.5){
$check=1;?>
<div align="right"><font color="red">
<?php
}
echo $TVI_k;
//echo $dot[6+40*$i-$i];
$sum=$sum-abs($TVI_k);
?>
</font></div>
</div></td>
<?php
}
elseif ($i == "93")
{$tv=$tv+5;;
$cmy=(0.967175*$tv-1.525445*pow(10,-2)*pow($tv,2)+9.1347*pow(10,-5)*pow($tv,3)-3.552*pow(10,-7)*pow($tv,4))+$tv;
$TVI_k=round(($PY-$Yi)/($PY-$K100Y)*100-$cmy,2);
$k75=$TVI_k;
$k75m=$k75+$cmy-$tv;
$tvk75=$cmy-$tv;
?>
<td bgcolor="#CCCCCC"><div align="right">
<?php
if (abs($TVI_k)>3.5){
$check=1;?>
<div align="right"><font color="red">
<?php
}
echo $TVI_k;
//echo $dot[6+40*$i-$i];
$sum=$sum-abs($TVI_k);
?>
</font></div>
</div></td>
<?php
}
elseif ($i == "94")
{$tv=$tv+5;;
$cmy=(0.967175*$tv-1.525445*pow(10,-2)*pow($tv,2)+9.1347*pow(10,-5)*pow($tv,3)-3.552*pow(10,-7)*pow($tv,4))+$tv;
$TVI_k=round(($PY-$Yi)/($PY-$K100Y)*100-$cmy,2);
$k80=$TVI_k;
$k80m=$k80+$cmy-$tv;
$tvk80=$cmy-$tv;
?>
<td bgcolor="#CCCCCC"><div align="right">
<?php
if (abs($TVI_k)>3.5){
$check=1;?>
<div align="right"><font color="red">
<?php
}
echo $TVI_k;
//echo $dot[6+40*$i-$i];
$sum=$sum-abs($TVI_k);
?>
</font></div>
</div></td>
<?php
}
elseif ($i == "95")
{$tv=$tv+5;;
$cmy=(0.967175*$tv-1.525445*pow(10,-2)*pow($tv,2)+9.1347*pow(10,-5)*pow($tv,3)-3.552*pow(10,-7)*pow($tv,4))+$tv;
$TVI_k=round(($PY-$Yi)/($PY-$K100Y)*100-$cmy,2);
$k85=$TVI_k;
$k85m=$k85+$cmy-$tv;
$tvk85=$cmy-$tv;
?>
<td bgcolor="#CCCCCC"><div align="right">
<?php
if (abs($TVI_k)>3.5){
$check=1;?>
<div align="right"><font color="red">
<?php
}
echo $TVI_k;
//echo $dot[6+40*$i-$i];
$sum=$sum-abs($TVI_k);
?>
</font></div>
</div></td>
<?php
}
elseif ($i == "96")
{$tv=$tv+5;;
$cmy=(0.967175*$tv-1.525445*pow(10,-2)*pow($tv,2)+9.1347*pow(10,-5)*pow($tv,3)-3.552*pow(10,-7)*pow($tv,4))+$tv;
$TVI_k=round(($PY-$Yi)/($PY-$K100Y)*100-$cmy,2);
$k90=$TVI_k;
$k90m=$k90+$cmy-$tv;
$tvk90=$cmy-$tv;
?>
<td bgcolor="#CCCCCC"><div align="right">
<?php
if (abs($TVI_k)>3.5){
$check=1;?>
<div align="right"><font color="red">
<?php
}
echo $TVI_k;
//echo $dot[6+40*$i-$i];
$sum=$sum-abs($TVI_k);
?>
</font></div>
</div></td>
<?php
}
elseif ($i == "97")
{$tv=$tv+5;;
$cmy=(0.967175*$tv-1.525445*pow(10,-2)*pow($tv,2)+9.1347*pow(10,-5)*pow($tv,3)-3.552*pow(10,-7)*pow($tv,4))+$tv;
$TVI_k=round(($PY-$Yi)/($PY-$K100Y)*100-$cmy,2);
$k95=$TVI_k;
$k95m=$k95+$cmy-$tv;
$tvk95=$cmy-$tv;
?>
<td bgcolor="#CCCCCC"><div align="right">
<?php
if (abs($TVI_k)>3.5){
$check=1;?>
<div align="right"><font color="red">
<?php
}
echo $TVI_k;
//echo $dot[6+40*$i-$i];
$sum=$sum-abs($TVI_k);
?>
</font></div>
</div></td>
<?php
}
}//for loop//K
?>
</tr>
<tr>
<td><div align="center">wdL(K)</div></td>
<?php
for ( $i = 76; $i <= 99; $i += 1) {
$KL=$dot[6+40*$i-$i];
if ($i == "78")
{
$dKL=round(($KL-91),2);
$rounddv=$dKL*(1-max(0,(5-50)/50*0.75));
$dl5=$rounddv;
?>
<td bgcolor="#CCCCCC"><div align="right">
<?php
if (abs($rounddv)>3){
$check=1;?>
<div align="right"><font color="red">
<?php
}
echo $rounddv;$sum=$sum-abs($rounddv);
?>
</font></div>
</div></td>
<?php
}
elseif ($i == "80")
{
$dKL=round(($KL-88),2);
$rounddv=$dKL*(1-max(0,(10-50)/50*0.75));
$dl10=$rounddv;
?>
<td bgcolor="#CCCCCC"><div align="right">
<?php
if (abs($rounddv)>3){
$check=1;?>
<div align="right"><font color="red">
<?php
}
//echo $rounddv;$sum=$sum-abs($rounddv);
echo $rounddv;$sum=$sum-abs($rounddv);
?>
</font></div>
</div></td>
<?php
}
elseif ($i == "81")
{
$dKL=round(($KL-84.4),2);
$rounddv=$dKL*(1-max(0,(15-50)/50*0.75));
$dl15=$rounddv;
?>
<td bgcolor="#CCCCCC"><div align="right">
<?php
if (abs($rounddv)>3){
$check=1;?>
<div align="right"><font color="red">
<?php
}
echo $rounddv;$sum=$sum-abs($rounddv);
?>
</font></div>
</div></td>
<?php
}
elseif ($i == "82")
{
$dl=round(($KL-80.88),2);
$rounddv=$dl*(1-max(0,(20-50)/50*0.75));
$dl20=$rounddv;
?>
<td bgcolor="#CCCCCC"><div align="right">
<?php
if (abs($rounddv)>3){
$check=1;?>
<div align="right"><font color="red">
<?php
}
echo $rounddv;$sum=$sum-abs($rounddv);
?>
</font></div>
</div></td>
<?php
}
elseif ($i == "83")
{
$dl=round(($KL-77.43),2);
$rounddv=$dl*(1-max(0,(25-50)/50*0.75));
$dl25=$rounddv;
?>
<td bgcolor="#CCCCCC"><div align="right">
<?php
if (abs($rounddv)>3){
$check=1;?>
<div align="right"><font color="red">
<?php
}
echo $rounddv;$sum=$sum-abs($rounddv);
?>
</font></div>
</div></td>
<?php
}
elseif ($i == "84")
{
$dl=round(($KL-73.89),2);
$rounddv=$dl*(1-max(0,(30-50)/50*0.75));
$dl30=$rounddv;
?>
<td bgcolor="#CCCCCC"><div align="right">
<?php
if (abs($rounddv)>3){
$check=1;?>
<div align="right"><font color="red">
<?php
}
echo $rounddv;$sum=$sum-abs($rounddv);
?>
</font></div>
</div></td>
<?php
}
elseif ($i == "85")
{
$dl=round(($KL-71),2);
$rounddv=$dl*(1-max(0,(35-50)/50*0.75));
$dl35=$rounddv;
?>
<td bgcolor="#CCCCCC"><div align="right">
<?php
if (abs($rounddv)>3){
$check=1;?>
<div align="right"><font color="red">
<?php
}
echo $rounddv;$sum=$sum-abs($rounddv);
?>
</font></div>
</div></td>
<?php
}
elseif ($i == "86")
{$cmy=56;//40
$dl=round(($KL-67.04),2);
$rounddv=$dl*(1-max(0,(40-50)/50*0.75));
$dl40=$rounddv;
?>
<td bgcolor="#CCCCCC"><div align="right">
<?php
if (abs($rounddv)>3){
$check=1;?>
<div align="right"><font color="red">
<?php
}
echo $rounddv;$sum=$sum-abs($rounddv);
?>
</font></div>
</div></td>
<?php
}
elseif ($i == "87")
{$cmy=61.7;//45
$dl=round(($KL-64),2);
$rounddv=$dl*(1-max(0,(45-50)/50*0.75));
$dl45=$rounddv;
?>
<td bgcolor="#CCCCCC"><div align="right">
<?php
if (abs($rounddv)>3){
$check=1;?>
<div align="right"><font color="red">
<?php
}
echo $rounddv;$sum=$sum-abs($rounddv);
?>
</font></div>
</div></td>
<?php
}
elseif ($i == "88")
{$cmy=67;//50
$dl=round(($KL-60),2);
$rounddv=$dl*(1-max(0,(50-50)/50*0.75));
$dl50=$rounddv;
?>
<td bgcolor="#CCCCCC"><div align="right">
<?php
if (abs($rounddv)>3){
$check=1;?>
<div align="right"><font color="red">
<?php
}
echo $rounddv;$sum=$sum-abs($rounddv);
?>
</font></div>
</div></td>
<?php
}
elseif ($i == "89")
{$cmy=72;//55
$dl=round(($KL-56),2);
$rounddv=$dl*(1-max(0,(55-50)/50*0.75));
$dl55=$rounddv;
?>
<td bgcolor="#CCCCCC"><div align="right">
<?php
if (abs($rounddv)>3){
$check=1;?>
<div align="right"><font color="red">
<?php
}
echo round($rounddv,2);$sum=$sum-abs($rounddv);
?>
</font></div>
</div></td>
<?php
}
elseif ($i == "90")
{$cmy=76.6;//60
$dl=round(($KL-53),2);
$rounddv=$dl*(1-max(0,(60-50)/50*0.75));
$dl60=$rounddv;
?>
<td bgcolor="#CCCCCC"><div align="right">
<?php
if (abs($rounddv)>3){
$check=1;?>
<div align="right"><font color="red">
<?php
}
echo round($rounddv,2);$sum=$sum-abs($rounddv);
?>
</font></div>
</div></td>
<?php
}
elseif ($i == "91")
{$cmy=80.9;//65
$dl=round(($KL-49),2);
$rounddv=$dl*(1-max(0,(65-50)/50*0.75));
$dl65=$rounddv;
?>
<td bgcolor="#CCCCCC"><div align="right">
<?php
if (abs($rounddv)>3){
$check=1;?>
<div align="right"><font color="red">
<?php
}
echo round($rounddv,2);$sum=$sum-abs($rounddv);
?>
</font></div>
</div></td>
<?php
}
elseif ($i == "92")
{$cmy=84.9;////////////////////K70% Start +-3
$dl=round(($KL-45),2);
$rounddv=$dl*(1-max(0,(70-50)/50*0.75));
$dl70=$rounddv;
?>
<td bgcolor="#CCCCCC"><div align="right">
<?php
if (abs($rounddv)>3){
$check=1;?>
<div align="right"><font color="red">
<?php
}
echo round($rounddv,2);$sum=$sum-abs($rounddv);
?>
</font></div>
</div></td>
<?php
}
elseif ($i == "93")
{$cmy=88.4;//75
$dl=round(($KL-40),2);
$rounddv=$dl*(1-max(0,(75-50)/50*0.75));
$dl75=$rounddv;
?>
<td bgcolor="#CCCCCC"><div align="right">
<?php
if (abs($rounddv)>3){
$check=1;?>
<div align="right"><font color="red">
<?php
}
echo round($rounddv,2);$sum=$sum-abs($rounddv);
?>
</font></div>
</div></td>
<?php
}
elseif ($i == "94")
{$cmy=91.5;//80
$dl=round(($KL-36),2);
$rounddv=$dl*(1-max(0,(80-50)/50*0.75));
$dl80=$rounddv;
?>
<td bgcolor="#CCCCCC"><div align="right">
<?php
if (abs($rounddv)>3){
$check=1;?>
<div align="right"><font color="red">
<?php
}
echo round($rounddv,2);$sum=$sum-abs($rounddv);
?>
</font></div>
</div></td>
<?php
}
elseif ($i == "95")
{$cmy=94.3;//
$dl=round(($KL-31),2);
$rounddv=$dl*(1-max(0,(85-50)/50*0.75));
$dl85=$rounddv;
?>
<td bgcolor="#CCCCCC"><div align="right">
<?php
if (abs($rounddv)>3){
$check=1;?>
<div align="right"><font color="red">
<?php
}
echo round($rounddv,2);$sum=$sum-abs($rounddv);
?>
</font></div>
</div></td>
<?php
}
elseif ($i == "96")
{$cmy=96.6;
$dl=round(($KL-26),2);
$rounddv=$dl*(1-max(0,(90-50)/50*0.75));
$dl90=$rounddv;
?>
<td bgcolor="#CCCCCC"><div align="right">
<?php
if (abs($rounddv)>3){
$check=1;?>
<div align="right"><font color="red">
<?php
}
echo round($rounddv,2);$sum=$sum-abs($rounddv);
?>
</font></div>
</div></td>
<?php
}
elseif ($i == "97")
{$cmy=98.5;
$dl=round(($KL-20),2);
$rounddv=$dl*(1-max(0,(95-50)/50*0.75));
$dl95=$rounddv;
?>
<td bgcolor="#CCCCCC"><div align="right">
<?php
if (abs($rounddv)>3){
$check=1;?>
<div align="right"><font color="red">
<?php
}
echo round($rounddv,2);$sum=$sum-abs($rounddv);
?>
</font></div>
</div></td>
<td><?php echo round($kD-$pD,2);?> </td>
<?php
$Maxdl=max(abs($dl5),abs($dl10),abs($dl15),abs($dl20),abs($dl25),abs($dl30),abs($dl35),abs($dl40),abs($dl45),abs($dl50),abs($dl55),abs($dl60),abs($dl65),abs($dl70),abs($dl75),abs($dl80),abs($dl85),abs($dl90),abs($dl95));
$Avgdl=abs(($dl5+$dl10+$dl15+$dl20+$dl25+$dl30+$dl35+$dl40+$dl45+$dl50+$dl55+$dl60+$dl65+$dl70+$dl75+$dl80+$dl85+$dl90+$dl95)/19);
}
}//for loop//K
?>
</tr>
<tr>
<td><div align="center">wdL(CMY)</div></td>
<?php
for ( $i = 103; $i <= 127; $i += 1) {///
$GL=$dot[6+40*$i-$i];
if ($i == "103")
{$cmy=8;///////////////////////Strat +-3
$dl=round(($GL-90),2);
$rounddv=$dl*(1-max(0,(5-50)/50*0.75));
$dlc5=$rounddv;
?>
<td bgcolor="#DDDDCD"><div align="right">
<?php
if (abs($rounddv)>3){
$check=1;?>
<div align="right"><font color="red">
<?php
}
echo $rounddv;$sum=$sum-abs($rounddv);
?>
</font></div>
</div></td>
<?php
}
elseif ($i == "105")
{$cmy=15.6;//10
$dl=round(($GL-87),2);
$rounddv=$dl*(1-max(0,(10-50)/50*0.75));
$dlc10=$rounddv;
?>
<td bgcolor="#DDDDCD"><div align="right">
<?php
if (abs($rounddv)>3){
$check=1;?>
<div align="right"><font color="red">
<?php
}
//echo $rounddv;$sum=$sum-abs($rounddv);
echo $rounddv;$sum=$sum-abs($rounddv);
?>
</font></div>
</div></td>
<?php
}
elseif ($i == "106")
{$cmy=23.1;//15
$dl=round(($GL-83),2);
$rounddv=$dl*(1-max(0,(15-50)/50*0.75));
$dlc15=$rounddv;
?>
<td bgcolor="#DDDDCD"><div align="right">
<?php
if (abs($rounddv)>3){
$check=1;?>
<div align="right"><font color="red">
<?php
}
echo $rounddv;$sum=$sum-abs($rounddv);
?>
</font></div>
</div></td>
<?php
}
elseif ($i == "107")
{$cmy=30.2;
$dl=round(($GL-80),2);
$rounddv=$dl*(1-max(0,(20-50)/50*0.75));
$dlc20=$rounddv;
?>
<td bgcolor="#DDDDCD"><div align="right">
<?php
if (abs($rounddv)>3){
$check=1;?>
<div align="right"><font color="red">
<?php
}
echo $rounddv;$sum=$sum-abs($rounddv);
?>
</font></div>
</div></td>
<?php
}
elseif ($i == "108")
{$cmy=37.1;
$dl=round(($GL-76),2);
$rounddv=$dl*(1-max(0,(25-50)/50*0.75));
$dlc25=$rounddv;
?>
<td bgcolor="#DDDDCD"><div align="right">
<?php
if (abs($rounddv)>3){
$check=1;?>
<div align="right"><font color="red">
<?php
}
echo $rounddv;$sum=$sum-abs($rounddv);
?>
</font></div>
</div></td>
<?php
}
elseif ($i == "109")
{$cmy=43.7;////////////////////////////////K30 start +-4
$dl=round(($GL-72),2);
$rounddv=$dl*(1-max(0,(30-50)/50*0.75));
$dlc30=$rounddv;
?>
<td bgcolor="#DDDDCD"><div align="right">
<?php
if (abs($rounddv)>3){
$check=1;?>
<div align="right"><font color="red">
<?php
}
echo $rounddv;$sum=$sum-abs($rounddv);
?>
</font></div>
</div></td>
<?php
}
elseif ($i == "110")
{$cmy=50;
$dl=round(($GL-68),2);
$rounddv=$dl*(1-max(0,(35-50)/50*0.75));
$dlc35=$rounddv;
?>
<td bgcolor="#DDDDCD"><div align="right">
<?php
if (abs($rounddv)>3){
$check=1;?>
<div align="right"><font color="red">
<?php
}
echo $rounddv;$sum=$sum-abs($rounddv);
?>
</font></div>
</div></td>
<?php
}
elseif ($i == "111")
{$cmy=56;
$dl=round(($GL-65),2);
$rounddv=$dl*(1-max(0,(40-50)/50*0.75));
$dlc40=$rounddv;
?>
<td bgcolor="#DDDDCD"><div align="right">
<?php
if (abs($rounddv)>3){
$check=1;?>
<div align="right"><font color="red">
<?php
}
echo $rounddv;$sum=$sum-abs($rounddv);
?>
</font></div>
</div></td>
<?php
}
elseif ($i == "112")
{$cmy=61.7;
$dl=round(($GL-61),2);
$rounddv=$dl*(1-max(0,(45-50)/50*0.75));
$dlc45=$rounddv;
?>
<td bgcolor="#DDDDCD"><div align="right">
<?php
if (abs($rounddv)>3){
$check=1;?>
<div align="right"><font color="red">
<?php
}
echo $rounddv;$sum=$sum-abs($rounddv);
?>
</font></div>
</div></td>
<?php
}
elseif ($i == "113")
{$cmy=67;
$dl=round(($GL-58),2);
$rounddv=$dl*(1-max(0,(50-50)/50*0.75));
$dlc50=$rounddv;
?>
<td bgcolor="#DDDDCD"><div align="right">
<?php
if (abs($rounddv)>3){
$check=1;?>
<div align="right"><font color="red">
<?php
}
echo $rounddv;$sum=$sum-abs($rounddv);
?>
</font></div>
</div></td>
<?php
}
elseif ($i == "114")
{$cmy=72;
$dl=round(($GL-54),2);
$rounddv=$dl*(1-max(0,(55-50)/50*0.75));
$dlc55=$rounddv;
?>
<td bgcolor="#DDDDCD"><div align="right">
<?php
if (abs($rounddv)>3){
$check=1;?>
<div align="right"><font color="red">
<?php
}
echo round($rounddv,2);$sum=$sum-abs($rounddv);
?>
</font></div>
</div></td>
<?php
}
elseif ($i == "115")
{$cmy=76.6;
$dl=round(($GL-50),2);
$rounddv=$dl*(1-max(0,(60-50)/50*0.75));
$dlc60=$rounddv;
?>
<td bgcolor="#DDDDCD"><div align="right">
<?php
if (abs($rounddv)>3){
$check=1;?>
<div align="right"><font color="red">
<?php
}
echo round($rounddv,2);$sum=$sum-abs($rounddv);
?>
</font></div>
</div></td>
<?php
}
elseif ($i == "116")
{$cmy=80.9;
$dl=round(($GL-47),2);
$rounddv=$dl*(1-max(0,(65-50)/50*0.75));
$dlc65=$rounddv;
?>
<td bgcolor="#DDDDCD"><div align="right">
<?php
if (abs($rounddv)>3){
$check=1;?>
<div align="right"><font color="red">
<?php
}
echo round($rounddv,2);$sum=$sum-abs($rounddv);
?>
</font></div>
</div></td>
<?php
}
elseif ($i == "117")
{$cmy=84.9;////////////////////K70% Start +-3
$dl=round(($GL-43),2);
$rounddv=$dl*(1-max(0,(70-50)/50*0.75));
$dlc70=$rounddv;
?>
<td bgcolor="#DDDDCD"><div align="right">
<?php
if (abs($rounddv)>3){
$check=1;?>
<div align="right"><font color="red">
<?php
}
echo round($rounddv,2);$sum=$sum-abs($rounddv);
?>
</font></div>
</div></td>
<?php
}
elseif ($i == "118")
{$cmy=88.4;
$dl=round(($GL-39),2);
$rounddv=$dl*(1-max(0,(75-50)/50*0.75));
$dlc75=$rounddv;
?>
<td bgcolor="#DDDDCD"><div align="right">
<?php
if (abs($rounddv)>3){
$check=1;?>
<div align="right"><font color="red">
<?php
}
echo round($rounddv,2);$sum=$sum-abs($rounddv);
?>
</font></div>
</div></td>
<?php
}
elseif ($i == "119")
{$cmy=91.5;
$dl=round(($GL-36),2);
$rounddv=$dl*(1-max(0,(80-50)/50*0.75));
$dlc80=$rounddv;
?>
<td bgcolor="#DDDDCD"><div align="right">
<?php
if (abs($rounddv)>3){
$check=1;?>
<div align="right"><font color="red">
<?php
}
echo round($rounddv,2);$sum=$sum-abs($rounddv);
?>
</font></div>
</div></td>
<?php
}
elseif ($i == "120")
{$cmy=94.3;
$dl=round(($GL-32),2);
$rounddv=$dl*(1-max(0,(85-50)/50*0.75));
$dlc85=$rounddv;
?>
<td bgcolor="#DDDDCD"><div align="right">
<?php
if (abs($rounddv)>3){
$check=1;?>
<div align="right"><font color="red">
<?php
}
echo round($rounddv,2);$sum=$sum-abs($rounddv);
?>
</font></div>
</div></td>
<?php
}
elseif ($i == "121")
{$cmy=96.6;
$dl=round(($GL-29),2);
$rounddv=$dl*(1-max(0,(90-50)/50*0.75));
$dlc90=$rounddv;
?>
<td bgcolor="#DDDDCD"><div align="right">
<?php
if (abs($rounddv)>3){
$check=1;?>
<div align="right"><font color="red">
<?php
}
echo round($rounddv,2);$sum=$sum-abs($rounddv);
?>
</font></div>
</div></td>
<?php
}
elseif ($i == "122")
{$cmy=98.5;
$dl=round(($GL-26),2);
$rounddv=$dl*(1-max(0,(95-50)/50*0.75));
$dlc95=$rounddv;
?>
<td bgcolor="#DDDDCD"><div align="right">
<?php
if (abs($rounddv)>3){
$check=1;?>
<div align="right"><font color="red">
<?php
}
echo round($rounddv,2);$sum=$sum-abs($rounddv);
?>
</font></div>
</div></td>
<td><?php echo round($cmyD-$pD,2);?> </td>
<?php
$Maxdlc=max(abs($dlc5),abs($dlc10),abs($dlc15),abs($dlc20),abs($dlc25),abs($dlc30),abs($dlc35),abs($dlc40),abs($dlc45),abs($dlc50),abs($dlc55),abs($dlc60),abs($dlc65),abs($dlc70),abs($dlc75),abs($dlc80),abs($dlc85),abs($dlc90),abs($dlc95));
$Avgdlc=abs(($dlc5+$dlc10+$dlc15+$dlc20+$dlc25+$dlc30+$dlc35+$dlc40+$dlc45+$dlc50+$dlc55+$dlc60+$dlc65+$dlc70+$dlc75+$dlc80+$dlc85+$dlc90+$dlc95)/19);
}
}//for loop/ F line 1305
?>
</tr>
<tr>
<td><div align="center">wdF(CMY)</div></td>
<?php
$ppa=$dot[6+40*25-25+1];
$ppb=$dot[6+40*25-25+2];
$Pa=$dot[6+40*25-25+1];
$Pb=$dot[6+40*25-25+2];
for ( $i = 101; $i <= 125; $i += 1) {
$Ga=$dot[6+40*$i-$i+1];
$Gb=$dot[6+40*$i-$i+2];
if ($i == "103")
{
$dt=5;
$wa=$ppa*(100-$dt)/100;
$wb=$ppb*(100-$dt)/100;
$df= pow((pow(($Ga-$wa),2))+(pow(($Gb-$wb),2)),0.5)*(1-max(0,($dt-50)/50*0.75));
$df5=$df;
?>
<td bgcolor="#CCDDDD"><div align="right">
<?php
if (abs($df)>3){
$check=1;?>
<div align="right"><font color="red">
<?php
}
echo round($df,2);$sum=$sum-abs($rounddv);
?>
</font></div>
</div></td>
<?php
}
elseif ($i == "105")
{
$dt=10;
$wa=$ppa*(100-$dt)/100;
$wb=$ppb*(100-$dt)/100;
$df= pow((pow(($Ga-$wa),2))+(pow(($Gb-$wb),2)),0.5)*(1-max(0,($dt-50)/50*0.75));
$df10=$df;
?>
<td bgcolor="#CCDDDD"><div align="right">
<?php
if (abs($df)>3){
$check=1;?>
<div align="right"><font color="red">
<?php
}
echo round($df,2);$sum=$sum-abs($rounddv);
?>
</font></div>
</div></td>
<?php
}
elseif ($i == "106")
{
$dt=15;
$wa=$ppa*(100-$dt)/100;
$wb=$ppb*(100-$dt)/100;
$df= pow((pow(($Ga-$wa),2))+(pow(($Gb-$wb),2)),0.5)*(1-max(0,($dt-50)/50*0.75));
$df15=$df;
?>
<td bgcolor="#CCDDDD"><div align="right">
<?php
if (abs($df)>3){
$check=1;?>
<div align="right"><font color="red">
<?php
}
echo round($df,2);$sum=$sum-abs($rounddv);
?>
</font></div>
</div></td>
<?php
}
elseif ($i == "107")
{
$dt=20;
$wa=$ppa*(100-$dt)/100;
$wb=$ppb*(100-$dt)/100;
$df= pow((pow(($Ga-$wa),2))+(pow(($Gb-$wb),2)),0.5)*(1-max(0,($dt-50)/50*0.75));
$df20=$df;
?>
<td bgcolor="#CCDDDD"><div align="right">
<?php
if (abs($df)>3){
$check=1;?>
<div align="right"><font color="red">
<?php
}
echo round($df,2);$sum=$sum-abs($rounddv);
?>
</font></div>
</div></td>
<?php
}
elseif ($i == "108")
{
$dt=25;
$wa=$ppa*(100-$dt)/100;
$wb=$ppb*(100-$dt)/100;
$df= pow((pow(($Ga-$wa),2))+(pow(($Gb-$wb),2)),0.5)*(1-max(0,($dt-50)/50*0.75));
$df25=$df;
?>
<td bgcolor="#CCDDDD"><div align="right">
<?php
if (abs($df)>3){
$check=1;?>
<div align="right"><font color="red">
<?php
}
echo round($df,2);$sum=$sum-abs($rounddv);
?>
</font></div>
</div></td>
<?php
}
elseif ($i == "109")
{
$dt=30;
$wa=$ppa*(100-$dt)/100;
$wb=$ppb*(100-$dt)/100;
$df= pow((pow(($Ga-$wa),2))+(pow(($Gb-$wb),2)),0.5)*(1-max(0,($dt-50)/50*0.75));
$df30=$df;
?>
<td bgcolor="#CCDDDD"><div align="right">
<?php
if (abs($df)>3){
$check=1;?>
<div align="right"><font color="red">
<?php
}
echo round($df,2);$sum=$sum-abs($rounddv);
?>
</font></div>
</div></td>
<?php
}
elseif ($i == "110")
{
$dt=35;
$wa=$ppa*(100-$dt)/100;
$wb=$ppb*(100-$dt)/100;
$df= pow((pow(($Ga-$wa),2))+(pow(($Gb-$wb),2)),0.5)*(1-max(0,($dt-50)/50*0.75));
$df35=$df;
?>
<td bgcolor="#CCDDDD"><div align="right">
<?php
if (abs($df)>3){
$check=1;?>
<div align="right"><font color="red">
<?php
}
echo round($df,2);$sum=$sum-abs($rounddv);
?>
</font></div>
</div></td>
<?php
}
elseif ($i == "111")
{
$dt=40;
$wa=$ppa*(100-$dt)/100;
$wb=$ppb*(100-$dt)/100;
$df= pow((pow(($Ga-$wa),2))+(pow(($Gb-$wb),2)),0.5)*(1-max(0,($dt-50)/50*0.75));
$df40=$df;
?>
<td bgcolor="#CCDDDD"><div align="right">
<?php
if (abs($df)>3){
$check=1;?>
<div align="right"><font color="red">
<?php
}
echo round($df,2);$sum=$sum-abs($rounddv);
?>
</font></div>
</div></td>
<?php
}
elseif ($i == "112")
{
$dt=45;
$wa=$ppa*(100-$dt)/100;
$wb=$ppb*(100-$dt)/100;
$df= pow((pow(($Ga-$wa),2))+(pow(($Gb-$wb),2)),0.5)*(1-max(0,($dt-50)/50*0.75));
$df45=$df;
?>
<td bgcolor="#CCDDDD"><div align="right">
<?php
if (abs($df)>3){
$check=1;?>
<div align="right"><font color="red">
<?php
}
echo round($df,2);$sum=$sum-abs($rounddv);
?>
</font></div>
</div></td>
<?php
}
elseif ($i == "113")
{
$dt=50;
$wa=$ppa*(100-$dt)/100;
$wb=$ppb*(100-$dt)/100;
$df= pow((pow(($Ga-$wa),2))+(pow(($Gb-$wb),2)),0.5)*(1-max(0,($dt-50)/50*0.75));
$df50=$df;
?>
<td bgcolor="#CCDDDD"><div align="right">
<?php
if (abs($df)>3){
$check=1;?>
<div align="right"><font color="red">
<?php
}
echo round($df,2);$sum=$sum-abs($rounddv);
?>
</font></div>
</div></td>
<?php
}
elseif ($i == "114")
{
$dt=55;
$wa=$ppa*(100-$dt)/100;
$wb=$ppb*(100-$dt)/100;
$df= pow((pow(($Ga-$wa),2))+(pow(($Gb-$wb),2)),0.5)*(1-max(0,($dt-50)/50*0.75));
$df55=$df;
?>
<td bgcolor="#CCDDDD"><div align="right">
<?php
if (abs($df)>3){
$check=1;?>
<div align="right"><font color="red">
<?php
}
echo round($df,2);$sum=$sum-abs($rounddv);
?>
</font></div>
</div></td>
<?php
}
elseif ($i == "115")
{
$dt=60;
$wa=$ppa*(100-$dt)/100;
$wb=$ppb*(100-$dt)/100;
$df= pow((pow(($Ga-$wa),2))+(pow(($Gb-$wb),2)),0.5)*(1-max(0,($dt-50)/50*0.75));
$df60=$df;
?>
<td bgcolor="#CCDDDD"><div align="right">
<?php
if (abs($df)>3){
$check=1;?>
<div align="right"><font color="red">
<?php
}
echo round($df,2);$sum=$sum-abs($rounddv);
?>
</font></div>
</div></td>
<?php
}
elseif ($i == "116")
{
$dt=65;
$wa=$ppa*(100-$dt)/100;
$wb=$ppb*(100-$dt)/100;
$df= pow((pow(($Ga-$wa),2))+(pow(($Gb-$wb),2)),0.5)*(1-max(0,($dt-50)/50*0.75));
$df65=$df;
?>
<td bgcolor="#CCDDDD"><div align="right">
<?php
if (abs($df)>3){
$check=1;?>
<div align="right"><font color="red">
<?php
}
echo round($df,2);$sum=$sum-abs($rounddv);
?>
</font></div>
</div></td>
<?php
}
elseif ($i == "117")
{
$dt=70;
$wa=$ppa*(100-$dt)/100;
$wb=$ppb*(100-$dt)/100;
$df= pow((pow(($Ga-$wa),2))+(pow(($Gb-$wb),2)),0.5)*(1-max(0,($dt-50)/50*0.75));
$df70=$df;
?>
<td bgcolor="#CCDDDD"><div align="right">
<?php
if (abs($df)>3){
$check=1;?>
<div align="right"><font color="red">
<?php
}
echo round($df,2);$sum=$sum-abs($rounddv);
?>
</font></div>
</div></td>
<?php
}
elseif ($i == "118")
{
$dt=75;
$wa=$ppa*(100-$dt)/100;
$wb=$ppb*(100-$dt)/100;
$df= pow((pow(($Ga-$wa),2))+(pow(($Gb-$wb),2)),0.5)*(1-max(0,($dt-50)/50*0.75));
$df75=$df;
?>
<td bgcolor="#CCDDDD"><div align="right">
<?php
if (abs($df)>3){
$check=1;?>
<div align="right"><font color="red">
<?php
}
echo round($df,2);$sum=$sum-abs($rounddv);
?>
</font></div>
</div></td>
<?php
}
elseif ($i == "119")
{
$dt=80;
$wa=$ppa*(100-$dt)/100;
$wb=$ppb*(100-$dt)/100;
$df= pow((pow(($Ga-$wa),2))+(pow(($Gb-$wb),2)),0.5)*(1-max(0,($dt-50)/50*0.75));
$df80=$df;
?>
<td bgcolor="#CCDDDD"><div align="right">
<?php
if (abs($df)>3){
$check=1;?>
<div align="right"><font color="red">
<?php
}
echo round($df,2);$sum=$sum-abs($rounddv);
?>
</font></div>
</div></td>
<?php
}
elseif ($i == "120")
{
$dt=85;
$wa=$ppa*(100-$dt)/100;
$wb=$ppb*(100-$dt)/100;
$df= pow((pow(($Ga-$wa),2))+(pow(($Gb-$wb),2)),0.5)*(1-max(0,($dt-50)/50*0.75));
$df85=$df;
?>
<td bgcolor="#CCDDDD"><div align="right">
<?php
if (abs($df)>3){
$check=1;?>
<div align="right"><font color="red">
<?php
}
echo round($df,2);$sum=$sum-abs($rounddv);
?>
</font></div>
</div></td>
<?php
}
elseif ($i == "121")
{
$dt=90;
$wa=$ppa*(100-$dt)/100;
$wb=$ppb*(100-$dt)/100;
$df= pow((pow(($Ga-$wa),2))+(pow(($Gb-$wb),2)),0.5)*(1-max(0,($dt-50)/50*0.75));
$df90=$df;
?>
<td bgcolor="#CCDDDD"><div align="right">
<?php
if (abs($df)>3){
$check=1;?>
<div align="right"><font color="red">
<?php
}
echo round($df,2);$sum=$sum-abs($rounddv);
?>
</font></div>
</div></td>
<?php
}
elseif ($i == "122")
{
$dt=95;
$wa=$ppa*(100-$dt)/100;
$wb=$ppb*(100-$dt)/100;
$df= pow((pow(($Ga-$wa),2))+(pow(($Gb-$wb),2)),0.5)*(1-max(0,($dt-50)/50*0.75));
$df95=$df;
?>
<td bgcolor="#CCDDDD"><div align="right">
<?php
if (abs($df)>3){
$check=1;?>
<div align="right"><font color="red">
<?php
}
echo round($df,2);$sum=$sum-abs($rounddv);
?>
</font></div>
</div></td>
<?php
$Maxdf=max(abs($df5),abs($df10),abs($df15),abs($df20),abs($df25),abs($df30),abs($df35),abs($dfs40),abs($df45),abs($df50),abs($df55),abs($df60),abs($df65),abs($df70),abs($df75),abs($df80),abs($df85),abs($df90),abs($df95));
$Avgdf=abs(($df5+$df10+$df15+$df20+$df25+$df30+$df35+$dfs40+$df45+$df50+$df55+$df60+$df65+$df70+$df75+$df80+$df85+$df90+$df95)/19);
}
}//for loop//K
//find gray l1315
?>
</tr>
<tr>
<td bgcolor="#CCCCCC"><div align="center">da*</div></td>
<?php
$ppa=$dot[6+40*25-25+1];
$ppb=$dot[6+40*25-25+2];
$Pa=$dot[6+40*25-25+1];
$Pb=$dot[6+40*25-25+2];
for ( $i = 101; $i <= 125; $i += 1) {
$Ga=$dot[6+40*$i-$i+1];
$Gb=$dot[6+40*$i-$i+2];
if ($i == "103")
{
$dt=5;
$wa=$ppa*(100-$dt)/100;
$wb=$ppb*(100-$dt)/100;
$df= $Ga-$wa;
?>
<td bgcolor="#CCCCCC"><div align="right">
<?php
if (abs($df)>3){
$check=1;?>
<div align="right"><font color="red">
<?php
}
echo round($df,2);$sum=$sum-abs($rounddv);
?>
</font></div>
</div></td>
<?php
}
elseif ($i == "105")
{
$dt=10;
$wa=$ppa*(100-$dt)/100;
$wb=$ppb*(100-$dt)/100;
$df= $Ga-$wa;
?>
<td bgcolor="#CCCCCC"><div align="right">
<?php
if (abs($df)>3){
$check=1;?>
<div align="right"><font color="red">
<?php
}
echo round($df,2);$sum=$sum-abs($rounddv);
?>
</font></div>
</div></td>
<?php
}
elseif ($i == "106")
{
$dt=15;
$wa=$ppa*(100-$dt)/100;
$wb=$ppb*(100-$dt)/100;
$df= $Ga-$wa;
?>
<td bgcolor="#CCCCCC"><div align="right">
<?php
if (abs($df)>3){
$check=1;?>
<div align="right"><font color="red">
<?php
}
echo round($df,2);$sum=$sum-abs($rounddv);
?>
</font></div>
</div></td>
<?php
}
elseif ($i == "107")
{
$dt=20;
$wa=$ppa*(100-$dt)/100;
$wb=$ppb*(100-$dt)/100;
$df= $Ga-$wa;
?>
<td bgcolor="#CCCCCC"><div align="right">
<?php
if (abs($df)>3){
$check=1;?>
<div align="right"><font color="red">
<?php
}
echo round($df,2);$sum=$sum-abs($rounddv);
?>
</font></div>
</div></td>
<?php
}
elseif ($i == "108")
{
$dt=25;
$wa=$ppa*(100-$dt)/100;
$wb=$ppb*(100-$dt)/100;
$df= $Ga-$wa;
?>
<td bgcolor="#CCCCCC"><div align="right">
<?php
if (abs($df)>3){
$check=1;?>
<div align="right"><font color="red">
<?php
}
echo round($df,2);$sum=$sum-abs($rounddv);
?>
</font></div>
</div></td>
<?php
}
elseif ($i == "109")
{
$dt=30;
$wa=$ppa*(100-$dt)/100;
$wb=$ppb*(100-$dt)/100;
$df= $Ga-$wa;
?>
<td bgcolor="#CCCCCC"><div align="right">
<?php
if (abs($df)>3){
$check=1;?>
<div align="right"><font color="red">
<?php
}
echo round($df,2);$sum=$sum-abs($rounddv);
?>
</font></div>
</div></td>
<?php
}
elseif ($i == "110")
{
$dt=35;
$wa=$ppa*(100-$dt)/100;
$wb=$ppb*(100-$dt)/100;
$df= $Ga-$wa;
?>
<td bgcolor="#CCCCCC"><div align="right">
<?php
if (abs($df)>3){
$check=1;?>
<div align="right"><font color="red">
<?php
}
echo round($df,2);$sum=$sum-abs($rounddv);
?>
</font></div>
</div></td>
<?php
}
elseif ($i == "111")
{
$dt=40;
$wa=$ppa*(100-$dt)/100;
$wb=$ppb*(100-$dt)/100;
$df= $Ga-$wa;
?>
<td bgcolor="#CCCCCC"><div align="right">
<?php
if (abs($df)>3){
$check=1;?>
<div align="right"><font color="red">
<?php
}
echo round($df,2);$sum=$sum-abs($rounddv);
?>
</font></div>
</div></td>
<?php
}
elseif ($i == "112")
{
$dt=45;
$wa=$ppa*(100-$dt)/100;
$wb=$ppb*(100-$dt)/100;
$df= $Ga-$wa;
?>
<td bgcolor="#CCCCCC"><div align="right">
<?php
if (abs($df)>3){
$check=1;?>
<div align="right"><font color="red">
<?php
}
echo round($df,2);$sum=$sum-abs($rounddv);
?>
</font></div>
</div></td>
<?php
}
elseif ($i == "113")
{
$dt=50;
$wa=$ppa*(100-$dt)/100;
$wb=$ppb*(100-$dt)/100;
$df= $Ga-$wa;
?>
<td bgcolor="#CCCCCC"><div align="right">
<?php
if (abs($df)>3){
$check=1;?>
<div align="right"><font color="red">
<?php
}
echo round($df,2);$sum=$sum-abs($rounddv);
?>
</font></div>
</div></td>
<?php
}
elseif ($i == "114")
{
$dt=55;
$wa=$ppa*(100-$dt)/100;
$wb=$ppb*(100-$dt)/100;
$df= $Ga-$wa;
?>
<td bgcolor="#CCCCCC"><div align="right">
<?php
if (abs($df)>3){
$check=1;?>
<div align="right"><font color="red">
<?php
}
echo round($df,2);$sum=$sum-abs($rounddv);
?>
</font></div>
</div></td>
<?php
}
elseif ($i == "115")
{
$dt=60;
$wa=$ppa*(100-$dt)/100;
$wb=$ppb*(100-$dt)/100;
$df= $Ga-$wa;
?>
<td bgcolor="#CCCCCC"><div align="right">
<?php
if (abs($df)>3){
$check=1;?>
<div align="right"><font color="red">
<?php
}
echo round($df,2);$sum=$sum-abs($rounddv);
?>
</font></div>
</div></td>
<?php
}
elseif ($i == "116")
{
$dt=65;
$wa=$ppa*(100-$dt)/100;
$wb=$ppb*(100-$dt)/100;
$df= $Ga-$wa;
?>
<td bgcolor="#CCCCCC"><div align="right">
<?php
if (abs($df)>3){
$check=1;?>
<div align="right"><font color="red">
<?php
}
echo round($df,2);$sum=$sum-abs($rounddv);
?>
</font></div>
</div></td>
<?php
}
elseif ($i == "117")
{
$dt=70;
$wa=$ppa*(100-$dt)/100;
$wb=$ppb*(100-$dt)/100;
$df= $Ga-$wa;
?>
<td bgcolor="#CCCCCC"><div align="right">
<?php
if (abs($df)>3){
$check=1;?>
<div align="right"><font color="red">
<?php
}
echo round($df,2);$sum=$sum-abs($rounddv);
?>
</font></div>
</div></td>
<?php
}
elseif ($i == "118")
{
$dt=75;
$wa=$ppa*(100-$dt)/100;
$wb=$ppb*(100-$dt)/100;
$df= $Ga-$wa;
?>
<td bgcolor="#CCCCCC"><div align="right">
<?php
if (abs($df)>3){
$check=1;?>
<div align="right"><font color="red">
<?php
}
echo round($df,2);$sum=$sum-abs($rounddv);
?>
</font></div>
</div></td>
<?php
}
elseif ($i == "119")
{
$dt=80;
$wa=$ppa*(100-$dt)/100;
$wb=$ppb*(100-$dt)/100;
$df= $Ga-$wa;
?>
<td bgcolor="#CCCCCC"><div align="right">
<?php
if (abs($df)>3){
$check=1;?>
<div align="right"><font color="red">
<?php
}
echo round($df,2);$sum=$sum-abs($rounddv);
?>
</font></div>
</div></td>
<?php
}
elseif ($i == "120")
{
$dt=85;
$wa=$ppa*(100-$dt)/100;
$wb=$ppb*(100-$dt)/100;
$df= $Ga-$wa;
?>
<td bgcolor="#CCCCCC"><div align="right">
<?php
if (abs($df)>3){
$check=1;?>
<div align="right"><font color="red">
<?php
}
echo round($df,2);$sum=$sum-abs($rounddv);
?>
</font></div>
</div></td>
<?php
}
elseif ($i == "121")
{
$dt=90;
$wa=$ppa*(100-$dt)/100;
$wb=$ppb*(100-$dt)/100;
$df= $Ga-$wa;
?>
<td bgcolor="#CCCCCC"><div align="right">
<?php
if (abs($df)>3){
$check=1;?>
<div align="right"><font color="red">
<?php
}
echo round($df,2);$sum=$sum-abs($rounddv);
?>
</font></div>
</div></td>
<?php
}
elseif ($i == "122")
{
$dt=95;
$wa=$ppa*(100-$dt)/100;
$wb=$ppb*(100-$dt)/100;
$df= $Ga-$wa;
?>
<td bgcolor="#CCCCCC"><div align="right">
<?php
if (abs($df)>3){
$check=1;?>
<div align="right"><font color="red">
<?php
}
echo round($df,2);$sum=$sum-abs($rounddv);
?>
</font></div>
</div></td>
<?php
}
}//for loop//da*
?>
</tr>
<tr>
<td bgcolor="#CCCCCC"><div align="center">db*</div></td>
<?php
$ppa=$dot[6+40*25-25+1];
$ppb=$dot[6+40*25-25+2];
$Pa=$dot[6+40*25-25+1];
$Pb=$dot[6+40*25-25+2];
for ( $i = 101; $i <= 125; $i += 1) {
$Ga=$dot[6+40*$i-$i+1];
$Gb=$dot[6+40*$i-$i+2];
if ($i == "103")
{
$dt=5;
$wa=$ppa*(100-$dt)/100;
$wb=$ppb*(100-$dt)/100;
$df= $Gb-$wb;
?>
<td bgcolor="#CCCCCC"><div align="right">
<?php
if (abs($df)>3){
$check=1;?>
<div align="right"><font color="red">
<?php
}
echo round($df,2);$sum=$sum-abs($rounddv);
?>
</font></div>
</div></td>
<?php
}
elseif ($i == "105")
{
$dt=10;
$wa=$ppa*(100-$dt)/100;
$wb=$ppb*(100-$dt)/100;
$df= $Gb-$wb;
?>
<td bgcolor="#CCCCCC"><div align="right">
<?php
if (abs($df)>3){
$check=1;?>
<div align="right"><font color="red">
<?php
}
echo round($df,2);$sum=$sum-abs($rounddv);
?>
</font></div>
</div></td>
<?php
}
elseif ($i == "107")
{
$dt=15;
$wa=$ppa*(100-$dt)/100;
$wb=$ppb*(100-$dt)/100;
$df= $Gb-$wb;
?>
<td bgcolor="#CCCCCC"><div align="right">
<?php
if (abs($df)>3){
$check=1;?>
<div align="right"><font color="red">
<?php
}
echo round($df,2);$sum=$sum-abs($rounddv);
?>
</font></div>
</div></td>
<?php
}
elseif ($i == "108")
{
$dt=20;
$wa=$ppa*(100-$dt)/100;
$wb=$ppb*(100-$dt)/100;
$df= $Gb-$wb;
?>
<td bgcolor="#CCCCCC"><div align="right">
<?php
if (abs($df)>3){
$check=1;?>
<div align="right"><font color="red">
<?php
}
echo round($df,2);$sum=$sum-abs($rounddv);
?>
</font></div>
</div></td>
<?php
}
elseif ($i == "109")
{
$dt=25;
$wa=$ppa*(100-$dt)/100;
$wb=$ppb*(100-$dt)/100;
$df= $Gb-$wb;
?>
<td bgcolor="#CCCCCC"><div align="right">
<?php
if (abs($df)>3){
$check=1;?>
<div align="right"><font color="red">
<?php
}
echo round($df,2);$sum=$sum-abs($rounddv);
?>
</font></div>
</div></td>
<?php
}
elseif ($i == "110")
{
$dt=30;
$wa=$ppa*(100-$dt)/100;
$wb=$ppb*(100-$dt)/100;
$df= $Gb-$wb;
?>
<td bgcolor="#CCCCCC"><div align="right">
<?php
if (abs($df)>3){
$check=1;?>
<div align="right"><font color="red">
<?php
}
echo round($df,2);$sum=$sum-abs($rounddv);
?>
</font></div>
</div></td>
<?php
}
elseif ($i == "111")
{
$dt=35;
$wa=$ppa*(100-$dt)/100;
$wb=$ppb*(100-$dt)/100;
$df= $Gb-$wb;
?>
<td bgcolor="#CCCCCC"><div align="right">
<?php
if (abs($df)>3){
$check=1;?>
<div align="right"><font color="red">
<?php
}
echo round($df,2);$sum=$sum-abs($rounddv);
?>
</font></div>
</div></td>
<?php
}
elseif ($i == "112")
{
$dt=40;
$wa=$ppa*(100-$dt)/100;
$wb=$ppb*(100-$dt)/100;
$df= $Gb-$wb;
?>
<td bgcolor="#CCCCCC"><div align="right">
<?php
if (abs($df)>3){
$check=1;?>
<div align="right"><font color="red">
<?php
}
echo round($df,2);$sum=$sum-abs($rounddv);
?>
</font></div>
</div></td>
<?php
}
elseif ($i == "113")
{
$dt=45;
$wa=$ppa*(100-$dt)/100;
$wb=$ppb*(100-$dt)/100;
$df= $Gb-$wb;
?>
<td bgcolor="#CCCCCC"><div align="right">
<?php
if (abs($df)>3){
$check=1;?>
<div align="right"><font color="red">
<?php
}
echo round($df,2);$sum=$sum-abs($rounddv);
?>
</font></div>
</div></td>
<?php
}
elseif ($i == "114")
{
$dt=50;
$wa=$ppa*(100-$dt)/100;
$wb=$ppb*(100-$dt)/100;
$df= $Gb-$wb;
?>
<td bgcolor="#CCCCCC"><div align="right">
<?php
if (abs($df)>3){
$check=1;?>
<div align="right"><font color="red">
<?php
}
echo round($df,2);$sum=$sum-abs($rounddv);
?>
</font></div>
</div></td>
<?php
}
elseif ($i == "115")
{
$dt=55;
$wa=$ppa*(100-$dt)/100;
$wb=$ppb*(100-$dt)/100;
$df= $Gb-$wb;
?>
<td bgcolor="#CCCCCC"><div align="right">
<?php
if (abs($df)>3){
$check=1;?>
<div align="right"><font color="red">
<?php
}
echo round($df,2);$sum=$sum-abs($rounddv);
?>
</font></div>
</div></td>
<?php
}
elseif ($i == "116")
{
$dt=60;
$wa=$ppa*(100-$dt)/100;
$wb=$ppb*(100-$dt)/100;
$df= $Gb-$wb;
?>
<td bgcolor="#CCCCCC"><div align="right">
<?php
if (abs($df)>3){
$check=1;?>
<div align="right"><font color="red">
<?php
}
echo round($df,2);$sum=$sum-abs($rounddv);
?>
</font></div>
</div></td>
<?php
}
elseif ($i == "117")
{
$dt=65;
$wa=$ppa*(100-$dt)/100;
$wb=$ppb*(100-$dt)/100;
$df= $Gb-$wb;
?>
<td bgcolor="#CCCCCC"><div align="right">
<?php
if (abs($df)>3){
$check=1;?>
<div align="right"><font color="red">
<?php
}
echo round($df,2);$sum=$sum-abs($rounddv);
?>
</font></div>
</div></td>
<?php
}
elseif ($i == "118")
{
$dt=70;
$wa=$ppa*(100-$dt)/100;
$wb=$ppb*(100-$dt)/100;
$df= $Gb-$wb;
?>
<td bgcolor="#CCCCCC"><div align="right">
<?php
if (abs($df)>3){
$check=1;?>
<div align="right"><font color="red">
<?php
}
echo round($df,2);$sum=$sum-abs($rounddv);
?>
</font></div>
</div></td>
<?php
}
elseif ($i == "119")
{
$dt=75;
$wa=$ppa*(100-$dt)/100;
$wb=$ppb*(100-$dt)/100;
$df= $Gb-$wb;
?>
<td bgcolor="#CCCCCC"><div align="right">
<?php
if (abs($df)>3){
$check=1;?>
<div align="right"><font color="red">
<?php
}
echo round($df,2);$sum=$sum-abs($rounddv);
?>
</font></div>
</div></td>
<?php
}
elseif ($i == "120")
{
$dt=80;
$wa=$ppa*(100-$dt)/100;
$wb=$ppb*(100-$dt)/100;
$df= $Gb-$wb;
?>
<td bgcolor="#CCCCCC"><div align="right">
<?php
if (abs($df)>3){
$check=1;?>
<div align="right"><font color="red">
<?php
}
echo round($df,2);$sum=$sum-abs($rounddv);
?>
</font></div>
</div></td>
<?php
}
elseif ($i == "121")
{
$dt=85;
$wa=$ppa*(100-$dt)/100;
$wb=$ppb*(100-$dt)/100;
$df= $Gb-$wb;
?>
<td bgcolor="#CCCCCC"><div align="right">
<?php
if (abs($df)>3){
$check=1;?>
<div align="right"><font color="red">
<?php
}
echo round($df,2);$sum=$sum-abs($rounddv);
?>
</font></div>
</div></td>
<?php
}
elseif ($i == "122")
{
$dt=90;
$wa=$ppa*(100-$dt)/100;
$wb=$ppb*(100-$dt)/100;
$df= $Gb-$wb;
?>
<td bgcolor="#CCCCCC"><div align="right">
<?php
if (abs($df)>3){
$check=1;?>
<div align="right"><font color="red">
<?php
}
echo round($df,2);$sum=$sum-abs($rounddv);
?>
</font></div>
</div></td>
<?php
}
elseif ($i == "123")
{
$dt=95;
$wa=$ppa*(100-$dt)/100;
$wb=$ppb*(100-$dt)/100;
$df= $Gb-$wb;
?>
<td bgcolor="#CCCCCC"><div align="right">
<?php
if (abs($df)>3){
$check=1;?>
<div align="right"><font color="red">
<?php
}
echo round($df,2);$sum=$sum-abs($rounddv);
?>
</font></div>
</div></td>
<?php
}
}//for loop//db*
?>
</tr>
<tr>
<td bgcolor="#CCCCCC"><div align="center">CMY</div></td>
<?php
for ( $s = 5; $s <= 95; $s += 5) {
$vc="c".$s;
$vm="m".$s;
$vy="y".$s;
//$ecc=${$vc};
$scmy=max(abs(${$vc}-${$vm}),abs(${$vy}-${$vm}),abs(${$vy}-${$vc}))
?>
<td bgcolor="#CCCCCC"><div align="right">
<?php
if ($scmy>5){
$check=1;?>
<font color="red">
<?php
}
echo $scmy;?>
</font></div></td>
<?php
}///cmy loop
?>
</tr>
<tr>
<td><div align="center">AIM</div></td>
<td><div align="right">L</div></td>
<td><div align="right">a</div></td>
<td><div align="right">b</div></td>
<td><div align="center">Test</div></td>
<td><div align="right">L</div></td>
<td><div align="right">a</div></td>
<td><div align="right">b</div></td>
<td bgcolor="#66FF33"><div align="right">E(76)</div></td>
<td><div align="right">Den</div></td>
<td><div align="right">dC*</div></td>
<td><div align="right">dH</div></td>
<td><div align="right">AwdL</div></td>
<td><div align="right">MwdL</div></td>
<td><div align="right">AwdF</div></td>
<td><div align="right">MwdF</div></td>
<td><div align="right">L</div></td>
<td><div align="right">a</div></td>
<td><div align="right">b</div></td>
<td bgcolor="#66FF33"><div align="right">E(76)</div></td>
<td><div align="right">trap</div></td>
<td><div align="right">dC*</div></td>
<td><div align="right">dH</div></td>
</tr>
<?php
//////////////////////////////////////////////////CMYK SID
$psum=20;
$pl=95;
$pa=0;
$pb=-2;
$cl=55;
$ca=-37;
$cb=-50;
$ml=48;
$ma=74;
$mb=-3;
$yl=89;
$ya=-5;
$yb=93;
$kl=15;
$ka=0.01;
$kb=0.01;
/////////////////test SID
// include 'densityV.php';
// include 'densityC.php';
// include 'densityM.php';
// include 'densityY.php';
$PL=$dot[6+40*25-25];
$Pa=$dot[6+40*25-25+1];
$Pb=$dot[6+40*25-25+2];
$pD=DensitySp("V",$dot[6+40*25-25+3],$dot[6+40*25-25+4],$dot[6+40*25-25+5],$dot[6+40*25-25+6],$dot[6+40*25-25+7],$dot[6+40*25-25+8],$dot[6+40*25-25+9],$dot[6+40*25-25+10],$dot[6+40*25-25+11],$dot[6+40*25-25+12],$dot[6+40*25-25+13],$dot[6+40*25-25+14],$dot[6+40*25-25+15],$dot[6+40*25-25+16],$dot[6+40*25-25+17],$dot[6+40*25-25+18],$dot[6+40*25-25+19],$dot[6+40*25-25+20],$dot[6+40*25-25+21],$dot[6+40*25-25+22],$dot[6+40*25-25+23],$dot[6+40*25-25+24],$dot[6+40*25-25+25],$dot[6+40*25-25+26],$dot[6+40*25-25+27],$dot[6+40*25-25+28],$dot[6+40*25-25+29],$dot[6+40*25-25+30],$dot[6+40*25-25+31],$dot[6+40*25-25+32],$dot[6+40*25-25+33]);
//$pD=$dot[6+40*25-25+33];
$c100L=$dot[6+40*12-12];
$c100a=$dot[6+40*12-12+1];
$c100b=$dot[6+40*12-12+2];
$c5a=$dot[6+40*1-1+1];
$c5b=$dot[6+40*1-1+2];
$c10a=$dot[6+40*2-2+1];
$c10b=$dot[6+40*2-2+2];
$c20a=$dot[6+40*3-3+1];
$c20b=$dot[6+40*3-3+2];
$c30a=$dot[6+40*4-4+1];
$c30b=$dot[6+40*4-4+2];
$c40a=$dot[6+40*5-5+1];
$c40b=$dot[6+40*5-5+2];
$c50a=$dot[6+40*6-6+1];
$c50b=$dot[6+40*6-6+2];
$c60a=$dot[6+40*7-7+1];
$c60b=$dot[6+40*7-7+2];
$c70a=$dot[6+40*8-8+1];
$c70b=$dot[6+40*8-8+2];
$c80a=$dot[6+40*9-9+1];
$c80b=$dot[6+40*9-9+2];
$c90a=$dot[6+40*10-10+1];
$c90b=$dot[6+40*10-10+2];
$c95a=$dot[6+40*11-11+1];
$c95b=$dot[6+40*11-11+2];
//////////////////////////////////////R
$r5a=$dot[6+40*13-13+1];
$r5b=$dot[6+40*13-13+2];
$r10a=$dot[6+40*14-14+1];
$r10b=$dot[6+40*14-14+2];
$r20a=$dot[6+40*15-15+1];
$r20b=$dot[6+40*15-15+2];
$r30a=$dot[6+40*16-16+1];
$r30b=$dot[6+40*16-16+2];
$r40a=$dot[6+40*17-17+1];
$r40b=$dot[6+40*17-17+2];
$r50a=$dot[6+40*18-18+1];
$r50b=$dot[6+40*18-18+2];
$r60a=$dot[6+40*19-19+1];
$r60b=$dot[6+40*19-19+2];
$r70a=$dot[6+40*20-20+1];
$r70b=$dot[6+40*20-20+2];
$r80a=$dot[6+40*21-21+1];
$r80b=$dot[6+40*21-21+2];
$r90a=$dot[6+40*22-22+1];
$r90b=$dot[6+40*22-22+2];
$r95a=$dot[6+40*23-23+1];
$r95b=$dot[6+40*23-23+2];
///////////////////////////////////////////////////////////////////M
$m5a=$dot[6+40*26-26+1];
$m5b=$dot[6+40*26-26+2];
$m10a=$dot[6+40*27-27+1];
$m10b=$dot[6+40*27-27+2];
$m20a=$dot[6+40*28-28+1];
$m20b=$dot[6+40*28-28+2];
$m30a=$dot[6+40*29-29+1];
$m30b=$dot[6+40*29-29+2];
$m40a=$dot[6+40*30-30+1];
$m40b=$dot[6+40*30-30+2];
$m50a=$dot[6+40*31-31+1];
$m50b=$dot[6+40*31-31+2];
$m60a=$dot[6+40*32-32+1];
$m60b=$dot[6+40*32-32+2];
$m70a=$dot[6+40*33-33+1];
$m70b=$dot[6+40*33-33+2];
$m80a=$dot[6+40*34-34+1];
$m80b=$dot[6+40*34-34+2];
$m90a=$dot[6+40*35-35+1];
$m90b=$dot[6+40*35-35+2];
$m95a=$dot[6+40*36-36+1];
$m95b=$dot[6+40*36-36+2];
///////////////////////////////////////////////////////////////////G
$g5a=$dot[6+40*38-38+1];
$g5b=$dot[6+40*38-38+2];
$g10a=$dot[6+40*39-39+1];
$g10b=$dot[6+40*39-39+2];
$g20a=$dot[6+40*40-40+1];
$g20b=$dot[6+40*40-40+2];
$g30a=$dot[6+40*41-41+1];
$g30b=$dot[6+40*41-41+2];
$g40a=$dot[6+40*42-42+1];
$g40b=$dot[6+40*42-42+2];
$g50a=$dot[6+40*43-43+1];
$g50b=$dot[6+40*43-43+2];
$g60a=$dot[6+40*44-44+1];
$g60b=$dot[6+40*44-44+2];
$g70a=$dot[6+40*45-45+1];
$g70b=$dot[6+40*45-45+2];
$g80a=$dot[6+40*46-46+1];
$g80b=$dot[6+40*46-46+2];
$g90a=$dot[6+40*47-47+1];
$g90b=$dot[6+40*47-47+2];
$g95a=$dot[6+40*48-48+1];
$g95b=$dot[6+40*48-48+2];
///////////////////////////////////////////////////////////////////Y
$y5a=$dot[6+40*51-51+1];
$y5b=$dot[6+40*51-51+2];
$y10a=$dot[6+40*52-52+1];
$y10b=$dot[6+40*52-52+2];
$y20a=$dot[6+40*53-53+1];
$y20b=$dot[6+40*53-53+2];
$y30a=$dot[6+40*54-54+1];
$y30b=$dot[6+40*54-54+2];
$y40a=$dot[6+40*55-55+1];
$y40b=$dot[6+40*55-55+2];
$y50a=$dot[6+40*56-56+1];
$y50b=$dot[6+40*56-56+2];
$y60a=$dot[6+40*57-57+1];
$y60b=$dot[6+40*57-57+2];
$y70a=$dot[6+40*58-58+1];
$y70b=$dot[6+40*58-58+2];
$y80a=$dot[6+40*59-59+1];
$y80b=$dot[6+40*59-59+2];
$y90a=$dot[6+40*60-60+1];
$y90b=$dot[6+40*60-60+2];
$y95a=$dot[6+40*61-61+1];
$y95b=$dot[6+40*61-61+2];
///////////////////////////////////////////////////////////////////B
$b5a=$dot[6+40*63-63+1];
$b5b=$dot[6+40*63-63+2];
$b10a=$dot[6+40*64-64+1];
$b10b=$dot[6+40*64-64+2];
$b20a=$dot[6+40*65-65+1];
$b20b=$dot[6+40*65-65+2];
$b30a=$dot[6+40*66-66+1];
$b30b=$dot[6+40*66-66+2];
$b40a=$dot[6+40*67-67+1];
$b40b=$dot[6+40*67-67+2];
$b50a=$dot[6+40*68-68+1];
$b50b=$dot[6+40*68-68+2];
$b60a=$dot[6+40*69-69+1];
$b60b=$dot[6+40*69-69+2];
$b70a=$dot[6+40*70-70+1];
$b70b=$dot[6+40*70-70+2];
$b80a=$dot[6+40*71-71+1];
$b80b=$dot[6+40*71-71+2];
$b90a=$dot[6+40*72-72+1];
$b90b=$dot[6+40*72-72+2];
$b95a=$dot[6+40*73-73+1];
$b95b=$dot[6+40*73-73+2];
$cD=DensitySp("C",$dot[6+40*12-12+3],$dot[6+40*12-12+4],$dot[6+40*12-12+5],$dot[6+40*12-12+6],$dot[6+40*12-12+7],$dot[6+40*12-12+8],$dot[6+40*12-12+9],$dot[6+40*12-12+10],$dot[6+40*12-12+11],$dot[6+40*12-12+12],$dot[6+40*12-12+13],$dot[6+40*12-12+14],$dot[6+40*12-12+15],$dot[6+40*12-12+16],$dot[6+40*12-12+17],$dot[6+40*12-12+18],$dot[6+40*12-12+19],$dot[6+40*12-12+20],$dot[6+40*12-12+21],$dot[6+40*12-12+22],$dot[6+40*12-12+23],$dot[6+40*12-12+24],$dot[6+40*12-12+25],$dot[6+40*12-12+26],$dot[6+40*12-12+27],$dot[6+40*12-12+28],$dot[6+40*12-12+29],$dot[6+40*12-12+30],$dot[6+40*12-12+31],$dot[6+40*12-12+32],$dot[6+40*12-12+33]);
$cmD=DensitySp("M",$dot[6+40*12-12+3],$dot[6+40*12-12+4],$dot[6+40*12-12+5],$dot[6+40*12-12+6],$dot[6+40*12-12+7],$dot[6+40*12-12+8],$dot[6+40*12-12+9],$dot[6+40*12-12+10],$dot[6+40*12-12+11],$dot[6+40*12-12+12],$dot[6+40*12-12+13],$dot[6+40*12-12+14],$dot[6+40*12-12+15],$dot[6+40*12-12+16],$dot[6+40*12-12+17],$dot[6+40*12-12+18],$dot[6+40*12-12+19],$dot[6+40*12-12+20],$dot[6+40*12-12+21],$dot[6+40*12-12+22],$dot[6+40*12-12+23],$dot[6+40*12-12+24],$dot[6+40*12-12+25],$dot[6+40*12-12+26],$dot[6+40*12-12+27],$dot[6+40*12-12+28],$dot[6+40*12-12+29],$dot[6+40*12-12+30],$dot[6+40*12-12+31],$dot[6+40*12-12+32],$dot[6+40*12-12+33]);
$cyD=DensitySp("Y",$dot[6+40*12-12+3],$dot[6+40*12-12+4],$dot[6+40*12-12+5],$dot[6+40*12-12+6],$dot[6+40*12-12+7],$dot[6+40*12-12+8],$dot[6+40*12-12+9],$dot[6+40*12-12+10],$dot[6+40*12-12+11],$dot[6+40*12-12+12],$dot[6+40*12-12+13],$dot[6+40*12-12+14],$dot[6+40*12-12+15],$dot[6+40*12-12+16],$dot[6+40*12-12+17],$dot[6+40*12-12+18],$dot[6+40*12-12+19],$dot[6+40*12-12+20],$dot[6+40*12-12+21],$dot[6+40*12-12+22],$dot[6+40*12-12+23],$dot[6+40*12-12+24],$dot[6+40*12-12+25],$dot[6+40*12-12+26],$dot[6+40*12-12+27],$dot[6+40*12-12+28],$dot[6+40*12-12+29],$dot[6+40*12-12+30],$dot[6+40*12-12+31],$dot[6+40*12-12+32],$dot[6+40*12-12+33]);
$r100L=$dot[6+40*24-24];
$r100a=$dot[6+40*24-24+1];
$r100b=$dot[6+40*24-24+2];
$rD=DensitySp("Y",$dot[6+40*24-24+3],$dot[6+40*24-24+4],$dot[6+40*24-24+5],$dot[6+40*24-24+6],$dot[6+40*24-24+7],$dot[6+40*24-24+8],$dot[6+40*24-24+9],$dot[6+40*24-24+10],$dot[6+40*24-24+11],$dot[6+40*24-24+12],$dot[6+40*24-24+13],$dot[6+40*24-24+14],$dot[6+40*24-24+15],$dot[6+40*24-24+16],$dot[6+40*24-24+17],$dot[6+40*24-24+18],$dot[6+40*24-24+19],$dot[6+40*24-24+20],$dot[6+40*24-24+21],$dot[6+40*24-24+22],$dot[6+40*24-24+23],$dot[6+40*24-24+24],$dot[6+40*24-24+25],$dot[6+40*24-24+26],$dot[6+40*24-24+27],$dot[6+40*24-24+28],$dot[6+40*24-24+29],$dot[6+40*24-24+30],$dot[6+40*24-24+31],$dot[6+40*24-24+32],$dot[6+40*24-24+33]);
$m100L=$dot[6+40*37-37];
$m100a=$dot[6+40*37-37+1];
$m100b=$dot[6+40*37-37+2];
$mD=DensitySp("M",$dot[6+40*37-37+3],$dot[6+40*37-37+4],$dot[6+40*37-37+5],$dot[6+40*37-37+6],$dot[6+40*37-37+7],$dot[6+40*37-37+8],$dot[6+40*37-37+9],$dot[6+40*37-37+10],$dot[6+40*37-37+11],$dot[6+40*37-37+12],$dot[6+40*37-37+13],$dot[6+40*37-37+14],$dot[6+40*37-37+15],$dot[6+40*37-37+16],$dot[6+40*37-37+17],$dot[6+40*37-37+18],$dot[6+40*37-37+19],$dot[6+40*37-37+20],$dot[6+40*37-37+21],$dot[6+40*37-37+22],$dot[6+40*37-37+23],$dot[6+40*37-37+24],$dot[6+40*37-37+25],$dot[6+40*37-37+26],$dot[6+40*37-37+27],$dot[6+40*37-37+28],$dot[6+40*37-37+29],$dot[6+40*37-37+30],$dot[6+40*37-37+31],$dot[6+40*37-37+32],$dot[6+40*37-37+33]);
$myD=DensitySp("Y",$dot[6+40*37-37+3],$dot[6+40*37-37+4],$dot[6+40*37-37+5],$dot[6+40*37-37+6],$dot[6+40*37-37+7],$dot[6+40*37-37+8],$dot[6+40*37-37+9],$dot[6+40*37-37+10],$dot[6+40*37-37+11],$dot[6+40*37-37+12],$dot[6+40*37-37+13],$dot[6+40*37-37+14],$dot[6+40*37-37+15],$dot[6+40*37-37+16],$dot[6+40*37-37+17],$dot[6+40*37-37+18],$dot[6+40*37-37+19],$dot[6+40*37-37+20],$dot[6+40*37-37+21],$dot[6+40*37-37+22],$dot[6+40*37-37+23],$dot[6+40*37-37+24],$dot[6+40*37-37+25],$dot[6+40*37-37+26],$dot[6+40*37-37+27],$dot[6+40*37-37+28],$dot[6+40*37-37+29],$dot[6+40*37-37+30],$dot[6+40*37-37+31],$dot[6+40*37-37+32],$dot[6+40*37-37+33]);
$g100L=$dot[6+40*49-49];
$g100a=$dot[6+40*49-49+1];
$g100b=$dot[6+40*49-49+2];
$gD=DensitySp("Y",$dot[6+40*49-49+3],$dot[6+40*49-49+4],$dot[6+40*49-49+5],$dot[6+40*49-49+6],$dot[6+40*49-49+7],$dot[6+40*49-49+8],$dot[6+40*49-49+9],$dot[6+40*49-49+10],$dot[6+40*49-49+11],$dot[6+40*49-49+12],$dot[6+40*49-49+13],$dot[6+40*49-49+14],$dot[6+40*49-49+15],$dot[6+40*49-49+16],$dot[6+40*49-49+17],$dot[6+40*49-49+18],$dot[6+40*49-49+19],$dot[6+40*49-49+20],$dot[6+40*49-49+21],$dot[6+40*49-49+22],$dot[6+40*49-49+23],$dot[6+40*49-49+24],$dot[6+40*49-49+25],$dot[6+40*49-49+26],$dot[6+40*49-49+27],$dot[6+40*49-49+28],$dot[6+40*49-49+29],$dot[6+40*49-49+30],$dot[6+40*49-49+31],$dot[6+40*49-49+32],$dot[6+40*49-49+33]);
$y100L=$dot[6+40*62-62];
$y100a=$dot[6+40*62-62+1];
$y100b=$dot[6+40*62-62+2];
$yD=DensitySp("Y",$dot[6+40*62-62+3],$dot[6+40*62-62+4],$dot[6+40*62-62+5],$dot[6+40*62-62+6],$dot[6+40*62-62+7],$dot[6+40*62-62+8],$dot[6+40*62-62+9],$dot[6+40*62-62+10],$dot[6+40*62-62+11],$dot[6+40*62-62+12],$dot[6+40*62-62+13],$dot[6+40*62-62+14],$dot[6+40*62-62+15],$dot[6+40*62-62+16],$dot[6+40*62-62+17],$dot[6+40*62-62+18],$dot[6+40*62-62+19],$dot[6+40*62-62+20],$dot[6+40*62-62+21],$dot[6+40*62-62+22],$dot[6+40*62-62+23],$dot[6+40*62-62+24],$dot[6+40*62-62+25],$dot[6+40*62-62+26],$dot[6+40*62-62+27],$dot[6+40*62-62+28],$dot[6+40*62-62+29],$dot[6+40*62-62+30],$dot[6+40*62-62+31],$dot[6+40*62-62+32],$dot[6+40*62-62+33]);
$b100L=$dot[6+40*74-74];
$b100a=$dot[6+40*74-74+1];
$b100b=$dot[6+40*74-74+2];
$bD=DensitySp("M",$dot[6+40*74-74+3],$dot[6+40*74-74+4],$dot[6+40*74-74+5],$dot[6+40*74-74+6],$dot[6+40*74-74+7],$dot[6+40*74-74+8],$dot[6+40*74-74+9],$dot[6+40*74-74+10],$dot[6+40*74-74+11],$dot[6+40*74-74+12],$dot[6+40*74-74+13],$dot[6+40*74-74+14],$dot[6+40*74-74+15],$dot[6+40*74-74+16],$dot[6+40*74-74+17],$dot[6+40*74-74+18],$dot[6+40*74-74+19],$dot[6+40*74-74+20],$dot[6+40*74-74+21],$dot[6+40*74-74+22],$dot[6+40*74-74+23],$dot[6+40*74-74+24],$dot[6+40*74-74+25],$dot[6+40*74-74+26],$dot[6+40*74-74+27],$dot[6+40*74-74+28],$dot[6+40*74-74+29],$dot[6+40*74-74+30],$dot[6+40*74-74+31],$dot[6+40*74-74+32],$dot[6+40*74-74+33]);
$k100L=$dot[6+40*99-99];
$k100a=$dot[6+40*99-99+1];
$k100b=$dot[6+40*99-99+2];
$kD=DensitySp("K",$dot[6+40*99-99+3],$dot[6+40*99-99+4],$dot[6+40*99-99+5],$dot[6+40*99-99+6],$dot[6+40*99-99+7],$dot[6+40*99-99+8],$dot[6+40*99-99+9],$dot[6+40*99-99+10],$dot[6+40*99-99+11],$dot[6+40*99-99+12],$dot[6+40*99-99+13],$dot[6+40*99-99+14],$dot[6+40*99-99+15],$dot[6+40*99-99+16],$dot[6+40*99-99+17],$dot[6+40*99-99+18],$dot[6+40*99-99+19],$dot[6+40*99-99+20],$dot[6+40*99-99+21],$dot[6+40*99-99+22],$dot[6+40*99-99+23],$dot[6+40*99-99+24],$dot[6+40*99-99+25],$dot[6+40*99-99+26],$dot[6+40*99-99+27],$dot[6+40*99-99+28],$dot[6+40*99-99+29],$dot[6+40*99-99+30],$dot[6+40*99-99+31],$dot[6+40*99-99+32],$dot[6+40*99-99+33]);
$tpl=$PL;
$tpa=$Pa;
$tpb=$Pb;
$tcl=$c100L;
$tca=$c100a;
$tcb=$c100b;
$tml=$m100L;
$tma=$m100a;
$tmb=$m100b;
$tyl=$y100L;
$tya=$y100a;
$tyb=$y100b;
$tkl=$k100L;
$tka=$k100a;
$tkb=$k100b;
$trl=$r100L;
$tra=$r100a;
$trb=$r100b;
$tgl=$g100L;
$tga=$g100a;
$tgb=$g100b;
$tbl=$b100L;
$tba=$b100a;
$tbb=$b100b;
$dr76=sqrt(pow((47-$r100L),2)+ pow((68-$r100a),2)+pow((49-$r100b),2));
$dg76=sqrt(pow((50-$g100L),2)+ pow(((-68)-$g100a),2)+pow((25-$g100b),2));
$db76=sqrt(pow((24-$b100L),2)+ pow((17-$b100a),2)+pow(((-46)-$b100b),2));
function GetDegree($x, $y)
{
// we don't want to cause division by zero
if($x == 0) $x = 1 / 10000;
$deg = rad2deg(atan(abs($y / $x)));
if($y >= 0) $deg = $x < 0 ? 180 - $deg : $deg;
else $deg = $x < 0 ? 180 + $deg : 360 - $deg;
return $deg;
}
$dchg=GetDegree($tca,$tcb)-GetDegree(-37,-50);
$dmhg=GetDegree($tma,$tmb)-GetDegree(74,-3);
$dyhg=GetDegree($tya,$tyb)-GetDegree(-5,93);
$drhg=GetDegree($tra,$trb)-GetDegree(68,49);
$dghg=GetDegree($tga,$tgb)-GetDegree(-68,25);
$dbhg=GetDegree($tba,$tbb)-GetDegree(17,-46);
///////////cal paper
$cp=SQRT(pow($pa,2)+pow($pb,2));
$ctp=SQRT(pow($tpa,2)+pow($tpb,2));
$dcp=$ctp-$cp;
$dp76=sqrt(pow(($pl-$tpl),2)+ pow(($pa-$tpa),2)+pow(($pb-$tpb),2));
$dph=SQRT(ABS(pow($dp76,2)-pow(($pl-$tpl),2)-pow((SQRT(pow($pa,2)+pow($pb,2))-SQRT(pow($tpa,2)+pow($tpb,2))),2)));
$dp94=SQRT((pow((($pl-$tpl)/(1*1)),2))+pow(($dcp/(1*(1+(0.045*$cp)))),2)+ pow(($dph/(1*(1+(0.015*$cp)))),2));
//echo "del76p=";
//echo $dp76;
// echo "||del94p=";
// echo $dp94;
// echo "<br>";
?>
<tr>
<td><div align="center">W</div></td>
<td><div align="right"><?php echo $pl;?></div></td>
<td><div align="right"><?php echo $pa;?></div></td>
<td><div align="right"><?php echo $pb;?></div></td>
<td><div align="center"></div></td>
<td><div align="right"><?php echo $PL;?></div></td>
<td><div align="right"><?php echo $Pa;?></div></td>
<td><div align="right"><?php echo $Pb;?></div></td>
<td><div align="right"><?php echo round($dp76,2);?></div></td>
<td><div align="right"><?php echo round($pD,3);?></div></td>
<td>
<td bgcolor="#CCCCCC"><div align="center">K</div></td>
<td bgcolor="#CCCCCC"><div align="center">
<?php if ($Avgdl>1.5) {$sid=1;?>
<font color="red">
<?php } echo round($Avgdl,2);?>
</font></div></td>
<td bgcolor="#CCCCCC"><div align="center">
<?php if ($Maxdl>3) {$sid=1;?>
<font color="red">
<?php } echo round($Maxdl,2);?>
</font></div></td>
</tr>
<?php
///////////////////cal c
$cc=SQRT(pow($ca,2)+pow($cb,2));
$ctc=SQRT(pow($tca,2)+pow($tcb,2));
$dcc=$ctc-$cc;
$dc76=sqrt(pow(($cl-$tcl),2)+ pow(($ca-$tca),2)+pow(($cb-$tcb),2));
$dch=SQRT(ABS(pow($dc76,2)-pow(($cl-$tcl),2)-pow((SQRT(pow($ca,2)+pow($cb,2))-SQRT(pow($tca,2)+pow($tcb,2))),2)));
$dc94=SQRT((pow((($cl-$tcl)/(1*1)),2))+pow(($dcc/(1*(1+(0.045*$cc)))),2)+ pow(($dch/(1*(1+(0.015*$cc)))),2));
//echo "del76c=";
//echo $dc76;
//$dcHu=SQRT(ABS(pow($dbu76,2)-pow(($bul-$tbul),2)-pow((SQRT(pow($bua,2)+pow($bub,2))-SQRT(pow($tbua,2)+pow($tbub,2))),2)));
?>
<?php
// echo "Delta-E Cyan=";
if ($dc94>5) {$sid=1;?>
<?php }
//echo round($dc94,2);
// echo "<br>";
?>
<tr>
<td bgcolor="#66CCFF"><div align="center"><font color="black">C</font></div></td>
<td bgcolor="#66CCFF"><div align="right"><font color="black"><?php echo $cl;?></font></div></td>
<td bgcolor="#66CCFF"><div align="right"><font color="black"><?php echo $ca;?></font></div></td>
<td bgcolor="#66CCFF"><div align="right"><font color="black"><?php echo $cb;?></font></div></td>
<td>
<td bgcolor="#66CCFF"><div align="right"><font color="black"><?php echo $tcl;?></font></div></td>
<td bgcolor="#66CCFF"><div align="right"><font color="black"><?php echo $tca;?></font></div></td>
<td bgcolor="#B5D0FF"><div align="right"><font color="black"><?php echo $tcb;?></font></div></td>
<td bgcolor="#66CCFF"><div align="right"><font color="black">
<?php if ($dc76>5) {$sid=1;?><font color="red">
<?php }
echo round($dc76,2);$psum=$psum-$dc94;?>
</font></div></td>
<td bgcolor="#66CCFF"><?php echo round($cD,3);?></div></td>
<td bgcolor="#66CCFF"><?php echo round($dcc,2);?></div></td>
<td bgcolor="#66CCFF"><?php echo round($dchg,2);?></div></td>
<td bgcolor="#DDDDCD"><div align="center"><font color="black">
<?php if ($Avgdlc>1.5) {$sid=1;?><font color="red">
<?php } echo round($Avgdlc,2);?>
</font></div></td>
<td bgcolor="#DDDDCD"><div align="center"><font color="black">
<?php if ($Maxdlc>3) {$sid=1;?><font color="red">
<?php } echo round($Maxdlc,2);?>
</font></div></td>
<td bgcolor="#CCDDDD"><div align="center"><font color="black">
<?php if ($Avgdf>1.5) {$sid=1;?><font color="red">
<?php } echo round($Avgdf,2);?>
</font></div></td>
<td bgcolor="#CCDDDD"><div align="center"><font color="black">
<?php if ($Maxdf>3) {$sid=1;?><font color="red">
<?php } echo round($Maxdf,2);?>
</font></div></td>
</tr>
<?php
/////////////cal m
if ($device=='isis') {
$tml=$tml;$tmb=$tmb;}
else {
$tml=$tml-1;$tmb=$tmb-1.2;}
$cm=SQRT(pow($ma,2)+pow($mb,2));
$ctm=SQRT(pow($tma,2)+pow($tmb,2));
$dcm=$ctm-$cm;
$dm76=sqrt(pow(($ml-$tml),2)+ pow(($ma-$tma),2)+pow(($mb-$tmb),2));
$dmh=SQRT(ABS(pow($dm76,2)-pow(($ml-$tml),2)-pow((SQRT(pow($ma,2)+pow($mb,2))-SQRT(pow($tma,2)+pow($tmb,2))),2)));
$dm94=SQRT((pow((($ml-$tml)/(1*1)),2))+pow(($dcm/(1*(1+(0.045*$cm)))),2)+ pow(($dmh/(1*(1+(0.015*$cm)))),2));
// echo "del76m=";
// echo $dm76;
?>
<?php
// echo "Delta-E Magenta=";
if ($dm94>5) {$sid=1;?>
<?php }
//echo round($dm94,2);
// echo "<br>";
?>
<tr>
<td bgcolor="#FFCCFF"><div align="center"><font color="black">M</font></div></td>
<td bgcolor="#FFCCFF"><div align="right"><font color="black"><?php echo $ml;?></font></div></td>
<td bgcolor="#FFCCFF"><div align="right"><font color="black"><?php echo $ma;?></font></div></td>
<td bgcolor="#FFCCFF"><div align="right"><font color="black"><?php echo $mb;?></font></div></td>
<td bgcolor="#FFCCFF"><div align="center"></div></td>
<td bgcolor="#FFCCFF"><div align="right"><font color="black"><?php echo $tml;?></font></div></td>
<td bgcolor="#A2A2FF"><div align="right"><font color="black"><?php echo $tma;?></font></div></td>
<td bgcolor="#FFCCFF"><div align="right"><font color="black"><?php echo $tmb;?></font></div></td>
<td bgcolor="#FFCCFF"><div align="right"><font color="black">
<?php if ($dm76>5) {$sid=1;?><font color="red">
<?php }
echo round($dm76,2);$psum=$psum-$dm94;?>
</font></div></td>
<td bgcolor="#FFCCFF"><div align="right"><?php echo round($mD,3);?></div></td>
<td bgcolor="#FFCCFF"><div align="right"><?php echo round($dcm,2);?></div></td>
<td bgcolor="#FFCCFF"><div align="right"><?php echo round($dmhg,2);?></div></td>
<td bgcolor="#FF6600"><div align="center"><font color="black">47</font></div></td>
<td bgcolor="#FF6600"><div align="center"><font color="black">68</font></div></td>
<td bgcolor="#FF6600"><div align="center"><font color="black">49</font></div></td>
<td bgcolor="#FFCCFF"><div align="right"><?php echo round($rD,3);?></div></td>
<?php $dr76=sqrt(pow((47-$trl),2)+ pow((68-$tra),2)+pow((49-$trb),2));
$rl=47;
$ra=68;
$rb=49;
$cr=SQRT(pow($ra,2)+pow($rb,2));
$ctr=SQRT(pow($tra,2)+pow($trb,2));
$dcr=$ctr-$cr;
$drh=SQRT(ABS(pow($dr76,2)-pow(($rl-$trl),2)-pow((SQRT(pow($ra,2)+pow($rb,2))-SQRT(pow($tra,2)+pow($trb,2))),2)));
?>
<td bgcolor="#FF6600"><div align="center"><font color="black"><?php echo $trl;?></font></div></td>
<td bgcolor="#A2A2FF"><div align="center"><font color="black"><?php echo $tra;?></font></div></td>
<td bgcolor="#E0FECB"><div align="center"><font color="black"><?php echo $trb;?></font></div></td>
<td bgcolor="#FF6600"><div align="center"><font color="black">
<?php if ($dr76>6) { ?><font color="red">
<?php } echo round($dr76,2);?>
</font></div></td>
<td bgcolor="#FFCCFF"><div align="right"><?php echo round(($rD-$myD)/$yD*100,2);?></div></td>
<td bgcolor="#FF6600"><div align="right"><?php echo round($dcr,2);?></div></td>
<td bgcolor="#FF6600"><div align="right"><?php echo round($drhg,2);?></div></td>
</tr>
<?php
////////////////cal y
$cy=SQRT(pow($ya,2)+pow($yb,2));
$cty=SQRT(pow($tya,2)+pow($tyb,2));
$dcy=$cty-$cy;
$dy76=sqrt(pow(($yl-$tyl),2)+ pow(($ya-$tya),2)+pow(($yb-$tyb),2));
$dyh=SQRT(ABS(pow($dy76,2)-pow(($yl-$tyl),2)-pow((SQRT(pow($ya,2)+pow($yb,2))-SQRT(pow($tya,2)+pow($tyb,2))),2)));
$dy94=SQRT((pow((($yl-$tyl)/(1*1)),2))+pow(($dcy/(1*(1+(0.045*$cy)))),2)+ pow(($dyh/(1*(1+(0.015*$cy)))),2));
// echo "del76y=";
// echo $dy76;
?>
<?php
// echo "Delta-E Yellow=";
if ($dy76>5) {$sid=1;?>
<?php }
//echo round($dy94,2);
// echo "<br>";
?>
<tr>
<td bgcolor="#FFFFCC"><div align="center"><font color="black">Y</font></div></td>
<td bgcolor="#FFFFCC"><div align="right"><font color="black"><?php echo $yl;?></font></div></td>
<td bgcolor="#FFFFCC"><div align="right"><font color="black"><?php echo $ya;?></font></div></td>
<td bgcolor="#FFFFCC"><div align="right"><font color="black"><?php echo $yb;?></font></div></td>
<td bgcolor="#FFFFCC"><div align="center"></div></td>
<td bgcolor="#FFFFCC"><div align="right"><font color="black"><?php echo $tyl;?></font></div></td>
<td bgcolor="#FFFFCC"><div align="right"><font color="black"><?php echo $tya;?></font></div></td>
<td bgcolor="#E0FECB"><div align="right"><font color="black"><?php echo $tyb;?></font></div></td>
<td bgcolor="#FFFFCC"><div align="right"><font color="black">
<?php if ($dy76>5) {$sid=1;?><font color="red">
<?php }
echo round($dy76,2);$psum=$psum-$dy94;?>
</font></div></td>
<td bgcolor="#FFFFCC"><div align="right"><?php echo round($yD,3);?></div></td>
<td bgcolor="#FFFFCC"><div align="right"><?php echo round($dcy,2);?></div></td>
<td bgcolor="#FFFFCC"><div align="right"><?php echo round($dyhg,2);?></div></td>
<td bgcolor="#66CC66"><div align="center"><font color="black">50</font></div></td>
<td bgcolor="#66CC66"><div align="center"><font color="black">-68</font></div></td>
<td bgcolor="#66CC66"><div align="center"><font color="black">25</font></div></td>
<td bgcolor="#FFFFCC"><div align="right"><?php echo round($gD,3);?></div></td>
<td bgcolor="#66CC66"><div align="center"><font color="black"><?php echo $tgl;?></font></div></td>
<td bgcolor="#66CC66"><div align="center"><font color="black"><?php echo $tga;?></font></div></td>
<td bgcolor="#E0FECB"><div align="center"><font color="black"><?php echo $tgb;?></font></div></td>
<td bgcolor="#66CC66"><div align="center"><font color="black">
<?php if ($dg76>6) { ?><font color="red">
<?php } echo round($dg76,2);?>
<td bgcolor="#FFFFCC"><div align="right"><?php echo round(($gD-$cyD)/$yD*100,2);?></div></td>
<?php
$gl=50;
$ga=-68;
$gb=25;
$cg=SQRT(pow($ga,2)+pow($gb,2));
$ctg=SQRT(pow($tga,2)+pow($tgb,2));
$dcg=$ctg-$cg;
$dgh=SQRT(ABS(pow($dg76,2)-pow(($gl-$tgl),2)-pow((SQRT(pow($ga,2)+pow($gb,2))-SQRT(pow($tga,2)+pow($tgb,2))),2)));
?>
<td bgcolor="#66CC66"><div align="right"><?php echo round($dcg,2);?></div></td>
<td bgcolor="#66CC66"><div align="right"><?php echo round($dghg,2);?></div></td>
</font></div></td>
</td>
</tr>
<?php
////////////////////////////cal k
$ck=SQRT(pow($ka,2)+pow($kb,2));
$ctk=SQRT(pow($tka,2)+pow($tkb,2));
$dck=$ctk-$ck;
$dk76=sqrt(pow(($kl-$tkl),2)+ pow(($ka-$tka),2)+pow(($kb-$tkb),2));
$dkh=SQRT(ABS(pow($dk76,2)-pow(($kl-$tkl),2)-pow((SQRT(pow($ka,2)+pow($kb,2))-SQRT(pow($tka,2)+pow($tkb,2))),2)));
$dk94=SQRT((pow((($kl-$tkl)/(1*1)),2))+pow(($dck/(1*(1+(0.045*$ck)))),2)+ pow(($dkh/(1*(1+(0.015*$ck)))),2));
// echo "del76k=";
// echo $dk76;
?>
<?php
// echo "Delta-E Blank=";
if ($dk94>5) {$sid=1;?>
<?php }
// echo round($dk94,2);
// echo "<br>";
?>
<tr>
<td bgcolor="#CCCCCC"><div align="center"><font color="black">K</font></div></td>
<td bgcolor="#CCCCCC"><div align="right"><font color="black"><?php echo $kl;?></font></div></td>
<td bgcolor="#CCCCCC"><div align="right"><font color="black"><?php echo $ka;?></font></div></td>
<td bgcolor="#CCCCCC"><div align="right"><font color="black"><?php echo $kb;?></font></div></td>
<td bgcolor="#CCCCCC"><div align="center"></div></td>
<td bgcolor="#CCCCCC"><div align="right"><font color="black"><?php echo $tkl;?></font></div></td>
<td bgcolor="#CCCCCC"><div align="right"><font color="black"><?php echo $tka;?></font></div></td>
<td bgcolor="#CCCCCC"><div align="right"><font color="black"><?php echo $tkb;?></font></div></td>
<td bgcolor="#CCCCCC"><div align="right"><font color="black">
<?php if ($dk76>5) {$sid=1;?><font color="red">
<?php }
echo round($dk76,2);$psum=$psum-$dk94;?>
</font></div></td>
<td bgcolor="#CCCCCC"><div align="right"><?php echo round($kD,3);?></div></td>
<td>
<td>
<td bgcolor="#3366FF"><div align="center"><font color="black">24</font></div></td>
<td bgcolor="#3366FF"><div align="center"><font color="black">17</font></div></td>
<td bgcolor="#3366FF"><div align="center"><font color="black">-46</font></div></td>
<td bgcolor="#A2A2FF"><div align="right"><?php echo round($bD,3);?></div></td>
<?php $db76=sqrt(pow((24-$tbl),2)+ pow((17-$tba),2)+pow(((-46)-$tbb),2));?>
<td bgcolor="#3366FF"><div align="center"><font color="black"><?php echo $tbl;?></font></div></td>
<td bgcolor="#A2A2FF"><div align="center"><font color="black"><?php echo $tba;?></font></div></td>
<td bgcolor="#B1D0FE"><div align="center"><font color="black"><?php echo $tbb;?></font></div></td>
<td bgcolor="#3366FF"><div align="center"><font color="black">
<?php if ($db76>6) { ?><font color="red">
<?php } echo round($db76,2);?>
<td bgcolor="#A2A2FF"><div align="right"><?php echo round(($bD-$cmD)/$mD*100,2);?></div></td>
<?php
$bl=24;
$ba=17;
$bb=-46;
$cb=SQRT(pow($ba,2)+pow($bb,2));
$ctb=SQRT(pow($tba,2)+pow($tbb,2));
$dcb=$ctb-$cb;
$dbh=SQRT(ABS(pow($db76,2)-pow(($bl-$tbl),2)-pow((SQRT(pow($ba,2)+pow($bb,2))-SQRT(pow($tba,2)+pow($tbb,2))),2)));
?>
<td bgcolor="#3366FF"><div align="right"><?php echo round($dcb,2);?></div></td>
<td bgcolor="#3366FF"><div align="right"><?php echo round($dbhg,2);?></div></td>
</font></div></td>
</tr>
<?php
$Tsum=(($sum/260)*60)+(($psum/20)*40);
$Rsum=round($Tsum,2);
if (($check==0) && ($sid==0)){
$passbit=1;
}
/////////////////////data base sector/////////
$connection = mysql_connect("127.0.0.1", "root", "fredsql") or die ("Unable to connect!");
mysql_query("SET NAMES 'utf8'");
$db = "tvicheck";
// select database
mysql_select_db($db) or die ("Unable to select database!");
// generate and execute query
$query = "INSERT INTO G7BaseX(company, contact, email, type, filename, score, passbit, date, device, dsn, printer, paper, ink, rankbit, ip) VALUES('$company', '$contact', '$email', '$type', '$filename','$Rsum', '$passbit', NOW(), '$device', '$dsn', '$printer', '$paper', '$ink', '$rankbit','". $_SERVER['REMOTE_ADDR'] ."')";
$result = mysql_query($query) or die ("Error in query: $query. " . mysql_error());
mysql_close($connection);
////////////////////data base sector/////////////////
}//satrt parsing
}//upload sucess
?>
</table>
<?php
?><font color="black"><?php
echo "G7 TVI check: ";
if ($check==1) {
?><font color="red"><?php
echo "sorry, you didn't pass the TVI check! "."<br>";
}
else{
?><font color="green"><?php
echo "Congratulation, You've passed the TVI check!"."<br>";
}
?><font color="black"><?php
echo "Primary check: ";
if ($sid==1){
?><font color="red"><?php
echo "sorry, you didn't pass the primary color data check! "."<br>";
}
else{
?><font color="green"><?php
echo "Congratulation, You've passed the primaries color check!"."<br>";
}
?>
<tr>
<td align="center">TVI Score=<?php echo $sum;?></a><br>
</td>
</tr>
<tr>
<td align="center">Primaries color score=<?php echo round($psum,2);?></a><br>
</td>
</tr>
<tr>
<td align="center">Total score=<?php echo round($Tsum,2);?></a><br>
</td>
</tr>
<tr>
<td align="center"> <a href="rank.php">Ranking(看排名)</a><br>
</td>
</tr>
<tr>
<td align="center"><font size="-2"> © <a href="mailto:[email protected]">Fred Kuo</a>, 2010. All rights reserved.<br><a href="http://www.fredkuo.idv.tw/wordpress/?p=1025">Read more.</a><br>
</td>
</tr>
<table width="200" border="1" align="center">
<tr>
<td><div align="center">
<?php // content="text/plain; charset=utf-8"
unlink('scatterGuR.png');
require_once ('../jpgraph/jpgraph.php');
require_once ('../jpgraph/jpgraph_scatter.php');
//${'s'.($minGroupRid-1).'a'
$datax = array($tma,$tra,$tya,$tga,$tca,$tba,$tma);
$datay = array($tmb,$trb,$tyb,$tgb,$tcb,$tbb,$tmb);
$datax2 = array(74,68,-5,-68,-37,17,74);
$datay2 = array(-3,49,93,25,-50,-46,-3);
$datax3 = array($c5a,$c10a,$c20a,$c30a,$c40a,$c50a,$c60a,$c70a,$c80a,$c90a,$c95a);
$datay3 = array($c5b,$c10b,$c20b,$c30b,$c40b,$c50b,$c60b,$c70b,$c80b,$c90b,$c95b);
$dataxr = array($r5a,$r10a,$r20a,$r30a,$r40a,$r50a,$r60a,$r70a,$r80a,$r90a,$r95a);
$datayr = array($r5b,$r10b,$r20b,$r30b,$r40b,$r50b,$r60b,$r70b,$r80b,$r90b,$r95b);
$dataxm = array($m5a,$m10a,$m20a,$m30a,$m40a,$m50a,$m60a,$m70a,$m80a,$m90a,$m95a);
$dataym = array($m5b,$m10b,$m20b,$m30b,$m40b,$m50b,$m60b,$m70b,$m80b,$m90b,$m95b);
$dataxg = array($g5a,$g10a,$g20a,$g30a,$g40a,$g50a,$g60a,$g70a,$g80a,$g90a,$g95a);
$datayg = array($g5b,$g10b,$g20b,$g30b,$g40b,$g50b,$g60b,$g70b,$g80b,$g90b,$g95b);
$dataxy = array($y5a,$y10a,$y20a,$y30a,$y40a,$y50a,$y60a,$y70a,$y80a,$y90a,$y95a);
$datayy = array($y5b,$y10b,$y20b,$y30b,$y40b,$y50b,$y60b,$y70b,$y80b,$y90b,$y95b);
$dataxb = array($b5a,$b10a,$b20a,$b30a,$b40a,$b50a,$b60a,$b70a,$b80a,$b90a,$b95a);
$datayb = array($b5b,$b10b,$b20b,$b30b,$b40b,$b50b,$b60b,$b70b,$b80b,$b90b,$b95b);
//$datax = array($k1d,$k2d,$k3d);
//$datay = array($dk176,$dk276,$dk376);
$graph = new Graph(600,600);
$graph->SetScale("linlin");
$graph->img->SetMargin(40,40,40,40);
$graph->SetShadow();
$graph->title->Set("Gamut scatter R plot");
$graph->title->SetFont(FF_FONT1,FS_BOLD);
$sp1 = new ScatterPlot($datay,$datax);
$sp1->mark->SetType(MARK_FILLEDCIRCLE);
$sp1->mark->SetFillColor("red");
$sp2 = new ScatterPlot($datay2,$datax2);
$sp2->SetLinkPoints(true,"#55bbdd",2);
$sp2->mark->SetType(MARK_FILLEDCIRCLE);
$sp2->mark->SetFillColor("#55bbdd");
$sp2->mark->SetWidth(3);
$sp3 = new ScatterPlot($datay3,$datax3);
//$sp3->mark->SetType(MARK_FILLEDCIRCLE);
$sp3->mark->SetFillColor("#55bbdd");
$spr = new ScatterPlot($datayr,$dataxr);
//$spr->mark->SetType(MARK_FILLEDCIRCLE);
$spr->mark->SetFillColor("#f70404");
$spm = new ScatterPlot($dataym,$dataxm);
//$spm->mark->SetType(MARK_FILLEDCIRCLE);
$spm->mark->SetFillColor("#e13fcc");
$spg = new ScatterPlot($datayg,$dataxg);
//$spg->mark->SetType(MARK_FILLEDCIRCLE);
$spg->mark->SetFillColor("#3fe14e");
$spy = new ScatterPlot($datayy,$dataxy);
//$spy->mark->SetType(MARK_FILLEDCIRCLE);
$spy->mark->SetFillColor("#f3fb12");
$spb = new ScatterPlot($datayb,$dataxb);
//$spb->mark->SetType(MARK_FILLEDCIRCLE);
$spb->mark->SetFillColor("#1f2eef");
$graph->Add($sp2);
$graph->Add($sp3);
$graph->Add($spr);
$graph->Add($spm);
$graph->Add($spg);
$graph->Add($spy);
$graph->Add($spb);
$graph->Add($sp1);
$graph->Stroke('scatterGuR.png');
?>
<img src="scatterGuR.png">
</div></td>
</tr>
</table>
<table>
<div>
<?php
include 'graphFixC.php';
GenGraphC($c5+3.7,$c10+6.9,0.01,$c20+11.6,0.01,$c30+15,$c35,$c40+16.6,$c45,$c50+16.8,$c55,$c60+15.8,$c65,$c70+13.9,0.01,$c80+11,0.01,$c90+6.2,$c95+3.3);
?>
<img src="graphC.gif">
</div>
</table>
<table>
<div>
<?php
include 'graphFixM.php';
GenGraphM($m5+3.1,$m10+5.8,0.01,$m20+10.2,0.01,$m30+13.6,$m35,$m40+15.3,$m45,$m50+15.6,$m55,$m60+15,$m65,$m70+13.4,0.01,$m80+10.7,0.01,$m90+6,$m95+3.2);
?>
<img src="graphM.gif">
</div>
</table>
<table>
<div>
<?php
include 'graphFixY.php';
GenGraphY($y5+3.3,$y10+6.6,0.01,$y20+11.6,0.01,$y30+14.4,$y35,$y40+16,$y45,$y50+16.6,$y55,$y60+15.8,$y65,$y70+13.8,0.01,$y80+11.1,0.01,$y90+6.3,$y95+3.3);
?>
<img src="graphY.gif">
</div>
</table>
<table>
<div>
<?php
include 'graphFixK.php';
GenGraphK($k5m,$k10m,$k15m,$k20m,$k25m,$k30m,$k35m,$k40m,$k45m,$k50m,$k55m,$k60m,$k65m,$k70m,$k75m,$k80m,$k85m,$k90m,$k95m,$tvk5,$tvk10,$tvk15,$tvk20,$tvk25,$tvk30,$tvk35,$tvk45,$tvk45,$tvk50,$tvk55,$tvk60,$tvk65,$tvk70,$tvk75,$tvk80,$tvk85,$tvk90,$tvk95);
?>
<img src="graphK.gif">
</div>
</table>
</body>
</html>