-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.php
executable file
·242 lines (231 loc) · 11.4 KB
/
index.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
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
<?php
require_once('config/config.php');
?>
<!doctype html>
<html class="no-js" lang="zxx">
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>Home - Digital Library- Automated and digital way of mantaining libraries</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Place favicon.ico in the root directory -->
<link rel="apple-touch-icon" href="images/apple-touch-icon.png">
<link rel="shortcut icon" type="image/ico" href="images/favicon.png" />
<!-- Plugin-CSS -->
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/owl.carousel.min.css">
<link rel="stylesheet" href="css/icofont.css">
<link rel="stylesheet" href="css/animate.css">
<link rel="stylesheet" href="css/cardslider.css">
<link rel="stylesheet" href="css/responsiveslides.css">
<!-- Main-Stylesheets -->
<link rel="stylesheet" href="css/normalize.css">
<link rel="stylesheet" href="css/overright.css">
<link rel="stylesheet" href="css/theme.css">
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="css/responsive.css">
<script src="js/vendor/modernizr-2.8.3.min.js"></script>
</head>
<body data-spy="scroll" data-target="#mainmenu" data-offset="50">
<header class="relative" id="sc1">
<!-- Header-background-markup -->
<div class="header-bg relative home-slide">
<div class="item">
<img src="images/slide/slide1.jpg" alt="library">
</div>
<div class="item">
<img src="images/slide/slide2.jpg" alt="library">
</div>
<div class="item">
<img src="images/slide/slide3.jpg" alt="library">
</div>
<div class="item">
<img src="images/slide/slide4.jpg" alt="library">
</div>
</div>
<!-- Mainmenu-markup-start -->
<div class="mainmenu-area navbar-fixed-top" data-spy="affix" data-offset-top="10">
<nav class="navbar">
<div class="container">
<div class="navbar-header">
<div class="space-10"></div>
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#mainmenu">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<!--Logo-->
<a href="#sc1" class="navbar-left show"><img src="images/logo.png" alt="library"></a>
<div class="space-10"></div>
</div>
<!--Toggle-button-->
<!--Mainmenu list-->
<div class="navbar-right in fade" id="mainmenu">
<ul class="nav navbar-nav nav-white text-uppercase">
<li class="active">
<a href="#sc1">Home</a>
</li>
<li>
<a href="landing_books.php">Books</a>
</li>
<li>
<a href="student/">Student Login</a>
</li>
<li>
<a href="librarian/">Librarian Login</a>
</li>
<li>
<a href="login.php">Admin Login</a>
</li>
</ul>
</div>
</div>
</nav>
</div>
<div class="space-100"></div>
<!-- Mainmenu-markup-end -->
<!-- Header-jumbotron -->
<div class="space-100"></div>
<div class="header-text">
<div class="container">
<div class="row wow fadeInUp">
<div class="col-xs-12 col-sm-10 col-sm-offset-1 text-center">
<div class="jumbotron">
<h1 class="text-white">Digital Library Information Management System</h1>
<p class="text-white">An Automated And Digital Way Of Mantaining Libraries
</div>
<div class="title-bar white">
<ul class="list-inline list-unstyled">
<li><i class="icofont icofont-square"></i></li>
<li><i class="icofont icofont-square"></i></li>
</ul>
</div>
<div class="space-40"></div>
</div>
</div>
<div class="row wow fadeInUp" data-wow-delay="0.5s">
<div class="col-xs-12 col-sm-8 col-sm-offset-2 col-md-6 col-md-offset-3 ">
<div class="panel">
<div class="panel-heading">
<ul class="nav nav-tabs">
<li class="active"><a data-toggle="tab" href="#book">Book</a></li>
<li><a data-toggle="tab" href="#author">Author</a></li>
<li><a data-toggle="tab" href="#publisher">Publisher</a></li>
</ul>
</div>
<div class="panel-body">
<div class="tab-content">
<div class="tab-pane fade in active" id="book">
<form action="landing_books.php">
<div class="input-group">
<input type="text" class="form-control" placeholder="Enter book name">
<div class="input-group-btn">
<button type="submit" class="btn btn-primary"><i class="icofont icofont-search-alt-2"></i></button>
</div>
</div>
</form>
</div>
<div class="tab-pane fade" id="author">
<form action="landing_books.php">
<div class="input-group">
<input type="text" class="form-control" placeholder="Enter author name">
<div class="input-group-btn">
<button type="submit" class="btn btn-primary"><i class="icofont icofont-search-alt-2"></i></button>
</div>
</div>
</form>
</div>
<div class="tab-pane fade" id="publisher">
<form action="landing_books.php">
<div class="input-group">
<input type="text" class="form-control" placeholder="Enter publisher name">
<div class="input-group-btn">
<button type="submit" class="btn btn-primary"><i class="icofont icofont-search-alt-2"></i></button>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="space-100"></div>
<!-- Header-jumbotron-end -->
</header>
<section>
<div class="space-80"></div>
<div class="container">
<div class="row">
<div class="col-xs-12 col-sm-8 col-sm-offset-2 col-md-6 col-md-offset-3 text-center">
<h2>Book<strong>Categories</strong></h2>
<div class="space-20"></div>
<div class="title-bar blue">
<ul class="list-inline list-unstyled">
<li><i class="icofont icofont-square"></i></li>
<li><i class="icofont icofont-square"></i></li>
</ul>
</div>
<div class="space-30"></div>
<p>Most popular book categories to get your learning started</p>
</div>
</div>
<div class="space-60"></div>
<div class="row text-center">
<!--Show Book Categories-->
<?php
//Fetch all book categories
$ret="SELECT * FROM book_categories";
$stmt= $mysqli->prepare($ret) ;
$stmt->execute() ;//ok
$res=$stmt->get_result();
while($row=$res->fetch_object())
{
?>
<div class="justify col-xs-12 col-sm-6 col-md-4 wow fadeInLeft" data-wow-delay="0.1s">
<div class="category-item well blue text-cetnr">
<div class="category_icon">
<i class="icofont icofont-book"></i>
</div>
<div class="space-20"></div>
<div class="title-bar">
<ul class="list-inline list-unstyled">
<li><i class="icofont icofont-square"></i></li>
</ul>
</div>
<div class="space-20"></div>
<a href="landing_books.php"><?php echo $row->category_name;?></a>
</div>
</div>
<?php }?>
<!--End book categories -->
</div>
<div class="space-60"></div>
<div class="row">
<div class="col-xs-12 text-center">
<a href="landing_books.php" class="btn btn-primary">See More</a>
</div>
</div>
<div class="space-80"></div>
</div>
</section>
<!--Footer-->
<?php require_once('includes/footer.php');?>
<!-- Vandor-JS -->
<script src="js/vendor/jquery-1.12.4.min.js"></script>
<script src="js/vendor/bootstrap.min.js"></script>
<!-- Plugin-JS -->
<script src="js/owl.carousel.min.js"></script>
<script src="js/responsiveslides.min.js"></script>
<script src="js/jquery.cardslider.min.js"></script>
<script src="js/pagination.js"></script>
<script src="js/scrollUp.min.js"></script>
<script src="js/wow.min.js"></script>
<script src="js/plugins.js"></script>
<!-- Active-JS -->
<script src="js/main.js"></script>
</body>
</html>