hasPermission("MACHINEMANAGER_VIEW")) { header("Location: ./app.php?msg=no_permission"); die(); } $writeaccess = $user->hasPermission("MACHINEMANAGER_EDIT"); $attachto = false; if (!empty($VARS["attachto"]) && Machine::exists($VARS["attachto"])) { $attachto = $VARS["attachto"]; $components = $database->select("components", ["compid", "serial", "machineid", "model", "manufacturer", "capacity"], ["machineid" => null]); } else { $components = $database->select("components", ["compid", "serial", "machineid", "model", "manufacturer", "capacity"]); } ?>
get('Actions'); ?> | get('ID'); ?> | get('Machine'); ?> | get('Model'); ?> | get('Serial'); ?> | get('Capacity'); ?> | |
---|---|---|---|---|---|---|
get("Attach"); ?> get("Edit"); ?> | ||||||
get('Actions'); ?> | get('ID'); ?> | get('Machine'); ?> | get('Model'); ?> | get('Serial'); ?> | get('Capacity'); ?> |