//Location:/robotigs/includes/ parts_edit.php
//*** PARSE VARIABLES: //Should be specified by the URL
$part = 89; //Default if nothing is supplied through the URL
$lan = 0; //Language checks 0. Overrides $koekje[2]
parse_str($_SERVER['QUERY_STRING'], $output); //Parses URL values into variables
if (isset($output['part'])){$part = $output['part'];} //Parsed from URL
//$titel=$part; //A sort is always group 19 and can be edited online
include "/var/www/html/robotigs/includes/include_all_updateable.php";
$recordkey = $part; //Requiered by include_head, sets the
, txlkey 22
$txlkey = 19; //Needed for include_head because otherwise group 22 will be taken
include ("/var/www/html/robotigs/includes/include_head.php"); //Entire header
//*** PART DATA ----------------------------------------------------------------
$qrybd = ("SELECT onderdelen.prt_icon_link
, tblsystext.txtname
, onderdelen.selectable
, onderdelen.status
, onderdelen.idsrtodd
, onderdelen.sketchtext
, onderdelen.sketchlink
, onderdelen.keywords
, onderdelen.part_master
, onderdelen.pinouttext
, onderdelen.pinoutlink
, onderdelen.codetext
, onderdelen.codelink
, onderdelen.prijseurinclbtw
, onderdelen.urlprijs
, onderdelen.werkspanningvoltdc
, onderdelen.stroomverbruikmax
, onderdelen.opmerking
, onderdelen.lanid
FROM tblsystext
LEFT JOIN onderdelen ON tblsystext.recordid = onderdelen.partid
WHERE tblsystext.recordid = $part
AND tblsystext.lanid = onderdelen.lanid
AND tblsystext.txlid = 19
AND partid=$part
;");
$resultbd = pg_query($con1, $qrybd);
$rowbd = pg_fetch_array($resultbd);
$lankey = $lan; //Rename this variable
if ($lankey > 0){ //Still needed since the cookie will work from next time
$koekje[2] = $lankey; //Force the language to be changed in spite of cookie
}else{
$lankey = $rowbd[18];
} //End of if ($lankey > 0) End adapting user language
//*** FROM HERE ON THE NORMAL USER SCREEN STARTS -------------------------------
echo ('