-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcreate.php
40 lines (37 loc) · 1.43 KB
/
create.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
<?php
require("partials/header.php")
?>
<h1 class="mt-4 px-5">Add New Book</h1>
<div class="mt-3 px-5">
<a href="index.php" class="btn btn-primary">Back</a>
</div>
<div class="container border mt-4">
<form id="forms" action="createview.php" method="post">
<div class="form-field my-4">
<h4>Title :</h4>
<input type="title" class="form-control" id="title" name="title" placeholder="Title:">
</div>
<div class="form-field my-4">
<h4>Author :</h4>
<input type="author" class="form-control" id="author" name="author" placeholder="Author:">
</div>
<div class="form-field my-4">
<h4>Publication Year :</h4>
<input type="number" class="form-control" id="publication_year" name="publication_year" placeholder="Publication Year">
</div>
<div class="form-field my-4">
<h4>ISBN :</h4>
<input type="isbn" class="form-control" id="isbn" name="isbn" placeholder="ISBN">
</div>
<div class="form-field my-4">
<h4>Available :</h4>
<input type="checkbox" id="available" name="available" value="<?php $book["available"] == 1 ? "YES" : "NO"; ?>" placeholder="Available">
</div>
<div class="form-field my-4">
<input type="submit" class="btn btn-primary" name="create" value="Add Book">
</div>
</form>
</div>
<?php
require("partials/footer.php")
?>