load_user()"; ?>
Drucker Einstellungen

Druckerfreigabe erzwingen (falls beim freigeben Fehlermeldungen angezeigt werden)

"); $last_id=0; $system_status=0; while($cnt!=0) { $userid=0; $sql="select id,printer_url,apikey,cancel,used_by_userid, system_status from printer where id>$last_id ORDER BY id"; $cancel=0; $stmt = mysqli_prepare($link, $sql); mysqli_stmt_execute($stmt); mysqli_stmt_store_result($stmt); mysqli_stmt_bind_result($stmt, $printer_id,$url,$apikey,$cancel,$userid,$system_status); mysqli_stmt_fetch($stmt); $last_id=$printer_id; $used_by_user=""; $sql="select username from users where id=$userid"; $stmt = mysqli_prepare($link, $sql); mysqli_stmt_execute($stmt); mysqli_stmt_store_result($stmt); mysqli_stmt_bind_result($stmt, $used_by_user); mysqli_stmt_fetch($stmt); if($system_status==0) echo(""); else echo(""); $cnt--; } echo("
DruckeridFreigebenDruckerstatus ändern
$printer_id
Status auf kaputt setzen
$printer_id
Status auf bereit setzen
"); ?>

Rotation der Druckerkameras

form => action=rot&rot=180 $cnt=0; $url=""; $apikey=""; $sql="select count(*) from printer"; $stmt = mysqli_prepare($link, $sql); mysqli_stmt_execute($stmt); mysqli_stmt_store_result($stmt); mysqli_stmt_bind_result($stmt, $cnt); mysqli_stmt_fetch($stmt); //echo($cnt); echo("
"); $last_id=0; $rotation=0; while($cnt!=0) { $userid=0; $sql="select rotation,id from printer where id>$last_id ORDER BY id"; $cancel=0; $stmt = mysqli_prepare($link, $sql); mysqli_stmt_execute($stmt); mysqli_stmt_store_result($stmt); mysqli_stmt_bind_result($stmt, $rotation,$printer_id); mysqli_stmt_fetch($stmt); $last_id=$printer_id; $used_by_user=""; echo(""); $cnt--; } echo("
DruckeridRotation
$printer_id
"); ?>

Klassen

"); //form to add a color echo(""); echo(""); echo(""); echo(""); $last_id=0; $color=""; $id=0; $row=1; while($cnt!=0) { $userid=0; $sql="select id,name from class where id>$last_id ORDER BY id"; $cancel=0; $stmt = mysqli_prepare($link, $sql); mysqli_stmt_execute($stmt); mysqli_stmt_store_result($stmt); mysqli_stmt_bind_result($stmt,$id, $name); mysqli_stmt_fetch($stmt); $last_id=$id; $used_by_user=""; $row++; echo(""); $cnt--; } echo("
KlasseHinzufügen/Löschen
"); echo("
"); ?>

Filamente

form => color $cnt=0; $url=""; $apikey=""; $sql="select count(*) from filament"; $stmt = mysqli_prepare($link, $sql); mysqli_stmt_execute($stmt); mysqli_stmt_store_result($stmt); mysqli_stmt_bind_result($stmt, $cnt); mysqli_stmt_fetch($stmt); //echo($cnt); echo("
"); //form to add a color echo(""); echo(""); echo(""); echo(""); echo(""); $last_id=0; $color=""; $id=0; $row=1; while($cnt!=0) { $userid=0; $sql="select id,name,internal_id from filament where id>$last_id ORDER BY id"; $cancel=0; $stmt = mysqli_prepare($link, $sql); mysqli_stmt_execute($stmt); mysqli_stmt_store_result($stmt); mysqli_stmt_bind_result($stmt,$id, $color,$printer_id); mysqli_stmt_fetch($stmt); $last_id=$id; $used_by_user=""; $row++; echo(""); $cnt--; } echo("
FilamenteFarbeHinzufügen/Löschen
$printer_id
"); echo("
"); ?>