-
Notifications
You must be signed in to change notification settings - Fork 1
/
result.php
44 lines (35 loc) · 1.11 KB
/
result.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
<?php
// include required file
require_once 'init.php';
$pageTitle = lang('result_breadcrumb_title');
$activePage = "index";
require_once $tmpl . 'header.php';
// validate session
if (!isset($_SESSION['UserEmail'])) {
redirect_user();
}
// validate param
if (!filter_input(INPUT_GET, 'search_txt', FILTER_SANITIZE_SPECIAL_CHARS)) {
$url = "index.php";
redirect_user(lang("redirect_search_message"), 5 ,$url);
}
$search_val = filter_input(INPUT_GET, 'search_txt', FILTER_SANITIZE_SPECIAL_CHARS);
// search breadcrumb
$items = array(
lang("home") => 'href="index.php"',
lang("result_breadcrumb_title") => 'class="active"'
);
breadcrumb($items);
// delete popup section
delete_popup(lang('delete_book_popup_text'), "temp");
// no delete popup section
no_delete_popup(lang('no_delete_book_popup_text'));
// search section
search_section("search_all.php", lang("search_home"), "result.php", $search_val);
// book box section
$container_id = "search-container";
container_site($container_id);
// to load items
load_script("load_result.php", $container_id, "", $search_val);
// footer section
include $tmpl . 'footer.php';