-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaddBarrel.php
47 lines (43 loc) · 1.15 KB
/
addBarrel.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<?php
$level = 2;
include "head.php";
?>
<div class="container">
<h1>Fässer hinzufügen</h1>
<?php printMessage(); ?>
<form class="form-horizontal" role="form" method="post" action="result.php">
<div class="form-group">
<div class="col-sm-4">
<select class="form-control" name="strain">
<?php printAllStrainOptions();?>
</select>
</div>
</div>
<div class="form-group">
<div class="col-sm-4">
<span>Füllstand</span>
<input type="range" min="10" max="100" value="100" step="5"
name="literPerBarrel" onchange="showValue(this.value)" onmousemove="showValue(this.value)">
<span id="range">100%</span>
</div>
</div>
<div class="form-group">
<div class="col-sm-4">
<input type="date" class="form-control" name="date" placeholder="Datum" required>
</div>
</div>
<div class="form-group">
<div class="col-sm-4">
<button type="submit" name="insertBarrel" class="btn btn-default">Hinzufügen</button>
</div>
</div>
</form>
</div>
</div>
<script type="text/javascript">
function showValue(newValue)
{
document.getElementById("range").innerHTML=newValue + "%";
}
</script>
<?php include "footer.php";?>