Add pickup slip

master
Skylar Ittner 4 years ago
parent de11c9c550
commit ba84d2211b

@ -26,9 +26,12 @@ if (!empty($VARS["labeltype"])) {
case "doortag": case "doortag":
$labeltype = "doortag"; $labeltype = "doortag";
break; break;
case "machineidanonymous": case "machineidanonymous":
$labeltype = "machineidanonymous"; $labeltype = "machineidanonymous";
break; break;
case "pickupslip":
$labeltype = "pickupslip";
break;
case "machineid": case "machineid":
default: default:
$labeltype = "machineid"; $labeltype = "machineid";
@ -40,17 +43,20 @@ $pdfurl = "./print/print.php?labeltype=$labeltype&id=$machineid";
?> ?>
<div class="d-flex"> <div class="d-flex">
<ul class="nav nav-tabs"> <ul class="nav nav-tabs">
<li class="nav-item"> <li class="nav-item">
<a class="nav-link<?php echo ($labeltype == "machineid" ? " active" : "") ?>" href="./app.php?page=printlabel&id=<?php echo $machine->getID(); ?>">Machine ID Label</a> <a class="nav-link<?php echo ($labeltype == "machineid" ? " active" : "") ?>" href="./app.php?page=printlabel&id=<?php echo $machine->getID(); ?>">Machine ID Label</a>
</li> </li>
<li class="nav-item"> <li class="nav-item">
<a class="nav-link<?php echo ($labeltype == "doortag" ? " active" : "") ?>" href="./app.php?page=printlabel&id=<?php echo $machine->getID(); ?>&labeltype=doortag">Door Tag</a> <a class="nav-link<?php echo ($labeltype == "pickupslip" ? " active" : "") ?>" href="./app.php?page=printlabel&id=<?php echo $machine->getID(); ?>&labeltype=pickupslip">Pickup Slip</a>
</li> </li>
<li class="nav-item"> <li class="nav-item">
<a class="nav-link<?php echo ($labeltype == "machineidanonymous" ? " active" : "") ?>" href="./app.php?page=printlabel&id=<?php echo $machine->getID(); ?>&labeltype=machineidanonymous">Machine ID Label (No "Property Of")</a> <a class="nav-link<?php echo ($labeltype == "doortag" ? " active" : "") ?>" href="./app.php?page=printlabel&id=<?php echo $machine->getID(); ?>&labeltype=doortag">Door Tag</a>
</li> </li>
</ul> <li class="nav-item">
<a class="nav-link<?php echo ($labeltype == "machineidanonymous" ? " active" : "") ?>" href="./app.php?page=printlabel&id=<?php echo $machine->getID(); ?>&labeltype=machineidanonymous">Machine ID Label (No "Property Of")</a>
</li>
</ul>
<div class="ml-auto"> <div class="ml-auto">
<a href="./app.php?page=viewmachine&id=<?php echo $machine->getID(); ?>" class="btn btn-info btn-sm"><i class="fas fa-eye"></i> <?php $Strings->get("Go to machine"); ?></a> <a href="./app.php?page=viewmachine&id=<?php echo $machine->getID(); ?>" class="btn btn-info btn-sm"><i class="fas fa-eye"></i> <?php $Strings->get("Go to machine"); ?></a>
</div> </div>

@ -30,8 +30,11 @@ switch ($VARS["labeltype"]) {
$labeltype = "doortag"; $labeltype = "doortag";
break; break;
case "machineidanonymous": case "machineidanonymous":
$labeltype = "machineidanonymous"; $labeltype = "machineidanonymous";
break; break;
case "pickupslip":
$labeltype = "pickupslip";
break;
case "machineid": case "machineid":
default: default:
$labeltype = "machineid"; $labeltype = "machineid";

Loading…
Cancel
Save