adding file desc

This commit is contained in:
Janis Steiner
2024-12-08 12:53:06 +00:00
parent 38c7183c8e
commit ba8101036f

View File

@@ -23,10 +23,10 @@
if(isset($_GET['free'])&&$_GET["rid"]==($_SESSION["rid"]-1)) if(isset($_GET['free'])&&$_GET["rid"]==($_SESSION["rid"]-1))
{ {
$cnt=""; $cnt="";
$printer_id=htmlspecialchars($_GET['free']); $printer_id=htmlspecialchars($_GET['free']);
$sql="select used_by_userid from printer where id=$printer_id"; $sql="select used_by_userid from printer where id=$printer_id";
$stmt = mysqli_prepare($link, $sql); $stmt = mysqli_prepare($link, $sql);
mysqli_stmt_execute($stmt); mysqli_stmt_execute($stmt);
mysqli_stmt_store_result($stmt); mysqli_stmt_store_result($stmt);
mysqli_stmt_bind_result($stmt, $cnt); mysqli_stmt_bind_result($stmt, $cnt);
mysqli_stmt_fetch($stmt); mysqli_stmt_fetch($stmt);
@@ -87,7 +87,6 @@
} }
else else
{ {
//echo("cancelling1");
$sql="update printer set cancel=1 where id=$printer_id"; $sql="update printer set cancel=1 where id=$printer_id";
$stmt = mysqli_prepare($link, $sql); $stmt = mysqli_prepare($link, $sql);
mysqli_stmt_execute($stmt); mysqli_stmt_execute($stmt);
@@ -108,8 +107,7 @@
load_user(); load_user();
</script> </script>
<style> <style>
<style> //styles for the filename description
//styöes for the filename description
.description { .description {
display: none; /* Hide the description by default */ display: none; /* Hide the description by default */
position: absolute; position: absolute;