-
Notifications
You must be signed in to change notification settings - Fork 1
/
advance_search_old.php
127 lines (114 loc) · 8.44 KB
/
advance_search_old.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
<?php
require_once 'init.php';
$pageTitle = lang("advance_search_title");
$activePage = "advance_search";
require_once $tmpl . 'header.php';
if (!isset($_SESSION['UserEmail'])) {
//to allow only authorized user
redirect_user();
}
?>
<div class="searchForm pt-3 mt-5">
<div class="container-fluid">
<div class="row">
<div class="advance_searchTitle text-center blue-text pt-4 pb-4" id="advance_title">
<h1><?= lang('advance_search'); ?></h1>
</div>
</div>
<div class="alert alert-danger text-center fw-bold fs-4" id="all_field_empty" style="display:none;"><?= lang('search_empty'); ?> </div>
<form name="login" id="search_form" method="POST">
<div class="row align-content-center justify-content-center">
<div class="form-group col-lg-3 col-md-6 col-sm-6">
<label for="book_title" class="form-label mb-2 pe-1 mt-2"><?= lang('book_title'); ?></label>
<input type="text" autocomplete="off" list="book_auto_complete" class="form-control mb-3" id="book_title" name="book_title" placeholder="<?php echo lang('book_title_place') ?>"
onkeyup="autoCompleteField('book', 'title', '#book_title', '#book_auto_complete' ,'#check_title')" autofocus>
<span class="invalid-feedback" id="check_title"></span>
<datalist id="book_auto_complete"></datalist>
</div>
<div class="col-lg-3"></div>
<div class="form-group col-lg-3 col-md-6 col-sm-6">
<label for="search_author" class="form-label mb-2 pe-1 mt-2"><?= lang('author'); ?></label>
<input type="text" autocomplete="off" list="author_auto_complete" class="form-control mb-3" id="search_author" name="search_author" placeholder="<?php echo lang('author_place') ?>"
onkeyup="autoCompleteField('author', 'author_name', '#search_author', '#author_auto_complete' ,'#check_author')" >
<span class="invalid-feedback" id="check_author"></span>
<datalist id="author_auto_complete"></datalist>
</div>
</div>
<div class="row align-content-center justify-content-center">
<div class="form-group col-lg-3 col-md-6 col-sm-6">
<label for="search_publish_date" class="form-label mb-2 pe-1 mt-2"><?= lang('publish_date'); ?></label>
<input type="month" autocomplete="off" class="form-control mb-3" id="search_publish_date" name="search_publish_date" placeholder="<?php echo lang('publish_date_place') ?>"
onchange="autoCompleteField('book', 'publication_date', '#search_publish_date', '#publish_date_auto_complete' ,'#check_publish_date')" >
<span class="invalid-feedback" id="check_publish_date"></span>
</div>
<div class="col-lg-3"></div>
<div class="form-group col-lg-3 col-md-6 col-sm-6">
<label for="search_language" class="form-label mb-2 pe-1 mt-2"><?= lang('language'); ?></label>
<input type="text" autocomplete="off" list="lang_auto_complete" class="form-control mb-3" id="search_language" name="search_language" placeholder="<?php echo lang('language_place') ?>"
onkeyup="autoCompleteField('language', 'lang_name', '#search_language', '#lang_auto_complete' ,'#check_language')" >
<span class="invalid-feedback" id="check_language"></span>
<datalist id="lang_auto_complete"></datalist>
</div>
</div>
<div class="row align-content-center justify-content-center">
<div class="form-group col-lg-3 col-md-6 col-sm-6">
<label for="search_category" class="form-label mb-2 pe-1 mt-2"><?= lang('category'); ?></label>
<input type="text" autocomplete="off" list="categories_auto_complete" class="form-control mb-3" id="search_category" name="search_category" placeholder="<?php echo lang('category_place') ?>"
onkeyup="autoCompleteField('categories', 'cat_name', '#search_category', '#categories_auto_complete' ,'#check_category')">
<span class="invalid-feedback" id="check_category"></span>
<datalist id="categories_auto_complete"></datalist>
</div>
<div class="col-lg-3"></div>
<div class="form-group col-lg-3 col-md-6 col-sm-6">
<label for="search_publisher" class="form-label mb-2 pe-1 mt-2"><?= lang('publisher'); ?></label>
<input type="text" autocomplete="off" list="publisher_auto_complete" class="form-control mb-3" id="search_publisher" name="search_publisher" placeholder="<?php echo lang('publisher_place') ?>"
onkeyup="autoCompleteField('publisher', 'pub_name', '#search_publisher', '#publisher_auto_complete' ,'#check_publisher')" >
<span class="invalid-feedback" id="check_publisher"></span>
<datalist id="publisher_auto_complete"></datalist>
</div>
</div>
<div class="row align-content-center justify-content-center">
<div class="form-group col-lg-3 col-md-6 col-sm-6">
<label for="search_dewyNo" class="form-label mb-2 pe-1 mt-2"><?= lang('dewyNo'); ?></label>
<input type="text" list="dewyNo_auto_complete" autocomplete="off" class="form-control mb-3" id="search_dewyNo" name="search_dewyNo" placeholder="<?php echo lang('dewy_no_place') ?>"
onkeyup="autoCompleteField('book', 'dewey_no', '#search_dewyNo', '#dewyNo_auto_complete' ,'#check_dewyNo')" >
<span class="invalid-feedback" id="check_dewyNo"></span>
<datalist id="dewyNo_auto_complete"></datalist>
</div>
<div class="col-lg-3"></div>
<div class="form-group col-lg-3 col-md-6 col-sm-6">
<label for="search_isbn" class="form-label mb-2 pe-1 mt-2"><?= lang('isbn'); ?></label>
<input type="text" list="isbn_auto_complete" autocomplete="off" class="form-control mb-3" id="search_isbn" name="search_isbn" placeholder="<?php echo lang('isbn_place') ?>"
onkeyup="autoCompleteField('book', 'isbn', '#search_isbn', '#isbn_auto_complete' ,'#check_isbn')" >
<span class="invalid-feedback" id="check_isbn"></span>
<datalist id="isbn_auto_complete"></datalist>
</div>
</div>
<div class="row align-content-center justify-content-center">
<div class="form-group col-lg-3 col-md-6 col-sm-6">
<label for="search_series_name" class="form-label mb-2 pe-1 mt-2"><?= lang('series_name'); ?></label>
<input type="text" autocomplete="off" list="series_auto_complete" class="form-control mb-3" id="search_series_name" name="search_series_name" placeholder="<?php echo lang('series_name_place') ?>"
onkeyup="autoCompleteField('series', 'series_name', '#search_series_name', '#series_auto_complete' ,'#check_series')" >
<span class="invalid-feedback" id="check_series"></span>
<datalist id="series_auto_complete"></datalist>
</div>
<div class="col-lg-3"></div>
<div class="form-group col-lg-3 col-md-6 col-sm-6"></div>
</div>
<div class="row align-content-center justify-content-center mt-4 pb-5">
<div class="form-group col-lg-2 col-md-6 col-sm-6">
<div class="d-grid gap-2">
<button onclick="searchFormCheck()" class="btn blue-btn rounded-3 mt-2 mb-2 fw-bold" id="submit" type="button"><i class="fa-duotone fa-magnifying-glass"></i> <?php echo lang('search') ?></button>
</div>
</div>
<div class="col-lg-4"></div>
<div class="form-group col-lg-2 col-md-6 col-sm-6">
<div class="d-grid gap-2">
<button class="btn rest-btn rounded-3 mt-2 mb-2 fw-bold" type="reset"><i class="fa-duotone fa-eraser"></i> <?php echo lang('rest') ?></button>
</div>
</div>
</div>
</form>
</div>
</div>
<?php include $tmpl . 'footer.php'; ?>