Initial commit
This commit is contained in:
@@ -0,0 +1,145 @@
|
||||
<?php
|
||||
if (!empty($_SESSION['site207']))
|
||||
{
|
||||
?>
|
||||
|
||||
|
||||
<?php
|
||||
$wynik = mysql_query("select EQU_ID,EQU_NAME,EQU_DESCRIPTION,MCF_NAME,EQU_PARAM_01,EQU_PARAM_02 from seg_equipments left join seg_manufacturers on EQU_MCF_ID=MCF_ID where EQU_TYPE_ID=15 and EQU_ID=".$_GET['eq']);
|
||||
if($wynik)while ($r = mysql_fetch_array($wynik))
|
||||
{
|
||||
$sql_1 = $r["EQU_ID"];
|
||||
$sql_2 = $r["EQU_NAME"];
|
||||
$sql_3 = $r["EQU_DESCRIPTION"]; $sql_3= str_replace(".", ",", $sql_3);
|
||||
$sql_4 = $r["MCF_NAME"];
|
||||
$sql_5 = $r["EQU_PARAM_01"];
|
||||
$sql_6 = $r["EQU_PARAM_02"];
|
||||
|
||||
|
||||
|
||||
}
|
||||
?>
|
||||
|
||||
|
||||
<div class="tag50_left">
|
||||
<div class="head_tag"><?php echo $lab_Tag_site207_002 ;?></div>
|
||||
<div class="tag">
|
||||
<TABLE class="desc_val">
|
||||
<TR>
|
||||
<TD class="desc_well_param"><?php echo $lab_Field_site207_001; ?></TD>
|
||||
<TD CLASS="desc_value"><?php echo $sql_2; ?></TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TD class="desc_well_param"><?php echo $lab_Field_site207_004; ?></TD>
|
||||
<TD CLASS="desc_value"><?php echo $sql_4; ?></TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TD class="desc_well_param"><?php echo $lab_Field_site207_002; ?></TD>
|
||||
<TD CLASS="desc_value"><?php echo $sql_5; ?></TD>
|
||||
</TR>
|
||||
<TR>
|
||||
<TD class="desc_well_param"><?php echo $lab_Field_site207_003; ?></TD>
|
||||
<TD CLASS="desc_value"><?php echo $sql_6; ?></TD>
|
||||
</TR>
|
||||
|
||||
|
||||
<TR>
|
||||
<TD class="desc_well_param"><?php echo $lab_Field_site206_003; ?></TD>
|
||||
<TD CLASS="desc_value"><?php echo str_replace(chr(13), "<br/>", $sql_3); ?></TD>
|
||||
</TR>
|
||||
|
||||
<?php
|
||||
if (sqlValue("select count(1) from seg_equipments_files where LOWER(SUBSTRING_INDEX(EQF_FILE_TYPE, '/', 1))=lower('application') and EQF_EQU_ID=".$_GET['eq'])>0)
|
||||
{
|
||||
echo"
|
||||
<TR>
|
||||
<TD class='desc_well_param'>$lab_Field_site206_004</TD>
|
||||
<TD CLASS='desc_value'>";
|
||||
$wynik = mysql_query("select EQF_ID,SUBSTRING_INDEX(EQF_FILE_NAME, '.', -1) ICO,EQF_FILE_NAME from seg_equipments_files where LOWER(SUBSTRING_INDEX(EQF_FILE_TYPE, '/', 1))=lower('application') and EQF_EQU_ID=".$_GET['eq']);
|
||||
if($wynik)while ($r = mysql_fetch_array($wynik))
|
||||
{
|
||||
$eq_1 = $r["EQF_ID"];
|
||||
$vICO = $r["ICO"];
|
||||
$eq_2 = $r["EQF_FILE_NAME"];
|
||||
|
||||
if ($vICO=='pdf') $icoFile = './images/pdf_ico.png';
|
||||
else if ($vICO=='doc' || $vICO=='docx') $icoFile = './images/word_ico.png';
|
||||
else if ($vICO=='xls' || $vICO=='xlsx') $icoFile = './images/excel_ico.png';
|
||||
else if ($vICO=='ppt' || $vICO=='pptx' || $vICO=='pps' || $vICO=='ppsx') $icoFile = './images/ppoint_ico.png';
|
||||
else if ($vICO=='jpg' || $vICO=='png' || $vICO=='bmp' || $vICO=='jpeg' || $vICO=='gif' || $vICO=='jfif' || $vICO=='tiff' || $vICO=='dib') $icoFile = './images/photo_ico.png';
|
||||
else if ($vICO=='mpg' || $vICO=='divx' || $vICO=='avi' || $vICO=='mp3' || $vICO=='mp4' || $vICO=='mov') $icoFile = './images/divx_ico.png';
|
||||
else $icoFile = './images/file_ico.png';
|
||||
|
||||
echo"<img src=$icoFile><a class='knowledge' href='./sites/eqdocgeneratefromdb.php?fno=$eq_1' target='_blank'>$eq_2</a><br/>";
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
echo"</TD>
|
||||
</TR>
|
||||
|
||||
|
||||
";
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="tag50_right">
|
||||
|
||||
<div class="head_tag"><?php echo $lab_Field_site206_005 ;?></div>
|
||||
<div class="tag_center">
|
||||
|
||||
<?php
|
||||
$wynik = mysql_query("select EQF_FILE_TYPE,EQF_FILE from seg_equipments_files where LOWER(SUBSTRING_INDEX(EQF_FILE_TYPE, '/', 1))=lower('image') and EQF_EQU_ID=".$_GET['eq']);
|
||||
if($wynik)while ($r = mysql_fetch_array($wynik))
|
||||
{
|
||||
$param_1 = $r["EQF_FILE_TYPE"];
|
||||
$param_2 = $r["EQF_FILE"];
|
||||
|
||||
$im = imagecreatefromstring($param_2);
|
||||
$fileName="./charts/".$_SESSION['user']."_".date("Ymd")."_".date("His")."_chart_207inf_01.png";
|
||||
imagePNG( $im,$fileName);
|
||||
list($width, $height) = getimagesize($fileName);
|
||||
if ($width>450)
|
||||
echo"<img src='$fileName' width='450'>";
|
||||
else
|
||||
echo"<img src='$fileName'>";
|
||||
|
||||
//$imgData = base64_encode($param_2);
|
||||
//$src = 'data: $param_1;base64,'.$imgData;
|
||||
//echo"<img src='$src' >";
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="tag50_left">
|
||||
<div class="tag_buttons" style="text-align: left;">
|
||||
<button type="button" class="btn btn-default btn-sm" onclick="window.print();">Drukuj</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<?php if (!empty($_SESSION['site207_edit'])) { ?>
|
||||
<div class="tag50_right">
|
||||
<div class="tag_buttons">
|
||||
<?php echo "<a href=./?pg=site207>"; ?><INPUT class='btn btn-info btn-sm' TYPE="BUTTON" VALUE="<?php echo $lab_ButtonName_Back; ?>"></A>
|
||||
<?php echo "<a class='confirmation' href=./?pg=site207¶m=".$_GET['eq'].",del,".md5($_GET['eq']).">"; ?><INPUT class='btn btn-danger btn-sm' TYPE="BUTTON" VALUE="<?php echo $lab_ButtonName_Delete; ?>"></A>
|
||||
<?php echo "<a href=./?pg=site207E&eq=".$_GET['eq'].">"; ?><INPUT class='btn btn-success btn-sm' TYPE="BUTTON" VALUE="<?php echo $lab_ButtonName_Modify; ?>"></A>
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<?php
|
||||
}
|
||||
else showFooterWarningAccessNotification($lab_FooterWarningAccessNotification_001);
|
||||
?>
|
||||
Reference in New Issue
Block a user