forked from vikassinghv34/Book_publish_Management_System
-
Notifications
You must be signed in to change notification settings - Fork 0
/
AdminManageEvent.php
84 lines (63 loc) · 1.8 KB
/
AdminManageEvent.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<?php include('admin.php'); ?>
<html lang="pt-BR">
<ul class="breadcrumb">
<li class="breadcrumb-item"><a href="adminhome.php">Home</a></li>
<li class="breadcrumb-item"><a href="AdminManageEvent.php">Vendor</a></li>
</ul>
<a href="AddEvent.php"><button class="btn btn-primary pull-right">+ Add New</button></a>
<div class="col-sm-12" style="background-color:lavender;" align="center">
<div>
<h1>Manage Events</h1>
</div>
<br>
<div>
<div class="card-block">
<div class="table-responsive dt-responsive">
<table class="table table-striped table-bordered nowrap">
<thead>
<th>Event Id</th>
<th>Event Name</th>
<th>Event Starting Date</th>
<th>Event Ending Date</th>
<th>Event Details</th>
<th></th>
</thead>
<tbody>
<?php
include('conn.php');
$query = mysqli_query($conn, "select * from `event`");
while ($row = mysqli_fetch_array($query)) {
?>
<tr>
<td><?php echo $row['eventId']; ?></td>
<td><?php echo $row['eventName']; ?></td>
<td><?php echo $row['eventStartDate']; ?></td>
<td><?php echo $row['eventEndDate']; ?></td>
<td><?php echo $row['eventDetails']; ?></td>
<td>
<a href="AdminEventEdit.php?Id=<?php echo $row['eventId']; ?>" class="btn btn-success">Edit</a>
<a href="AdminDeleteEvent.php?Id=<?php echo $row['eventId']; ?>" class="btn btn-danger" onclick="return confirm('Are you sure to delete this record?')">Delete</a>
</td>
</tr>
<?php
}
?>
</tbody>
</table><br>
</div>
</div>
</div>
</div>
</div>
</body>
<div id="#">
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<?php //include("footer.php");
?>
</html>