-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
200 lines (189 loc) · 7.13 KB
/
Copy pathindex.php
File metadata and controls
200 lines (189 loc) · 7.13 KB
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
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
<?php
session_start();
$pageTitle = 'Home';
?>
<!DOCTYPE html>
<html lang="en" class="no-js">
<?php include("includes/head.php");?>
<body id="body">
<?php include("includes/header.php");?>
<?php include("includes/signup.php") ?>
<!-- Start Banner Area -->
<section class="home-banner-area relative" style="padding-top:5em; padding-bottom:7em;">
<div class="container">
<div class="row fullscreen d-flex align-items-center justify-content-center">
<div class="banner-content col-lg-8 col-md-12">
<h1 class="wow fadeIn" data-wow-duration="4s">The Archive Of Every Book <br> You Need</h1>
<div class="input-wrap">
<div class="form-box d-flex justify-content-between" style="border: 1px solid #000; radius:2px;">
<input id="search_books" type="text" placeholder="Search Books" class="form-control" name="search">
<button type="submit" class="btn ti-search"></button>
</div>
<div id="result"></div>
<script>
$(document).ready(function(){
load_data();
function load_data(query)
{
$.ajax({
url:"regphp/search.php",
method:"POST",
data:{query:query},
success:function(data)
{
$('#result').html(data);
}
});
}
$('#search_books').keyup(function(){
var search = $(this).val();
if(search != '')
{
load_data(search);
}
else
{
load_data();
}
});
});
</script>
</div>
<div class="feature-inner row">
<div class="col-lg-4 col-md-12"><a href="buy.php">
<div class="feature-item">
<i style="color:#fff;" class="ti-shopping-cart-full"></i>
<h4 style="color:#fff;">Buy</h4>
</div></a>
</div>
<div class="col-lg-4 col-md-12"><a href="exchange.php">
<div class="feature-item">
<i style="color:#fff;" class="ti-bookmark-alt"></i>
<h4 style="color:#fff;">Exchange</h4>
</div></a>
</div>
<div class="col-lg-4 col-md-12"><a href="rent.php">
<div class="feature-item">
<i style="color:#fff;" class="ti-export"></i>
<h4 style="color:#fff;">Rent</h4>
</div></a>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- <section class="wrapperAll">
<section class="wrapper banner-content">
<p style="color:black;">New Books</p>
</section>
<section class="sliderComplete">
<section class="wrapper">
<ul class="slider">
<?php
// require "dbconnect/connect_to_Books.php";
// $query = "SELECT * FROM New_Books ORDER BY RAND() LIMIT 6";
// $result = mysqli_query($con2,$query);
// while($row = mysqli_fetch_array($result)){
?>
<li>
<a class="align-items-center" href="product.php?Book_ID=<?php echo $row['Book_ID']; ?>" class="cover">
<img style="height:20em;" src="img/<?php echo $row['Book_ID']; ?>.jpg" />
</a>
<a class="button" name="submit" href="product.php?Book_ID=<?php echo $row['Book_ID']; ?>">Buy Now</a>
</li>
<?php ?>
</ul>
</section>
</section>
<section class="wrapper banner-content">
<a href="buy.php" style="color:black;"><u>View More</u></a>
</section>
</section>
<section class="wrapperAll" style="background:#b4e1ea">
<section class="wrapper banner-content">
<p style="color:black">Books Available on Rent</p>
</section>
<section class="sliderComplete">
<section class="wrapper">
<ul class="slider">
<?php
// require "dbconnect/connect_to_Books.php";
// $query = "SELECT * FROM Rent_Books ORDER BY RAND() LIMIT 6";
// $result = mysqli_query($con2,$query);
// while($row = mysqli_fetch_array($result)){
?>
<li>
<a href="product.php?Book_ID=<?php echo $row['Book_ID']; ?>" class="cover">
<img style="height:20em;" src="img/<?php echo $row['Book_ID']; ?>.jpg" />
</a>
<a class="button" name="submit" href="product.php?Book_ID=<?php echo $row['Book_ID']; ?>">Order Now</a>
</li>
<?php ?>
</ul>
</section>
</section>
<section class="wrapper banner-content">
<a href="rent.php" style="color:black;"><u>View More</u></a>
</section>
</section>
<section class="wrapperAll">
<section class="wrapper banner-content">
<p style="color:black">Available Second Hand Books</p>
</section>
<section class="sliderComplete">
<section class="wrapper">
<ul class="slider">
<?php
// require "dbconnect/connect_to_Books.php";
// $query = "SELECT * FROM Second_Hand_Books ORDER BY RAND() LIMIT 6";
// $result = mysqli_query($con2,$query);
// while($row = mysqli_fetch_array($result)){
?>
<li>
<a href="product.php?Book_ID=<?php echo $row['Book_ID']; ?>" class="cover">
<img style="height:20em;" src="img/<?php echo $row['Book_ID']; ?>.jpg" />
</a>
<a class="button" name="submit" href="product.php?Book_ID=<?php echo $row['Book_ID']; ?>">Buy Now</a>
</li>
<?php ?>
</ul>
</section>
</section>
<section class="wrapper banner-content">
<a href="buy.php" style="color:black;"><u>View More</u></a>
</section>
</section> -->
<section class="wrapperAll" style="background:#b4e1ea;">
<section class="wrapper banner-content">
<p style="color:black">Donate Books</p>
<div class="align-items-center">
<img src="img/logos/Prayaaslogo.png" alt="Prayaas Logo" height="100" width ="76.71" />
</div>
</section>
<h4 class="wrapper banner-content">Do you have books in your shelf that you no longer read?<br></h4>
<section class="wrapper">
<div class="row d-flex align-items-center justify-content-center">
<a href="donate.php" class="primary-btn">Donate Your Books</a>
</div>
</section>
</section>
<section class="wrapperAll">
<section class="wrapper banner-content">
<p style="color:black">Request Books</p>
<br>
</section>
<h4 class="wrapper banner-content">Can't Find The Book You Need? Let Novzo search it for you.<br></h4>
<section class="wrapper">
<div class="row d-flex align-items-center justify-content-center">
<a href="request.php" class="primary-btn">Request Books</a>
</div>
</section>
</section>
<div id="back-top">
<a title="Go to Top" href="#"></a>
</div>
<?php include("includes/footer.php"); ?>
</body>
</html>