0) : $dbConnectionArray["app_property"] = getDbConnectionSpecial($dbhostArray["as_intern"], "sysadmin", $dblogin, $dbpassword); // Change if migrated to another place endif; // Set the specified vehicle free // cp_id cust_id hq_id usr_id inst_id cp_prec prop_id cp_ind cp_val cp_secval cp_modify cp_rem // 6252 1 1 871151 NULL 30 508 0 wss://localhost 2023-04-03 16:15:52 HB1027 if ($f_act == "changeState") : if ($dbhostArrayLen > 0 && $dbConnectionArray["app_property"] != "") : if ($cp_rem != "") : if ($submitMode != "") : $oldPropId = $propId; $newPropId = "99" . $propId; $preStatusMessage = getLngt("Die Sperre wurde aufgehoben!"); if ($submitMode == "1") : $oldPropId = "99" . $propId; $newPropId = $propId; $preStatusMessage = getLngt("Die Sperre wurde gesetzt!"); endif; $res = updateStmt("sysadmin.conf_prop", "cp_rem", $cp_rem, array("prop_id", $newPropId), "cust_id = '" . $constGlobalDbInstNo . "' AND prop_id = '" . $oldPropId . "' AND usr_id > '1'", $dbConnectionArray["app_property"]); if ($res > 0) : $statusMessage = $preStatusMessage; endif; endif; else : $statusMessage = getLngt("Es wurde keine Kennung angegeben!"); endif; else : $statusMessage = getLngt("Keine Verbindung zur internen Datenbank!"); endif; endif; // Get all locked and unlocked vehicles if ($dbhostArrayLen > 0 && $dbConnectionArray["app_property"] != "") : $outTable = "
| cp_id | "; $outTable .= "cust_id | "; $outTable .= "hq_id | "; $outTable .= "usr_id | "; $outTable .= "cp_prec | "; $outTable .= "prop_id | "; $outTable .= "cp_ind | "; $outTable .= "cp_val | "; $outTable .= "cp_secval | "; $outTable .= "cp_modify | "; $outTable .= "cp_rem | "; $outTable .= ""; $sqlquery = "SELECT cp_id, cust_id, hq_id, usr_id, cp_prec, prop_id, cp_ind, cp_val, cp_secval, cp_modify, cp_rem FROM sysadmin.conf_prop WHERE prop_id IN ( 99" . $propId . ", " . $propId . " ) AND cust_id = 1 AND usr_id > 1 ORDER BY cust_id, prop_id, hq_id, cp_rem"; $result = $dbConnectionArray["app_property"]->query($sqlquery); if (DB::isError($result)) die ("$PHP_SELF: " . $result->getMessage()); while ($row = $result->fetch_assoc()): $outTable .= "|||
| " . $row["cp_id"] . " | "; $outTable .= "" . $row["cust_id"] . " | "; $outTable .= "" . $row["hq_id"] . " | "; $outTable .= "" . $row["usr_id"] . " | "; $outTable .= "" . $row["cp_prec"] . " | "; if ($row["prop_id"] == $propId) : $outTable .= "" . "" . $row["prop_id"] . "" . " | "; else : $outTable .= "" . $row["prop_id"] . " | "; endif; $outTable .= "" . $row["cp_ind"] . " | "; $outTable .= "" . $row["cp_val"] . " | "; $outTable .= "" . $row["cp_secval"] . " | "; $outTable .= "" . $row["cp_modify"] . " | "; if ($row["prop_id"] == $propId) : $outTable .= "" . "" . $row["cp_rem"] . "" . " | "; else : // $outTable .= "" . $row["cp_rem"] . " | "; $outTable .= "" . "" . $row["cp_rem"] . "" . " | "; endif; $outTable .= "