| ", $sql_3); ?> | |
| $lab_Field_site206_004 | ";
$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" "; } echo" |