-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathedittutorial.php
More file actions
62 lines (52 loc) · 1.91 KB
/
edittutorial.php
File metadata and controls
62 lines (52 loc) · 1.91 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
session_start();
if (!isset($_SESSION['SESS_MEMBER'])) {
# code...
header('Location:login.php');
}
?>
<?php
require_once("class/Tutorial.php");
$tut=new Tutorial();
$tutid= $_POST['tutid'];
$data= $tut->getTutorialById($tutid);
?>
<!DOCTYPE html>
<html>
<head>
<title>Update Tutorial</title>
<link rel="stylesheet" href="css/bootstrap.css">
<link rel="stylesheet" type="text/css" href="css/adminstyle.css">
<script type="text/javascript" src="ckeditor/ckeditor.js"></script>
</head>
<body>
<nav class="navbar navbar-default navbar-fixed-top">
<?php include('include/nav2.php'); ?>
</nav>
<center>
<form class="all add-tut" action="updatetutorial.php?id=<?php echo $tutid; ?>" method="post">
<fieldset>
<legend>Update Tutorial</legend>
<label>Tutorial Name: </label>
<input type="text" name="tname" value="<?php echo $data[0]['tutorial_name']; ?>" style="width:40%"> <br><br>
<label>Video Link: </label>
<input type="text" name="vlink" value="<?php echo $data[0]['video_link']; ?>" style="width:40%"> <br><br>
<label>Description: </label> <br><br>
<textarea name="description" id="editor1"rows="4" cols="50">
<?php
echo $data[0]['description'];
?>
</textarea>
<br><br>
<input class="btn btn-default" type="submit" name="submit" value="Update"/>
<a class="btn btn-default back-btn" href="editcat.php" role="button"><-Back</a>
</fieldset>
</form>
</center>
</body>
<script type="text/javascript">
CKEDITOR.replace( 'editor1' );
</script>
<script src="js/jquery.js"></script>
<script type="text/javascript" src="js/bootstrap.js"></script>
</html>