79 lines
3.2 KiB
HTML
79 lines
3.2 KiB
HTML
<!doctype html>
|
|
|
|
<html lang="fr">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
|
|
<title>Etiquettes</title>
|
|
|
|
<link rel="icon" href="favicon.png">
|
|
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
|
|
|
|
<link rel="stylesheet" href="css/bootstrap.css">
|
|
|
|
|
|
<script>
|
|
function updateSalleCounter() {
|
|
var input = document.getElementById("salle");
|
|
var charCount = document.getElementById("salleCharCount");
|
|
charCount.innerText = input.value.length;
|
|
}
|
|
|
|
function updateScharCounter() {
|
|
var input = document.getElementById("schar");
|
|
var charCount = document.getElementById("scharCharCount");
|
|
charCount.innerText = input.value.length;
|
|
}
|
|
</script>
|
|
|
|
</head>
|
|
|
|
<body class="bg-secondary">
|
|
<div class="d-flex justify-content-center align-items-center" style="height: 100vh;">
|
|
<div class="m-4 p-3 rounded border bg-light container" style="max-width: 500px;">
|
|
<h1 class="text-center">Impression étiquettes</h1>
|
|
<form action="print.php" method="post" class="mb-3">
|
|
|
|
<div class="mb-3 mt-3">
|
|
<label for="qtt" class="form-label">Nombre d'étiquettes :</label>
|
|
<input type="number" name="qtt" id="qtt" min="1" max="35" placeholder="1" class="form-control">
|
|
</div>
|
|
|
|
<div class="mb-3 mt-3">
|
|
<label for="salle" class="form-label">Nom de la salle :</label>
|
|
<div class="input-group">
|
|
<input type="text" name="salle" id="salle" maxlength="5" class="form-control" oninput="updateSalleCounter()" required>
|
|
<span class="input-group-text"><span id="salleCharCount">0</span> / 5</span>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="mb-3 mt-3">
|
|
<label for="snum" class="form-label">Numéro du PC (de départ) :</label>
|
|
<input type="number" name="snum" id="snum" min="0" max="99" class="form-control" required>
|
|
</div>
|
|
|
|
<div class="mb-3 mt-3">
|
|
<label for="schar" class="form-label">Caractère supplémentaire :</label>
|
|
<div class="input-group">
|
|
<input type="text" name="schar" id="schar" maxlength="2" class="form-control" oninput="updateScharCounter()">
|
|
<span class="input-group-text"><span id="scharCharCount">0</span> / 2</span>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="d-flex justify-content-center">
|
|
<input type="submit" value="Imprimer" class="btn btn-primary">
|
|
</div>
|
|
|
|
</form>
|
|
|
|
<div class="d-grid">
|
|
<a href="custom.html" class="btn btn-secondary btn-block mb-3">Étiquette personnalisée</a>
|
|
<a href="zpl.html" class="btn btn-warning btn-block">Code ZPL personnalisé</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</body>
|
|
</html>
|