diff --git a/public/index.php b/public/index.php index 2333e08..1c269b0 100644 --- a/public/index.php +++ b/public/index.php @@ -32,238 +32,229 @@ if (isset($_GET["backgroundcolor"]) && !empty($_GET["backgroundcolor"]) && preg_ } ?> - -
-
-
- -
-
- - -
-

-
- get("Machine Info"); ?> -
-

-
- -

No machine with ID could be found.

- -

- Enter a Netsyms machine ID number or serial number. -

-
- - -
-
+
+
+
col-12 col-md-8col-12"> + +
+

+
+ get("Machine Info"); ?>
+

+
+

No machine with ID could be found.

+ -
-

-
- get("Machine Info"); ?> -
-

-
-
-
-
-
- get("ID"); ?>: getID()); ?> -
- getOS())) { ?> -
- get("OS/Software"); ?>: getOS()); ?> -
- - getSerial())) { ?> -
- get("Serial"); ?>: getSerial()); ?> -
- - getManufacturer())) { ?> -
- get("Manufacturer"); ?>: getManufacturer()); ?> -
- - getModel())) { ?> -
- get("Model"); ?>: getModel()); ?> -
- - getCondition() > 0) { - ?> -
- 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)"; - ?> -
- + Enter a Netsyms machine ID number or serial number. +

+
+ + +
+
+
+ +
+

+
+ get("Machine Info"); ?> +
+

+
+
+
+
+
+ get("ID"); ?>: getID()); ?> +
+ getOS())) { ?> +
+ get("OS/Software"); ?>: getOS()); ?> +
+ + getSerial())) { ?> +
+ get("Serial"); ?>: getSerial()); ?> +
+ + getManufacturer())) { ?> +
+ get("Manufacturer"); ?>: getManufacturer()); ?> +
+ + getModel())) { ?> +
+ get("Model"); ?>: getModel()); ?> +
+ + getCondition() > 0) { + ?> +
+ get("Condition"); ?>: getCondition(); + $filled = floor($val); + $empty = 10; + while ($filled > 0) { + $filled--; + $empty--; + echo " "; } - ?> - getPrice() > 0) { - ?> -
- get("Price"); ?>: $getPrice(), 2); ?> -
- 0.75) { + $empty--; + echo " "; + } else if ($val - floor($val) > 0.25) { + $empty--; + echo " "; } - ?> - getPublicNotes())) { - ?> -
- get("Notes"); ?>: getPublicNotes()); ?> -
- 0) { + $empty--; + echo " "; } + echo " ($val/10)"; ?>
-
- + getComponents(); - - if (count($components) > 0) { + if ($machine->getPrice() > 0) { ?> -
-
Components:
-
+
+ get("Price"); ?>: $getPrice(), 2); ?> +
+ + getPublicNotes())) { + ?> +
+ get("Notes"); ?>: getPublicNotes()); ?> +
+ +
+
+ + getComponents(); + + if (count($components) > 0) { + ?> +
+
Components:
+
+ +
+ + getTypeName(); ?>
getModel())) { ?> -
- - getTypeName(); ?>
- getModel())) { - ?> - get("Model"); ?>: getModel()); ?>
- get("Model"); ?>: getModel()); ?>
+ getCapacity())) { - ?> - get("Capacity"); ?>: getCapacity()); ?>
- getCapacity())) { + ?> + get("Capacity"); ?>: getCapacity()); ?>
+ getSerial())) { - ?> - get("Serial"); ?>: getSerial()); ?>
- getSerial())) { + ?> + get("Serial"); ?>: getSerial()); ?>
+ getTestedDate())) { - ?> - get("Tested On"); ?>: getTestedDate())); ?>
- getTestedDate())) { + ?> + get("Tested On"); ?>: getTestedDate())); ?>
+ getPrice())) { - ?> - get("Price"); ?>: $getPrice(), 2); ?> - getPrice())) { + ?> + get("Price"); ?>: $getPrice(), 2); ?> + getPublicNotes())) { - ?> -
- Notes:
-
getPublicNotes()); ?>
-
- + if (!empty($c->getPublicNotes())) { + ?> +
+ Notes:
+
getPublicNotes()); ?>
-
- +
+
+ getEvents(); + $history = $machine->getEvents(); - if (count($history) > 0) { - ?> -
-
Events:
-
- \n"; - echo "$h[eventname] on " . date($SETTINGS["datetime_format"], strtotime($h['date'])) . "
\n"; - if (!empty($h['publicnotes'])) { - echo "
Notes:
" . htmlspecialchars($h['publicnotes']) . "
"; - } - echo "\n
\n"; - } - ?> -
-
+ if (count($history) > 0) { + ?> +
+
Events:
+
-
-
- -
-

- Look up another machine: -

-
- - -
+ foreach ($history as $h) { + echo "
\n"; + echo "$h[eventname] on " . date($SETTINGS["datetime_format"], strtotime($h['date'])) . "
\n"; + if (!empty($h['publicnotes'])) { + echo "
Notes:
" . htmlspecialchars($h['publicnotes']) . "
"; + } + echo "\n
\n"; + } + ?> +
- +
- -
+ +
+

+ Look up another machine: +

+
+ + +
+
+
-
-
+ +
- +