0){ //Contains floracontainer.sedkey $propakey = get_propakey($con, $containerfield[4]); //Currently in container $cropname = get_txt($con1, 68, $koekje[2], $containerfield[4]); //Cropname } //*** FROM HERE ON THE SYSTEM SCREEN STARTS ------------------------------------ echo ("
"); echo (""); echo (""); if ($containerfield[4] > 0){ //Contains floracontainer.sedkey echo (""); echo (""); echo (""); } //*** MENU SYSTEM NEW STYLE ---------------------------------------------------- $back = "activ"; //Selects the type of Stop button. Preferably back include ("/var/www/html/robotigs/mobile/menu.php"); //Mobile menu top bar //*** FROM HERE ON THE NORMAL USER SCREEN STARTS ------------------------------- echo (""); if ($koekje[0]>0) { //If this user is logged on he can add a picture // https://stackoverflow.com/questions/23916566/html5-input-type-file-accept-image-capture-camera-display-as-image-rat echo (""); //********************* TAKE A PICTURE echo (""); } echo (""); //************************ CONTAINER NAME echo (""); //End of the current routine to show flower container name echo (""); //************ SHOW CONTAINER/POT PICTURE $img1link = "/flora/images/zz$containerfield[0].png"; //floracontainer.cntpict echo (""); echo (""); //End of the current onetimer to show container picture echo (""); //Empty line echo (""); //********************* CURRENT CROP NAME *************************=====+++ echo (""); if ($containerfield[4] > 0){ //Contains floracontainer.sedkey $cropname = get_txt($con1, 68, $koekje[2], $containerfield[4]); //Cropname echo (""); } } echo (""); //End of the current subroutine to show crop name if ($containerfield[4] > 0){ //Contains floracontainer.sedkey $contcnt = 0; //Only at 0 action will be taken $curcrop = 0; //Current Seed Id $qry=("SELECT floractiv.urlpict , floractiv.propakey FROM floractiv WHERE floractiv.cntid = $cnt AND floractiv.propakey = $propakey ORDER BY floractiv.urlpict DESC ;"); $result2 = pg_query($con, $qry); while($field = pg_fetch_array($result2)){ //Make the fields accesible if ($curcrop <> $field[1]){ //floractiv.propakey $curcrop = $field[1]; //Only show this crop name once as the header $pricamnt = 0; $contlink = $field[0]; $priclink = $containerfield[2]; } echo (""); //* CONTAINER ACTIVITY PICTURE LINK $img2link = "/flora/images/$field[0]"; //floracontainer.cntpict //$name = substr($field[0], 0, 8); $year = substr($field[0], 0, 4); $month = substr($field[0], 4, 2); $day = substr($field[0], 6, 2); echo (""); //End of t show flower container pict } } echo ("
"); echo ("

"); echo ("

"); echo ("$containerfield[5]"); //Show the name echo ("
"); echo (""); echo ("
 "); echo ("
$cropname "); echo ("update_150.png"); echo ("
"); echo (""); }else{ echo ("
"); $tmp = get_txt($con1, 9, $koekje[2], 3914); //Show that container is not used echo ("$tmp
"); if ($koekje[3] == "1") { echo ("
"); echo (""); echo ("
$day-$month-$year"); echo ("
"); //echo (''); //*** BOTTOM BUTTON BAR -------------------------------------------------------- $settings = "activ"; //User mobile settings, gear picture //$sensors = "activ"; //Uncomment includes screen with sensor readings //$emptyjar = "activ"; //Uncomment to include the jar decoupler button include ("/var/www/html/robotigs/mobile/buttonbar.php"); //Mobile bottom bar //*** HELP SYSTEM NEW STYLE ---------------------------------------------------- $help_wdw = 3723; //The hlptxt from blue question button, txlkey = 29 include ("/var/www/html/robotigs/mobile/help.php"); //Mobile help bar echo ("
"); echo (""); echo (""); //////////////////////////////////////////////////////////////////////////////// function get_propakey($conid, $reckey){ $qry=("SELECT floraseed.propakey FROM floraseed WHERE sedid = $reckey ;"); $result = pg_query($conid, $qry); $row = pg_fetch_array($result); return $row[0]; } //////////////////////////////////////////////////////////////////////////////// function echo_options_seed ($con, $lan){ $qry=("SELECT floraseed.naam , floraseed.sedid FROM floraseed WHERE floraseed.statusid <> 6 ORDER BY floraseed.naam ASC ;"); $result = pg_query($con, $qry); while ($row = pg_fetch_array($result)){ echo (""); } //End of while return ("ok"); } ?>