-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathadded-event-details.php
More file actions
62 lines (48 loc) · 1.85 KB
/
added-event-details.php
File metadata and controls
62 lines (48 loc) · 1.85 KB
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
<?php
include_once("header.php");
include_once("navigation.php");
include_once("adminsidebar.php");
include_once('connection.php');
echo '<div id="page-content-wrapper">';
if (isset($_GET['id'])){
$id = $_GET['id'];
$sql = "SELECT * FROM addevent WHERE ID = '$id'";
$result = mysqli_query($conn,$sql);
$row = mysqli_fetch_array($result);
echo '<div class="row">
<h2 class="titleDetails"> '.$row["ENAME"].' <small>('.$row["EDATE"].')</small></h2>
<div class="col-md-6">
<h3 class="alert alert-success">Details </h3>
<label>'.$row["DETAILS"].'</label>
</div>
<div class="col-md-3">
<h3 class="alert alert-success">Options <i class="fa fa-print"></i> </h3>
<input type="button" name="" value="delete event" class="btn btn-primary btn-block btn-lg" data-toggle="modal" data-target="#confirmDeleteModal">
</div><!-- col-md-3 -->
</div><!-- row -->';
echo '<div id="confirmDeleteModal" class="modal fade" role="dialog">
<div class="modal-dialog modal-md">
<!-- Modal content-->
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">×</button>
<h4 class="modal-title">Event Name: '.$row["ENAME"].'</h4>
</div>
<div class="modal-body" align="center">
<div id="changeContentModal">
<h3>Are you sure you want to delete this event?</h3>
<button value="'.$row["ID"].'" class="btn btn-danger btn-lg" onclick="deleteAddedEvent(this.value)">Delete</button>
<button class="btn btn-warning btn-lg" data-dismiss="modal">Cancel</button>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>';
}
?>
<?php
include_once("footeradmin.php");
?>