-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathchoose.php
More file actions
52 lines (47 loc) · 1.41 KB
/
Copy pathchoose.php
File metadata and controls
52 lines (47 loc) · 1.41 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
<?php
session_start();
if (!isset($_SESSION['SESS_MEMBER'])) {
# code...
header('Location:login.php');
}
$catid= $_POST['catid'];
?>
<!DOCTYPE html>
<html>
<head>
<title>choose options</title>
<link rel="stylesheet" href="css/bootstrap.css">
<link rel="stylesheet" type="text/css" href="css/adminstyle.css">
</head>
<body>
<nav class="navbar navbar-default navbar-fixed-top">
<?php include('include/nav2.php'); ?>
</nav>
<form class="all add-cat">
<fieldset>
<legend>What do you want to do?</legend>
<div>
<ul>
<li><a href="newtutorial.php?id=<?php echo $catid; ?>">Add new Tutorial</a></li>
<li><a href="selecttutorial.php?id=<?php echo $catid; ?>">Edit tutorial</a></li>
<li><a href="selecttodeletetutorial.php?id=<?php echo $catid; ?>">Delete Tutorial</a></li>
<li><a href="#" onclick="myFunction()">Delete This Category</a></li>
</ul>
</div>
<a class="btn btn-default back-btn" href="editcat.php" role="button"><-Back</a>
</fieldset>
</form>
</body>
<script>
function myFunction() {
var r = confirm("Are you Sure!");
if (r == true) {
window.location="selecttodeletecategory.php?id=<?php echo $catid;?>";
} else {
alert("Delete Unsuccessfull");
}
}
</script>
<script src="js/jquery.js"></script>
<script type="text/javascript" src="js/bootstrap.js"></script>
</html>