-
Notifications
You must be signed in to change notification settings - Fork 1
/
book.php
executable file
·185 lines (174 loc) · 8.01 KB
/
book.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
require_once('sudo/assets/config/config.php');
$book_id = $_GET['book_id'];
$ret="SELECT * FROM iL_Books WHERE b_id = ?";
$stmt= $mysqli->prepare($ret) ;
$stmt->bind_param('s', $book_id);
$stmt->execute() ;//ok
$res=$stmt->get_result();
while($row=$res->fetch_object())
{
//load default book cover page if book is missing a cover image
if($row->b_coverimage == '')
{
$cover_image = "<img src='sudo/assets/img/books/Image12.jpg' class='img-fluid img-thumbnail' alt='Book Image'>";
}
else
{
$cover_image = "<img src='sudo/assets/img/books/$row->b_coverimage' class='img-fluid img-thumbnail' alt='Book Image'>";
}
?>
<!doctype html>
<html class="no-js" lang="zxx">
<head>
<meta charset="utf-8">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>Books - Digital Library - Automated and digital ways 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.ico" />
<!-- 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="overlay-bg relative">
<img src="images/slide/slide1.jpg" alt="">
</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>
<a href="index.php">Home</a>
</li>
<li>
<a href="books.php">Books</a>
</li>
<li>
<a href="lib_user/pages_std_index.php">Library User Login</a>
</li>
<li>
<a href="staff/pages_staff_index.php">Staff Login</a>
</li>
<li>
<a href="sudo/pages_sudo_index.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">Choose Your Book and Proceed To Borrowing It</h1>
</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>
</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-md-12">
<div class="space-30"></div>
<div class="row">
<div class="col-xs-12 col-md-12">
<div class="category-item well yellow">
<div class="media">
<div>
<?php echo $cover_image;?>
</div>
<div class="media-body">
<h5><?php echo $row->b_title;?></h5>
<h6>By <?php echo $row->b_author;?></h6>
<div class="space-10"></div>
<ul class="list-inline list-unstyled rating-star">
<li class="active"><i class="icofont icofont-star"></i></li>
<li class="active"><i class="icofont icofont-star"></i></li>
<li class="active"><i class="icofont icofont-star"></i></li>
<li class="active"><i class="icofont icofont-star"></i></li>
<li><i class="icofont icofont-star"></i></li>
</ul>
<p><?php echo $row->b_summary;?></p>
<div class="space-10"></div>
<a href="lib_user/pages_std_index.php" class="btn btn-outline-success text-primary">Borrow This Book</a>
</div>
</div>
</div>
</div>
<!--Book-->
</div>
<div class="space-60"></div>
</div>
</div>
</div>
<div class="space-80"></div>
</section>
<!--Footer-->
<?php require_once('partials/footer.php');?>
<!-- Footer-Area-End -->
<!-- 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>
<?php }?>