hasPermission("MACHINEMANAGER_VIEW")) { header("Location: ./app.php?msg=no_permission"); die(); } if (!empty($_GET["id"])) { $machineid = $_GET["id"]; } else if (!empty($_GET["arg"])) { $machineid = $_GET["arg"]; } if (!Machine::exists($machineid)) { header("Location: ./app.php?msg=no_such_machine"); } $machine = new Machine($machineid); ?>

get("Machine"); ?> #getID()); ?>
hasPermission("MACHINEMANAGER_EDIT")) { ?>

Machine Info:
get("OS/Software"); ?>: getOS()); ?>
get("Serial"); ?>: getSerial()); ?>
get("Manufacturer"); ?>: getManufacturer()); ?>
get("Model"); ?>: getModel()); ?>
get("Condition"); ?>: getCondition(); $filled = floor($val); $empty = 10; while ($filled > 0) { $filled--; $empty--; echo " "; } if ($val - floor($val) > 0.75) { $empty--; echo " "; } else if ($val - floor($val) > 0.25) { $empty--; echo " "; } while ($empty > 0) { $empty--; echo " "; } echo " ($val/10)"; ?>
get("Price"); ?>: $getPrice(), 2); ?>
getEvents(); if (count($history) > 0) { ?>
Events:
\n"; echo "" . $h->getName() . " on " . date($SETTINGS["datetime_format"], strtotime($h->getDate())) . "
\n"; echo "Technician: " . htmlspecialchars((new User($h->getTechUID()))->getName()) . "
\n"; if (!empty($h->getPublicNotes())) { echo "
Public Notes:
" . htmlspecialchars($h->getPublicNotes()) . "
"; } if (!empty($h->getPrivateNotes())) { echo "
Private Notes:
" . htmlspecialchars($h->getPrivateNotes()) . "
"; } echo "\n
\n"; } ?>
getComponents(); if (count($components) > 0) { ?>
Components:
getTypeName(); ?>
getModel())) { ?> get("Model"); ?>: getModel()); ?>
getCapacity())) { ?> get("Capacity"); ?>: getCapacity()); ?>
getSerial())) { ?> get("Serial"); ?>: getSerial()); ?>
getManufacturer())) { ?> get("Manufacturer"); ?>: getManufacturer()); ?>
getTestedDate())) { ?> get("Tested On"); ?>: getTestedDate())); ?>
getPrice())) { ?> get("Price"); ?>: $getPrice(), 2); ?> getPublicNotes())) { ?>
Public Notes:
getPublicNotes()); ?>
getPrivateNotes())) { ?>
Private Notes:
getPrivateNotes()); ?>