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 *,protectioncategory.idprotectioncategory as protcatid, stdprotectioncat.idprotectioncategory as protcatidbis FROM stdprotectioncat LEFT JOIN protectioncategory ON stdprotectioncat.idstdprotectioncat=protectioncategory.idprotectioncategory WHERE stdprotectioncat.idstandards='$idstdlist'"); $stdprotcatlist->execute();?> setQuery("SELECT *,dpicategory.iddpicategory as dpicatid, stddpicategory.iddpicategory as dpicatidbis FROM stddpicategory LEFT JOIN dpicategory ON stddpicategory.iddpicategory=dpicategory.iddpicategory WHERE stddpicategory.idstandards='$idstdlist'"); $stddpicatlist->execute();?>
id