Action = "update"; $UpdateQuery->Table = "`trf-details`"; $UpdateQuery->bindColumn("virusprotection", "s", "$virusprot", "WA_DEFAULT"); $UpdateQuery->bindColumn("shoesorthopedic", "s", "$orthopedic", "WA_DEFAULT"); $UpdateQuery->bindColumn("autoclavable", "s", "$autoclavable", "WA_DEFAULT"); $UpdateQuery->bindColumn("esd", "s", "$esd", "WA_DEFAULT"); $UpdateQuery->bindColumn("slipping", "s", "$slipping", "WA_DEFAULT"); $UpdateQuery->addFilter("idtrfdetails", "=", "i", "".($idtrf) .""); $UpdateQuery->execute(); $UpdateGoTo = ""; if (function_exists("rel2abs")) $UpdateGoTo = $UpdateGoTo?rel2abs($UpdateGoTo,dirname(__FILE__)):""; $UpdateQuery->redirect($UpdateGoTo); } ?> setQuery("SELECT * FROM standards WHERE standards.idarticlecharacteristic='$ac'"); $stdfromartchar->execute(); $value=$stdfromartchar->getColumnVal("idstandards"); $dpicatsel=$stdfromartchar->getColumnVal("iddpicategory"); //foreach ($stds as $hobys=>$value) { $stdcheckpresent = new WA_MySQLi_RS("stdcheckpresent",$cmctrfdb,1); $stdcheckpresent->setQuery("SELECT * FROM trfstandards WHERE trfstandards.idtrfdetails='$idtrf' AND trfstandards.idstandards='$value'"); $stdcheckpresent->execute(); // insert for glovces EN 420 if not present if ($articletype==2) { $stdcheckpresent420 = new WA_MySQLi_RS("stdcheckpresent420",$cmctrfdb,1); $stdcheckpresent420->setQuery("SELECT * FROM trfstandards WHERE trfstandards.idtrfdetails='$idtrf' AND trfstandards.idstandards='129'"); $stdcheckpresent420->execute(); if (empty($stdcheckpresent420->getColumnVal("idtrfstandards"))) { $InsertQuery = new WA_MySQLi_Query($cmctrfdb); $InsertQuery->Action = "insert"; $InsertQuery->Table = "trfstandards"; $InsertQuery->bindColumn("idtrfdetails", "i", "$idtrf", "WA_DEFAULT"); $InsertQuery->bindColumn("idstandards", "i", "129", "WA_DEFAULT"); $InsertQuery->bindColumn("iddpicategory", "i", "$dpicatsel", "WA_DEFAULT"); $InsertQuery->saveInSession(""); $InsertQuery->execute(); $InsertGoTo = ""; $InsertQuery->redirect($InsertGoTo); }} if (empty($stdcheckpresent->getColumnVal("idtrfstandards"))) { $InsertQuery = new WA_MySQLi_Query($cmctrfdb); $InsertQuery->Action = "insert"; $InsertQuery->Table = "trfstandards"; $InsertQuery->bindColumn("idtrfdetails", "i", "$idtrf", "WA_DEFAULT"); $InsertQuery->bindColumn("idstandards", "i", "$value", "WA_DEFAULT"); $InsertQuery->bindColumn("iddpicategory", "i", "$dpicatsel", "WA_DEFAULT"); $InsertQuery->saveInSession(""); $InsertQuery->execute(); $InsertGoTo = ""; $InsertQuery->redirect($InsertGoTo); }}}//} ?> Action = "update"; $UpdateQuery->Table = "`trf-details`"; $UpdateQuery->bindColumn("sample_description", "s", "$description", "WA_DEFAULT"); $UpdateQuery->bindColumn("measurefrom", "s", "$rangemeasuremin", "WA_DEFAULT"); $UpdateQuery->bindColumn("measureto", "s", "$rangemeasuremax", "WA_DEFAULT"); $UpdateQuery->bindColumn("model", "s", "$model", "WA_DEFAULT"); $UpdateQuery->bindColumn("idarticletype", "i", "$articletype", "WA_DEFAULT"); $UpdateQuery->bindColumn("idarticle_characteristics", "s", "$listartchar", "WA_DEFAULT"); $UpdateQuery->bindColumn("registeredmark", "s", "$registeredmark", "WA_DEFAULT"); $UpdateQuery->addFilter("idtrfdetails", "=", "i", "".($idtrf) .""); $UpdateQuery->execute(); $UpdateGoTo = ""; if (function_exists("rel2abs")) $UpdateGoTo = $UpdateGoTo?rel2abs($UpdateGoTo,dirname(__FILE__)):""; $UpdateQuery->redirect($UpdateGoTo); $code="3"; $InsertQuery2 = new WA_MySQLi_Query($cmctrfdb); $InsertQuery2->Action = "insert"; $InsertQuery2->Table = "wheretrfstep"; $InsertQuery2->bindColumn("idtrf", "i", "$idtrf", "WA_DEFAULT"); $InsertQuery2->bindColumn("code", "s", "$code", "WA_DEFAULT"); $InsertQuery2->saveInSession(""); $InsertQuery2->execute(); $InsertGoTo = ""; $InsertQuery2->redirect($InsertGoTo); } ?> setQuery("SELECT * FROM `trf-details` WHERE `trf-details`.idtrfdetails='$idtrf'"); $trfnumberfinal->execute(); $idcertn=$trfnumberfinal->getColumnVal("idcertification"); $articletype=$trfnumberfinal->getColumnVal("idarticletype"); $articlecharact=$trfnumberfinal->getColumnVal("idarticle_characteristics"); ?> getColumnVal("idcertification") ?> setQuery("SELECT * FROM certificationtype WHERE certificationtype.idcertificationtype='$idcert'"); $certname->execute();?> setQuery("SELECT * FROM standards WHERE standards.idarticletype='$articletype'"); // $stdcheck->execute(); ?> setQuery("SELECT * FROM standards WHERE standards.idarticlecharacteristic='$articlecharact' "); $stdcheck->execute(); $idstselect=$stdcheck->getColumnVal("idstandards"); ?> TRF CIMAC

