-
Notifications
You must be signed in to change notification settings - Fork 0
/
edit.php
73 lines (67 loc) · 3.01 KB
/
edit.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
<!DOCTYPE html>
<html>
<head>
<title>Blog Database</title>
<link rel="stylesheet" type="text/css" href="<?php echo base_url().'assets/css/bootstrap.min.css';?>">
</head>
<body>
<div class="navbar navbar-dark bg-dark">
<div class="container">
<a href="index" class="navbar-brand">Blog database</a>
</div>
</div>
<div class="container" style="padding-top: 10px;">
<h3>Update Blog</h3>
<hr>
<form method="post" name="createblog" action="<?php echo base_url().'index.php/user/edit/'.$user['Name'];?>">
<div class="row">
<div class="col-md-12">
<div class="form-group">
<label>Name</label>
<input type="text" name="name" value="<?php echo set_value('name',$user['Name']);?>" class="form-control">
<?php echo form_error('name');?>
</div>
<div class="form-group">
<label>Description</label>
<input type="text" name="description" value="<?php echo set_value('description',$user['Description']);?>" class="form-control">
<?php echo form_error('description');?>
</div>
<div class="form-group">
<label>Category</label>
<select name="category" class="browser-default custom-select">
<option value="" disabled selected>Choose your option</option>
<option value="Fashion">Fashion</option>
<option value="Food">Food</option>
<option value="Travel">Travel</option>
<option value="Music">Music</option>
<option value="Sports">Sports</option>
<option value="Political">Political</option>
<option value="Informative">Informative</option>
</select>
<?php echo form_error('category');?>
</div>
<div class="form-group">
<label>Author</label>
<input type="text" name="author" value="<?php echo set_value('author',$user['Author']);?>" class="form-control">
<?php echo form_error('author');?>
</div>
<div class="form-group">
<label>Status</label>
<select name="status" class="browser-default custom-select">
<option value="" disabled selected>Choose your option</option>
<option value="Draft">Draft</option>
<option value="Published">Published</option>
</select>
<?php echo form_error('status');?>
</div>
<div class="form-group">
<button class="btn btn-primary">Update</button>
<a href="<?php echo base_url().'index.php/user/index';?>" class="btn-secondary btn">Cancel</a>
</div>
</div>
</div>
</form>
</hr>
</div>
</body>
</html>