Put package=1 in public tracking URL to specify it's a package not a machine
This commit is contained in:
parent
aefd3d5e9f
commit
20648e642e
@ -5,5 +5,6 @@
|
|||||||
"Search box prompt": "Enter a Netsyms Device ID number, serial number, or tracking code.",
|
"Search box prompt": "Enter a Netsyms Device ID number, serial number, or tracking code.",
|
||||||
"Look up another device prompt": "Look up another device:",
|
"Look up another device prompt": "Look up another device:",
|
||||||
"No device with ID error": "No device with ID <code>{id}</code> could be found.",
|
"No device with ID error": "No device with ID <code>{id}</code> could be found.",
|
||||||
|
"No package with ID error": "No package with tracking number <code>{id}</code> could be found. Try again in a few hours.",
|
||||||
"Component exist but isn't attached to a machine": "This component ID exists in the system but has no associated device."
|
"Component exist but isn't attached to a machine": "This component ID exists in the system but has no associated device."
|
||||||
}
|
}
|
||||||
|
@ -160,12 +160,19 @@ if (isset($_GET["backgroundcolor"]) && !empty($_GET["backgroundcolor"]) && preg_
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!$trackingok) {
|
if (!$trackingok) {
|
||||||
$body = [];
|
if (!empty($_GET["package"])) {
|
||||||
if (!empty($_GET["id"])) {
|
printCard('<i class="fas fa-box"></i> ' . $Strings->get("Tracking Info", false), [
|
||||||
$body[] = '<p class="text-danger">' . str_replace("{id}", htmlspecialchars($_GET['id']), $publicsettings["No device with ID error"]) . "</p>";
|
'<p class="text-danger">' . str_replace("{id}", htmlspecialchars($_GET['id']), $publicsettings["No package with ID error"]) . "</p>",
|
||||||
|
getSearchBox()
|
||||||
|
]);
|
||||||
|
} else {
|
||||||
|
$body = [];
|
||||||
|
if (!empty($_GET["id"])) {
|
||||||
|
$body[] = '<p class="text-danger">' . str_replace("{id}", htmlspecialchars($_GET['id']), $publicsettings["No device with ID error"]) . "</p>";
|
||||||
|
}
|
||||||
|
$body[] = getSearchBox();
|
||||||
|
printCard('<i class="fas fa-desktop"></i> ' . $Strings->get("Device Info", false), $body);
|
||||||
}
|
}
|
||||||
$body[] = getSearchBox();
|
|
||||||
printCard('<i class="fas fa-desktop"></i> ' . $Strings->get("Device Info", false), $body);
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (Component::exists($_GET["id"])) {
|
if (Component::exists($_GET["id"])) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user