50%
setQuery("SELECT * FROM trfstandards LEFT JOIN standards ON trfstandards.idstandards=standards.idstandards WHERE trfstandards.idtrfdetails='$idtrf'"); $standardselectedlist->execute();?>

.


setQuery("SELECT * FROM `trf-details` WHERE `trf-details`.idtrfdetails='$idtrf'"); $trfnumberfinal->execute(); $idcertn=$trfnumberfinal->getColumnVal("idcertification"); $idarticletype=$trfnumberfinal->getColumnVal("idarticletype"); $idstandards=$trfnumberfinal->getColumnVal("idstandards"); $standardlistsel = new WA_MySQLi_RS("standardlistsel",$cmctrfdb,1); $standardlistsel->setQuery("SELECT * FROM trfstandards WHERE trfstandards.idtrfdetails='$idtrf'"); $standardlistsel->execute(); $idstandards=$standardlistsel->getColumnVal("idstandards"); $addreqlist = new WA_MySQLi_RS("addreqlist",$cmctrfdb,0); $addreqlist->setQuery("SELECT * FROM stdreqlist LEFT JOIN additionalrequirements ON stdreqlist.idadditionalrequirements=additionalrequirements.idadditionalrequirements WHERE stdreqlist.idstandards='$idstandards' "); $addreqlist->execute();?> setQuery("SELECT * FROM trfaddrequirements LEFT JOIN additionalrequirements ON trfaddrequirements.idadditionalrequirements=additionalrequirements.idadditionalrequirements WHERE trfaddrequirements.idtrf='$idtrf'"); $addreqselectedlist->execute();?>

getColumnVal("name_additionalrequirements"); $varnamelang=$colvarname.$lang; $varhelplang="additionalrequirements_".$lang; ?>
">

atEnd()) { $wa_startindex = $addreqselectedlist->Index; ?> moveNext(); } $addreqselectedlist->moveFirst(); //return RS to first record unset($wa_startindex); unset($wa_repeatcount); ?>
getColumnVal($varnamelang)); ?> &idtrf=">