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); ?>

getTypeLabel(); ?> #getID()); ?>
hasPermission("MACHINEMANAGER_EDIT")) { ?>

Device Info:
getClientID())) { $client = Clients::getClient($machine->getClientID()); ?>
get("Client"); ?>: getName()); ?>
getPhone())) { ?> Phone: getPhone(); ?>
getBillingAddress())) { ?> Billing address:
", htmlspecialchars($client->getBillingAddress())); ?>
getMailingAddress())) { ?> Mailing address:
", htmlspecialchars($client->getMailingAddress())); ?>
getOS())) { ?>
get("OS/Software"); ?>: getOS()); ?>
getSerial())) { ?>
get("Serial"); ?>: getSerial()); ?>
getManufacturer())) { ?>
get("Manufacturer"); ?>: getManufacturer()); ?>
getModel())) { ?>
get("Model"); ?>: getModel()); ?>
getCondition())) { ?>
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)"; ?>
getPrice())) { ?>
get("Price"); ?>: $getPrice(), 2); ?>
getPrivateNotes())) { ?>
get("Private Notes"); ?>:
", htmlspecialchars($machine->getPrivateNotes())); ?>
getPublicNotes())) { ?>
get("Public Notes"); ?>:
", htmlspecialchars($machine->getPublicNotes())); ?>
getEvents(); if (count($history) > 0) { ?>
Events:
\n"; echo "" . $h->getName() . " on " . date($SETTINGS["datetime_format"], strtotime($h->getDate())) . "
\n"; if (!empty($h->getTechUID())) { echo "Technician: " . htmlspecialchars((new User($h->getTechUID()))->getName()) . "
\n"; } if (!empty($h->getPublicNotes())) { echo "
Public Notes:
" . str_replace("\n", "\n
", htmlspecialchars($h->getPublicNotes())) . "
"; } if (!empty($h->getPrivateNotes())) { echo "
Private Notes:
" . str_replace("\n", "\n
", 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:
", htmlspecialchars($c->getPublicNotes())); ?>
getPrivateNotes())) { ?>
Private Notes:
", htmlspecialchars($c->getPrivateNotes())); ?>