Add pickup slip

This commit is contained in:
Skylar Ittner 2020-06-10 11:43:13 -06:00
parent de11c9c550
commit ba84d2211b
3 changed files with 25 additions and 16 deletions

View File

@ -29,6 +29,9 @@ if (!empty($VARS["labeltype"])) {
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";
@ -44,6 +47,9 @@ $pdfurl = "./print/print.php?labeltype=$labeltype&id=$machineid";
<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">
<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 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 == "doortag" ? " active" : "") ?>" href="./app.php?page=printlabel&id=<?php echo $machine->getID(); ?>&labeltype=doortag">Door Tag</a>
</li> </li>

View File

@ -32,6 +32,9 @@ switch ($VARS["labeltype"]) {
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";

Binary file not shown.