$val ){ $$key = stripslashes( $val ); } } //*** FROM HERE ON THE TOP LINE STARTS ***************************************** echo (""); //Show objects own icon echo (""); echo (""); //Show name of the object if ($koekje[3]=="1") { //If this user wants to translate then echo ("$txttit"); }else{ //So you are not allowed to translate echo $txttit; } //End of if ($swigsarr[3]=="1") { end of if this user wants to translate echo (""); //End of showing the name of the object echo (""); //Show application buttons if ($koekje[0]>0){ //Action buttons are only for logged in users $type = 2; //1=prt, 2=srt, 3=bot, 4=none, needed for button_book_edit $typrecid = $id; //Needed for book edit SHOULD BE NORMALIZED!! include ("/var/www/html/robotigs/includes/button_book_edit.php"); include ("/var/www/html/robotigs/includes/button_pict_add_srts.php"); include ("/var/www/html/robotigs/includes/button_add_part.php"); include ("/var/www/html/robotigs/includes/button_languages.php"); //include ("/var/www/html/robotigs/includes/button_logon.php"); } //End of if ($koekje[0]>0) echo (""); //----------------------------------------- END OF TOP LINE echo (""); //*** FROM HERE ON THE NORMAL USER SCREEN STARTS ---------------------------- echo ('
'); echo (""); echo (""); echo (""); echo (""); echo (""); //*** OWNER OF THIS ITEM echo ("'); //*** ICON BELONGING TO THIS ITEM echo (""); //*** STATUS OF THIS ITEM echo (""); echo ("'); echo ("
Informatie in de database
Eigenaar  "); echo ("
Icon  "); echo (""); echo ("
Status  "); echo ("
"); //**************************************** LANGUAGE SELECTION $tmp = get_txt($con1, 9, $koekje[2], 3918); //Fieldname at screen if ($koekje[3]=="1") { //If this user wants to translate then echo ("$tmp"); //Class for colour }else{ //So you are not allowed to translate echo $tmp; //Show screenname of this field in user language } //End of If you want to translate this fieldname at screen echo (""); echo ("

"); //*** ACTION BUTTONS echo ("  "); echo (""); echo ('

'); echo (""); echo (""); //////////////////////////////////////////////////////////////////////////////// function echo_options_status($conid, $lan, $defrec){ $qry = ("SELECT tblsystext.txtname , tblsystext.recordid , status.nr FROM tblsystext LEFT JOIN status ON tblsystext.recordid = status.id WHERE txlid = 61 AND lanid = $lan ORDER BY status.nr"); $result = pg_query($conid, $qry); while($row = pg_fetch_array($result)){ //Make the fields accesible echo (""); } return ("ok"); } //////////////////////////////////////////////////////////////////////////////// function echo_options_language($conid, $lan, $defrec){ $qry = ("SELECT * FROM tblsystext WHERE txlid = 1 AND lanid = $lan ORDER BY txtname"); $result = pg_query($conid, $qry); while($row = pg_fetch_array($result)){ //Make the fields accesible foreach( $row AS $key => $val ){ $$key = stripslashes( $val ); } if ($rstid==2 or $recordid==$defrec){ echo (""); } } return ("ok"); } ?>