-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaddbook.php
72 lines (63 loc) · 1.95 KB
/
addbook.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
<?php
// Initialize the session
session_start();
// If session variable is not set it will redirect to login page
if(!isset($_SESSION['username']) || empty($_SESSION['username'])){
header("location: login.php");
exit;
}
?>
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title>Add book</title>
<link rel="icon" href="favicon.ico" type="image/x-icon">
<!--<link rel="stylesheet" href="style/style.css">-->
<style>
body{
background-image: url(https://www.theindianwire.com/wp-content/uploads/2018/04/books.jpg);
position: absolute;
}
div#pageMiddle {
width: 1000px;
margin: 20px 250px;
position: relative;
text-align: center;
border-radius: 20px;
top: 100px;
padding-top: 20px;
padding-bottom: 20px;
background-color: rgb(74,22,5);
color:white;
}
h1 {
font-size: 60px;
text-shadow: 0px 0px 10px black;
text-transform:capitalize;
}
</style>
</head>
<body>
<?php include_once("template_pageTop.php"); ?>
<div id="pageMiddle">
<div id="pmleft"></div>
<div id="pmcenter">
<br>
<div style="font-size:50px;font-family:'Palatino Linotype', 'Book Antiqua', Palatino, serif">Add Book</div>
<form action="bookadd.php" method="post" enctype="multipart/form-data">
Book name:<input type="text" name="name"><br><br>
Author:<input type="text" name="author"><br><br>
Category:<input type="text" name="category"><br><br>
<input type="radio" name="readd" value="1" checked> Read<br>
<input type="radio" name="readd" value="0"> Not Read<br>
Review:<br><textarea name="review" style="width:250px;height:150px;"></textarea><br><br>
Upload Small Image:<input type="file" name="pic"><br><br>
Upload Large Image:<input type="file" name="pic2"><br><br>
<input type="submit" name="submit" value="Submit"><br><br>
</form>
</div>
</div>
<br>
</body>
</html>