-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathremovecontent.php
More file actions
80 lines (72 loc) · 3.2 KB
/
removecontent.php
File metadata and controls
80 lines (72 loc) · 3.2 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
<?php
require "db_connect.php";
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>dashboard</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta charset="utf-8">
<link rel="stylesheet" href="css/bootstrap.css" type="text/css" media="all">
<!-- <link rel="stylesheet" href="css/font-awesome.css" /> -->
<link rel="stylesheet" href="css/dashboard.css" type="text/css" media="all">
<link rel="stylesheet" href="css/content.css" type="text/css" media="all">
<link href="//fonts.googleapis.com/css?family=Open+Sans:300,300i,400,400i,600,600i,700,700i,800,800i&subset=cyrillic,cyrillic-ext,greek,greek-ext,latin-ext,vietnamese" rel="stylesheet">
<link href="//fonts.googleapis.com/css?family=Montserrat:100,100i,200,200i,300,300i,400,400i,500,500i,600,600i,700,700i,800,800i,900,900i&subset=cyrillic,cyrillic-ext,latin-ext,vietnamese" rel="stylesheet">
</head>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<body>
<section id="sidemenu">
<nav>
<a href="#" class="active"><i class="fa fa-dashboard" aria-hidden="true"></i>Dashboard</a>
<a href="#"><i class="fa fa-pencil-square-o" aria-hidden="true"></i>Courses</a>
<div class="dropdown-container">
<a href="addcourse.php">Add Courses</a>
<a href="listcourses.html">Remove courses</a>
</div>
<a href="#"><i class="fa fa-sticky-note-o" aria-hidden="true"></i>Content</a>
<div class="dropdown-container">
<a href="listcourses.php">Add Content</a>
<a href="listcontent.php">Remove Content</a>
</div>
<a href="#"><i class="fa fa-edit" aria-hidden="true"></i>User</a>
<div class="dropdown-container">
<a href="listusers.php">List Users</a>
<a href="listusers.php">Delete Users</a>
</div>
</nav>
</section>
<section id="content-area">
<div class="heading">
<h1>Dashboard</h1>
<p>welcome to ABBEYCODE</p>
</div>
<div class="cards">
<a href="#" class="active"><i class="fa fa-user eye" aria-hidden="true"></i>ADMIN</a>
<span> 1</span>
</div>
<div class="cards">
<a href="#" class="active"><i class="fa fa-eye eye" aria-hidden="true"></i>VISITING</a>
<span> 500 </span>
</div>
<div class="cards">
<a href="#" class="active"><i class="fa fa-comments eye" aria-hidden="true"></i>TESTIMONIES</a>
<span> 50</span>
</div>
<div class="cards">
<a href="#" class="active"><i class="fa fa-sticky-note-o eye" aria-hidden="true"></i>COURSES</a>
<span> 100</span>
</div>
<div class="container">
<h2>CONTENT AREA</h2>
<p>Remove contents</p>
<?php
$id = $_GET['id'];
$query = mysqli_query($connect, "DELETE * FROM content WHERE id = '{$id}'")
if ($query){
header("location: listcourses.php?rel=success");
}
?>
</div>
</body>
</html>