-
Notifications
You must be signed in to change notification settings - Fork 15
/
add_category.php
63 lines (44 loc) · 1.91 KB
/
add_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
<!-- Include Head -->
<?php include "assest/head.php"; ?>
<title>Add Category</title>
</head>
<body>
<!-- Header -->
<?php include "assest/header.php" ?>
<!-- Main -->
<main role="main" class="main">
<div class="jumbotron text-center">
<h1 class="display-3 font-weight-normal text-muted">Submit a Category</h1>
</div>
<div class="container">
<div class="row">
<div class="col-lg-12 mb-4">
<!-- Form -->
<form action="assest/insert.php?type=category" method="POST" enctype="multipart/form-data">
<div class="form-group">
<label for="catName">Category Name</label>
<input type="text" class="form-control" name="catName" id="catName">
</div>
<div class="form-group">
<label for="catImage">Category Image</label>
<div class="custom-file">
<input type="file" class="custom-file-input" name="catImage" id="catImage">
<label class="custom-file-label" for="catImage">Choose file</label>
</div>
</div>
<div class="form-group">
<label for="catColor">Category Color</label>
<input type="color" id="catColor" name="catColor" value="#0f88e1">
</div>
<div class="text-center">
<button type="submit" name="submit" class="btn btn-success btn-lg w-25">Submit</button>
</div>
</form>
</div>
</div>
</div>
</main>
<!-- Footer -->
<!-- <?php include "assest/footer.php" ?> -->
</body>
</html>