-
Notifications
You must be signed in to change notification settings - Fork 2
/
sell.php
185 lines (162 loc) · 9.17 KB
/
sell.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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
<?php
session_start();
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css" integrity="sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk" crossorigin="anonymous">
<script src="https://use.fontawesome.com/c8f2e390c3.js"></script>
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:wght@300&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=MuseoModerno:wght@100&family=Open+Sans:wght@300&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Piedra&display=swap" rel="stylesheet">
<link rel="stylesheet" href="css/sell.css">
<title>Sell Books</title>
</head>
<body>
<header class="p-0"style="font-family: Open Sans;">
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
<div class="container">
<a class="navbar-brand" href="#"><span class="book">Book</span> <span class="store">Store</span></a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse " id="navbarSupportedContent">
<ul class="navbar-nav ml-auto">
<li class="nav-item ">
<a class="nav-link text-center" href="http://localhost/bookstore/store.php">Home<span class="sr-only">(current)</span></a>
</li>
<li class="nav-item ">
<a class="nav-link text-center " href="http://localhost/bookstore/trendingbook.php">Trending Book</a>
</li>
<li class="nav-item ">
<a class="nav-link text-center" href="http://localhost/bookstore/categories.php">Categories</a>
</li>
<li class="nav-item active">
<a class="nav-link text-center" href="http://localhost/bookstore/sell.php">Sell Book</a>
</li>
<li class="nav-item dropdown">
<a class="nav-link text-center dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<i class="fa fa-user-circle-o pr-1" style="font-size:24px"></i>
<?php
if(isset($_SESSION['name']))
{
echo $_SESSION['name'];
}
else
{
echo "User";
}
?></a>
<div class="dropdown-menu" aria-labelledby="navbarDropdown">
<a class="dropdown-item" href="http://localhost/bookstore/profile.php"><i class="fa fa-user pr-3" aria-hidden="true"></i>Profile</a>
<a class="dropdown-item" href="http://localhost/bookstore/cart.php"><i class="fa fa-shopping-cart pr-3" aria-hidden="true"></i>Cart</a>
<a class="dropdown-item" href="http://localhost/bookstore/contactpage.php"><i class="fa fa-phone pr-3" aria-hidden="true"></i>Contact Us</a>
<div class="dropdown-divider"></div>
<?php
if(isset($_SESSION['name']))
{
}
else
{
?>
<a class="dropdown-item" href="http://localhost/bookstore/index.php"><i class="fa fa-sign-in pr-3" aria-hidden="true"></i>Login</a>
<?php
}
?>
<a class="dropdown-item" href="http://localhost/bookstore/logout.php" name="logout"><i class="fa fa-sign-out pr-3" aria-hidden="true"></i>Logout</a>
</div>
</div>
</li>
</ul>
</div>
</div>
</nav>
</header>
<main>
<section class="user">
<div class="information pb-3 ">
<div class="col-md-6 col-9 pt-3 pb-3 m-auto text-left">
<h3 class="pt-2 pb-2 ml-md-3 " style="font-family: 'Orbitron', sans-serif !important;">Sell Book</h3>
<img src="upload/addphoto.jpg" alt="book" class="w-50 rounded img-thumbnail d-block ml-md-3 shadow-lg" name="bookimg">
<form class="pl-md-3 pr-md-3" method="POST" action="selldb.php" enctype="multipart/form-data">
<div class="uploadfile pt-3 pb-2">
<input type="file" class="p-1"name="file">
</div>
<div class="form-group">
<label for="exampleInputPassword1">Book Name</label>
<input type="name" class="form-control" name="profilebookname" placeholder="Enter BookName">
</div>
<div class="form-group">
<label for="exampleInputPassword1">Subject</label>
<input type="text" class="form-control" name="profilesubject" placeholder="Enter Subject">
</div>
<div class="form-group">
<label for="exampleInputEmail1">Author</label>
<input type="name" class="form-control" name="profileauthor" placeholder="Enter AuthorName">
</div>
<div class="form-group">
<label for="exampleInputPassword1">Edition</label>
<input type="text" class="form-control" name="profileedition" placeholder="Enter Book Edition">
</div>
<div class="form-group">
<label for="exampleInputPassword1">Selling Price (₹)</label>
<input type="number" class="form-control" name="profilesellprice" placeholder="Enter Selling Price">
</div>
<div class="form-group">
<label for="exampleInputPassword1">Market Price (₹)</label>
<input type="number" class="form-control" name="profilemarketprice" placeholder="Enter Market Price">
</div>
<button type="submit" class="btn btn-dark" name="profilesubmit">Submit</button>
</form>
</div>
</div>
</section>
</main>
<footer class="bg-dark mt-3">
<div class="container">
<div class="box d-md-flex flex-row pt-2">
<div class="col-md-4 col-12 pt-md-4 pt-4 pb-md-3 pb-2">
<h1 class="text-light" style="font-size: larger;">About Us</h1>
<p class="text-muted"> Ever wanted to buy a book but could not because it was too expensive?
worry not! because BookStore is here! BookStore, these days in news,is being called as the Robinhood of the world of books. BookStore team is committed to bring to you all kinds of best books at the minimal prices ever seen anywhere.
Yes, we are literally giving you away a steal.</p>
</div>
<div class="col-md-4 col-12 pt-md-4 pt-1 pb-md-3 pb-2 d-flex flex-column">
<h1 class="text-light"style="font-size: larger;">Navigation</h1>
<a href="http://kapilsharma.rf.gd/sbook/store.php" class="text-muted pl-4"><i class="fa fa-arrow-right pr-2" aria-hidden="true"></i>Home</a>
<a href="http://kapilsharma.rf.gd/sbook/trendingbook.php" class="text-muted pl-4"><i class="fa fa-arrow-right pr-2" aria-hidden="true"></i>Trending Book</a>
<a href="http://kapilsharma.rf.gd/sbook/categories.php" class="text-muted pl-4"><i class="fa fa-arrow-right pr-2" aria-hidden="true"></i>Categories</a>
<a href="http://kapilsharma.rf.gd/sbook/sell.php" class="text-muted pl-4"><i class="fa fa-arrow-right pr-2" aria-hidden="true"></i>Sell Book</a>
<a href="http://kapilsharma.rf.gd/sbook/profile.php" class="text-muted pl-4"><i class="fa fa-arrow-right pr-2" aria-hidden="true"></i>Profile</a>
</div>
<div class="col-md-4 col-12 pt-md-4 pt-2 pb-md-3 pb-4 d-flex flex-column">
<h1 class="text-light"style="font-size: larger;">Our Contact</h1>
<a href="#" class="text-muted pl-4" style="font-size: medium;"><i class="fa fa-envelope pr-2" aria-hidden="true"></i>Bookstore@gmail.com</a>
<a href="#" class="text-muted pl-4" style="font-size: medium;"><i class="fa fa-phone pr-2" aria-hidden="true"></i>044-2558765437</a>
</div>
</div>
<div class="newsletter border-top-light">
<div class="col-md-8 col-12 m-auto pt-2 pb-2">
<div class="input-group mb-3 ">
<h5 class="text-light pr-2 pt-2"style="font-size: small;">NEWSLETTER</h5><input type="text" class="form-control" style="font-size: small;" placeholder="YourEmail@mail.com" aria-describedby="basic-addon2" >
<div class="input-group-append">
<button class="btn btn-light btn-outline-secondary" type="button" style="font-size: small;">Subcribe</button>
</div>
</div>
</div>
</div>
</div>
<div class="row bg-secondary pt-1">
<div class="col-12 pt-1">
<p class="text-center text-light" style="font-size: small;">2020 © BookStore Website . ALL Rights Reserved.</p>
</div>
</div>
</footer>
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js" integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js" integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.min.js" integrity="sha384-OgVRvuATP1z7JjHLkuOU7Xw704+h835Lr+6QL9UvYjZE3Ipu6Tp75j7Bh/kR0JKI" crossorigin="anonymous"></script>
</body>
</html>