-
Notifications
You must be signed in to change notification settings - Fork 0
/
searchbooks.php
285 lines (272 loc) · 14.8 KB
/
searchbooks.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
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
<head>
<title>Εύδοξος - Αναζήτηση</title>
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="icon" href="images/favicon.ico" type="image/ico">
<link href="css/bootstrap.min.css" rel="stylesheet"/>
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.6.1/css/all.css" integrity="sha384-gfdkjb5BdAXd+lj+gudLWI+BXq4IuLW5IT+brZEZsLFm++aCMlF1V92rMkPaX4PP" crossorigin="anonymous"></head>
<link href="css/gridLayouts.css" rel="stylesheet" type="text/css" media="all">
<link href="css/topPart.css" rel="stylesheet" type="text/css" media="all">
<link href="css/navBar.css" rel="stylesheet" type="text/css" media="all">
<link href="css/footer.css" rel="stylesheet" type="text/css" media="all">
<link href="css/searchbooks.css" rel="stylesheet" type="text/css" media="all">
<link href="css/getbooks.css" rel="stylesheet" type="text/css" media="all">
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<!-- <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> -->
<script src="js/bootstrap.bundle.min.js"></script>
<script src="js/searchbooks.js"></script>
<script src="js/totop.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<!-- <script src="js/homepage.js"></script> -->
</head>
<body>
<button onclick="topFunction()" id="myBtn" title="Go to top"><i class="fas fa-arrow-up"></i></button>
<div class="container-fluid">
<div class="row topPart">
<div class="col-md-12">
<div class="row topTopPart">
<div class="col-xl-1 col-lg-2">
<a class="logoDiv" href="index.php"><img class="logo" src="images/logo.png" alt="Logo"><p class="logoText">Εύδοξος</p></a>
</div>
<div class="col-xl-8 d-lg-none d-xl-block">
<div class="row">
<div class="col">
<p class="tagline">Ιστοχώρος ηλεκτρονικής διαχείρισης πανεπιστημιακών βιβλίων</p>
</div>
</div>
<div class="row">
<div class="col">
</div>
</div>
</div>
<div class="d-xl-none d-lg-block col-lg-4">
</div>
<div class="col-xl-1 col-lg-2">
<a href="#" onclick="logout()" class="iconText" ><i class="fas fa-sign-in-alt topIcons"></i>
<!-- <p class="loginText">Είσοδος/Εγγραφή</p> -->
<?php
if (isset($_COOKIE['user'])) {
echo '<p class="loginText"> Έξοδος </p>';
}
else {
echo '<p class="loginText">Είσοδος/Εγγραφή</p>';
}
?>
</a>
</div>
<div class="col-xl-1 col-lg-2">
<a class="iconText" href="#" onclick="profileGo('prof')"><i style="margin-left: 29%;" class="fas fa-user topIcons"></i>
<!-- <p class="loginText">Προφίλ</p> -->
<?php
include("classes/user.class.php");
if (isset($_COOKIE['user'])) {
$user = new User(0);
$user = unserialize($_COOKIE['user']);
echo '<p class="loginText">'. $user->getUsername() . ' </p>';
}
else {
echo '<p class="loginText">Προφίλ</p>';
}
?>
</a>
</div>
<div class="col-xl-1 col-lg-2">
<a href="#"><img class="flag rounded" src="images/greek.png" alt="Greek flag"></a>
<a href="#"><img class="flag rounded" src="images/english.png" alt="Greek flag"></a>
</div>
</div>
<div class="row navBarRow">
<div class="col-12">
<nav class="navbar rounded navbar-expand-xl navbar-light bg-light">
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarTogglerDemo03" aria-controls="navbarTogglerDemo03" aria-expanded="false" aria-label="Toggle navigation">
<span style="color: black;" class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarTogglerDemo03">
<ul class="navbar-nav mr-auto mt-2 mt-xl-0">
<li class="nav-item">
<a class="nav-link" href="index.php">Αρχική</a>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
Φοιτητής
</a>
<div class="dropdown-menu" aria-labelledby="navbarDropdown">
<a class="dropdown-item" href="getbooks.php">Δήλωση Συγγραμμάτων</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="searchbooks.php">Αναζήτηση Συγγραμμάτων</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="#" onclick="profileGo('curr')">Τρέχουσα Δήλωση</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="help.php?who=stud">Βοήθεια</a>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
Εκδότης
</a>
<div class="dropdown-menu" aria-labelledby="navbarDropdown">
<a class="dropdown-item" href="submitBook.php">Καταχώρηση Συγγράμματος</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="underConstruction.php">Διαχείρηση Συγγραμμάτων</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="help.php?who=pub">Βοήθεια</a>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
Γραμματεία
</a>
<div class="dropdown-menu" aria-labelledby="navbarDropdown">
<a class="dropdown-item" href="underConstruction.php">Εισαγωγή Π.Σ.</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="underConstruction.php">Επεξεργασία Π.Σ.</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="underConstruction.php">Βοήθεια</a>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
Σημεια Διανομής
</a>
<div class="dropdown-menu" aria-labelledby="navbarDropdown">
<a class="dropdown-item" href="underConstruction.php">Επικύρωση Παραλαβής</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="underConstruction.php">Επεξεργασία Πληροφοριών</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="underConstruction.php">Βοήθεια</a>
</li>
<li class="nav-item">
<a class="nav-link active" href="searchbooks.php">Αναζήτηση Συγγραμμάτων</a>
</li>
<li class="nav-item">
<a class="nav-link" href="underConstruction.php">Επικοινωνία</a>
</li>
</ul>
<form action="#" method="post" class="form-inline my-2 my-lg-0">
<input type="search" name="search" id="search" class="form-control mr-sm-2" placeholder="Τίτλος, πληροφορίες..." aria-label="Search">
<button class="btn btn-dark" type="submit">Αναζήτηση</button>
</form>
</div>
</nav>
</div>
</div>
</div>
</div>
<div class="row breadcrumb">
<div class="col-md-12">
<ul class="breadcrumbT">
<li><a href="index.php">Αρχική</a></li>
<li><a href="#">Αναζήτηση Συγγραμμάτων</a></li>
</ul>
</div>
</div>
<div class="row" style="min-height:400px;">
<div class="col-12">
<div style="padding-bottom: 4%; padding-top: 3%;" class="row">
<div class="col-xl-2 col-lg-1"></div>
<div class="col-xl-8 col-lg-10">
<div class="form-inline">
<input type="text" class="form-control mr-3 inputSearch col-lg-10" placeholder="Τίτλος, συγγραφέας, ISBN, λέξεις κλειδιά..." id="searchInp">
<button onclick="search()" style="box-shadow: 2px 2px 3px rgb(179, 177, 177);" class="btn btn-success">Αναζήτηση</button>
</div>
</div>
<div class="col-xl-2 col-lg-1"></div>
</div>
<div style="display: none;" id="searchList" class="row">
<div class="col-md-2">
<p class="filterTitle">Φίλτρα</p>
<div style="margin-top: 16%;" class="row">
<div class="col-md-2">
</div>
<div class="col-md-10">
<span>Εξάμηνο</span><i id="canSem" onclick="cancelFilter(this.id)" class="fas fa-times ml-1 btn filterCancel"></i>
<form>
<div style="margin-bottom: 20%; margin-top: 5%;" class="form-group">
<select style="width: 80%;" class="form-control" id="selSem">
<option>Επίλεξε εξάμηνο</option>
<option>1ο</option>
<option>2ο</option>
<option>3ο</option>
<option>4ο</option>
<option>5ο</option>
<option>6ο</option>
<option>7ο</option>
<option>8ο</option>
</select>
</div>
</form>
<span>Έκδοση μετά το έτος</span><i id="canYear" onclick="cancelFilter(this.id)" class="fas fa-times ml-1 btn filterCancel"></i>
<form>
<div style="margin-bottom: 15%; margin-top: 5%;" class="form-group">
<select style="width: 80%;" class="form-control" id="selYear">
<option>Επίλεξε έτος</option>
<option>2</option>
<option>3</option>
<option>4</option>
</select>
</div>
</form>
<div><span>Σελίδες</span><i id="canPag" onclick="cancelFilter(this.id)" class="fas fa-times ml-1 btn filterCancel"></i></div>
<form id="pages" style="margin-top:5%;">
<div class="radio">
<label><input id="pag1"class="mr-2" onclick="choosePages(this.id)" type="radio" name="optradio">Έως 100</label>
</div>
<div class="radio">
<label><input id="pag2"class="mr-2" onclick="choosePages(this.id)" type="radio" name="optradio">100 - 199</label>
</div>
<div class="radio">
<label><input id="pag3"class="mr-2" onclick="choosePages(this.id)" type="radio" name="optradio">200 - 349</label>
</div>
<div class="radio">
<label><input id="pag4"class="mr-2" onclick="choosePages(this.id)" type="radio" name="optradio">350 - 499</label>
</div>
<div class="radio">
<label><input id="pag5"class="mr-2" onclick="choosePages(this.id)" type="radio" name="optradio">500 και άνω</label>
</div>
</form>
</div>
</div>
</div>
<div class="col-lg-8 col-md-10">
<div id="showBooks" style="margin-top:-5%;">
<ul id="bookListId" class="bookList">
</ul>
</div>
</div>
<div class="col-lg-2 d-md-none d-lg-block">
</div>
</div>
</div>
</div>
</div>
<footer class="section footer-classic context-dark bg-image" style="background: #E7E7E7;">
<div class="container">
<div style="padding-top:5%; padding-bottom: 3%;" class="row row-30">
<div style="border-right: 1px solid grey;" class="col-md-3 col-xl-4">
<div class="pr-xl-3">
<p class="footerHeader">Εύδοξος</p>
<p class="rights"><span>© </span><span class="copyright-year">2018</span><span> </span><span>Stavroula Iatropoulou, Mike Xydas</span><span>. </span><p>All Rights Reserved.</p></p>
</div>
</div>
<div style="border-right: 1px solid grey; margin-left: 6%;" class="col-md-3">
<h5>Επικοινωνία</h5>
<dl class="contact-list">
<dt>email επικοινωνίας:</dt>
<dd><a href="mailto:#">help@eudoxos.com</a></dd>
</dl>
<dl class="contact-list">
<dt>Τηλέφωνο:</dt>
<dd><a href="tel:#">210-6711223</a>
</dd>
</dl>
</div>
<div style="margin-left: 5%;" class="col-md-4 col-xl-3">
<h5>Σύνδεσμοι</h5>
<ul class="nav-list">
<li><a href="#">Φοιτητής</a></li>
<li><a href="#">Εκδότης</a></li>
<li><a href="#">Γραμματεία</a></li>
<li><a href="#">Σημεία Διανομής</a></li>
<li><a href="#">Πληροφορίες</a></li>
</ul>
</div>
</div>
</div>
</footer>
</body>