-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathinsert_category.php
102 lines (59 loc) · 4.21 KB
/
insert_category.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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
<?php
if(!isset($_SESSION['admin_email'])){
echo "<script>window.open('login.php','_self')</script>";
}else{
?>
<div class="row"><!-- row 1 begin -->
<div class="col-lg-12"><!-- col-lg-12 begin -->
<ol class="breadcrumb"><!-- breadcrumb begin -->
<li>
<i class="fa fa-dashboard"></i> Dashboard / Insert Category
</li>
</ol><!-- breadcrumb finish -->
</div><!-- col-lg-12 finish -->
</div><!-- row 1 finish -->
<div class="row"><!-- row 2 begin -->
<div class="col-lg-12"><!-- col-lg-12 begin -->
<div class="panel panel-default"><!-- panel panel-default begin -->
<div class="panel-heading"><!-- panel-heading begin -->
<h3 class="panel-title"><!-- panel-title begin -->
<i class="fa fa-money fa-fw"></i> Insert Category
</h3><!-- panel-title finish -->
</div><!-- panel-heading finish -->
<div class="panel-body"><!-- panel-body begin -->
<form action="" class="form-horizontal" method="post"><!-- form-horizontal begin -->
<div class="form-group"><!-- form-group begin -->
<label for="" class="control-label col-md-3"><!-- control-label col-md-3 begin -->
Category Title
</label><!-- control-label col-md-3 finish -->
<div class="col-md-6"><!-- col-md-6 begin -->
<input name="cat_title" type="text" class="form-control" required>
</div><!-- col-md-6 finish -->
</div><!-- form-group finish -->
<div class="form-group"><!-- form-group begin -->
<label for="" class="control-label col-md-3"><!-- control-label col-md-3 begin -->
Category Description
</label><!-- control-label col-md-3 finish -->
<div class="col-md-6"><!-- col-md-6 begin -->
<textarea type='text' name="cat_desc" id="" cols="30" rows="10" class="form-control" required></textarea>
</div><!-- col-md-6 finish -->
</div><!-- form-group finish -->
<div class="form-group"><!-- form-group Begin -->
<label class="col-md-3 control-label"> Category Image </label>
<div class="col-md-6"><!-- col-md-6 Begin -->
<input name="product_img1" type="file" class="form-control" required>
</div><!-- col-md-6 Finish -->
</div><!-- form-group Finish -->
<div class="form-group"><!-- form-group begin -->
<label for="" class="control-label col-md-3"><!-- control-label col-md-3 begin -->
</label><!-- control-label col-md-3 finish -->
<div class="col-md-6"><!-- col-md-6 begin -->
<input value="Submit" name="submit" type="submit" class="form-control btn btn-primary">
</div><!-- col-md-6 finish -->
</div><!-- form-group finish -->
</form><!-- form-horizontal finish -->
</div><!-- panel-body finish -->
</div><!-- panel panel-default finish -->
</div><!-- col-lg-12 finish -->
</div><!-- row 2 finish -->
<?php } ?>