forked from Tim-Digital-Business/aip-ticket-sys
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathadmin-index.php
56 lines (47 loc) · 1.56 KB
/
admin-index.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
48
49
50
51
52
53
54
55
<head>
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
<!-- jQuery library -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<!-- Latest compiled JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
<script>
if(typeof window.history.pushState == 'function') {
window.history.pushState({}, "Hide", '<?php echo $_SERVER['PHP_SELF'];?>');
}
</script>
</head>
<?php
include "db_connect.php";
#get DB content
$sql = "SELECT DISTINCT Abteilung FROM ticket_table";
$result = $mysqli->query($sql);
?>
<form class="form-horizontal">
<fieldset>
<!-- Form Name -->
<legend align="center">Ticket Search</legend>
<!-- Select Basic -->
<div class="form-group">
<label class="col-md-4 control-label" for="selectbasic">Abteilung:</label>
<div class="col-md-4">
<select name="Abteilung">
<?php
while($rows = $result->fetch_assoc()) {
$abteilung_name = $rows['Abteilung'];
echo "<option value='$abteilung_name'>$abteilung_name</option>";
}
?>
</select>
</div>
</div>
<!-- Button (Double) -->
<div class="form-group">
<label class="col-md-4 control-label" for="button1id"></label>
<div class="col-md-8">
<button id="button1id" name="buttonSearch" formaction="/db_content_all.php" class="btn btn-default">Search</button>
<button id="button2id" name="buttonAll" formaction="/ticket_alle.php" class="btn btn-info">Search All</button>
</div>
</div>
</fieldset>
</form>