123 lines
3.7 KiB
PHP
123 lines
3.7 KiB
PHP
<?php
|
|
if (!empty($_SESSION['site401']))
|
|
{
|
|
$wynik = mysql_query("select PUP_ID,PUP_NAME,TST_PUP_SN_NO,ENG_ID,ENG_NAME,TST_ENG_SN_NO,SUBSTRING(TST_AUDIT_CD,1,10) CD from tst_tests left join seg_pumps on TST_PUP_ID=PUP_ID left join seg_engines on TST_ENG_ID=ENG_ID where TST_ID=".$_GET['t']);
|
|
if($wynik)while ($r = mysql_fetch_array($wynik))
|
|
{
|
|
$pID = $r["PUP_ID"];
|
|
$pName = $r["PUP_NAME"];
|
|
$pNo = $r["TST_PUP_SN_NO"];
|
|
$sName = $r["ENG_NAME"];
|
|
$sNo = $r["TST_ENG_SN_NO"];
|
|
$tDate = $r["CD"];
|
|
}
|
|
|
|
$title = "Cyfrowe charakterystyki dla agregatu [$pName,$sName] ze Stacji prób";
|
|
|
|
|
|
$wynik = mysql_query("select PEP_X_PARAM from seg_pump_eng_param where PEP_TYPE='H' and PEP_PUP_ID=".$pID." order by PEP_X_PARAM");
|
|
if($wynik)while ($r = mysql_fetch_array($wynik))
|
|
$dataP[] = $r["PEP_X_PARAM"];
|
|
|
|
$wynik = mysql_query("select TSD_VAL_04,TSD_VAL_08,TSD_VAL_14,TSD_VAL_18 from tst_tests left join tst_test_details on TSD_TST_ID=TST_ID where TST_ID=".$_GET['t']." order by TSD_MSR_STEP");
|
|
if($wynik)while ($r = mysql_fetch_array($wynik))
|
|
{
|
|
$dataH[] = array(
|
|
getFloatValue($r["TSD_VAL_04"]),
|
|
getFloatValue($r["TSD_VAL_08"])
|
|
);
|
|
$dataPe[] = array(
|
|
getFloatValue($r["TSD_VAL_04"]),
|
|
getFloatValue($r["TSD_VAL_14"])
|
|
);
|
|
$dataEta[] = array(
|
|
getFloatValue($r["TSD_VAL_04"]),
|
|
getFloatValue($r["TSD_VAL_18"])
|
|
);
|
|
}
|
|
|
|
|
|
$fileName1=createChartFileNamePng("site401charts_01");
|
|
if (file_exists( $fileName1)) unlink($fileName1);
|
|
|
|
include("./polynomial/hpCharts.php");
|
|
createHpTestChart($dataP, $dataH, 0, $fileName1, 969, 330, 20, 10, 1);
|
|
|
|
|
|
$fileName2=createChartFileNamePng("site401charts_02");
|
|
if (file_exists( $fileName2)) unlink($fileName2);
|
|
|
|
include("./polynomial/peCharts.php");
|
|
createPeTestChart($dataP, $dataPe, 0, $fileName2, 969, 330, 20, 10, 1);
|
|
|
|
$fileName3=createChartFileNamePng("site401charts_03");
|
|
if (file_exists( $fileName3)) unlink($fileName3);
|
|
|
|
include("./polynomial/etaCharts.php");
|
|
createEtaTestChart($dataP, $dataEta, 0, $fileName3, 969, 330, 20, 10, 1);
|
|
|
|
?>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="tag100">
|
|
<div class="head_tag"><?php echo $title;?></div>
|
|
<div class="tag">
|
|
<table WIDTH="100%" class="tag">
|
|
<TR>
|
|
<TD class="desc">Numer próby</TD>
|
|
<TD CLASS="desc_value"><?php echo $_GET['t']; ?></TD>
|
|
<TD class="desc">Data</TD>
|
|
<TD CLASS="desc_value"><?php echo $tDate; ?></TD>
|
|
</TR>
|
|
|
|
<TR>
|
|
<TD class="desc">Typ pompy</TD>
|
|
<TD CLASS="desc_value"><?php echo $pName; ?></TD>
|
|
<TD class="desc">Typ silnika</TD>
|
|
<TD CLASS="desc_value"><?php echo $sName; ?></TD>
|
|
</TR>
|
|
<TR>
|
|
<TD class="desc">Numer pompy</TD>
|
|
<TD CLASS="desc_value"><?php echo $pNo; ?></TD>
|
|
<TD class="desc">Numer silnika</TD>
|
|
<TD CLASS="desc_value"><?php echo $sNo; ?></TD>
|
|
</TR>
|
|
</table>
|
|
</div>
|
|
|
|
|
|
|
|
<div class="head_tag">Podnoszenie H(Q) </div>
|
|
<div class="tag">
|
|
<img SRC="<?php echo $fileName1; ?>">
|
|
</div>
|
|
|
|
|
|
<div class="head_tag">Moc P(Q) </div>
|
|
<div class="tag">
|
|
<img SRC="<?php echo $fileName2; ?>">
|
|
</div>
|
|
|
|
|
|
<div class="head_tag">Sprawność agregatu ηA(Q) </div>
|
|
<div class="tag">
|
|
<img SRC="<?php echo $fileName3; ?>">
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="tag100">
|
|
<div class="tag_buttons">
|
|
<INPUT class="btn btn-info btn-sm" TYPE="button" VALUE="<?php echo $lab_ButtonName_Back; ?>" onclick="window.history.back()">
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<?php
|
|
}
|
|
else showFooterWarningAccessNotification($lab_FooterWarningAccessNotification_001);
|
|
?>
|